Manuscript Offprint
arXiv:2610.20229The minimal width of neural networks and immersions of real projective space
BAOZHI CHU AND BEN WEINKOVE
ABSTRACT. We investigate the minimal width of deep neural networks that can approximate all continuous functions from to in the topology of uniform convergence on compact subsets. We show that whenever the real projective space admits a smooth immersion into , the minimal width is at least , assuming that the activation function is continuous and monotone. As a consequence, the minimal width of ReLU networks is whenever is equal to 2, 3, 4, 7 or 8 and , extending results of Hanin-Sellke and Hwang. This suggests an intriguing connection between the approximation theory of neural networks and differential topology.
1. INTRODUCTION
A fundamental problem concerning expressivity of neural networks is to understand what architectures can approximate arbitrary continuous functions.
We define a neural network to be a map of the form
where are affine maps, is a positive integer called the depth and
are the dimensions of . The map is a continuous activation function, which is extended to arbitrary dimensions by . The architecture of consists of the dimensions and the choice of activation . The width of is
A now classical result is the universal approximation theorem for shallow networks. This states that networks of depth 2 (shallow networks) and arbitrarily large width can approximate any continuous function uniformly on compact subsets, as long as the activation function is not a polynomial [2, 3, 5, 12].
On the other hand, narrow deep networks, which have bounded width but arbitrarily large depth, have powerful approximation properties (see [17, 18], for example). A natural question that arises is the minimal width problem. Given an activation , we ask for the least integer such that any continuous function can be approximated uniformly on compact subsets by networks of arbitrary depth and width at most . Surprisingly, for most values of and , and standard activations, this minimal width, which we denote by , remains unknown. Here and throughout the paper, we set if the minimal width does not exist.
For the ReLU activation,
Hanin-Sellke [4] showed that
(1.1)
and equality holds when the output dimension m is 1:
When the output dimension is strictly larger than 1, the space of maps is much richer from a geometric-topological point of view. When , Park-Yun-Lee-Shin [14] showed that equality holds in (1.1) for , namely
Combining results of Kim–Min–Park [11, Theorem 3] and Hanin-Sellke [4, Theorem 1], this can be generalized to
Hwang [8] proved that
(1.2)
The question of minimal width has also been extensively studied under different hypotheses on the activation function and the approximation space (for example, using instead of norms). We refer the reader to [1, 9, 10, 11, 13, 14, 15, 16] and the references therein.
The crux of Hwang’s argument for (1.2) is a two-to-one map from the unit circle to itself, which “wraps around twice”. More precisely, one defines a function , for an annulus in containing the unit circle , with the property that maps onto with winding number 2. Any neural network approximation to of width at most 3 would give rise to an injective map from a simple closed curve in to the cylinder which, after projection to , would wrap around twice. No such injective map exists and hence the width of the network must be at least 4.
Our main result extends Hwang’s geometric-topological argument to higher dimensions. The map sending a point on the sphere to its antipodal point defines a two-to-one quotient map from to real projective space , the set of lines through the origin in . Assuming there is a smooth immersion from to , the composition gives a smooth immersion from onto its image in . This map, extended to an annulus in , plays the role of the function in Hwang’s argument.
We prove the following minimal width lower bound for continuous and monotone activations, assuming the existence of smooth immersions of into . We say that is monotone if it is either non-increasing on or non-decreasing on (for example, constant functions are monotone).
Theorem 1.1. Assume the activation function is continuous and monotone. Let and . Assume that there is a smooth immersion . Then there exist a compactly supported smooth map , a compact annulus , and such that the following holds. For every network of width at most , we have
In particular,
Combining this bound with (1.1) and a well-known classification of the dimensions n for which admits a smooth immersion into , we obtain the following.
Corollary 1.1. For the ReLU activation,
The upper bound (1.1) extends easily from the ReLU activation to the Leaky ReLU activations defined by , for a fixed . Therefore, the conclusion of Corollary 1.1 also holds for Leaky ReLU activations.
We do not expect that the formula holds for all values of with , although we cannot yet provide a counterexample. On the other hand, it is known that if then fails [8, Theorem 4.8]. We believe that this question is connected to differential topology in a non-trivial way, and deserves further study.
The paper is organized as follows. In §2, we record a needed homotopy theorem. The construction of the map and its key property Theorem 3.1 are established in §3, while a more explicit and shorter construction for the case is provided in §4. Theorem 1.1 is proved in §5, and Corollary 1.1 is proved in §6.
AI Disclosure. The authors used ChatGPT to help discover the main results. All arguments were independently checked by the authors and the exposition is entirely their own.
Theorem 2.1. Let be a smooth compact -manifold with boundary. Let be a smooth free involution (i.e. a smooth map with and with no points with ). Let be a smooth map and define by . Assume the following:
(1) has exactly two zeros on M, at p and , and the derivative of at p is invertible.
(2) for all . (Namely, is an odd homotopy).
(3) is nowhere zero, for all .
Then has a zero.
To prove it, we will require a standard intersection mod 2 result (see [7], Theorem 2.1 and the discussion on pages 132-133).
Theorem 2.2. Let be a smooth -manifold with boundary and be a compact -dimensional submanifold such that and meets transversely. Let be smooth maps transverse to , joined by a smooth homotopy for such that . Then and have the same number of points mod 2.
Theorem 2.1 then follows easily.
Proof of Theorem 2.1. Define
and
Then is a smooth -manifold with boundary and is a compact submanifold of dimension with boundary . Moreover, meets transversely. For , define by
which is well-defined by (2). The condition (3) implies that . By (1), the set is the singleton and the intersection is transverse because is invertible. If did not have a zero then would be empty, and would be transverse to . But then Theorem 2.2 would imply that, mod 2,
a contradiction.
3. CONSTRUCTION OF THE MAP
For a small , define the compact annulus in by
where d denotes distance in the Euclidean norm. We prove the following key result. (Since the proof is somewhat technical, the reader may wish to first read a simpler proof in the case n = 2 which is presented in Section 4.)
Theorem 3.1. Assume there is a smooth immersion . Then there exist and a smooth map such that the following holds. If and are smooth maps, and satisfies
then given by is not injective.
Proof. Let
be the quotient map , where for if and are equal or are antipodal points (namely, ). Define
which is again a smooth immersion, since is a local diffeomorphism. Observe that .
Next we will define a smooth map which takes a point and returns , a unit normal vector to at the point .
We first set up some notation. We define the orientation of a basis of vectors of to be
where is the matrix whose column vectors are . Note that replacing one of the by changes the sign of the orientation. If are the standard basis vectors of then .
Let be basis vectors of such that . Note that is normal to so gives a basis of . Define to be the unique unit normal vector to in so that
Note that since is an immersion, is a hyperplane in spanned by the vectors . There are exactly two unit normal vectors to ; the orientation determines which one we pick. The definition of is independent of the particular choice of ; it only requires that .
We need an elementary lemma.
Lemma 3.1. For all we have .
Proof of Lemma 3.1. Fix and let be a basis of with . By definition of , we have
On the other hand, is a basis of with
Since we have . Hence
and as required.
Let be a small constant to be determined later. We now define by
(3.1)
We claim that the derivative of at every is invertible. Indeed, without loss of generality, assume that , the North pole of and use coordinates in a neighborhood of . Then span . Compute
(3.2)
Since is an immersion, the vectors span the hyperplane and by definition is orthogonal to the hyperplane. Hence is invertible, completing the claim. Assuming that is sufficiently small, it follows that is a local diffeomorphism.
Assume first that n is even. Then
(3.3)
since and .
Define a compact -manifold by where is the open ball of radius centered at the origin in . The manifold has a boundary . Define a smooth free involution given by
Observe that if then and lie in the set .
Define a map by
where are the first components of .
We first show that satisfies assumption (1) of Theorem 2.1. First note that for fixed x and small w, using (3.3) and Taylor's Theorem,
(3.4)
If then which implies that or . The points and are zeros of in . Moreover, the derivative of at , using as local coordinates on near , is
which is invertible since is invertible. This implies that there exists an open neighborhood of such that is non-zero on , and similarly for . Hence, shrinking if necessary, has exactly two zeros and and the derivative of at these zeros is invertible.
Next, define by
and by . We have
so (2) is satisfied.
Finally, for (3), write for the projection onto the second factor. There exists a constant such that
for , since we already showed that only when , and is continuous on the compact boundary . Since and are uniformly close on we may choose sufficiently small, depending on , such that for any , .
Since
we have for ,
and this proves (3).
By Theorem 2.1, has a zero, namely a point in M such that
Hence with and being distinct points in A. This completes the proof in the case of n even.
Now assume is odd. Rather than repeat the entire proof, we merely indicate the necessary changes. Crucially, we define for and the map by
This satisfies if is perpendicular to , and , so that the component of which is in the direction gets reflected. Observe that and . We define the involution by
noting that as required.
If then and lie in the set . Define a map by
where are the first components of .
Taking the Taylor expansion in w at a fixed gives
(3.5)
We claim that for all ,
(3.6)
Indeed, assume without loss of generality that and use coordinates in neighborhoods of and respectively. Then
. Recalling that and , we compute from (3.1) and (3.2),
On the other hand, for , the map is given by for and . Then
completing the proof of (3.6).
From (3.5) we have
Then satisfies (1) by the same proof as in the case of n even.
We define in the analogous way using and . It is straightforward to check (2) and (3) and so we can again apply Theorem 2.1 to obtain two points and which are distinct because is small, with .
4. A SIMPLER PROOF OF THEOREM 3.1 IN THE CASE OF n = 2
When there is a more elementary and explicit proof of Theorem 3.1, the case already treated by Hwang [8]. For the reader's convenience, we write down the self-contained proof which is similar in spirit to [8]. Rather than define our function using an immersion of into (of which there are many), we simply write down an explicit function .
Let be the map , namely the map in complex coordinates. On the unit circle , the map sends the point with angle to the point with angle , and antipodal points and have the same image under .
Define the compact 3-manifold , where is the open ball of radius centered at the origin in . The boundary of is . Identify with via
There is a smooth free involution of given by . Observe that if then and are in the annulus . Define a map by
More explicitly, writing , we obtain
Observe that has exactly two zeros, at and . Let's compute the derivative of at . With columns ordered as , its derivative is
In particular,
which is invertible. This shows that satisfies assumption (1) of Theorem 2.1.
Next, define by
and by . Observe that
Hence (2) is satisfied.
Finally we check (3). Let be in the boundary . We have . Then
Since is close to on we may assume, if is small enough, that does not vanish on the boundary of for .
Then by Theorem 2.1, has a zero, namely a point in M such that
Hence and are distinct points in A, completing the proof of Theorem 3.1 in the case n = 2.
5. PROOF OF THEOREM 1.1
Besides the key ingredient in §3, we need the following lemma on the networks, which shows that we can approximate neural networks by injective maps composed with projections (cf. [9, Section 5]).
For integers , write
Lemma 5.1. Assume the activation function is continuous and monotone. Fix . Suppose that is a network of width at most . For every nonempty compact and every , there is a smooth injective map such that
Proof. We first approximate by smooth strictly monotone functions. Choose such that is non-decreasing. Choose a standard nonnegative mollifier with . For , define
Clearly, . By standard properties of mollification, is smooth for every and locally uniformly as . For , we verify that is strictly monotone.
and thus injective on . Indeed, for , monotonicity of and give
We again use to denote its higher dimensional extensions in the same way as for . Then as a map from to is smooth and injective for every .
Next we put all the affine maps of the network on the same space . Let be expressed by affine maps and dimensions , , with for . For , define by
for . Here there are zeros in the above definition; when , there are no added zero coordinates. There is a finite set such that for , the affine maps are isomorphisms. This follows from the fact that if is any matrix and the identity matrix, is a polynomial in of degree and hence vanishes for at most values of .
Let be defined by , and define
When , this means . For every with , all factors are smooth and injective, including . Their composition is consequently smooth and injective on . Moreover,
Since is continuous on the compact set , we obtain, for all sufficiently small ,
Choose such a positive outside the finite set , and let . Then, by , we have
which proves the lemma.
Now we are ready to present the following:
Proof of Theorem 1.1. Let , , be those given by Theorem 3.1. We may assume . Note that the same defining formula (3.1) extends to a smooth map on . Choose a standard cutoff supported on such that on and on . Define
Then agrees with on an open neighborhood of .
Let
Write on and on . Define
Here there are zeros in the definition of .
Fix to be any continuous and monotone activation. Suppose the contrary that a network of width at most satisfies
By the definition of the width, we must have . We may therefore apply Lemma 5.1, with , to obtain a smooth injective map such that
Write , where consists of the first coordinates and consists of the remaining coordinates. By , the above inequalities yield
Here we used on A.
If , define . If , simply let . In either case, is smooth on a neighborhood of and
Then Theorem 3.1 shows that the map is not injective. Hence there are distinct points with and . The first coordinates of the first equation give . Together with the second equation, this implies
contradicting the injectivity of G. The theorem is therefore proved.
6. PROOF OF COROLLARY 1.1
The following theorem is well-known in differential topology.
Theorem 6.1. For , the real projective space admits a smooth immersion into if and only if .
We recall how this classification follows from the classical results recorded in [6]. The case is immediate, since is diffeomorphic to the circle.
Suppose first that is odd. By [6, Theorem 7.2], admits a smooth immersion into if and only if is parallelizable (i.e. admits a global smooth frame). According to results of Kervaire, Bott, and Milnor recalled in [6, footnote 3, p. 272], is parallelizable precisely when is 3 or 7.
Now suppose that is even, and let be a smooth immersion. Write as the antipodal quotient map. As in the proof of [6, Theorem 7.2], gives an immersion of even normal degree, then Milnor's result implies that is parallelizable. Then the result recalled in [6, footnote 3, p. 272] forces or . Conversely, the required immersions for are recorded in [6, Theorem 7.1]. Combining these cases gives precisely .
Proof of Corollary 1.1. The desired conclusion follows directly from Theorem 1.1, Theorem 6.1, and the upper bound (1.1).
REFERENCES
-
Y. Cai, Achieve the minimum width of neural networks for universal approximation, in International Conference on Learning Representations (ICLR), 2023.
-
G. Cybenko, Approximation by superpositions of a sigmoidal function, Mathematics of Control, Signals, and Systems 2 (1989), 303–314.
-
K.-I. Funahashi, On the approximate realization of continuous mappings by neural networks, Neural Networks 2 (1989), 183–192.
-
B. Hanin and M. Sellke, Approximating continuous functions by ReLU nets of minimal width, arXiv:1710.11278v2 (2018).
-
K. Hornik, M. Stinchcombe, and H. White, Multilayer feedforward networks are universal approximators, Neural Networks 2 (1989), 359–366.
-
M. W. Hirsch, Immersions of manifolds, Trans. Amer. Math. Soc. 93 (1959), 242–276.
-
M. W. Hirsch, Differential Topology, Graduate Texts in Mathematics, vol. 33, Springer-Verlag, New York–Heidelberg, 1976.
-
G. Hwang, Minimum width for deep, narrow MLP: A diffeomorphism approach, Advances in Neural Information Processing Systems 38 (2025), 162057–162082.
-
J. Johnson, Deep, skinny neural networks are not universal approximators, in International Conference on Learning Representations (ICLR), 2019.
-
P. Kidger and T. Lyons, Universal approximation with deep narrow networks, in Conference on Learning Theory, PMLR, vol.125, 2020, 2306–2327.
-
N. Kim, C. Min, and S. Park, Minimum width for universal approximation using ReLU networks on compact domain, in International Conference on Learning Representations (ICLR), 2024.
-
M. Leshno, V. Ya. Lin, A. Pinkus, and S. Schocken, Multilayer feedforward networks with a non-polynomial activation function can approximate any function, Neural Networks 6 (1993), 861–867.
-
Z. Lu, H. Pu, F. Wang, Z. Hu, and L. Wang, The expressive power of neural networks: A view from the width, in Advances in Neural Information Processing Systems 30 (2017), 6231–6239.
-
S. Park, C. Yun, J. Lee, and J. Shin, Minimum width for universal approximation, in Proceedings of the 9th International Conference on Learning Representations (ICLR), 2021.
-
D. Rochau, R. Chan, and H. Gottschalk, New advances in universal approximation with neural networks of minimal width, arXiv:2411.08735v3 (2025).
-
J. Shin, N. Kim, G. Hwang, and S. Park, Minimum width for universal approximation using squashable activation functions, in Proceedings of the 42nd International Conference on Machine Learning (ICML), vol.267, 2025, 55096–55121.
-
M. Telgarsky, Representation benefits of deep feedforward networks, arXiv:1509.08101 (2015).
-
D. Yarotsky, Error bounds for approximations with deep ReLU networks, Neural Networks 94 (2017), 103–114.
DEPARTMENT OF MATHEMATICS, NORTHWESTERN UNIVERSITY, 2033 SHERIDAN ROAD, EVANSTON, IL 60208, USA