Most Neural Networks Are Almost Learnable

Amit Daniely, Nathan Srebro, Gal Vardi · DOI

Abstract

While learning neural networks is computationally intractable in the worst case, this research demonstrates that "typical" constant-depth networks—those initialized with standard Xavier weights—are learnable in polynomial time. By proving these networks can be approximated by low-degree polynomials, the authors establish that standard Stochastic Gradient Descent (SGD) can efficiently learn them to any desired accuracy. This provides a critical theoretical bridge between the practical success of deep learning and its known theoretical complexity.

Introduction

A fundamental discrepancy exists in modern machine learning: while deep models are trained successfully every day, theoretical computer science has long categorized the learning of neural networks as NP-hard. Most existing mathematical guarantees for learning are restricted to shallow, two-layer networks or require highly specific assumptions about the input data distribution. This paper addresses the question: Why does deep learning work so well if it is supposed to be impossible?

The authors suggest that the "worst-case" scenarios used to prove intractability are rare in practice. Instead, they focus on "average-case" or "random" networks, arguing that the vast majority of neural network architectures used in real-world applications are far more learnable than previous theoretical frameworks suggested.

Theoretical Framework: Shadow Networks and Polynomials

The researchers employ a strategy centered on Polynomial Approximation. The core insight is that a complex, multi-layer random network can be "shadowed" by a much simpler mathematical object: a low-degree polynomial.

1. Shadow Networks

The authors define a "shadow network" where every non-linear activation function (such as ReLU or Sigmoid) is replaced by its polynomial approximation using Hermite polynomials. This allows the researchers to map the behavior of a deep network to a more tractable mathematical form.

2. The Role of Xavier Initialization

The study focuses on networks initialized with Xavier weights—centered Gaussians with a specific variance. This standard industry practice ensures that the signal scale remains consistent across many layers. The authors prove that this consistency is crucial for the polynomial approximation to hold, preventing the signal from exploding or vanishing as it traverses the network.

3. SGD as a PTAS

Moving beyond pure theory, the paper proves that standard Stochastic Gradient Descent (SGD) on a ReLU network can function as a Polynomial-Time Approximation Scheme (PTAS). This means that for a fixed depth and a desired error $\epsilon$, SGD can find a solution in time polynomial to the network size. This result aligns theoretical algorithms with the actual optimization methods used by practitioners.

Key Insights and Results

Distribution-Free Learning

Perhaps the most surprising insight is that this learnability holds for any distribution on the sphere (specifically, $\sqrt{d} \cdot \mathbb{S}^{d-1}$). Unlike previous proofs that required Gaussian data or specific patterns, this result provides a universal guarantee for any input distribution supported on a sphere.

The Power of Low Degrees

The authors demonstrate that for constant-depth networks, an infinitely complex model is not required for approximation. A polynomial of degree $n^{i-1}$ (where $i$ is the depth) is sufficient to reach a specific accuracy. This suggests that the "hardness" of neural networks often stems from carefully engineered, adversarial weight configurations rather than the inherent nature of the architecture.

Complexity and Efficiency

  • First PTAS for Deep Networks: This work is the first to provide a polynomial-time approximation scheme for learning networks with depth greater than 2.
  • Complexity Bounds: For a network of size $\bar{d}$ and error $\epsilon$, the algorithm runs in $(\bar{d})^{poly(\epsilon^{-1})}$ time.
  • Activation Impact: While the result holds for all Lipschitz activations, "smoother" activations like Sigmoid allow for even faster learning (quasi-polynomial time) because they can be approximated by even lower-degree polynomials, leading to a bound of $(\bar{d})^{polylog(\epsilon^{-1})}$.

Limitations and Future Directions

While this paper represents a significant step forward, several constraints remain for future exploration:

  1. The Width Constraint: The current proof requires the network to be sufficiently wide (a constant $D$ that depends on depth and accuracy). The authors conjecture this requirement can be relaxed in future work.
  2. Constant Depth: The results currently apply only to networks where the depth is a fixed constant. Scaling these proofs to "very deep" networks, where depth grows with the input size, remains an open challenge.
  3. Beyond Polynomials: While the paper shows random networks are learnable because they are "almost polynomials," achieving true polynomial complexity in both $1/\epsilon$ and $d$ may require moving beyond kernel methods and polynomial approximations.
  4. Architecture Scope: The study focuses on fully-connected feedforward networks. Extending these proofs to Convolutional Neural Networks (CNNs) is a logical next step for the field.

Conclusion

By shifting the focus from worst-case complexity to the average-case behavior of random networks, this research provides a rigorous mathematical foundation for the empirical success of deep learning. It demonstrates that the randomness inherent in initialization is not just a starting point, but a feature that makes deep architectures inherently learnable through standard optimization techniques.

Summary updated

BibTeX
@inproceedings{daniely2023most,
  author = {Amit Daniely and Nathan Srebro and Gal Vardi},
  title = {{Most Neural Networks Are Almost Learnable}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=pvPujuvjQd},
}
Figure