Sample Complexity versus Depth: An Information Theoretic Analysis

Hong Jun Jeon, Benjamin Van RoyarXiv 2022 · DOI

Abstract

Traditional statistical learning theory often fails to explain why massive neural networks generalize well. This paper proposes a new information-theoretic framework based on rate-distortion theory that shifts the focus from worst-case to average-case analysis. By modeling neural networks as compressed representations of their environments, the authors prove that sample complexity can be linear in depth and independent of width, matching the behavior of modern over-parameterized models.

Introduction: The "Success is Guaranteed" Paradox

In contemporary machine learning, a significant gap exists between theoretical bounds and empirical reality. Traditional parameter-counting suggests that models with billions of parameters, like GPT-3, should require astronomical amounts of data to avoid overfitting. However, these "gargantuan" models generalize remarkably well.

Existing frameworks often provide pessimistic results:

  1. Parameter Counting: Leads to bounds that scale with the total number of weights.
  2. Norm-based Bounds: While potentially width-independent, these often exhibit an exponential dependence on network depth.
  3. Worst-case Analysis: By assuming the most difficult possible data-generating process, these theories produce loose, impractical bounds.

The authors address this by asking: For what data-generating processes can neural networks actually succeed? They seek a framework where bounds are simultaneously width-independent and linear in depth.

The Information-Theoretic Framework

The authors move away from traditional PAC-learning (Probably Approximately Correct) and instead embrace Information Theory, specifically Rate-Distortion Theory. This field studies the trade-off between the number of bits used to describe a signal (Rate) and the resulting approximation error (Distortion).

In this framework, the neural network's weights are treated as a "compressed" representation of the environment. The "error" is defined as the KL-divergence between a predicted distribution and the true target distribution. This error is then linked to Mutual Information—the amount of information the model has extracted from the training data.

The data-generating environment $\mathcal{E}$ maps inputs $X$ to outputs $Y$.

The learning process is viewed sequentially. A learner observes a history of inputs and outputs $H_t = (X_0, Y_1, X_1, Y_2, \dots, X_t)$ and attempts to predict the distribution of the next output $Y_{t+1}$.

A learner processes the history $H_t$ to predict the next output distribution $\hat{P}_t$.

Key Insights: Width Independence and Depth Efficiency

The core of the paper's contribution lies in analyzing specific "priors" or data-generating environments:

1. Average-Case Analysis

By assuming data originates from a specific distribution (a "prior"), the authors bypass the combinatorial "shattering" arguments that typically make deep learning theory pessimistic. This allows for a more realistic assessment of learning efficiency.

2. The Dirichlet Advantage

One of the most significant findings involves the Dirichlet prior. This distribution suggests that even in an infinitely wide layer, the "effective" information needed to describe the weights is limited. This leads to width-independent bounds, where sample complexity depends on a scale parameter $M$ (related to sparsity) rather than the actual number of neurons $N$.

3. Linear Depth Dependence

Using the chain rule of mutual information, the authors demonstrate that error does not necessarily explode exponentially with depth. If each layer is "stable"—meaning it does not excessively amplify noise—the total sample complexity grows only linearly with depth ($O(K \ln K)$). They proved that ReLU layers are indeed stable under these priors.

Empirical Confirmation

While the theoretical framework focuses on an "optimal" Bayesian learner, the authors conducted experiments to see if practical optimizers like Adam behave similarly. Using a "Teacher-Student" setup with synthetic data, they found that the actual sample size needed to reach a target error level almost perfectly matched their theoretical predictions. Specifically, sample complexity scaled as $T_\epsilon \propto dN/\epsilon$ for independent priors and $T_\epsilon \propto dM/\epsilon$ for Dirichlet priors.

Conclusion and Future Work

This research formalizes the idea that learning is the process of converting "cumulative error" into "information gain." Once a model has "bought" all the information available in the environment, its error drops toward zero.

However, some questions remain. The core theorems apply to an idealized Bayesian learner; while experiments show SGD/Adam perform similarly, the mathematical proof for why these optimizers reach information-theoretic limits is still an open question. Additionally, while Dirichlet priors are mathematically elegant for modeling sparsity, further work is needed to see how well they map to the weight distributions of real-world models like vision transformers. Future extensions could apply this "information gain per sample" metric to Reinforcement Learning and Semi-supervised Learning.

Summary updated

BibTeX
@misc{jeon2022sample,
  author = {Hong Jun Jeon and Benjamin Van Roy},
  title = {{Sample Complexity versus Depth: An Information Theoretic Analysis}},
  year = {2022},
  eprint = {2203.00246},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.00246},
}
Figure