In standard Bayesian Neural Networks (BNNs), we treat every weight as a separate random variable. This approach, known as Mean-Field Variational Inference (MFVI), assumes that the uncertainty of one weight has nothing to do with the uncertainty of its neighbor. While computationally convenient, this "lone island" assumption ignores the fundamental geometry of neural networks: weights are organized into matrices where rows and columns represent shared features and neurons.
Recent research has shifted toward structured weight uncertainty, modeling the dependencies between weights to create more expressive, robust, and well-calibrated models.
The Matrix Perspective
A weight layer in a neural network is naturally a matrix, not a flat vector. When we assume weights are independent, we lose the ability to model how neurons interact. Christos Louizos and Max Welling addressed this in Structured and Efficient Variational Deep Learning with Matrix Gaussian Posteriors by treating weights as Matrix Variate Gaussian (MVG) distributions.
Instead of a massive covariance matrix for every single weight pair—which would be computationally impossible—an MVG distribution uses two smaller matrices to capture correlations: one for rows and one for columns. This captures how input dimensions and output dimensions relate to one another. As Changyou Chen, Shengyang Sun, and Lawrence Carin demonstrate in Learning Structured Weight Uncertainty in Bayesian Neural Networks, this structure allows the model to capture "one-sided" uncertainty in sparse data regions, significantly improving predictive accuracy and convergence speed compared to independent models.
Efficiency through Kronecker Factorization
The primary hurdle for structured uncertainty is the "dimensionality curse." A full covariance matrix for a layer with $M$ inputs and $N$ outputs would require $O(M^2 N^2)$ parameters. Structured approaches bypass this using Kronecker-factored covariance.
By representing the covariance as a product of two smaller matrices ($U \otimes V$), researchers can model complex interactions with minimal overhead. Chen Zeno and Daniel Soudry utilize this in Task-Agnostic Continual Learning Using Online Variational Bayes With Fixed-Point Updates. They show that capturing these dependencies allows a network to "lock" important weight structures, preventing the catastrophic forgetting that occurs when weights are treated as independent entities.
Other methods achieve similar efficiency through fixed transforms. Simone Rossi and Maurizio Filippone introduced Walsh-Hadamard Variational Inference, which uses fast signal-processing transforms to reparameterize weight matrices. This allows a simple Gaussian vector to generate complex, non-factorized weight correlations.
Expanding the Scope: Inter-layer and Network Structure
The intuition of structure extends beyond a single layer. In Implicit Variational Inference for High-Dimensional Posteriors, Anshuk Uppal and Jes Frellsen argue that modeling correlations across different layers is key to calibration. By using a generator architecture to model these inter-layer dependencies, the system more accurately represents its own confidence, particularly on out-of-distribution data.
This concept of "weight anisotropy"—the internal correlation structure of weights—also has theoretical implications for generalization. Cengiz Pehlevan and Jacob A Zavatone-Veth explored this in Learning Curves for Deep Structured Gaussian Feature Models, finding that while structure in the first layer can boost performance, internal anisotropy in deeper layers can sometimes be detrimental, suggesting that the placement of structure is as important as the structure itself.
Why Structure Matters for Uncertainty
The goal of these methods is ultimately better uncertainty quantification. Standard BNNs often produce overconfident predictions because their "independent" weights cannot represent the complex, joint ways a model might fail.
By incorporating off-diagonal elements into weight matrices—whether in neural networks or even in weighted regression for social networks as explored by Nihar B Shah—models can account for redundancy and shared information. This leads to:
- Wider predictive intervals in regions far from training data.
- Robustness against adversarial attacks, as shown in the Compound Density Networks of Agustinus Kristiadi and Asja Fischer.
- Lower error by accounting for the underlying topology of the data and the model parameters simultaneously.