Simple Algorithm
Machine Learning · Convergence · 30 min

Universal Approximation & Depth

What one hidden layer can do, and what depth buys.

One hidden layer can approximate any continuous function, but at what price, and with which activations? This lesson proves the exact answer to the second question, shows that for one class of functions networks escape the curse of dimensionality that traps every fixed basis, proves that depth can be exponentially cheaper than width, asks how narrow a deep network may be, and ends with a warning: being able to represent a function does not mean being able to learn it.

What you’ll learn

  • Prove that one-hidden-layer networks with a continuous activation are dense in C(K)C(K) exactly when the activation is not a polynomial.
  • State Barron's theorem, derive its 1/n1/n rate by sampling hidden units at random, and explain why no fixed basis can match it (the n−2/dn^{-2/d} lower bound).
  • State Telgarsky's and Eldan & Shamir's depth-separation theorems and explain the piece-counting and Fourier arguments behind them.
  • Describe the minimal width at which deep narrow networks become universal, and explain, with hardness results, why approximation says nothing about learnability.

Density: exactly which activations work

DerivationProof (the route of Pinkus, 1999)
  1. φ∈Pm ⟹ Md(φ)‾⊆Pm⊊C(K)\varphi\in\mathcal P_m\ \Longrightarrow\ \overline{\mathcal M_d(\varphi)}\subseteq\mathcal P_m\subsetneq C(K)

    Necessity. If φ\varphi is a polynomial of degree mm, every unit, and so all of Md(φ)\mathcal M_d(\varphi), lies in the space Pm\mathcal P_m of polynomials of degree at most mm. It is finite-dimensional, hence closed, and it is a proper subspace of C(K)C(K) whenever KK has interior. So Md(φ)\mathcal M_d(\varphi) is not dense.

  2. span⁡{(w⊤x)k:w∈Rd}={homogeneous polynomials of degree k} ⟹ Md(φ)‾⊇P  dense\operatorname{span}\big\{(\mathbf w^\top\mathbf x)^k:\mathbf w\in\R^d\big\}=\{\text{homogeneous polynomials of degree }k\}\ \Longrightarrow\ \overline{\mathcal M_d(\varphi)}\supseteq\mathcal P\ \text{ dense}

    Reduction to one dimension. Suppose the one-variable span {φ(λt+θ)}\{\varphi(\lambda t+\theta)\} is dense in C(I)C(I) for every interval II. Then every ridge function g(w⊤x)g(\mathbf w^\top\mathbf x) with gg continuous is a uniform limit of units on KK (apply 1-D density on the interval w⊤K\mathbf w^\top K). Ridge functions suffice, because the powers (w⊤x)k(\mathbf w^\top\mathbf x)^k span all homogeneous polynomials of degree kk, so polynomials, which are dense by Stone–Weierstrass, are sums of ridge functions:

  3. ∂k∂λkφ(λt+θ)∣λ=0=tk φ(k)(θ) ∈ span⁡{φ(λt+θ)}‾\frac{\partial^k}{\partial\lambda^k}\varphi(\lambda t+\theta)\Big|_{\lambda=0}=t^k\,\varphi^{(k)}(\theta)\ \in\ \overline{\operatorname{span}\{\varphi(\lambda t+\theta)\}}

    Smooth φ\varphi in one dimension. The difference quotient (φ((λ+h)t+θ)−φ(λt+θ))/h\big(\varphi((\lambda+h)t+\theta)-\varphi(\lambda t+\theta)\big)/h is a combination of two units and converges to t φ′(λt+θ)t\,\varphi'(\lambda t+\theta) uniformly for tt in a compact set. Iterating kk times and setting λ=0\lambda=0 puts a monomial in the closure:

  4. φ(k)(θk)≠0  ∀k ⟹ tk∈span⁡‾  ∀k ⟹ dense in C(I)\varphi^{(k)}(\theta_k)\neq0\ \ \forall k\ \Longrightarrow\ t^k\in\overline{\operatorname{span}}\ \ \forall k\ \Longrightarrow\ \text{dense in }C(I)

    If φ\varphi is not a polynomial, no derivative φ(k)\varphi^{(k)} vanishes identically, so for each kk some θk\theta_k has φ(k)(θk)≠0\varphi^{(k)}(\theta_k)\neq0. Then every monomial tkt^k is in the closure, and by the Weierstrass theorem so is every continuous function on an interval.

  5. M1(φ∗ψ)‾⊆M1(φ)‾,φ∉P ⟹ ∃ ψ: φ∗ψ∉P\overline{\mathcal M_1(\varphi*\psi)}\subseteq\overline{\mathcal M_1(\varphi)},\qquad\varphi\notin\mathcal P\ \Longrightarrow\ \exists\,\psi:\ \varphi*\psi\notin\mathcal P

    General continuous φ\varphi. Smooth it: for a smooth bump ψ\psi with compact support, φ∗ψ(t)=∫φ(t−s)ψ(s) ds\varphi*\psi(t)=\int\varphi(t-s)\psi(s)\,ds is a uniform limit on compacts of Riemann sums ∑iψ(si)φ(t−si)Δs\sum_i\psi(s_i)\varphi(t-s_i)\Delta s, which are combinations of units, so the units of φ∗ψ\varphi*\psi lie in the closure of those of φ\varphi. If every such φ∗ψ\varphi*\psi were a polynomial, a Baire-category argument bounds their degrees uniformly and forces φ\varphi itself to be a polynomial. So some φ∗ψ\varphi*\psi is a smooth non-polynomial, and the previous steps apply.

Earlier proofs took other routes. Cybenko (1989) argued by duality: if Md(σ)\mathcal M_d(\sigma) were not dense, the Hahn–Banach and Riesz representation theorems would give a nonzero signed measure annihilating every unit σ(w⊤x+b)\sigma(\mathbf w^\top\mathbf x+b), and for continuous sigmoidal σ\sigma no such measure exists. Hornik (1991) covered bounded nonconstant activations and Lp(μ)L^p(\mu) approximation as well. The derivative argument above is the most transparent, and it shows why polynomials are the only exception: they are the only functions whose derivatives eventually vanish.

Check your understanding

With which activation can one-hidden-layer networks, however wide, fail to approximate f(x)=∣x∣f(x)=\abs x uniformly on [−1,1][-1,1]?

  1. φ(z)=max⁡(0,z)\varphi(z)=\max(0,z)
  2. φ(z)=e−z2\varphi(z)=e^{-z^2}
  3. φ(z)=cos⁡z\varphi(z)=\cos z
  4. φ(z)=z4−z\varphi(z)=z^4-z
Show the answer

D. φ(z)=z4−z\varphi(z)=z^4-z

Every network built from z4−zz^4-z is a polynomial of degree at most 4 in xx, and those form a closed, finite-dimensional space. Since ∣x∣\abs x is not a polynomial, it keeps a fixed positive distance from that space. The other three activations are continuous and not polynomials, so the theorem makes them universal; ReLU even represents ∣x∣\abs x exactly with two units.

Rates: Barron's theorem

Density says nothing about width. If all you know about ff is a smoothness condition (Lipschitz, or ss bounded derivatives), the number of parameters any reasonable approximation scheme needs for accuracy ε\varepsilon grows exponentially with dd, roughly like ε−d/s\varepsilon^{-d/s}: the curse of dimensionality (The Curse of Dimensionality). Barron found a class of functions for which networks escape it, and showed that fixed bases cannot.

DerivationWhy 1/n: approximation by random sampling
  1. f(x)−f(0)=Eω∼Λ[gω(x)],gω(x)=Cf cos⁡(ω⊤x+θ)−cos⁡θ∥ω∥f(\mathbf x)-f(\mathbf 0)=\E_{\boldsymbol\omega\sim\Lambda}\big[g_{\boldsymbol\omega}(\mathbf x)\big],\qquad g_{\boldsymbol\omega}(\mathbf x)=C_f\,\frac{\cos(\boldsymbol\omega^\top\mathbf x+\theta)-\cos\theta}{\norm{\boldsymbol\omega}}

    Since ff is real, f(x)−f(0)=∫(cos⁡(ω⊤x+θ(ω))−cos⁡θ(ω))∣f^(ω)∣ dωf(\mathbf x)-f(\mathbf 0)=\int\big(\cos(\boldsymbol\omega^\top\mathbf x+\theta(\boldsymbol\omega))-\cos\theta(\boldsymbol\omega)\big)\abs{\hat f(\boldsymbol\omega)}\,d\boldsymbol\omega, with θ(ω)\theta(\boldsymbol\omega) the phase of f^\hat f. Multiply and divide by ∥ω∥\norm{\boldsymbol\omega} to turn this into an average over the probability distribution Λ(dω)=∥ω∥∣f^(ω)∣dω/Cf\Lambda(d\boldsymbol\omega)=\norm{\boldsymbol\omega}\abs{\hat f(\boldsymbol\omega)}d\boldsymbol\omega/C_f:

  2. ∣gω(x)∣ ≤ Cf ∣ω⊤x∣∥ω∥ ≤ rCf(x∈Br)\abs{g_{\boldsymbol\omega}(\mathbf x)}\ \le\ C_f\,\frac{\abs{\boldsymbol\omega^\top\mathbf x}}{\norm{\boldsymbol\omega}}\ \le\ rC_f\qquad(\mathbf x\in B_r)

    Each gωg_{\boldsymbol\omega} is a ridge function, varying only along ω\boldsymbol\omega, and it is bounded on BrB_r: the cosine difference is at most ∣ω⊤x∣≤∥ω∥r\abs{\boldsymbol\omega^\top\mathbf x}\le\norm{\boldsymbol\omega}r.

  3. E ∥f−f(0)−1n∑k=1ngωk∥L2(μ)2=E∥gω∥2−∥f−f(0)∥2n ≤ (rCf)2n\E\,\Big\lVert f-f(\mathbf 0)-\frac1n\sum_{k=1}^ng_{\boldsymbol\omega_k}\Big\rVert_{L^2(\mu)}^2=\frac{\E\norm{g_{\boldsymbol\omega}}^2-\norm{f-f(\mathbf 0)}^2}{n}\ \le\ \frac{(rC_f)^2}{n}

    Draw ω1,…,ωn\boldsymbol\omega_1,\dots,\boldsymbol\omega_n i.i.d. from Λ\Lambda and average. In the Hilbert space L2(μ)L^2(\mu) the error of a sample mean is its variance over nn, exactly as in Monte Carlo integration:

  4. min⁡ω1,…,ωn∥f−f(0)−1n∑kgωk∥2 ≤ (rCf)2n\min_{\boldsymbol\omega_1,\dots,\boldsymbol\omega_n}\Big\lVert f-f(\mathbf 0)-\frac1n\sum_kg_{\boldsymbol\omega_k}\Big\rVert^2\ \le\ \frac{(rC_f)^2}{n}

    Some draw does at least as well as the average, so nn ridge functions achieve error (rCf)2/n(rC_f)^2/n. Barron then replaces each one-dimensional ridge profile by sigmoid units (steps, sharpened), at the cost of the factor 2 in (2rCf)2/n(2rC_f)^2/n. The argument is Maurey's sampling lemma; the rate comes from choosing the directions ωk\boldsymbol\omega_k to fit ff, which no fixed basis can do.

Predict before you look

In d=10d=10 dimensions, suppose a fixed basis has RMS error proportional to n−1/dn^{-1/d} (the square root of Barron's n−2/dn^{-2/d} barrier), while a network has RMS error proportional to n−1/2n^{-1/2}. To halve the error, by what factor must the fixed basis grow?

Show the answer

1024 ×

n−1/10n^{-1/10} halves when nn grows by 210=10242^{10}=1024; the network needs only 22=42^2=4 times as many units. The catch hides in CfC_f: the theorem's constant can itself grow with dd, and many natural functions have Cf=∞C_f=\infty (the indicator of a ball, for example, because of its jump).

Two cautions. First, the bound is on approximation; with NN samples, Barron (1994) balanced it against estimation error and showed that a network with n≍CfN/(dlog⁡N)n\asymp C_f\sqrt{N/(d\log N)} units attains mean squared error of order Cf(dlog⁡N)/NC_f\sqrt{(d\log N)/N}. Second, the class of functions with Cf<∞C_f<\infty, often called the (spectral) Barron class, contains, for example, Gaussians and sufficiently smooth functions, but "sufficiently" means a number of derivatives that grows with dd, so the curse of dimensionality is moved into the assumption rather than removed.

What depth buys

DerivationThe mechanism: counting oscillations
  1. pl+1≤2m pl⟹#pieces of the output ≤ (2m)Lp_{l+1}\le2m\,p_l\qquad\Longrightarrow\qquad\#\text{pieces of the output}\ \le\ (2m)^L

    Pieces multiply with depth. In one dimension, let each unit's input in layer ll have at most plp_l affine pieces. A ReLU at most doubles the pieces of its input, and a sum of mm such outputs has at most mm times as many breakpoints. With width at most mm and LL layers:

  2. Tk=T∘⋯∘T⏟k : 2k pieces, 2k−1 teeth, 2k unitsT^{k}=\underbrace{T\circ\cdots\circ T}_{k}\ :\ 2^k\ \text{pieces},\ 2^{k-1}\ \text{teeth},\ 2k\ \text{units}

    The sawtooth. The tent map T(x)=2 ReLU(x)−4 ReLU(x−12)T(x)=2\,\mathrm{ReLU}(x)-4\,\mathrm{ReLU}(x-\tfrac12) maps [0,1][0,1] onto itself twice. Its kk-fold composition TkT^{k} has 2k2^k pieces alternating between 0 and 1, crossing the level 12\tfrac12 exactly 2k2^k times, from only 2k2k ReLUs.

  3. (2m)k ≳ 2k3⟹m ≳ 2k2−1(2m)^k\ \gtrsim\ 2^{k^3}\quad\Longrightarrow\quad m\ \gtrsim\ 2^{k^2-1}

    Few pieces cannot follow many teeth. A function gg with pp pieces crosses 12\tfrac12 at most pp times, so on most of the 2k−12^{k-1} teeth it stays on one side of 12\tfrac12 while TkT^k sweeps from 0 to 1 and back; each such tooth contributes a fixed fraction of its width to ∫∣Tk−g∣\int\abs{T^k-g}. If p≪2kp\ll2^k, the L1L^1 error stays above a constant. Taking the target with k3k^3 compositions and comparing (2m)k(2m)^k with 2k32^{k^3} forces width m≳2k2m\gtrsim2^{k^2} for any network of depth kk.

Why one hidden layer fails: each unit σ(wj⊤x+bj)\sigma(\mathbf w_j^\top\mathbf x+b_j) varies only along wj\mathbf w_j, so its Fourier transform is supported on the line Rwj\R\mathbf w_j, and a width-nn network has all its spectrum on nn lines through the origin. The measure μ\mu has density χ2\chi^2, where χ^\hat\chi is the indicator of a unit-volume ball, so the L2(μ)L^2(\mu) error is the L2L^2 distance after convolving both spectra with that ball: each line thickens into a tube around it. The target gg is a smoothed random signed sum of thin spherical shells, chosen so that its blurred spectrum keeps a constant fraction of its mass far from the origin. That spectrum is radial, so the mass is spread evenly over all directions, while nn tubes cover only about n e−dn\,e^{-d} of each large sphere: the error stays above a constant unless nn is exponential in dd. Why two hidden layers succeed: a radial target is a one-variable function of ∥x∥2=∑ixi2\norm{\mathbf x}^2=\sum_ix_i^2, so the first hidden layer can build the dd squares xi2x_i^2, each a one-dimensional approximation, and the second can apply the profile to their sum.

Depth also improves rates for smooth functions: deep ReLU networks approximate x2x^2 to accuracy ε\varepsilon with O(log⁡(1/ε))\order{\log(1/\varepsilon)} layers by a sawtooth construction, and through it products and polynomials (Yarotsky, 2017). For regression with compositional targets, deep ReLU networks attain minimax rates, up to logarithmic factors, governed by the smoothness and dimension of the constituent functions rather than the ambient dimension (Schmidt-Hieber, 2020).

Think first A one-hidden-layer ReLU network on [0,1][0,1] must represent T10T^{10} exactly. How many hidden units does it need, and how many does the deep network use?

T10T^{10} has 210=10242^{10}=1024 pieces, so 1023 kinks. Each hidden unit of a one-hidden-layer network contributes at most one kink, so at least 1023 units are needed (and 10241024 suffice, by the interpolation construction of the Descent lesson). The deep network uses 10 layers of 2 units: 20 in total. Exact representation is the easy direction; Telgarsky's theorem says even approximation in L1L^1 cannot close the gap.

Narrow networks, and the gap to learnability

Fix the width and let the depth grow. Is a deep, narrow network universal? A first obstruction is elementary: if the first hidden layer has fewer than dd units, W(1)W^{(1)} has a nonzero null vector v\mathbf v, so f(x+tv)=f(x)f(\mathbf x+t\mathbf v)=f(\mathbf x) for every tt. The network is constant along a whole line through every point and cannot approximate a bump. The exact thresholds are known:

ResultSettingMinimal width
Lu, Pu, Wang, Hu & Wang (2017)ReLU, Lebesgue-integrable ff on Rd\R^d, L1L^1 distancewidth d+4d+4 suffices; at width dd the L1L^1 error is ∞\infty or ∫∣f∣\int\abs f, so no ff that is nonzero on a set of positive measure can be approximated
Hanin & Sellke (2017)ReLU, continuous f:[0,1]d→Rdoutf:[0,1]^d\to\R^{d_{\text{out}}}, uniform distanceexactly d+1d+1 for scalar outputs; at most d+doutd+d_{\text{out}} in general
Johnson (2019)uniformly continuous activations that are limits of one-to-one functions (sigmoids, ReLU), uniform distance on compact sets, d≥2d\ge2width ≤d\le d cannot approximate any function with a level set that has a bounded component (a bump, for instance), at any depth
Park, Yun, Lee & Shin (2021)ReLU, Lp(Rdx,Rdy)L^p(\R^{d_x},\R^{d_y})exactly max⁡{dx+1, dy}\max\{d_x+1,\,d_y\}
Width and depth are not interchangeable: depth can be exponentially cheaper than width, but below a width of about dd no amount of depth helps.

Representable is not learnable. Every result above is about existence. Three classical facts show how far existence is from learning:

  • Training is NP-hard. Deciding whether a training set in {0,1}n\{0,1\}^n can be fit exactly by a network with two threshold hidden units and one output unit is NP-complete (Blum & Rivest, 1992).
  • Gradients can carry no signal. For a family H\mathcal H of target functions that are orthonormal under the input distribution, and the squared loss, the variance of the loss gradient across the choice of target is at most G2/∣H∣G^2/\abs{\mathcal H}, where G2G^2 bounds the second moment of the network's parameter gradient (Shalev-Shwartz, Shamir & Shammah, 2017). For parities on dd bits it is at most G2/2dG^2/2^d: the gradient is nearly the same whichever parity is the target, so gradient methods need exponentially many steps or exponentially precise gradients, although a small network represents every parity. This is an instance of the statistical-query lower bounds that go back to Kearns (1998).
  • Cryptographic hardness. Learning intersections of nεn^\varepsilon halfspaces, which are exactly what small networks with one hidden layer of threshold units and an AND output compute, is hard under standard lattice-based cryptographic assumptions, for any efficient algorithm (Klivans & Sherstov, 2009).

So expressivity theorems can only ever be half the story; the other half is which functions gradient descent actually finds from realistic data, the subject of Infinite Width: NTK & Mean-Field Limits and Why Big Networks Generalize.

Check your understanding

A ReLU network on R5\R^5 has a first hidden layer of 4 units, followed by 100 layers of width 50. Why can it not approximate x↦e−∥x∥2\mathbf x\mapsto e^{-\norm{\mathbf x}^2} uniformly on a large cube?

  1. 100 layers make the gradients vanish
  2. The first layer's 4×54\times5 weight matrix has a null vector v\mathbf v, so the network is constant along every line in direction v\mathbf v, while the target decays along it
  3. ReLU networks cannot approximate smooth functions
  4. Width 50 is below the minimal width max⁡{dx+1,dy}\max\{d_x+1,d_y\}
Show the answer

B. The first layer's 4×54\times5 weight matrix has a null vector v\mathbf v, so the network is constant along every line in direction v\mathbf v, while the target decays along it

Everything after the first layer sees only W(1)x+b(1)W^{(1)}\mathbf x+\mathbf b^{(1)}, which does not change along v∈ker⁡W(1)\mathbf v\in\ker W^{(1)}. On a large cube, points far out along v\mathbf v get the same output as points near the origin, so the error is at least about half the target's peak height. The wide later layers cannot recover lost information.

Key takeaways

  • A continuous activation is universal for one-hidden-layer networks exactly when it is not a polynomial (Leshno, Lin, Pinkus & Schocken, 1993); differentiating in the weights puts every monomial in the closure.
  • Barron: functions with Cf=∫∥ω∥∣f^∣<∞C_f=\int\norm{\boldsymbol\omega}\abs{\hat f}<\infty are approximated with integrated squared error (2rCf)2/n(2rC_f)^2/n by nn units, a Monte Carlo rate, while nn fixed basis functions cannot beat n−2/dn^{-2/d}.
  • Depth separations: ReLU networks with Θ(k3)\Theta(k^3) layers of constant width need Ω(2k)\Omega(2^k) nodes at depth O(k)\order{k} (Telgarsky); in high dimension, two hidden layers of polynomial width compute a function that a single hidden layer cannot approximate, even to constant accuracy, without exponentially many units (Eldan & Shamir). Pieces grow like (2m)L(2m)^L.
  • Below a width of about dd, depth cannot help: the minimal width for ReLU universality is d+1d+1 for scalar continuous functions on a cube and max⁡{dx+1,dy}\max\{d_x+1,d_y\} for LpL^p.
  • Representation is not learning: exact training is NP-hard, gradients carry exponentially little information about parities, and small networks are cryptographically hard to learn.

Check yourself

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

Question 1

In the proof that non-polynomial activations are universal, what is the role of differentiating φ(λt+θ)\varphi(\lambda t+\theta) with respect to the weight λ\lambda?

  1. It shows the network's loss is differentiable, so gradient descent can find the weights
  2. It produces tkφ(k)(θ)t^k\varphi^{(k)}(\theta) as limits of combinations of units, so every monomial, and hence every polynomial, is in the closure
  3. It proves the activation is bounded
  4. It computes the Barron norm of the target
Show the answer

B. It produces tkφ(k)(θ)t^k\varphi^{(k)}(\theta) as limits of combinations of units, so every monomial, and hence every polynomial, is in the closure

Difference quotients of units are combinations of units, and their limits are the derivatives in λ\lambda. At λ=0\lambda=0 these are tkφ(k)(θ)t^k\varphi^{(k)}(\theta); since a non-polynomial has some θ\theta with φ(k)(θ)≠0\varphi^{(k)}(\theta)\neq0 for every kk, all monomials are reachable, and Weierstrass finishes the proof.

Question 2

What does Barron's theorem promise for a function with Cf<∞C_f<\infty, and what does it deny to linear methods?

  1. Networks with nn units reach integrated squared error O(1/n)\order{1/n} for every continuous function
  2. Networks with nn units reach integrated squared error at most (2rCf)2/n(2rC_f)^2/n, independent of dd in the exponent, while nn fixed basis functions cannot beat order n−2/dn^{-2/d} uniformly over the class
  3. Fixed bases and networks both reach O(1/n)\order{1/n}; networks just have smaller constants
  4. Networks need n≥edn\ge e^d units, like every other method
Show the answer

B. Networks with nn units reach integrated squared error at most (2rCf)2/n(2rC_f)^2/n, independent of dd in the exponent, while nn fixed basis functions cannot beat order n−2/dn^{-2/d} uniformly over the class

The 1/n1/n rate comes from choosing the inner weights for the target, as in Monte Carlo sampling of a mixture of ridge functions. A fixed basis must cover all directions in advance, and Barron's lower bound shows its worst-case error is at least of order n−2/dn^{-2/d}.

Question 3

A ReLU network on R\R has 3 hidden layers of width 4. By the counting argument, at most how many linear pieces can its output have?

  1. 13
  2. 64
  3. 512
  4. 4,096
Show the answer

C. 512

Each layer multiplies the piece count by at most 2m=82m=8, so (2m)L=83=512(2m)^L=8^3=512. A one-hidden-layer network with the same 12 units has at most 13 pieces: depth turns a sum into a product.

Question 4

A small network represents every parity function on d=100d=100 bits. Why does gradient descent still fail to learn a parity of unknown support?

  1. Parities are not continuous, so no network can represent them
  2. The loss surface has no minima
  3. The training set is always too small to contain the information
  4. The gradient barely depends on which parity is the target: its variance across targets is at most G2/2100G^2/2^{100}, so it carries almost no information
Show the answer

D. The gradient barely depends on which parity is the target: its variance across targets is at most G2/2100G^2/2^{100}, so it carries almost no information

Parities are orthonormal under the uniform distribution, so by Shalev-Shwartz, Shamir & Shammah's bound the gradient at any point is nearly identical for all 21002^{100} targets. Information exists in the data, but the gradient does not expose it; gradient methods would need exponentially many steps or exponential precision.

Further reading

  • A. Pinkus, "Approximation theory of the MLP model in neural networks," Acta Numerica 8, 143–195 (1999).
  • A. R. Barron, "Universal approximation bounds for superpositions of a sigmoidal function," IEEE Transactions on Information Theory 39(3), 930–945 (1993).
  • M. Telgarsky, "Benefits of depth in neural networks," Conference on Learning Theory (COLT) (2016).
  • R. Eldan & O. Shamir, "The power of depth for feedforward neural networks," Conference on Learning Theory (COLT) (2016).
  • S. Shalev-Shwartz, O. Shamir & S. Shammah, "Failures of gradient-based deep learning," Proceedings of the 34th International Conference on Machine Learning, PMLR 70, 3067–3075 (2017).