Depth Separations in Neural Networks: Separating the Dimension from the Accuracy

Itay Safran, Daniel Reichman, Paul ValiantCOLT 2024

TL;DR

This paper proves an exponential separation in size between depth 2 and depth 3 neural networks for approximating a specific class of functions. This resolves a long-standing question by showing that depth 3 networks can be significantly more efficient than depth 2 networks, even when approximating simple, well-behaved functions to constant accuracy, independent of input dimension.

What Problem Does This Paper Address?

The field of deep learning has empirically demonstrated the power of "deep" neural networks (those with many layers) over "shallow" ones (few layers). Theoretically, while shallow networks are universal approximators, there's a growing body of work showing that deeper networks can represent certain functions much more compactly. A key question has been whether this depth advantage persists even for simple, "natural" functions and under mild conditions, or if it's an artifact of contrived settings or specific accuracy requirements. Specifically, researchers have been trying to prove a separation where depth 2 networks require exponentially more resources (like neurons) than depth 3 networks to approximate a function, even when the target function is O(1)-Lipschitz, the approximation accuracy is a constant, and the input dimension doesn't force these parameters to scale. This paper tackles this challenge head-on, aiming to isolate the benefit of depth from other factors like input dimension.

Methods

The authors employ a clever reduction-based approach. Their core strategy involves:

  • Constructing a "hard" function: They define a specific function, $f_d$, which is O(1)-Lipschitz and lives on a 4d-dimensional space. This function is designed to be hard for depth 2 networks but easy for depth 3.
  • Worst-to-Average-Case Reduction: A key technical innovation is a reduction from a worst-case complexity problem (where a network must perform well on all inputs) to an average-case problem (where it only needs to perform well on most inputs). This is achieved through a sophisticated randomization scheme that re-randomizes inputs in a way that preserves the function's output while inducing strong concentration of measure.
  • Reduction to Threshold Circuits: The problem of approximating $f_d$ with a depth 2 neural network is then reduced to the problem of computing a specific Boolean function (IP mod 2) using depth 2 threshold circuits. This leverages existing, powerful lower bounds from circuit complexity.
  • Positive Construction: For the depth 3 case, they provide a constructive proof showing that a depth 3 network can indeed approximate $f_d$ efficiently, using a specific architecture that leverages the function's structure.

Datasets

The paper does not use pre-existing datasets for training or evaluation. Instead, it defines a novel distribution, $U(A_{4d})$, which is supported on the unit ball and has its probability mass concentrated on a discrete set of exponentially many points. This distribution is crucial for establishing the separation result.

Key Insights and Ideas

  • Depth Advantage is Real, Even for Simple Functions: The most significant insight is that the exponential advantage of depth 3 over depth 2 networks is not an artifact of complex, oscillatory functions or specific high-accuracy requirements. It holds even for O(1)-Lipschitz functions on a bounded domain, with constant accuracy, and independent of input dimension.
  • Isolating the "Curse of Dimensionality": By keeping parameters like accuracy and domain radius constant with respect to dimension, the paper effectively isolates the "curse of dimensionality" to the network's depth, rather than it being a consequence of needing wider networks or higher precision for complex inputs.
  • Novel Reduction Techniques: The paper introduces a powerful worst-to-average-case reduction for neural networks and a method to embed Boolean function hardness into a continuous setting, which could be useful in other theoretical analyses.

Key Results

  • Exponential Separation: The paper proves an exponential separation in network size (width) between depth 2 and depth 3 networks for approximating $f_d$. Specifically, any depth 2 network with bounded weights requires exponential width in the dimension $d$ to approximate $f_d$ to constant accuracy, while a depth 3 network can achieve arbitrary accuracy with polynomial width in $d$ and $1/\epsilon$.
  • Optimal Parameters: The separation holds for O(1)-Lipschitz functions, on a domain within the unit ball, and for constant approximation accuracy, meaning the parameters are simultaneously optimal in a theoretical sense.
  • General Activation Functions: The results hold for a broad class of activation functions, including threshold, ReLU, and sigmoidal activations.

Limitations and Future Work

  • Weight Boundedness: The lower bound assumes that the weights of the depth 2 network are bounded by a polynomial in $d$. The authors note that without this assumption, the problem becomes significantly harder, and it remains an open question whether a separation can be shown for unbounded weights on a bounded support distribution.
  • Optimization-Based Separation: While this paper focuses on representational complexity (size separation), the authors mention that optimization-based separations (where deeper networks can be learned more efficiently) are also an active area of research, and their work provides a simpler example that might be amenable to such analysis.
  • Generalization to Other Depths: The current work focuses on the depth 2 vs. depth 3 separation. Extending these techniques to separations between higher depths could be a fruitful direction.

Summary updated

BibTeX
@inproceedings{safran2024depth,
  author = {Itay Safran and Daniel Reichman and Paul Valiant},
  title = {{Depth Separations in Neural Networks: Separating the Dimension from the Accuracy}},
  booktitle = {Conference on Learning Theory},
  year = {2024},
  doi = {10.48550/arxiv.2402.07248},
}
Figure