Abstract
Inference in deep Bayesian neural networks is only fully understood in the infinite-width limit, where the posterior flexibility afforded by increased depth washes out and the posterior predictive collapses to a shallow Gaussian process. Here, we interpret finite deep linear Bayesian neural networks as data-dependent scale mixtures of Gaussian process predictors across output channels. We leverage this observation to study representation learning in these networks, allowing us to connect limiting results obtained in previous studies within a unified framework. In total, these results advance our analytical understanding of how depth affects inference in a simple class of Bayesian neural networks.
Introduction
In the modern theory of deep learning, the infinite-width limit provides a robust mathematical foundation for understanding Bayesian Neural Networks (BNNs). In this regime, networks simplify into shallow Gaussian Processes (GPs). However, this simplification comes at a significant cost: infinite-width networks lose the ability to perform feature learning, a hallmark of deep learning's success. Real-world networks are finite and retain this flexibility, yet their mathematical analysis remains notoriously difficult.
This research bridges the gap between tractable infinite-width theories and complex finite-width realities by focusing on deep linear Bayesian neural networks ($\ell$BNNs). By analyzing $\ell$BNNs, the authors provide a unifying perspective on how depth and finite width fundamentally alter inference and representation learning.
Methodology: The Scale-Averaging Perspective
To overcome the intractability of integrating all network weights simultaneously, the authors employ a strategic decomposition. They integrate out only the weights of the first layer, which follow a matrix Gaussian distribution, and treat the product of all subsequent layer weights as a single "scale matrix" variable.
This approach allows the moment generating function of the network's posterior predictive distribution to be expressed as a continuous "scale mixture" of GP generating functions. Mathematically, this implies that a deep $\ell$BNN behaves like a shallow GP that is averaged over a data-dependent distribution of scales. Depth, therefore, acts as a mechanism for the network to adaptively mix different GP predictors based on the characteristics of the training data.
Key Insights
Coupling Output Channels
In standard shallow GPs, multiple output channels (such as those used for multi-class classification) are mathematically independent. However, in deep finite $\ell$BNNs, the scale-averaging effect couples these channels. This interaction allows the network to share representations across different outputs, a feature absent in the infinite-width limit.
The Zero-Temperature Limit
To facilitate analytical tractability, the authors examine the "zero-temperature" limit, where the likelihood variance approaches zero and the network perfectly interpolates the training data. In this regime, they identify that the scale matrix follows a Matrix Generalized Inverse Gaussian (MGIG) distribution. This discovery provides a concrete mathematical structure to the previously abstract concept of scale-averaging in deep networks.
Feature Kernel Correction
The study proves that the average first-layer feature kernel of a deep $\ell$BNN is not merely the standard GP kernel. Instead, it includes a specific, scale-dependent correction matrix. This correction term mathematically isolates the representation learning capabilities of finite networks. Crucially, the authors show that these finite-size effects do not vanish in the limit of infinite data, suggesting that the structural impact of depth is a persistent feature of these architectures.
Conclusion
By deriving exact, closed-form expressions for the posterior predictive mean and covariance, this work unifies several disparate results from previous literature. It demonstrates that many existing asymptotic theories are special cases of the broader scale-averaging phenomenon.
While the current analysis is restricted to linear networks, it sets the stage for future exploration into non-linear architectures and more complex joint asymptotic limits. The findings suggest that manually incorporating data-adaptive scale mixing into standard GPs could potentially enhance their generalization performance in practical machine learning applications.
Summary updated