Are neural networks a manifold?
Proving that shallow tanh networks without redundant neurons form a smooth manifold of functions, the geometry behind natural gradient methods.
- Role
- First author
- With
- I. C. Gonnella, C. Marcati, F. Pichi
- Links
- arXiv
Proving that shallow tanh networks without redundant neurons form a smooth manifold of functions, the geometry behind natural gradient methods.
The set of functions that a network with a fixed architecture can represent is often called the neural network manifold, but the word has mostly been used loosely, without proof. Making it rigorous matters for optimization: Natural Gradient Descent, used for instance to train neural PDE solvers, can be read as Riemannian gradient descent on this set of functions, which would bring the convergence theory of Riemannian optimization into play.
The difficulty is that, in general, this set is not a smooth manifold: the map from parameters to functions is far from injective, and its image is neither a manifold nor closed.
We consider shallow tanh networks on a bounded domain . Some redundancies are obvious: permuting neurons or flipping their signs does not change the function, and some neurons can be removed or merged. We call a network irreducible (after Sussmann, 1992) if
We prove that the irreducible networks form a smooth embedded submanifold of the Sobolev space , for every and , of dimension equal to the number of parameters. The manifold has exactly connected components when both input and output are scalar, and is connected otherwise. For it is a Riemannian manifold, so Natural Gradient Descent on irreducible shallow tanh networks is Riemannian gradient descent on a smooth manifold.
The proof combines three ingredients: identifying each irreducible network with its parameters up to the finite group of symmetries (permutations and sign flips), showing that the differential of the parameter-to-function map is injective, and proving that this map has a continuous inverse. The last step is the key one: if a sequence of networks converges, as functions, to an irreducible network with the same number of neurons, then its parameters stay bounded. Along the way we use complex analysis, for the linear independence of tanh and its derivatives, and an asymptotic analysis of how neurons can behave in the limit.
Extending the results to deep networks is ongoing work.
The results were presented at the Analysis Junior Seminars at SISSA (Trieste, September 2026) and in the Numerical Analysis Seminars of the Politecnico di Torino (October 2026).