Hardness of Noise-Free Learning for Two-Hidden-Layer Neural Networks

Sitan Chen, Aravind Gollakota, Adam R. Klivans, Raghu Meka

Introduction

This paper challenges the conventional wisdom that neural networks are only computationally hard to learn when the training data is noisy. By refining a mathematical technique known as "lifting," the authors prove that learning even simple two-hidden-layer ReLU networks is computationally intractable in the noise-free (realizable) setting with Gaussian inputs. This work provides the first superpolynomial lower bounds of this kind, fundamentally shifting our understanding of neural network learnability.

The Problem: The Gap Between One and Two Layers

In machine learning theory, there is a massive gap between what we can efficiently compute with one-hidden-layer neural networks and what we can do with two. For one-hidden-layer networks, researchers have developed a rich toolbox of efficient algorithms. However, for two layers, theoretical progress has historically hit a wall.

Previously, researchers hypothesized that this "hardness" might only exist if the data was corrupted by adversarial noise (agnostic learning) or if the input was discrete (such as the Boolean hypercube). In fact, prior work suggested it might be mathematically impossible to prove general hardness for real-valued functions over continuous distributions like Gaussians due to certain "non-degeneracy" conditions. This paper tackles a fundamental question: Are there inherent computational barriers to learning two-hidden-layer networks, even when the data is perfectly clean and the inputs are standard Gaussians?

Methodology

The authors employ a strategy called a lifting procedure. This involves taking a problem known to be computationally hard in a discrete setting (like learning "parities" or solving cryptographic problems) and "lifting" it into a continuous Gaussian setting.

Key technical contributions include:

  • Compressing the "DV Lift": The authors refine a lifting method originally introduced by Daniely and Vardi (2021). While the original method required three hidden layers to demonstrate hardness, this paper introduces a more efficient "compressed" version that works with only two hidden layers.
  • The $N_3$ Gadget: They construct a specific one-hidden-layer neural network gadget that acts as a "soft indicator" function. This allows them to embed discrete logic into a continuous ReLU network without losing the hardness properties of the original discrete problem.
  • Statistical Query (SQ) Framework: The results are proven within the SQ model, a broad theoretical framework that captures most algorithmic approaches used in machine learning, including gradient descent and the method of moments.

Theoretical Setting

As a theoretical paper, this work does not evaluate on standard empirical benchmarks like ImageNet. Instead, it focuses on rigorous mathematical settings:

  • Input Distributions: The analysis primarily assumes the standard Gaussian distribution $\mathcal{N}(0, I_d)$ in $d$ dimensions.
  • Hardness Sources: The proofs rely on the established hardness of learning Parity functions (for SQ bounds) and the Learning with Rounding (LWR) problem (for cryptographic bounds). LWR is a close variant of the Learning with Errors (LWE) problem widely used in post-quantum cryptography.

Key Insights

  • Noise is Not Necessary: The most significant insight is that structural complexity alone—simply moving from one hidden layer to two—is enough to make learning computationally hard. Adversarial noise is not required to create a computational barrier.
  • Circumventing the "Cheating" Barrier: Previous theory suggested that for real-valued functions, an algorithm could "cheat" by looking at where functions agree. The authors bypass this by constructing a family of networks that agree on a significant portion of the Gaussian space, making them indistinguishable to efficient algorithms.
  • LWR as a Powerful Tool: By utilizing Learning with Rounding instead of other cryptographic primitives, the authors achieved a much more efficient reduction, enabling the proof of hardness for just two layers.
  • Label Queries are Also Hard: The paper demonstrates that even if an algorithm is "active"—meaning it can choose exactly which data points it wants to see labels for—it still cannot efficiently learn constant-depth ReLU networks.

Key Results

The paper successfully closes the theoretical gap between one and two hidden layers, matching known algorithmic limits.

Comparison of hardness results based on the number of hidden layers.

Specifically, the authors establish:

  1. SQ Lower Bound: Any Statistical Query algorithm attempting to learn two-hidden-layer ReLU networks over Gaussians requires a superpolynomial ($d^{\omega(1)}$) number of queries. This holds unconditionally, without needing cryptographic assumptions.
  2. Cryptographic Hardness: Under the assumption that Learning with Rounding (LWR) is hard, no polynomial-time algorithm can learn two-hidden-layer ReLU networks.

Limitations and Future Work

While a significant breakthrough, the paper leaves several avenues open for future exploration:

  • Worst-Case vs. Average-Case: These results apply to "worst-case" networks within the class (though weights are restricted to be polynomial). It remains an open question whether every network of a certain structure is hard to learn, or if there are "natural" sub-classes that remain easy in practice.
  • One-Hidden-Layer Worst-Case: While we have good algorithms for 1-layer networks under certain assumptions, proving hardness for worst-case 1-layer networks remains a tantalizing possibility.
  • Error Tolerance: The hardness results hold when the required error ($\epsilon$) is small (e.g., $1/poly(d)$). Exploring hardness for very large, constant error rates is a potential future direction.

Summary updated

BibTeX
@inproceedings{chen2022hardness,
  author = {Sitan Chen and Aravind Gollakota and Adam R. Klivans and Raghu Meka},
  title = {{Hardness of Noise-Free Learning for Two-Hidden-Layer Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=tAe4Ldm2VKN},
}
Figure