The Core Mystery of Deep Learning
Since the late 1980s, the Universal Approximation Theorem has assured us that a neural network with just a single hidden layer can approximate any continuous function. Yet, in practice, "deep" learning—architectures with dozens or hundreds of layers—consistently outperforms shallow networks.
If one layer is theoretically sufficient, why do we need fifty? Previous research often relied on "existence proofs" (showing that deep-friendly functions simply exist) or focused on highly pathological, complex functions. In this paper, Rolnick and Tegmark tackle the mystery by analyzing "natural" functions—specifically multivariate polynomials—to mathematically quantify exactly how much more efficient it is to build deep networks rather than wide ones.
Mathematical Methods and Setup
The authors use rigorous mathematical analysis to compare the resource requirements—specifically, the total number of neurons $m$—for two types of function approximation:
- $\epsilon$-approximation (Uniform): Getting within a tiny distance $\epsilon$ of the target function over an entire domain.
- Taylor approximation: Matching the derivatives of the function at a specific point.
They focus their analysis on monomials (e.g., $x_1 \cdot x_2 \cdot \dots \cdot x_n$) and sparse polynomials. By constructing specific "product gates" and "square gates" using standard neural network components, they establish upper bounds for deep networks and lower bounds for shallow ones.
Because this is a theoretical paper, it bypasses standard datasets like ImageNet. Instead, the authors validate their bounds using synthetic data, specifically the product of $n=20$ input variables drawn uniformly from the interval $[0, 2]$, trained to minimize absolute error.
Key Insights: The Power of Compositionality
- The Exponential Gap: For a monomial of $n$ variables, a shallow network requires an exponentially large number of neurons ($\prod (r_i + 1)$). In stark contrast, a deep network requires only a linearly growing number of neurons ($O(\sum \log r_i)$).
- Polynomials as "Natural" Proxies: Many functions in physics, engineering, and the natural world are essentially polynomials or can be well-approximated by them. Proving that depth is vastly superior for polynomials strongly suggests it is superior for modeling the natural world.
- Compositionality is Key: Deep networks win because they leverage recursive operations. To calculate a product of 16 numbers, a deep network can calculate products of pairs, then products of those results, and so on. A shallow network is forced to calculate the entire product in one massive, inefficient "sum of parts" step.
Results and Empirical Confirmation
The theoretical findings point to a massive divergence in scaling: the total number of neurons $m$ required for deep networks grows linearly with the number of variables $n$, but grows exponentially for shallow networks.
The authors also provide a practical heuristic for network design: if you want to keep layer widths to a reasonable size (e.g., 1,000 neurons), the number of layers $k$ should scale logarithmically with the input size, specifically $k \ge \log_{10} n$.
To back up their math, the authors trained actual neural networks to see where they succeed and fail as depth and width vary. Their experiments confirm the theoretical predictions: as depth increases, the "winning" region (where a network successfully learns a product function) expands rapidly, perfectly matching their $n^{1/k}$ theoretical boundary.
Limitations and Future Work
- Expressivity vs. Trainability: The paper proves that a deep network can represent these functions efficiently (expressivity), but it does not guarantee that a gradient descent algorithm will actually find those optimal weights easily (trainability).
- Beyond Polynomials: While polynomials are excellent proxies for natural functions, they don't cover everything, such as highly discontinuous functions or logical branching. However, the underlying principles of compositionality should still apply.
- Activation Functions: Some of the mathematical proofs assume the activation function $\sigma$ has non-zero Taylor coefficients, which technically excludes piecewise linear functions like ReLUs for certain specific bounds. Nevertheless, the authors note that empirical tests using ReLUs still align closely with their general findings.
Summary updated