Simple Algorithm
Deep Learning · Emergence · 30 min

Deep Networks as Statistical Estimators

Minimax rates, compositional structure and when depth helps statistically.

Classical statistics has a precise answer to "how much data does it take to learn a smooth function of dd variables?", and the answer grows exponentially with dd. Deep networks learn functions of thousands of inputs from far less. One rigorous explanation: if the target is a composition of functions that each depend on few variables, a deep ReLU estimator achieves rates with no ambient dimension in the exponent, and classical linear estimators provably cannot.

What you’ll learn

  • State the nonparametric regression model and Stone's minimax rate n−2β/(2β+d)n^{-2\beta/(2\beta+d)} for β\beta-smooth functions, and derive it heuristically from a bias–variance balance.
  • State Schmidt-Hieber's theorem for compositions of functions, including the effective smoothness βi∗\beta_i^*, the rate ϕn\phi_n and the conditions on depth, width and sparsity, and compute rates for additive and single-index structures.
  • Sketch the proof (an oracle inequality plus an approximation theorem built from product subnetworks) and explain why wavelet series estimators cannot adapt to compositional structure.
  • Situate related results (Barron classes, interaction models, Besov spaces, intrinsic dimension) and the main gap: the theory analyzes empirical risk minimizers over sparse networks, not networks trained by gradient descent.

The curse of dimensionality, quantified

DerivationWhere the rate comes from
  1. bias2≈C1h2β,variance≈C2n hd\text{bias}^2\approx C_1h^{2\beta},\qquad\text{variance}\approx\frac{C_2}{n\,h^d}

    Estimate f0(x)f_0(\mathbf x) by a local polynomial fit over the cube of side hh around x\mathbf x. Smoothness bounds the bias by the Taylor remainder, and the cube contains about nhdnh^d of the nn points, which sets the variance:

  2. R≍h2β≍n−2β2β+dR\asymp h^{2\beta}\asymp n^{-\frac{2\beta}{2\beta+d}}

    Balancing the two terms gives the bandwidth h≍n−1/(2β+d)h\asymp n^{-1/(2\beta+d)} and the risk:

  3. inf⁡f^n sup⁡f0∈Cβ([0,1]d,K)R(f^n,f0) ≍ n−2β2β+d\inf_{\hat f_n}\ \sup_{f_0\in\mathcal C^\beta([0,1]^d,K)}R(\hat f_n,f_0)\ \asymp\ n^{-\frac{2\beta}{2\beta+d}}

    Stone (1982) proved that no estimator can do better uniformly over a Hölder ball: n−2β/(2β+d)n^{-2\beta/(2\beta+d)} is the minimax rate. The exponent shrinks like 2β/d2\beta/d as dd grows, so the sample size needed for a fixed accuracy grows exponentially in dd: the curse of dimensionality in its statistical form.

Predict before you look

Ignore constants and logarithms and take the risk to be n−2β/(2β+d)n^{-2\beta/(2\beta+d)} with smoothness β=2\beta=2 and dimension d=10d=10. How many samples are needed for a risk of 0.010.01? Answer with log⁡10n\log_{10}n.

Show the answer

7 log₁₀ n

n=0.01−(2β+d)/(2β)=102×14/4=107n=0.01^{-(2\beta+d)/(2\beta)}=10^{2\times14/4}=10^7. If the function depended on only t=2t=2 variables, n=102×6/4=103n=10^{2\times6/4}=10^3 would do. And d=100d=100 would need 105210^{52}. Real inputs have thousands of dimensions, so learning must rely on structure that smoothness alone does not capture.

Compositional structure and Schmidt-Hieber’s theorem

Schmidt-Hieber (2020) assumed a structure natural for deep networks: f0f_0 is a composition of functions, each of which depends on few variables. Write f0=gq∘gq−1∘⋯∘g0f_0=g_q\circ g_{q-1}\circ\cdots\circ g_0 with gi:[ai,bi]di→[ai+1,bi+1]di+1g_i:[a_i,b_i]^{d_i}\to[a_{i+1},b_{i+1}]^{d_{i+1}}, where every component gijg_{ij} of gig_i depends on at most tit_i of its did_i inputs and is βi\beta_i-Hölder. For example, f0(x1,x2,x3)=g11(g01(x1,x3), g02(x1,x2))f_0(x_1,x_2,x_3)=g_{11}\big(g_{01}(x_1,x_3),\,g_{02}(x_1,x_2)\big) has d0=3d_0=3, t0=2t_0=2 and d1=t1=2d_1=t_1=2. Additive models ∑jfj(xj)\sum_jf_j(x_j), single-index models h(w⊤x)h(\mathbf w^\top\mathbf x) and products of univariate functions all fit this mold. Errors made early in the composition pass through the later functions, which are only (βℓ∧1)(\beta_\ell\wedge1)-Hölder in the worst case, hence the effective smoothness:

βi∗=βi∏ℓ=i+1q(βℓ∧1),ϕn=max⁡i=0,…,q n−2βi∗2βi∗+ti\beta_i^*=\beta_i\prod_{\ell=i+1}^{q}\big(\beta_\ell\wedge1\big),\qquad \phi_n=\max_{i=0,\dots,q}\ n^{-\frac{2\beta_i^*}{2\beta_i^*+t_i}}
a∧b=min⁡(a,b)a\wedge b=\min(a,b). The rate is set by the hardest component, and the exponents involve the effective dimensions tit_i, never the input dimension dd.

Three features stand out. The depth grows like log⁡n\log n: deeper networks for more data. The networks are sparse: only s≍nϕnlog⁡ns\asymp n\phi_n\log n of their parameters are nonzero, and that number, not the total count, plays the role of the model dimension. And the theorem covers any estimator through Δn\Delta_n, the gap between its training error and the global minimum over the class, which is where optimization enters.

For an additive model f0(x)=∑j=1dfj(xj)f_0(\mathbf x)=\sum_{j=1}^df_j(x_j) with β\beta-smooth fjf_j, take g0=(f1(x1),…,fd(xd))g_0=(f_1(x_1),\dots,f_d(x_d)) with t0=1t_0=1 and g1g_1 the sum, which is as smooth as one likes: the rate is n−2β/(2β+1)n^{-2\beta/(2\beta+1)} up to logarithms, as if dd were 1. Additive models were known to allow this; the point is that one method, least squares over sparse deep ReLU networks, attains the optimal rate for every structure in the class. It is not fully adaptive: the depth needs only upper bounds on the tit_i and βi\beta_i, and the width can be taken of order nn, but the sparsity ss must match the unknown rate. Schmidt-Hieber suggested that a penalty proportional to ss might choose it automatically and left the question open.

Check your understanding

Let f0(x)=h(x1+x2+⋯+x10)f_0(\mathbf x)=h(x_1+x_2+\cdots+x_{10}) on [0,1]10[0,1]^{10}, with hh twice differentiable (β=2\beta=2). Up to logarithms, what rate does the theorem give for a sparse deep ReLU least-squares estimator?

  1. n−4/14n^{-4/14}, the classical rate for β=2\beta=2 in 10 dimensions
  2. n−1n^{-1}, the parametric rate
  3. n−4/5n^{-4/5}, the rate of a one-dimensional problem
  4. n−1/2n^{-1/2}
Show the answer

C. n−4/5n^{-4/5}, the rate of a one-dimensional problem

Write f0=g1∘g0f_0=g_1\circ g_0 with g0(x)=∑jxjg_0(\mathbf x)=\sum_jx_j, linear and therefore as smooth as needed, and g1=hg_1=h with t1=1t_1=1, β1=2\beta_1=2. The inner component's term can be made faster than the outer one's, so ϕn=n−2⋅2/(2⋅2+1)=n−4/5\phi_n=n^{-2\cdot2/(2\cdot2+1)}=n^{-4/5}: the dimension has dropped out of the exponent.

Inside the proof, and why wavelets fail

DerivationApproximation plus estimation
  1. R(f^n,f0)≤(1+ε)2(inf⁡f∈F∥f−f0∥∞2+Δn)+CεF2 (s+1)log⁡(n(s+1)Lp0pL+1)nR(\hat f_n,f_0)\le(1+\varepsilon)^2\Big(\inf_{f\in\mathcal F}\norm{f-f_0}_\infty^2+\Delta_n\Big)+C_\varepsilon F^2\,\frac{(s+1)\log\big(n(s+1)^Lp_0p_{L+1}\big)}{n}

    Oracle inequality (Schmidt-Hieber's Theorem 2). For any estimator with values in F(L,p,s,F)\mathcal F(L,\mathbf p,s,F), ∥f0∥∞≤F\norm{f_0}_\infty\le F and any ε∈(0,1]\varepsilon\in(0,1], the risk splits into an approximation term, the optimization gap and an estimation term that grows with the number of nonzero parameters ss. The estimation term comes from the covering numbers of sparse networks, and the (s+1)L(s+1)^L inside its logarithm is the source of the factor LL in the rate ϕnLlog⁡2n\phi_nL\log^2n:

  2. ∥f~−f∥∞ ≲ N 2−m+N−β/t⟹error≈s−β/t  with m≍log⁡n\norm{\tilde f-f}_\infty\ \lesssim\ N\,2^{-m}+N^{-\beta/t}\qquad\Longrightarrow\qquad\text{error}\approx s^{-\beta/t}\ \text{ with }m\asymp\log n

    Approximation. A β\beta-Hölder function of tt variables is approximated by local Taylor polynomials on a grid of NN cells. Products are computed by ReLU subnetworks built from the squaring trick of What Networks Can Represent, with accuracy 2−m2^{-m} at depth O(m)\order m. The result (Theorem 5) is a network with about N⋅mN\cdot m nonzero parameters and sup-norm error:

  3. ∣g(u+δ)−g(u)∣≤Kδβℓ∧1⟹error at the output≈s−βi∗/ti\big|g\big(u+\delta\big)-g(u)\big|\le K\delta^{\beta_\ell\wedge1}\quad\Longrightarrow\quad\text{error at the output}\approx s^{-\beta_i^*/t_i}

    Composition. Approximate each gijg_{ij} separately and stack the subnetworks. An error δ\delta in component ii reaches the output as about δ∏ℓ>i(βℓ∧1)\delta^{\prod_{\ell>i}(\beta_\ell\wedge1)}, because each later function is at worst (βℓ∧1)(\beta_\ell\wedge1)-Hölder: that is exactly the effective smoothness βi∗\beta_i^*.

  4. s−2βi∗/ti≍sn⟹s≍nti2βi∗+ti=n ϕn,R≍n−2βi∗2βi∗+tis^{-2\beta_i^*/t_i}\asymp\frac{s}{n}\quad\Longrightarrow\quad s\asymp n^{\frac{t_i}{2\beta_i^*+t_i}}=n\,\phi_n,\qquad R\asymp n^{-\frac{2\beta_i^*}{2\beta_i^*+t_i}}

    Balance. Squared approximation error against estimation error, up to logarithms, picks the sparsity and the rate, one component at a time; the slowest component wins:

Schmidt-Hieber also proved that the adaptation is not automatic for classical methods. Wavelet series estimators expand f0f_0 in a fixed tensor-product basis and keep any chosen set of empirical coefficients; such estimators are linear in the responses. For targets of the form f0(x)=h(x1+⋯+xd)f_0(\mathbf x)=h(x_1+\cdots+x_d) with hh α\alpha-Hölder, 0<α≤10<\alpha\le1, and inputs uniform on [0,1]d[0,1]^d, every such estimator, for every choice of the kept coefficients, has worst-case risk at least of order n−2α/(2α+d)n^{-2\alpha/(2\alpha+d)} (Theorem 4). A function of one linear combination of the inputs looks, to a fixed basis, like a generic function of dd variables. Deep networks, which can learn the combination and the outer function together, get n−2α/(2α+1)n^{-2\alpha/(2\alpha+1)} up to logarithms.

Related results, and the gap to practice

Structure assumedRate (up to logarithms)Networks and estimatorSource
finite Barron norm CfC_f (Fourier-type smoothness)Cf(d/n)log⁡nC_f\sqrt{(d/n)\log n}, no exponential dependence on ddone hidden layer of sigmoids, complexity-penalized least squaresBarron (1994)
generalized hierarchical interaction models of order d∗d^*, pp-smoothn−2p/(2p+d∗)n^{-2p/(2p+d^*)}multilayer networks with smooth sigmoidal activations, least squaresBauer & Kohler (2019)
hierarchical composition models, close to the classes abovesimilar to Schmidt-Hieber's, with no sparsity constraintfully connected ReLU networks, least squaresKohler & Langer (2021)
Besov spaces with spatially inhomogeneous smoothness; mixed smoothnessminimax optimal; linear estimators such as kernel ridge regression are notdeep ReLU networksSuzuki (2019)
β\beta-smooth f0f_0, data on a set of Minkowski dimension dintd_{\text{int}}n−2β/(2β+dint)n^{-2\beta/(2\beta+d_{\text{int}})}deep ReLU networks, least squaresNakada & Imaizumi (2020)
Each row escapes the curse through a different kind of low-dimensional structure: in the function's Fourier transform, in its interactions, in where it is rough, or in where the data live. Barron's rate is the oldest dimension-free rate for neural networks, for one hidden layer.

What the theory leaves out. These theorems bound the risk of (near-)empirical risk minimizers over carefully restricted classes: sparse or bounded weights, depth tied to log⁡n\log n. Computing a global minimizer of a neural network's empirical risk is intractable in general, and practice uses dense, overparameterized networks trained by SGD. The term Δn\Delta_n is where that gap hides, and nothing in the statistical theory controls it.

Kernels are not enough. Training in the lazy, kernel regime cannot exploit low-dimensional structure in high dimensions. For inputs uniform on the sphere, kernel methods with rotationally invariant kernels, which include the infinite-width tangent and random-features kernels, can fit at most the degree-ℓ\ell polynomial part of the target from dℓ+δ≤n≤dℓ+1−δd^{\ell+\delta}\le n\le d^{\ell+1-\delta} samples, whatever its structure (Ghorbani, Mei, Misiakiewicz & Montanari, 2021). So the adaptivity of the theorems requires feature learning.

Gradient descent can learn the structure. For targets that depend on the input through a low-dimensional projection, results now show gradient-trained networks beating every kernel. One gradient step on the first layer of a two-layer network already adds a rank-one spike aligned with the target direction, and with a large enough step the learned features outperform random features and rotationally invariant kernels (Ba et al., 2022). For a degree-pp polynomial of rr relevant directions, gradient descent on a two-layer network learns with n≍d2r+drpn\asymp d^2r+dr^p samples, where kernel methods need about dpd^p (Damian, Lee & Soltanolkotabi, 2022). The fuller story, with information exponents and leap complexity, is How SGD Learns Features.

Key takeaways

  • For β\beta-smooth regression functions of dd variables the minimax risk is n−2β/(2β+d)n^{-2\beta/(2\beta+d)} (Stone, 1982): a fixed accuracy needs a sample size exponential in dd.
  • If f0f_0 is a composition of functions that each depend on tit_i variables, sparse deep ReLU least-squares estimators with depth of order log⁡n\log n achieve ϕn=max⁡in−2βi∗/(2βi∗+ti)\phi_n=\max_in^{-2\beta_i^*/(2\beta_i^*+t_i)} up to log⁡3n\log^3n, which is minimax for the class (Schmidt-Hieber, 2020).
  • The proof combines an oracle inequality (approximation error, optimization gap Δn\Delta_n, and estimation error growing with the number ss of nonzero parameters) with approximation by local Taylor polynomials built from ReLU product networks. Wavelet series estimators cannot adapt this way.
  • The results cover near-minimizers of the empirical risk over sparse, bounded networks, not SGD on dense ones. Kernel methods cannot exploit low-dimensional structure in high dimensions, and how gradient descent learns it is the research frontier.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

For 11-Hölder (Lipschitz) regression functions on [0,1]20[0,1]^{20}, Stone's minimax risk scales like n−2β/(2β+d)n^{-2\beta/(2\beta+d)}. By what factor must the sample size grow to halve the risk?

  1. 22
  2. 44
  3. 211=20482^{11}=2048
  4. 220≈1062^{20}\approx10^6
Show the answer

C. 211=20482^{11}=2048

The exponent is 2/22=1/112/22=1/11, so halving the risk needs nn multiplied by 211=20482^{11}=2048. In one dimension the exponent would be 2/32/3 and a factor of about 2.82.8 would do.

Question 2

Let f0=g1∘g0f_0=g_1\circ g_0, where g0:[0,1]100→Rg_0:[0,1]^{100}\to\R depends on only t0=4t_0=4 of the inputs and is 11-Hölder, and g1:R→Rg_1:\R\to\R is twice differentiable (β1=2\beta_1=2, t1=1t_1=1). What is ϕn\phi_n?

  1. n−4/5n^{-4/5}
  2. n−1/3n^{-1/3}
  3. n−2/102n^{-2/102}
  4. n−2/3n^{-2/3}
Show the answer

B. n−1/3n^{-1/3}

β0∗=β0(β1∧1)=1\beta_0^*=\beta_0(\beta_1\wedge1)=1 with t0=4t_0=4 gives n−2/6=n−1/3n^{-2/6}=n^{-1/3}; β1∗=2\beta_1^*=2 with t1=1t_1=1 gives n−4/5n^{-4/5}. The rate is the maximum, the slower one: n−1/3n^{-1/3}. The hardest component decides.

Question 3

Why does Schmidt-Hieber's theorem not by itself explain the accuracy of a dense network trained by SGD?

  1. It applies only to networks with one hidden layer
  2. It assumes the data are noiseless
  3. Its bound applies to estimators whose training error is close to the global minimum over a class of sparse, bounded networks, and nothing controls that gap for SGD on dense networks
  4. It gives a rate that depends exponentially on the input dimension
Show the answer

C. Its bound applies to estimators whose training error is close to the global minimum over a class of sparse, bounded networks, and nothing controls that gap for SGD on dense networks

The guarantee depends on Δn\Delta_n, the gap between the estimator's empirical risk and the minimum over F(L,p,s,F)\mathcal F(L,\mathbf p,s,F). For empirical risk minimizers Δn=0\Delta_n=0, but they cannot be computed, and SGD-trained dense networks are neither sparse nor guaranteed near that minimum.

Question 4

For targets f0(x)=h(x1+⋯+xd)f_0(\mathbf x)=h(x_1+\cdots+x_d) with hh α\alpha-Hölder (0<α≤10<\alpha\le1), what did Schmidt-Hieber prove about wavelet series estimators?

  1. Their worst-case risk is at least of order n−2α/(2α+d)n^{-2\alpha/(2\alpha+d)}, whatever coefficients they keep, while sparse deep ReLU estimators reach n−2α/(2α+1)n^{-2\alpha/(2\alpha+1)} up to logarithms
  2. They match the network's rate if the right coefficients are kept
  3. They fail only because their constants are larger
  4. They are faster than networks because wavelets are adapted to smoothness
Show the answer

A. Their worst-case risk is at least of order n−2α/(2α+d)n^{-2\alpha/(2\alpha+d)}, whatever coefficients they keep, while sparse deep ReLU estimators reach n−2α/(2α+1)n^{-2\alpha/(2\alpha+1)} up to logarithms

A fixed tensor-product basis sees a function of one linear combination as a generic dd-variate function, and Theorem 4 shows the dd-dimensional rate cannot be beaten by any choice of kept coefficients. Learning the direction and the outer function together is what the network adds.

Further reading

  • C. J. Stone, "Optimal global rates of convergence for nonparametric regression," Annals of Statistics 10(4) (1982).
  • J. Schmidt-Hieber, "Nonparametric regression using deep neural networks with ReLU activation function," Annals of Statistics 48(4) (2020).
  • B. Bauer & M. Kohler, "On deep learning as a remedy for the curse of dimensionality in nonparametric regression," Annals of Statistics 47(4) (2019).
  • T. Suzuki, "Adaptivity of deep ReLU network for learning in Besov and mixed smooth Besov spaces: optimal rate and curse of dimensionality," ICLR (2019).
  • A. Damian, J. D. Lee & M. Soltanolkotabi, "Neural networks can learn representations with gradient descent," COLT (2022).
  • A. B. Tsybakov, Introduction to Nonparametric Estimation (Springer, 2009).