Weight Correlation and the Mean-Field Approximation

151 concepts112 papers1 proposal

When modeling uncertainty in deep neural networks, we often treat the weights not as fixed points, but as probability distributions. In an ideal world, we would capture the joint distribution of every single parameter in the network. However, because modern architectures contain millions or billions of parameters, calculating a full covariance matrix is computationally impossible.

To bypass this complexity, the standard recipe relies on the mean-field approximation. This assumption treats every weight in a neural network as completely independent of every other weight. Mathematically, it simplifies the posterior distribution into a product of independent factorized distributions, collapsing the covariance matrix into a simple diagonal line.

While mathematically convenient, this independence assumption fundamentally contradicts how neural networks learn.

The Cost of Neglecting Correlation

In a trained neural network, parameters do not function in isolation; they form highly coordinated structures. If one weight changes, other weights must adjust to preserve the network's function. By forcing the variational posterior to be independent, the mean-field approximation assumes that these parameters are decoupled.

The practical consequences of this oversimplification are severe:

  1. Pessimistic Generalization Bounds: In PAC-Bayesian theory, generalization bounds depend on the complexity of the parameter space. As Konstantinos Pitas demonstrates in Dissecting Non-Vacuous Generalization Bounds based on the Mean-Field Approximation, the mean-field assumption acts as a fundamental bottleneck. Because independent distributions cannot align with the true, highly correlated structure of the loss landscape, optimizing individual weight variances yields negligible improvements, resulting in overly pessimistic and often "vacuous" bounds.
  2. Degraded Generalization: Training naturally induces strong dependencies between parameters. Gaojie Jin et al. show in How does Weight Correlation Affect Generalisation Ability of Deep Neural Networks? that ignoring these correlations during optimization leads to a significant mismatch between the approximating distribution and the true posterior, ultimately harming the model's ability to generalize to unseen data.
  3. Theoretical Blind Spots: Many foundational proofs rely on weight independence for tractability. For instance, Damien Ferbach et al. note in Proving Linear Mode Connectivity of Neural Networks via Optimal Transport that while independence simplifies proofs for infinite-width networks, it fails to capture the behavior of practical, narrower networks where training induces significant weight correlations.

This tension was recognized early on. In Practical Variational Inference for Neural Networks, Alex Graves popularized the diagonal Gaussian posterior for scalability but explicitly noted that it limits the effectiveness of the Bayesian approximation by ignoring the high degree of correlation inherent in deep architectures.

Modeling Structural Dependencies

To fix this mismatch without triggering the catastrophic memory costs of a full covariance matrix, researchers design structured approximations that capture parameter interactions along the network's natural geometric boundaries.

Matrix Variate Posteriors

Weights in a neural network layer are organized as matrices, where rows and columns correspond to shared features or neurons. Instead of flattening these matrices and treating each entry as independent, we can model the uncertainty of the matrix as a whole.

Christos Louizos and Max Welling introduced this perspective in Structured and Efficient Variational Deep Learning with Matrix Gaussian Posteriors. By utilizing Matrix Variate Gaussian distributions, the posterior is parameterized by two much smaller covariance matrices: one for the rows and one for the columns. This approach, also explored by Changyou Chen et al. in Learning Structured Weight Uncertainty in Bayesian Neural Networks, allows the model to capture structural correlations across shared features while maintaining computational efficiency.

Kronecker-Factored and Low-Rank Approximations

Another strategy is to capture dependencies layer by layer or pair by pair. In A Scalable Laplace Approximation for Neural Networks, Hippolyt Ritter et al. utilize a Kronecker-factored Hessian approximation. This allows the model to preserve weight correlations within individual layers while assuming independence between different layers.

For highly constrained architectures, such as binarized networks, the authors of Training Binary Neural Networks via Gaussian Variational Inference and Low-Rank Semidefinite Programming developed a framework called VISPA. Instead of assuming discrete weight independence, VISPA explicitly tracks a low-rank weight deviation matrix that captures how groups of discrete weights vary together during optimization, significantly boosting accuracy.

Approximation Type Covariance Structure What it Captures Scalability
Mean-Field Diagonal None (all weights independent) Extremely High ($O(N)$)
Kronecker-Factored Block-Diagonal Intra-layer weight correlations Moderate
Matrix Variate Row $\times$ Column Kronecker Structural feature/neuron dependencies High
Full Covariance Dense All pairwise weight correlations Intractable ($O(N^2)$)

The Counter-Intuitive Role of Depth

Given the limitations of the mean-field approximation, one might assume that capturing weight correlations is always necessary for deep networks. However, a surprising counter-perspective reveals that network architecture can sometimes mitigate its flaws.

Sebastian Farquhar and Lewis Smith argue in Liberty or Depth: Deep Bayesian Neural Nets Do Not Need Complex Weight Posterior Approximations that as neural networks grow deeper, the necessity for complex weight posterior approximations actually disappears.

The intuition lies in the distinction between parameter space and function space. While the mean-field approximation forces independence in the parameter space, the sequential composition of layers acts as a powerful non-linear mixer. By the time the forward pass reaches the final layer, this deep composition transforms simple, independent weight distributions into highly complex, correlated distributions in function space.

Consequently, for sufficiently deep architectures, the structural limitations of the mean-field assumption are heavily mitigated by the depth of the network itself, allowing simple distributions to achieve rich functional expressivity.

Key Foundational Work

Ensemble Learning for Multi-Layer Networks (1997) — contributed 3 concept elements to this direction.
History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 118 papers
  2. Version 1 · 2026-10-04 · 130 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_mean_field_independence_assumption_weigh_f87ee29e,
  title = {mean-field independence assumption (weight correlation neglect)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/mean-field-independence-assumption-weight-correlation-neglect/rdr_f87ee29e7bb34f22838d90ad202de8e6},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 2, frozen text):

@misc{lacuna_mean_field_independence_assumption_weigh_f87ee29e_v2,
  title = {mean-field independence assumption (weight correlation neglect)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/mean-field-independence-assumption-weight-correlation-neglect/rdr_f87ee29e7bb34f22838d90ad202de8e6/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-27},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake