Manuscript Offprint
arXiv:2610.28800Depth Separation for Neural Networks under Gaussian Measure
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
ABSTRACT. We revisit the problem of depth separation for neural networks, as studied by Eldan and Shamir, Daniely, and others. Specifically, we consider the natural setting of approximation of radial functions under the standard Gaussian measure in d dimensions. We show that there is a radial function in under the standard Gaussian measure that can be approximated to a fixed sufficiently small error by a depth-3 ReLU neural network of polynomial size in d but can only be approximated by depth-2 networks with subexponentially bounded weights if their size is at least exponential in d. For that, we prove a general result showing that if a radial function has substantial mass in the high frequencies of its Hermite expansion, then it cannot be well approximated by a depth-2 neural network with small width and bounded weights. All theorems, lemmas, propositions, and corollaries are verified in Lean 4.
1. INTRODUCTION
Deep neural networks have become a central tool in machine learning. Their success in tasks such as image recognition and the generation of speech has been gaining dramatic attention over the last couple of years, as they have been achieving exceptional performance. Many of these models are becoming larger and larger, with billions of parameters and, alongside their growth in model size, empirical evidence suggests that increasing depth can also play an important role in their success.
On the theoretical side, the expressive power of neural networks has been studied since the beginnings of the field. Cybenko [2] and, independently, Funahashi [6] and Hornik, Stinchcombe, and White [7] proved that neural networks with a single hidden layer (depth 2) and a continuous sigmoidal activation function can uniformly approximate any continuous function on a compact domain; Leshno, Lin, Pinkus, and Schocken [8] later showed that any continuous nonpolynomial activation function suffices.
To better understand the role of depth in neural networks, a long line of work has studied depth separations: families of functions that small deep networks represent but that shallow networks cannot approximate without exponentially many neurons. Barron [1] proved quantitative approximation bounds for shallow networks
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
under Fourier-analytic regularity assumptions. For networks with growing depth, Telgarsky [12] established exponential approximation separations. Martens, Chattopadhyay, Pitassi, and Zemel [9] proved a depth separation result for a function on , which can be computed by a depth-3 network of polynomial size in , but requires exponential size for depth-2 networks with monotone activations under suitable bounds on neuron contributions and a fixed classification margin.
Three years later, Eldan and Shamir [4] exhibited a function on computed by a depth-3 network of polynomial size in , whereas achieving a certain approximation accuracy with a depth-2 network requires exponential width. The probability measure underlying their norm is tailored to the Fourier-analytic proof: its density is the square of the Fourier transform of the indicator function of a Euclidean ball.
The following year, Daniely [3] gave a proof of a separation with respect to the uniform product distribution on . Using tools from the theory of orthogonal polynomials, he proved that for inner-product functions on , polynomial-size depth-2 networks with exponentially bounded weights cannot approximate whenever the function is far from low-degree polynomials. For rapidly oscillating functions like , hidden neurons are required, while a depth-3 ReLU network of polynomial size attains any constant accuracy. Further depth-separation results and approximation bounds for radial functions were obtained in [11, 10].
In this work, we establish an exponential depth separation for neural-network approximation of certain radial functions on the unbounded space , equipped with the standard Gaussian measure . Many elements of our proof are already contained in [3]. Still, we believe that our setup of Gaussian measure and radial functions is more natural than what has been considered in previous works.
We first fix our terminology. Let be the ReLU activation function. A depth-2 network of width with parameters and is the function given by
Similarly, a depth-3 network of widths and , with parameters and , , , , is the function
We call the width of this network. When discussing bounds on parameters of these networks, we use the Euclidean norm for weight vectors and the absolute value for scalar weights and biases.
A ridge function on is a function that depends on its input through a single one-dimensional projection, that is, a function of the form
where . These functions are widely studied in approximation theory. Note that a depth-2 ReLU network of width is such a sum of ridge functions. For , take the direction and the ridge function . If , then .
Throughout, denotes the one-dimensional standard Gaussian measure and the standard Gaussian measure on . The multivariate Hermite polynomials are an orthogonal basis of . Let denote the orthogonal projection in onto the span of the multivariate Hermite polynomials of total degree . For , write . (The definition of multivariate Hermite polynomials is recalled in Section 2.)
Finally, for uniformly distributed on the sphere and even n, we define
The product formula is proved in Proposition 3.4. Note that it yields for even , so is exponentially small when is proportional to ; in particular, for even .
Our main lower bound states that a radial function whose Hermite expansion has a substantial component in the high Hermite degrees cannot be well approximated by few ridge functions.
Theorem 1.1. Let be even, let be radial and set . Let , and let with and . If
For a radial target of the form , the condition in Theorem 1.1 has a natural interpretation in terms of polynomial approximation. The variable , for , has the normalized distribution, with density . If cannot be well approximated by low-degree polynomials in , then has substantial Hermite mass in high degrees. The following corollary therefore gives a width lower bound directly from this polynomial approximation condition.
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
Corollary 1.2. Let and let be even. Let be such that for some measurable and suppose that, for some ,
Let , and let and satisfy . If
then
Proof. By Lemma 5.1, applied to , the polynomial approximation hypothesis gives . The assumed squared error is therefore at most . Theorem 1.1 yields .
The main idea behind the proof of Theorem 1.1 is to exploit the interaction between the Hermite decomposition associated with Gaussian measure and the rotational symmetry of the target function. This is similar to the general strategy of Daniely [3]. Since the target is radial, only the radial part of a ridge function contributes to their correlation. We therefore average the ridge function over rotations and examine its Hermite expansion. In each Hermite degree, this averaging introduces moments of a uniformly distributed random vector on and the decay of these moments is what allows us to bound the correlation.
Specializing F to a rapidly oscillating radial sine function and taking yields the following depth separation.
Theorem 1.3. Let be defined by
Then, there are universal constants and such that for every even the following holds:
(i) Let . For all with and all , if
(ii) For every , there is a depth-3 ReLU network such that
with width , and with parameters bounded by .
The implicit constants are universal, independent of d and .
For the lower bound, we also follow Daniely's strategy [3]. Write with . We exploit the fact that is highly oscillating to show that it cannot be well approximated by low-degree polynomials in . Therefore, the first part of Theorem 1.3 follows from Lemma 5.3 and Theorem 1.1. For the second part, we construct a depth-2 network that approximates and, using the same approach, a depth-2 network that approximates the sine function. Composing these two networks yields a depth-3 network that approximates .
As a straightforward corollary, we get the comparison below that shows that at any fixed sufficiently small approximation error, depth-2 networks with the stated parameter bound require exponential size, whereas depth-3 networks attain the same error with polynomial size.
Corollary 1.4. There exist constants , , and such that for every even and every , setting the function
has the following properties:
(i) Every depth-2 ReLU network whose parameters are bounded by and which satisfies has width
(ii) There exists a depth-3 ReLU network whose parameters are bounded by , whose error satisfies , and whose width is
The remainder of the paper is organized as follows. In Section 2, we prove the necessary facts about multivariate Hermite polynomials and their behavior under rotations. In Section 3, we study the radialization of ridge functions and compute the spherical moments that will bound these functions. In Section 4 we combine these results to establish Theorem 1.1. Finally, in Section 5, we apply the theorem's lower bound to establish the first part of Theorem 1.3, and then conclude it by constructing a polynomial-size depth-3 ReLU approximation for the
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
target function. In Section 6, we discuss the formal verification of the main results in Lean 4; the code is available in a companion GitHub repository.
We use the probabilists' Hermite polynomials , defined by
. They are normalized by
For a multi-index , set
For , we also write . Then
and the n-th Gaussian chaos is
The first identity relates Hermite polynomials of linear functionals to the multivariate Hermite basis.
Lemma 2.1. For every , , and ,
Proof. The generating function for the probabilists' Hermite polynomials is
Since , applying the generating-function identity first with and then coordinatewise gives
Comparing the coefficient of on the two sides proves the lemma.
We next show that the Gaussian chaos projections commute with orthogonal transformations.
Lemma 2.2. For every and every ,
Proof. Define the operator on by
It suffices to prove that preserves both and . Indeed, let . Applying gives
On the other hand, we also have
If preserves the two spaces, then it holds that , proving the statement.
We first prove that preserves . Note that the ridge Hermites
span this space. Indeed, by Lemma 2.1, these functions belong to . Conversely, let and suppose that is orthogonal to all the ridge Hermites. Then, for every ,
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
Thus the polynomial vanishes on the sphere and, since it is homogeneous, it must vanish on all of , implying that all coefficients are zero.
Therefore, it suffices to understand the action of on the ridge Hermites. If , then and
Hence , and applying the same argument to gives the reverse inclusion, proving that .
It remains to prove that preserves . Since is orthogonal, rotation invariance of implies that is a unitary operator satisfying . Hence, if and , then and
Thus also preserves , completing the proof.
3. RADIALIZATION OF RIDGE FUNCTIONS
In this section, our goal is to understand the behaviour of the radialized ridge functions. We recall once more standard facts about these functions, and write the proofs for completeness. We expand the ridge functions in the Hermite basis, and then average them over all possible rotations to obtain an expression of their radializations in terms of moments of a uniform vector on the sphere.
In general, for a function , we define its radialization by
where is Haar probability measure on . Note that is the orthogonal projection of onto the subspace of radial functions. Moreover, we prove that commutes with the Gaussian chaos projections . Indeed,
Proposition 3.1. For every , it holds that
Proof. Let denote the closed subspace of radial functions. If , then for every , the preceding lemma gives
so . Since is self-adjoint, it also preserves . Therefore, preserves the orthogonal decomposition
proving that it commutes with the orthogonal projection onto .
We can now understand the case of radial projections of ridge functions. Let and , and define
Observe that , since whenever .
In what follows, we obtain an explicit description of the radialization of ridge functions in terms of the Hermite expansion of g and the moments of a uniform vector on the sphere.
Proposition 3.2. Let , , and . Then
The identity holds in , with the series converging in that norm.
Proof. We first prove the property for finite Hermite expansions and then extend it to the general case by an approximation argument. Suppose g is a finite Hermite polynomial,
then
Let , and note that, by Lemma 2.1, for every ,
(3.1)
Since is uniformly distributed on when U is Haar-distributed on , averaging (3.1) over U, we get that
Note that , so the desired formula for a finite Hermite expansion follows.
Now let be arbitrary, with its Hermite expansion given by
Denote by
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
the partial sums of the Hermite expansion, which converge to in . The finite calculation gives
To justify the convergence in of the right-hand side, we note that
proving the statement.
Lemma 3.3 ([5, p. 447]). Let V be a random variable distributed uniformly on and let with . If some is odd, then
If all are even, then
The next proposition shows that every spherical moment of degree n is bounded in absolute value by the pure coordinate moment , which we compute explicitly.
Proposition 3.4. Assume . Let denote normalized surface measure on , and let be an -valued random vector with law . For even , set
Then
for every with . Moreover,
Proof. Since , the generalized Hölder inequality, applied over the indices for which with exponents , and rotational symmetry give
proving the first statement. It remains to compute . If , then , so , and every factor of the product equals . We may therefore assume .
Since , the degree-zero case of the Funk–Hecke formula gives
where
Since n is even, the change of variables yields
Consequently,
For even n, the gamma recurrence gives
Multiplying these identities proves the desired product formula for .
Remark 3.5. The product formula also gives, when is even and ,
Indeed, each factor satisfies
for under this assumption. Thus the size of the degree-n radial component is governed by , which becomes exponentially small when the degree is proportional to the dimension. Moreover, for every and even ,
so is nonincreasing along even degrees.
4. CORRELATION ESTIMATES AND THE RIDGE LOWER BOUND
To control the convergence of the ridge approximations, we first bound the correlation between the projections of a radial function and a ridge function. This is the Gaussian analogue of the correlation estimate in Daniely's proof [3].
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
Proposition 4.1. Let . For every radial , every , and every , the inner product
vanishes when n is odd. When n is even, it follows that
Proof. Since F is radial, is radial. Hence
where the second equality follows from Proposition 3.1. By Proposition 3.2,
where V is uniformly distributed on .
If is odd, every with has an odd component. Lemma 3.3 therefore gives for every term in the sum. Thus , and consequently
Assume now that n is even. By Cauchy-Schwarz,
(4.1)
Set . By Lemma 2.1, the degree-n component of is
Using the two expansions above, we get
which, together with (4.1), proves the claim.
We first derive from the preceding proposition the tail estimate needed to prove the main lower bound. For , recall that we write
Corollary 4.2. Let be even. Then, for any radial and any and ,
Proof. Note that it holds that
Using orthogonality and Proposition 4.1 we get
Since for along even degrees (see Remark 3.5), Cauchy-Schwarz gives
The last factor is at most , so the claim follows.
The tail estimate immediately proves the main lower bound.
Proof of Theorem 1.1. Recall that and that is such that for every . If , the conclusion is simply and is immediate. We therefore assume . Suppose that
The corollary implies that
Rearranging the terms yields
☐
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
5. DEPTH SEPARATION
We now turn to the proof of Theorem 1.3. We consider a rapidly oscillating function of that has substantial weight in the high-chaos energy but is still well approximated by a depth-3 ReLU neural network.
Following the oscillatory constructions in [3], for parameters , define the radial function
Since , this is well-defined in . Set
and denote by
the density of for . We first prove two preliminary facts.
Lemma 5.1. Let and let be of the form for a measurable function . For every even integer ,
Proof. If denotes the subspace of radial functions and the direct sum of the Gaussian chaoses of degree less than , then
since the orthogonal projection is the function in that minimizes the distance to . We can restrict the infimum over the radial functions, since Proposition 3.1 implies that is radial as well.
Every function in is a radial polynomial of degree less than , and hence has the form with . Conversely, every polynomial of this form belongs to . Since, for a random variable , has density and , we get the desired result.
Lemma 5.2. There exist universal constants such that, for every , the density satisfies
for every .
Proof. Note that, by Stirling's formula,
Thus, there exists such that, for every ,
If , then for . Using
we observe that
Putting everything together, there exists a universal constant such that
for all and .
We now apply these two facts to the radial sine function. The key ingredient is the following lemma.
Lemma 5.3. There exist universal constants such that for all , all even integers , and all ,
Proof. By Lemma 5.1,
Fix an arbitrary polynomial of degree less than . By Lemma 5.2, we can restrict the integral to an interval around 1 on which is bounded below. Therefore,
(5.1)
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
We next rescale this interval and compare the signs of and . Substituting gives
(5.2)
The zeros of are spaced apart. Hence contains
full intervals between consecutive zeros of ; denote these half-period intervals by . Each has length , and the sign of alternates from to .
If , the desired estimate follows by summing over the intervals . Suppose, therefore, that is nonzero. As a polynomial in , also has degree less than , so it has at most real zeros. Discard every whose interior contains one of these zeros. At most intervals are discarded, so the number of remaining intervals satisfies
Arrange the remaining into maximal blocks of intervals that are consecutive in the original list (with no discarded interval between them) and on whose interiors has the same sign. For each block, define
and note that
Figure 1 illustrates this decomposition.
Each separation between two successive blocks requires a zero of : either the blocks are separated by a discarded interval, whose interior contains a zero of , or they are adjacent and changes sign at their common endpoint. The closed gaps between successive blocks are pairwise disjoint, so distinct separations use distinct zeros. Since has at most zeros, note that the bound
holds.

FIGURE 1. Two blocks separated by the discarded . Shading indicates opposite signs.
Fix and note that the sign of is the same on all of its intervals, whereas the sign of alternates. Therefore and have opposite signs on at least
intervals of . Consequently, the total number of opposite-sign intervals satisfies
Since , we conclude that , and . It follows that .
On any interval where and have opposite signs on the interior, we have
Therefore
(5.3)
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
Combining (5.1), (5.2), (5.3):
Since was arbitrary, . Taking proves the lemma.
Now we are ready to prove Theorem 1.3.
Proof of Theorem 1.3. (i) Set and . Since is even, is an even integer , and , so the hypotheses of Lemma 5.3 are satisfied. Moreover,
Therefore, Lemma 5.3 gives . By Remark 3.5, whenever . Taking ,
so . Theorem 1.1 then gives
(ii) The construction follows the strategy in [3]. Fix and set , so that . For every , we first construct a globally bounded depth-3 network satisfying
First, we construct a depth-2 network that approximates . As in Lemma 5 of [3], we use piecewise-linear interpolation. We write the interpolants as linear combinations of , so that they are constant outside the interpolation interval. Let and for . The function
is the piecewise-linear interpolant of at the nodes , since on ; it vanishes on and is constant on . For , the preceding formula gives
As , it follows that for . Set
If , then for every , and therefore
Thus is a depth-2 network with 4dK hidden units of the form , that is, with weight vectors , biases , and output coefficients , bounded by 2R.
Next, using the same approach, we approximate the sine function. Let and for , so that and . Define
The function
is the piecewise-linear interpolant of at the nodes . Indeed, on , the preceding summands telescope, giving
It is constant on and on . On each grid interval its values are convex combinations of the endpoint sine values, so for all . Since , we have . Hence, for ,
Taking
gives
Thus is a depth-2 network with hidden units: the units and , with output coefficients and , and one constant unit , with output coefficient . The input weights are 1 or 0, the biases
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
have absolute value at most , and the output coefficients have absolute value at most . Since , the interval contains whenever .
Finally, composing these two networks, set . This is a depth-3 network. For ,
Then has width and has width , so the width of is . For the parameters: the first-layer weight vectors have norm 1 and the first-layer biases satisfy ; the second-layer weights satisfy , and the second-layer biases are , with , or equal to 1; the output weights satisfy and . Since , all parameters are bounded by .
It remains to choose R. If , then
Set
Then . Since both and are bounded in absolute value by 1,
This choice gives and hence the claimed bounds.
6. LEAN FORMALIZATION
All theorems, lemmas, propositions, and corollaries have been formalized and verified in Lean 4 using Mathlib. The Lean statements of the theorems, lemmas, and corollaries have also been audited by the authors. The formalization was developed with assistance from the large language models (LLMs) Claude Fable (Anthropic) and GPT Sol (OpenAI). The complete source code is available in the companion GitHub repository.
Running lake build checks the mathematical library and the standalone axiom-audit regression tests. The audit accepts only the standard axioms propext,
https://github.com/cynthiabort/Depth-Separation-for-Neural-Networks-under-Gaussian-Measure---Lean-
Classical.choice, and Quot.sound; neither admitted proofs nor project-defined axioms are used in the mathematical library.
Below we reproduce the Lean statements of Theorems 1.1 and 1.3, omitting their proofs. For Theorem 1.3, the displayed declarations give its two parts; the declaration depth_separation combines them into a single statement with universal constants.
All declarations belong to the GaussianDepthSeparation namespace.
Theorem 1.1: ridge lower bound. Let , be even, be radial, , and , with . Set and . Then
theorem ridge_lower_bound {d : N} (hd : 0 < d) {n₀ : N} (hn₀ : Even n₀) (F : L2 d) (hF : IsRadial F) {r : N} (g : Fin r → L2R) (v : Fin r → Vec d) (hv : ∀ j, |v j| = 1) {M : R} (hM : 0 < M) (hgM : ∀ j, |g j| ≤ M) (happrox : |F - ∑ j, ridge (v j) (hv j) (g j)| ^ 2 ≤ |Pge d n₀ F| ^ 2 / 2) : |Pge d n₀ F| / (4 * M * Real.sqrt (Kmom d n₀)) ≤ (r : R)
Source: GaussianDepthSeparation/LowerBound.lean, declaration ridge_lower_bound.
Theorem 1.3: depth separation. Set . (i) For even (a fixed threshold, at least 16, chosen from Stirling's formula as in Lemma 5.2), and as above,
theorem depth_separation_lower (d : N) (hde : Even d) (hd : chiSquareThreshold ≤ d) {r : N} (g : Fin r → L2R) (v : Fin r → Vec d) (hv : ∀ j, |v j| = 1) {M : R} (hM : 0 < M) (hgM : ∀ j, |g j| ≤ M) (happrox : |sepTarget d - ∑ j, ridge (v j) (hv j) (g j)| ^ 2 ≤ cEnergy ^ 2 / 2) : cEnergy * 2 ^ ((d : R) / 4) / (4 * M) ≤ (r : R)
Source: GaussianDepthSeparation/DepthSeparation.lean, declaration depth_separation_lower.
(ii) There exists a universal such that, for every and , there exists a depth-3 ReLU network with hidden-layer widths such that
with all parameters bounded by .
CYNTHIA BORTOLOTTO, FRANCISCO GANACIM, AND ROBERTO I. OLIVEIRA
theorem depth_separation_upper_L2 :
N.WeightsLe (C * ((d : \mathbb{R}) + \text{Real.log } (1 / \epsilon)))
Source: GaussianDepthSeparation/GlobalUpper.lean, declaration depth_separation_upper_L2.
REFERENCES
[1] A. R. Barron. Approximation and estimation bounds for artificial neural networks. Machine Learning, 14:115–133, 1994. 1
[2] G. Cybenko. Approximation by superpositions of a sigmoidal function. Mathematics of Control, Signals and Systems, 2(4):303–314, 1989. 1
[3] A. Daniely. Depth separation for neural networks. In Conference on Learning Theory (COLT), pages 690–696, 2017. arXiv:1702.08489. 2, 4, 5, 11, 14, 18
[4] R. Eldan and O. Shamir. The power of depth for feedforward neural networks. In Conference on Learning Theory (COLT), pages 907–940, 2016. arXiv:1512.03965. 2
[5] G. B. Folland. How to integrate a polynomial over a sphere. The American Mathematical Monthly, 108(5):446–448, 2001. doi:10.1080/00029890.2001.11919774. 10
[6] K.-I. Funahashi. On the approximate realization of continuous mappings by neural networks. Neural Networks, 2(3):183–192, 1989. 1
[7] K. Hornik, M. Stinchcombe, and H. White. Multilayer feedforward networks are universal approximators. Neural Networks, 2(5):359–366, 1989. 1
[8] M. Leshno, V. Ya. Lin, A. Pinkus, and S. Schocken. Multilayer feedforward networks with a nonpolynomial activation function can approximate any function. Neural Networks, 6(6):861–867, 1993. 1
[9] J. Martens, A. Chattopadhyay, T. Pitassi, and R. Zemel. On the representational efficiency of restricted Boltzmann machines. In Advances in Neural Information Processing Systems (NIPS), pages 2877–2885, 2013. 2
[10] I. Safran, R. Eldan, and O. Shamir. Depth separations in neural networks: What is actually being separated? In Conference on Learning Theory (COLT), pages 2664–2666, 2019. Full version: arXiv:1904.06984. 2
[11] I. Safran and O. Shamir. Depth-width tradeoffs in approximating natural functions with neural networks. In International Conference on Machine Learning (ICML), pages 2979–2987, 2017. arXiv:1610.09887. 2
[12] M. Telgarsky. Benefits of depth in neural networks. In Conference on Learning Theory (COLT), pages 1517–1539, 2016. arXiv:1602.04485. 2