Distribution-Specific Hardness of Learning Neural Networks

Ohad Shamir

TL;DR

This paper investigates why neural networks are so successful in practice despite theoretical results showing their learning is computationally hard. The authors demonstrate that neither "natural" input distributions nor "natural" target functions alone are sufficient to guarantee efficient learning with gradient-based methods. This suggests that the practical success of neural networks likely arises from a specific, synergistic combination of both input and target function properties.

What Problem Does This Paper Address?

Despite the widespread success of neural networks in various AI tasks, theoretical computer science has largely painted a bleak picture of their learnability. Many formal results in computational learning theory show that learning neural networks is, in the worst case, computationally intractable, even for relatively simple architectures. These negative results often rely on "artificial" constructions and worst-case scenarios over all possible data distributions.

The core problem this paper addresses is the disconnect between these theoretical hardness results and the practical effectiveness of neural networks trained with standard methods like stochastic gradient descent. The authors aim to understand what makes learning tractable in practice. They hypothesize that real-world scenarios might involve "natural" input distributions and "natural" target functions, and they investigate whether these properties, individually or together, can explain the observed tractability.

Methods

The paper explores two main avenues to demonstrate hardness:

  1. Hardness for "Natural" Target Functions: The authors consider simple, shallow ReLU networks as target functions. They then show that for any such "natural" target function (even with randomly chosen parameters), no algorithm that is invariant to linear transformations of the input data can learn it efficiently across all input distributions. This is achieved by reducing the problem from learning intersections of halfspaces, a known computationally hard problem. The key idea is that linear invariance makes it difficult for an algorithm to distinguish between worst-case and average-case scenarios.
  2. Hardness for "Natural" Input Distributions: Here, the focus shifts to target functions of the form $x \rightarrow \psi(w^Tx)$, where $\psi$ is a periodic function. The authors demonstrate that even if the input distribution is fixed and belongs to a broad class of "nice" distributions (like Gaussians or mixtures of Gaussians), these target functions are generally difficult to learn using gradient-based methods. This result is geometric in nature, showing that the gradient of the objective function contains very little signal about the target function, making gradient descent ineffective. The techniques used involve Fourier analysis, drawing parallels to hardness results in learning parities.

To prove these results, the authors develop tools that extend Fourier-based hardness techniques from the Boolean cube to Euclidean space and more general function classes.

Datasets

Not discussed in the paper. The paper focuses on theoretical hardness results and does not present empirical evaluations on specific datasets.

Key Insights and Ideas

  • Individual "Niceness" is Insufficient: The paper's central insight is that assuming either a "natural" input distribution or a "natural" target function is not enough to guarantee efficient learning for neural networks using gradient-based methods. This challenges the intuition that simply using more realistic data or simpler models would automatically make learning tractable.
  • Linear Invariance and Worst-Case vs. Average-Case: The hardness result for natural target functions highlights how algorithms invariant to linear transformations struggle to differentiate between worst-case and average-case performance. If an algorithm can learn a target function under linear invariance, it implies it can learn it for all input distributions, which is a very strong claim and often not true in practice.
  • Gradient Signal Dilution: The hardness result for natural input distributions reveals a phenomenon where the gradient of the objective function becomes almost independent of the target function's parameters. This "dilution" of the gradient signal makes standard gradient-based optimization methods ineffective, even for smooth distributions.
  • Fourier Analysis as a Tool for Hardness: The paper effectively uses Fourier analysis to prove hardness results, connecting the difficulty of learning certain functions in Euclidean space to known hardness results in the Boolean domain. This demonstrates the power of spectral methods in understanding learning complexity.

Key Results

  • Hardness for Natural Target Functions: For any simple, shallow ReLU network target function, no linearly-invariant algorithm can learn it efficiently across all input distributions. This holds even if the target function's parameters are chosen randomly.
  • Hardness for Natural Input Distributions: For target functions of the form $x \rightarrow \psi(w^Tx)$ (where $\psi$ is periodic), learning is generally difficult for gradient-based methods, even with smooth, well-behaved input distributions like Gaussians.
  • Development of New Tools: The paper introduces techniques for extending Fourier-based hardness proofs to Euclidean space, which may be of independent interest.

Limitations and Future Work

  • Focus on Specific Architectures: The results are primarily for shallow ReLU networks and functions of the form $x \rightarrow \psi(w^Tx)$. Extending these hardness results to deeper or more complex network architectures remains an open question.
  • Specific Algorithm Classes: The hardness results are for specific classes of algorithms (e.g., linearly-invariant, gradient-based). It's possible that other learning paradigms or algorithms might overcome these limitations.
  • Theoretical vs. Practical: While the paper explains why learning might be hard, it doesn't directly address the specific properties of real-world data and networks that do lead to successful learning. Future work could focus on identifying these synergistic properties.
  • Assumptions: The proofs rely on certain assumptions, such as cryptographic hardness assumptions for some results. The impact of relaxing these assumptions could be explored.

Summary updated

BibTeX
@article{shamir2018distribution,
  author = {Ohad Shamir},
  title = {{Distribution-Specific Hardness of Learning Neural Networks}},
  journal = {J. Mach. Learn. Res.},
  year = {2018},
}
Figure