Bayesian Interpolation with Deep Linear Networks

Boris Hanin, Alexander Zlokapa · DOI

Abstract

This paper provides the first exact, non-asymptotic solution for how depth, width, and dataset size jointly determine the quality of deep linear networks (DLNs) under Bayesian inference. By leveraging sophisticated mathematical tools like Meijer-G functions, the authors reveal that depth acts as a mechanism to "learn" optimal priors. Specifically, infinitely deep linear networks with simple, data-agnostic priors behave identically to shallow networks equipped with perfectly tuned, data-dependent priors.

Introduction

A central challenge in deep learning theory is understanding the "scaling laws" that govern model performance as layers, neurons, and data are added. While empirical evidence favors deep architectures, the mathematical justification is often obscured by the complexity of non-linear activations. This research addresses this by examining Deep Linear Networks (DLNs). Although DLNs represent linear functions ($f(x) = \theta^T x$), they are non-linear in their parameters, creating a complex, non-Gaussian prior over the effective weights $\theta$. The authors investigate the "predictive posterior"—the distribution of predictions on new data—to understand how architecture influences extrapolation.

Geometric Framework of Bayesian Interpolation

To analyze how a network generalizes, it is helpful to decompose the effective weight vector $\theta$ into components relative to the training data. In the interpolating regime, where the network fits training data perfectly, the weights must satisfy the constraint $\theta^T x_i = y_i$.

Geometric decomposition of the effective weight vector $\theta$ into components parallel and perpendicular to the span of training data $x_i$.

As shown in the figure above, the weight vector $\theta$ can be split into $\theta_\parallel$ (the component within the span of the training inputs $x_i$) and $\theta_\perp$ (the component in the orthogonal complement). While $\theta_\parallel$ is largely determined by the training labels $y_i$, the distribution of $\theta_\perp$ is governed by the network's prior. The paper explores how depth and width reshape this distribution, effectively controlling how the model extrapolates into directions it has not seen during training.

Methodology

The researchers employed high-powered mathematical tools to solve the Bayesian inference equations exactly:

  • Meijer-G Functions: The partition function of the Bayesian posterior was expressed using Meijer-G functions, allowing for exact formulas for any finite architecture, moving beyond traditional "infinite width" approximations.
  • Asymptotic Expansions: New expansions were developed to describe the behavior when depth ($L$), width ($N$), and dataset size ($P$) grow large simultaneously.
  • Zero-Noise Interpolation: The study focused on the regime where the model fits training data perfectly, a hallmark of modern overparameterized deep learning.

Analysis was conducted using synthetic Gaussian data models, where training inputs are drawn from a Gaussian distribution and outputs are generated by a linear teacher model. This allowed for rigorous validation against phenomena like "double descent" and "benign overfitting."

Key Insights and Results

The Emergence of Effective Depth

The authors identified a critical parameter controlling the posterior structure: $\lambda_{post} = \frac{L \times P}{N}$. This reveals that the impact of depth is intrinsically linked to the amount of data relative to the network's width.

Depth as a Substitute for Prior Knowledge

A significant finding is that depth can compensate for a lack of initial knowledge. If a model starts with a "data-agnostic" prior, increasing depth automatically aligns that prior with the training data. In the limit of infinite depth, the DLN becomes a "perfect" Bayesian, matching the predictions of a shallow network that was given an optimal, "cheating" prior tuned to the training set.

Evidence Maximization

The paper proves that for wide networks, Bayesian model evidence—a statistical measure of model correctness—is strictly increasing with depth. This provides a rare, mathematically rigorous justification for the preference for deep networks: depth increases the likelihood that the model is statistically "correct."

Limitations and Future Work

While providing a breakthrough in exact solutions, the study is limited to linear networks. Real-world deep learning relies on non-linearities (like ReLU) to learn complex features. Additionally, the study focuses on Bayesian inference (averaging over models) rather than Stochastic Gradient Descent (finding a single set of weights), though the two are related. Future work may extend these solutions to multi-class classification and characterize the distribution of individual weights rather than just the predictive posterior.

Summary updated

BibTeX
@misc{hanin2022bayesian,
  author = {Boris Hanin and Alexander Zlokapa},
  title = {{Bayesian Interpolation with Deep Linear Networks}},
  year = {2022},
  eprint = {2212.14457},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.14457},
}
Figure