NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep neural networks have an inbuilt Occam's razor

Chris Mingard, Henry Rees, Guillermo Valle-Pérez, Ard A. Louis · DOI

TL;DR

Deep neural networks (DNNs) generalize remarkably well because their architectures possess an inherent, exponential bias toward simple functions—an inbuilt Occam's razor. By transitioning networks from ordered to chaotic regimes, this paper demonstrates that this simplicity bias is what prevents overfitting and enables successful learning on structured, real-world data.

What Problem Does This Paper Address?

Classical statistical learning theory suggests a simple rule: models with far more parameters than data points should easily overfit to noise, leading to poor generalization. Yet, overparameterized deep neural networks routinely defy this expectation, achieving excellent performance without explicit regularization.

The authors tackle this fundamental mystery—termed the "1st-order question of generalization"—by asking: Why, out of the unimaginably large set of functions that can perfectly fit the training data, do DNNs consistently converge on the tiny subset that generalizes well? They aim to disentangle the roles of network architecture, training algorithms, and data structure to understand this phenomenon through a quantitative, Bayesian lens.

Methods

The authors adopt a Bayesian framework to analyze the functions expressed by a DNN. They use a fully connected network (FCN) learning Boolean functions ($f: \{0,1\}^n \to \{0,1\}$) as a highly tractable model system.

To systematically alter the network's inductive bias, they exploit a known phase transition in networks with tanh activation functions. By increasing the standard deviation of the weight initialization ($\sigma_w$), the network moves from an "ordered" regime to a "chaotic" regime.

Function complexity is measured using a Lempel-Ziv (LZ) based complexity metric ($K(f)$). Finally, the authors introduce a "decoupling approximation" to analytically estimate the Bayesian posterior over function complexities, comparing it directly against the empirical distributions obtained via Stochastic Gradient Descent (SGD) training.

Datasets

  • Synthetic Boolean Functions: A system of size $n=7$ ($2^7 = 128$ total possible inputs) used as the primary model system.
  • MNIST: A binarized version of the popular handwritten digit dataset, utilizing a 1,000-image training subset.
  • CIFAR-10: A standard image classification dataset, utilizing a 5,000-image training subset.

No new benchmarks were introduced; the focus was on using these standard datasets to validate the theoretical framework.

Key Insights and Ideas

  • The Power of Inbuilt Simplicity: DNN architectures naturally favor simple functions. The prior probability of a network randomly initializing into a specific function decreases exponentially with that function's complexity ($P(f) \sim 2^{-K(f)}$).

    Prior P(f) versus rank across different initialization regimes
  • Neutralizing Combinatorial Explosion: Basic counting dictates that the number of possible functions grows exponentially with complexity ($2^K$). The paper's core insight is that the DNN's intrinsic simplicity bias ($2^{-K}$) exactly counteracts this exponential explosion, keeping the prior distribution over complexities ($P(K)$) remarkably flat in well-behaved networks.

  • Chaos Destroys Generalization: When the network is pushed into a chaotic regime (high $\sigma_w$), the simplicity bias is severely weakened. Because it can no longer counteract the $2^K$ growth of complex functions, the network becomes exponentially more likely to converge to complex, poorly generalizing functions.

    Generalization error versus target function complexity
  • SGD as a Bayesian Sampler: The functions found by training networks with SGD closely match the posteriors calculated from purely random parameter sampling. This implies that SGD doesn't magically create generalization out of thin air; it simply navigates an inductive bias already baked into the network architecture.

Key Results

  • In the ordered regime ($\sigma_w = 1$), FCNs exhibit a strong simplicity bias and achieve low generalization error on simple target functions. In contrast, in the chaotic regime ($\sigma_w = 8$), the generalization error degrades significantly across all but the most complex targets.
  • The authors' analytical Bayesian decoupling approximation successfully predicts the true posterior distribution of function complexities observed after training with SGD across various training set sizes.
  • The same phenomenon translates to larger, real-world image datasets: increasing $\sigma_w$ or network depth pushes FCNs trained on MNIST and CIFAR-10 into the chaotic regime, resulting in a clear, predictable drop in generalization performance.

Limitations and Future Work

  • Discrete vs. Continuous: The core theoretical framework is built around discrete functions and classification tasks. Extending these precise complexity-based bounds to continuous regression scenarios remains a challenge.
  • Missing 2nd-Order Biases: While the initialization prior explains why DNNs generalize at all, it does not fully capture 2nd-order effects like feature learning, which occurs during training in finite-width networks and helps optimize performance further.
  • Quantitative Rates of Decay: Calculating the exact quantitative rate at which simplicity bias disappears as a function of how deep a network moves into the chaotic regime remains an open question.

Summary updated

BibTeX
@inproceedings{mingard2025deep,
  author = {Chris Mingard and Henry Rees and Guillermo Valle-Pérez and Ard A. Louis},
  title = {{Deep neural networks have an inbuilt Occam's razor}},
  booktitle = {Nature Communications},
  year = {2025},
  url = {https://openreview.net/forum?id=8SAItOs4PP},
}
Figure