Feature learning in finite-width Bayesian deep linear networks with multiple outputs and convolutional layers

Federico Bassetti, Marco Gherardi, Alessandro Ingrosso, Mauro Pastore, Pietro RotondoarXiv 2024 · DOI

Abstract

In deep learning theory, the infinite-width limit provides a mathematically tractable framework where neural networks behave as Gaussian Processes (NNGP) or Neural Tangent Kernels (NTK). However, this "lazy training" regime fails to capture the essential mechanism of deep learning: feature learning. This paper provides a rigorous mathematical bridge between these idealized models and the practical reality of finite-sized networks. By deriving exact, non-asymptotic formulas for the prior and posterior distributions of deep linear networks (DLNs), the authors demonstrate how finite-width architectures—including those with multiple outputs and convolutional layers—adapt their internal representations to data.

Introduction: The Infinite-Width Dilemma

The success of deep learning is largely attributed to the ability of networks to learn hierarchical features. Yet, the most common mathematical tools used to study them often assume an infinite width, which simplifies the network into a fixed kernel. In this "lazy" regime, the network acts as a template matcher rather than a dynamic feature extractor.

To address this gap, this research focuses on Deep Linear Networks (DLNs). While DLNs implement linear input-output mappings, they remain non-linear in their parameters. This makes them an ideal "toy model" to study how depth and finite width induce feature learning without the added complexity of non-linear activation functions like ReLU. The paper provides a rigorous Bayesian characterization of how these networks behave when they are not infinitely wide.

Methodology

The authors employ a Bayesian framework to analyze the statistics of the functions implemented by DLNs. Their approach is built upon several mathematical pillars:

1. Gaussian Mixtures and Wishart Distributions

The paper proves that the prior distribution over a network's outputs can be represented exactly as a mixture of Gaussians. The covariance of these Gaussians is not fixed; instead, it is controlled by random matrices following a Wishart distribution. In finite networks, these matrices fluctuate, providing the statistical signature of feature learning. In the infinite-width limit, these fluctuations vanish, and the network reverts to a standard Gaussian Process.

2. Dimensional Reduction

A significant challenge in finite-width analysis is the sheer number of hidden neurons. The authors demonstrate a "dimensional reduction" principle: the complexity of the prior depends on the number of outputs ($D$) or the input size ($N_0$), rather than the number of hidden units. This reduction makes the resulting formulas computationally accessible.

3. Large Deviation Theory (LDT)

To bridge the gap between finite and infinite widths, the authors use Large Deviation Theory to describe how the distribution of random matrices concentrates as the network grows wider. This allows for a precise distinction between the "lazy" regime (where matrices concentrate into an identity matrix) and the "feature learning" regime (where they adapt to training data).

4. Convolutional Mapping

The framework is extended from fully-connected layers to convolutional architectures. This involves the introduction of "local kernel renormalization," accounting for the spatial weight-sharing inherent in CNNs.

Key Insights: Escaping the Lazy Regime

The most significant contribution of this work is the formalization of how a network escapes the NNGP limit. By employing a specific "mean-field" scaling—rescaling weights by $1/\sqrt{N}$—the authors show that the posterior distribution concentrates on non-trivial solutions that depend explicitly on the training labels.

This translates physics concepts like "kernel shape renormalization" into rigorous Bayesian statistics. What was previously described heuristically in physics literature is here proven: the network's internal "kernel" is not static but evolves to match the structure of the task at hand.

Results and Analytical Formulas

The research yields several high-impact theoretical results:

  • Exact Priors and Posteriors: The authors provide the first exact, non-asymptotic integral representations for the joint prior and posterior predictive distributions for multi-output and convolutional DLNs.
  • Closed-Form Posterior: For cases involving squared error loss (Gaussian likelihood), the paper derives a closed-form analytical formula for the posterior distribution.
  • Quantitative Feature Learning: Using Proposition 10, the authors quantitatively describe the feature-learning regime, proving that in the mean-field limit, the internal kernel adapts to the data.

Limitations and Future Directions

While this work provides a rigorous foundation for understanding finite-width networks, it is bounded by the linearity of the networks studied. DLNs capture parameter dynamics but lack the expressive power of non-linear activations (e.g., ReLU or Sigmoid). Extending these exact results to non-linear architectures remains a primary challenge for future research.

Additionally, the current asymptotic results often assume a fixed depth ($L$) while width ($N$) approaches infinity. Future work may explore the "proportional limit," where both depth and width grow simultaneously. Finally, while the formulas offer dimensional reduction, evaluating the $L$-dimensional integrals for extremely deep networks remains a computational hurdle for practical Bayesian inference applications.

Summary updated

BibTeX
@misc{bassetti2024feature,
  author = {Federico Bassetti and Marco Gherardi and Alessandro Ingrosso and Mauro Pastore and Pietro Rotondo},
  title = {{Feature learning in finite-width Bayesian deep linear networks with multiple outputs and convolutional layers}},
  year = {2024},
  eprint = {2406.03260},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.03260},
}
Figure