Who Said Neural Networks Aren't Linear?
Nimrod Berman, Assaf Hallak, Assaf Shocher
Abstract
Neural networks are famously nonlinear. However, linearity is defined relative to a pair of vector spaces, f : X → Y. Leveraging the algebraic concept of transport of structure, we propose a method to explicitly identify non-standard vector spaces where a neural network acts as a linear operator. When sandwiching a linear operator A between two invertible neural networks, f (x) = g -1 y (Ag x (x)), the corresponding vector spaces X and Y are induced by newly defined addition and scaling actions derived from g x and g y . We term this kind of architecture a Linearizer. This framework makes the entire arsenal of linear algebra, including SVD, pseudo-inverse, orthogonal projection and more, applicable to nonlinear mappings. Furthermore, we show that the composition of two Linearizers that share a neural network is also a Linearizer. We leverage this property and demonstrate that training diffusion models using our architecture makes the hundreds of sampling steps collapse into a single step. We further utilize our framework to enforce idempotency (i.e. f (f (x)) = f (x)) on networks leading to a globally projective generative model and to demonstrate modular style transfer. * Equal contribution. † A.S. is a Chaya Fellow, supported by the Chaya Career Advancement Chair. Code available at https://github.com/ assafshocher/Linearizer
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext b04f6708-df29-4ab8-936c-8d5240ab6da4Cited by top-tier papers1
Ask how each one uses itBuilds on13
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
- Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
- Elucidating the Design Space of Diffusion-Based Generative ModelsTero Karras, Miika Aittala, Timo Aila, Samuli LaineNeurIPS 2022 · 3,959 citations
- Consistency ModelsYang Song, Prafulla Dhariwal, Mark Chen, Ilya SutskeverICML 2023 · 1,720 citations
Related papers
- Transport of Algebraic Structure to Latent EmbeddingsSamuel Pfrommer, Brendon G. Anderson, Somayeh SojoudiICML 2024
- Flowification: Everything is a normalizing flowBálint Máté, Samuel Klein, Tobias Golling, François FleuretNeurIPS 2022 · 9 citations
- Adaptive Convolutions for Structure-Aware Style TransferPrashanth Chandran, Gaspard Zoss, Paulo F. U. Gotardo, Markus Gross et al.CVPR 2021
- Closed-Form Concept Erasure via Double ProjectionsChi Zhang, Jingpu Cheng, Zhixian Wang, Ping LiuCVPR 2026 · 5 citations
- Idempotent Generative NetworkAssaf Shocher, Amil Dravid, Yossi Gandelsman, Inbar Mosseri et al.ICLR 2024 · 24 citations
