Deep learning generalizes because the parameter-function map is biased towards simple functions

Guillermo Valle Pérez, Chico Q. Camargo, Ard A. Louis

TL;DR

This paper proposes a novel explanation for why massive, over-parametrized deep neural networks (DNNs) generalize so well instead of simply memorizing noise. The authors argue that the mapping from a network's parameters to the functions it represents is exponentially biased toward "simple" functions (those with low descriptional complexity). This provides a natural form of "simplicity bias" that explains generalization through the lens of Algorithmic Information Theory (AIT) and PAC-Bayes bounds.

What Problem Does This Paper Address?

In classical learning theory, a model with more parameters than data points is expected to overfit—essentially "memorizing" the training set without learning the underlying patterns. Deep learning defies this expectation: we routinely train models with millions of parameters on much smaller datasets, yet they generalize remarkably well to unseen data.

While many researchers point to "implicit regularization" stemming from optimization algorithms like Stochastic Gradient Descent (SGD), there is no consensus on the fundamental cause. This paper asks a critical question: Is generalization a byproduct of the optimizer, or is it an intrinsic property of the neural network architecture itself?

Methods

The authors bridge the gap between deep learning and Algorithmic Information Theory (AIT). Their approach involves several key components:

  1. The Parameter-Function Map: Instead of looking at individual weights, they analyze the map $\mathcal{M}: \Theta \to \mathcal{F}$, which takes a parameter vector $\theta$ and produces a function $f_\theta$.
  2. Simplicity Bias Bound: They apply a recent theoretical bound suggesting that for many input-output maps, the probability $P(f)$ of obtaining a specific function $f$ by random sampling of parameters is bounded by its complexity: $P(f) \leq 2^{-a\tilde{K}(f)+b}$, where $\tilde{K}(f)$ is an approximation of Kolmogorov complexity.
  3. Complexity Metrics: To quantify "simplicity," they use Lempel-Ziv (LZ) complexity, Boolean expression complexity, and entropy.
  4. Gaussian Process (GP) Approximation: Because calculating exact probabilities in massive networks is computationally intractable, they leverage the fact that infinitely wide networks behave like Gaussian Processes to estimate the "prior" probability of different functions.
Neural network probability closely matches Gaussian process probability
  1. PAC-Bayes Framework: They derive generalization bounds by placing a prior over the function space rather than the traditional parameter space, leading to much tighter, non-vacuous bounds.

Datasets

The authors validated their theory across several benchmarks:

  • Synthetic Boolean Functions: A small network (7 inputs, 1 output) used to exhaustively sample the function space.
  • MNIST: The classic handwritten digit dataset (binarized for certain tests).
  • Fashion-MNIST: A more complex dataset of clothing items.
  • CIFAR-10: A standard image recognition dataset used to test larger Convolutional Neural Networks (CNNs).

Key Insights and Ideas

  • The "Simplicity Bias" is Intrinsic: The most surprising finding is that even before training, a neural network is "wired" to prefer simple functions. If you pick weights at random, you are exponentially more likely to get a simple, structured function than a chaotic, random one.
  • Generalization is "Baked In": Because real-world problems (like identifying a cat or a digit) usually involve highly structured, "simple" patterns, the network’s natural bias aligns perfectly with the tasks we want it to solve.
  • Function Space > Parameter Space: Traditional theories fail because they count parameters. This paper shows that what matters is the volume of parameter space that maps to a specific function. Simple functions occupy massive "basins" in parameter space, making them easy for any optimizer to find.
  • SGD as a Random Sampler: The authors provide evidence that SGD behaves similarly to a Bayesian sampler that picks parameters nearly uniformly from the region that fits the data. This suggests the optimizer isn't "creating" the bias; it is simply navigating a landscape already heavily biased toward simplicity.

Key Results

  • Zipf’s Law in Functions: In Boolean networks, the frequency of functions followed a Zipf-like distribution, spanning over 39 orders of magnitude. A few simple functions are incredibly common, while complex ones are virtually impossible to find by chance.
  • Complexity vs. Error: They demonstrated a clear correlation: as the Lempel-Ziv complexity of a target function increases, the generalization error of the network also increases.
Empirical results showing Zipf-like rank distribution, probability vs. complexity, and generalization error vs. complexity
  • Tighter Bounds: By using the GP-based function-space prior, the authors produced PAC-Bayes generalization bounds that actually correlate with true error on MNIST and CIFAR-10. This is a major step forward, as many previous bounds were "vacuous" (predicting errors $> 100\%$).

Limitations and Future Work

  • The "Last Few Percent": While this theory explains the "bulk" of generalization, it doesn't yet account for the small performance boosts provided by specific tricks like Dropout, Batch Normalization, or specific learning rate schedules.
  • Uniform Sampling Assumption: The theory relies on the assumption that SGD samples the "zero-error" region of the parameter space somewhat uniformly. The authors acknowledge that SGD sometimes diverges from this behavior, which requires more detailed study.
  • Proxy Complexity: True Kolmogorov complexity is uncomputable, so the results depend on proxies like Lempel-Ziv. Future work could explore more sophisticated complexity measures that better capture "real-world" regularity in high-dimensional data.

Summary updated

BibTeX
@inproceedings{perez2019deep,
  author = {Guillermo Valle Pérez and Chico Q. Camargo and Ard A. Louis},
  title = {{Deep learning generalizes because the parameter-function map is biased towards simple functions}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=CI5h8eq6Tc},
}
Figure