Hardness of Learning Neural Networks with Natural Weights

Amit Daniely, Gal Vardi

Introduction

There is a massive gap between our theoretical understanding of neural networks and their empirical success. Theoretically, learning the weights of even a simple depth-2 neural network is known to be NP-hard in the worst case. Yet, in practice, massive networks are successfully trained every day.

One popular hypothesis to resolve this discrepancy suggests that "real-world" networks are not "worst-case." Researchers have posited that the weights in successful networks possess generic, "well-behaved" properties—often referred to as natural weights—that allow for efficient learning. This paper tackles a fundamental question: If we assume weights are drawn from a "natural" distribution (such as a Normal or Uniform distribution), does the learning problem become computationally tractable?

The authors prove that the "naturalness" of neural network weights does not make them easier to learn. Even for simple depth-2 networks, learning remains computationally hard under standard complexity assumptions. This suggests that the practical success of deep learning cannot be explained simply by assuming weights are "well-behaved."

Theoretical Framework and Methodology

As a theoretical study, this paper does not rely on empirical datasets like ImageNet or CIFAR-10. Instead, it defines the learning problem using data generated by a target neural network where the weights are sampled from specific distributions, and the inputs can come from any distribution (distribution-free in the PAC learning sense).

To prove these hardness results, the authors employ tools from computational complexity theory:

  • The RSAT Assumption: The proofs rely on the Random $K$-SAT (RSAT) assumption, a standard conjecture in complexity theory stating that it is computationally hard to refute a random $K$-SAT formula.
  • Mathematical Reductions: The core of the methodology is a reduction showing that if an efficient algorithm existed to learn a neural network with random weights, that same algorithm could be used to solve the RSAT problem.
  • Weight Distributions: The study analyzes several "natural" distributions for weights in the first layer of a depth-2 network, including Multivariate Normal (Gaussian) distributions, Uniform distributions over an interval or a sphere, and Bernoulli distributions.
  • Architecture Focus: The analysis specifically targets depth-2 networks with a single output neuron and $O(\log^2(n))$ hidden neurons, as well as Convolutional Neural Networks (CNNs) with non-overlapping patches.

Key Insights and Results

The paper effectively rules out a large class of potential explanations for why neural networks work in practice—specifically those relying solely on the "niceness" of the weight distribution.

  • Naturalness is Not a Silver Bullet: The most striking insight is that "random-looking" weights are just as hard to learn as arbitrary ones. There is no generic property holding with high probability in these random networks that enables efficient learning.
  • RSAT-Hardness for Standard Architectures: Learning depth-2 fully-connected networks with $O(\log^2(n))$ hidden neurons is proven to be RSAT-hard for all tested natural weight distributions. Similar hardness results were established for depth-2 CNNs with non-overlapping patches.
  • Algorithm Agnostic: These results extend beyond the limitations of Gradient Descent. They prove that no polynomial-time algorithm can provably learn these networks under the RSAT assumption.
  • Improper Learning Hardness: The hardness holds even for "improper learning." Even if the learning algorithm is allowed to output a highly complex model (not necessarily a neural network) to represent the data, it still cannot find a good predictor efficiently.
  • Input Norm Bounds: The paper provides specific bounds on the norm of the input vectors required for these hardness results to hold (e.g., inputs of norm roughly $\sqrt{n}$ for Gaussian weights).

Limitations and Future Work

While the paper provides strong negative results regarding weight distributions, it leaves room for other explanations of deep learning's success:

  • Worst-Case Input Distributions: The hardness results assume the input distribution could be anything (worst-case). In reality, data like images or text possess significant internal structure. Future work could explore whether combining natural weights and natural input distributions (such as manifold assumptions) finally breaks the computational hardness.
  • Network Depth: The focus is primarily on depth-2 networks. While the authors suggest extensions to deeper networks, the specific mechanics of how depth influences "natural weight" hardness remains an open area for exploration.
  • Reliance on the RSAT Assumption: While widely believed, RSAT is still a theoretical assumption. If a breakthrough occurs in refuting random $K$-SAT, these specific hardness results would need to be re-evaluated.

Summary updated

BibTeX
@inproceedings{daniely2020hardness,
  author = {Amit Daniely and Gal Vardi},
  title = {{Hardness of Learning Neural Networks with Natural Weights}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=1xezHlx96N},
}
Figure