Symmetry Aware Variational Inference

16 concepts8 papers

In deep learning architectures, structural symmetries are ubiquitous. If you swap the weights of two hidden units in a layer and rearrange their outgoing connections, the network's output remains completely unchanged. This phenomenon—known as permutation symmetry—along with rotational symmetries in latent spaces, means that a single functional mapping can be represented by an exponentially large number of equivalent parameter configurations.

For Bayesian deep learning, these symmetries present a severe challenge. They transform what might otherwise be a simple posterior distribution into a highly complex, multi-modal landscape filled with identical "peaks." Standard Variational Inference (VI) typically struggles in this environment, but a growing body of research demonstrates how explicitly accounting for these symmetries can dramatically improve inference.

The Failure of Standard Variational Inference

Standard VI approaches, such as mean-field Gaussian approximations, attempt to fit a single, unimodal "blob" to the posterior distribution. When confronted with a landscape containing multiple symmetric peaks, a unimodal distribution faces a mathematical dilemma: it must either pick a single peak (breaking the model's natural symmetry) or stretch to cover multiple peaks.

As demonstrated by Yoav Gelberg et al. in Variational Inference Failures Under Model Symmetries: Permutation Invariant Posteriors for Bayesian Neural Networks, as neural networks grow wider, these symmetric peaks crowd closer together in the weight space. This forces standard unimodal approximations to interpolate across the empty spaces between peaks, leading to severe underfitting.

Furthermore, ignoring these architectural invariances distorts the optimization objective itself. Richard Kurle et al. showed in On the detrimental effect of invariances in the likelihood for variational inference that symmetries create an "invariance gap" in the Evidence Lower Bound (ELBO). This gap perversely rewards the model for widening its posterior until it collapses entirely into the prior, effectively causing the network to ignore the training data in over-parametrized settings.

Strategy 1: Symmetrizing the Variational Family

The most direct solution is to design an approximate posterior that inherently respects the model's symmetries. Instead of forcing a unimodal distribution to choose between peaks, researchers "bake" the symmetry group directly into the variational family.

To achieve this, Yoav Gelberg et al. construct a symmetrized variational posterior. They take a simple base distribution and average it over all possible permutations within the model's symmetry group:

$$q_{\text{sym}}(\theta) = \frac{1}{|G|} \sum_{g \in G} q_{\text{base}}(g(\theta))$$

This mathematical transformation turns a simple, tractable distribution into a symmetric mixture model. Because it places equal probability mass on all equivalent modes in the weight space, it captures the true multi-modal posterior accurately without increasing the complexity of function-space sampling. Similarly, the invariance-abiding approximation introduced by Richard Kurle et al. explicitly integrates over all weight transformations that leave the likelihood unchanged, successfully closing the invariance gap and preventing posterior collapse.

Strategy 2: Bypassing Symmetries via Kernel Space

Rather than trying to resolve multi-modal symmetries within the complex geometry of weight space, an alternative strategy changes the coordinate system entirely so that the symmetries cease to exist. This is the core intuition behind Deep Kernel Processes (DKPs) and Deep Wishart Processes (DWPs).

Instead of propagating explicit feature vectors through hidden layers, these models formulate the entire architecture in terms of Gram matrices, which represent the pairwise similarities between data points. As Laurence Aitchison et al. demonstrate in Deep Kernel Processes, because Gram matrices only capture the relationships between data points rather than individual unit activations, the representation is completely invariant to the rotation and permutation of latent units.

By operating entirely in the kernel domain, the redundant multi-modal symmetries disappear. This dramatically simplifies the posterior distribution, allowing variational inference to achieve a significantly tighter fit to the true distribution. To make inference in this space practical, Sebastian W. Ober et al. introduced the Generalized Singular Wishart distribution in A variational approximate posterior for the deep Wishart process, enabling feature-free inference that respects deep architectural symmetries. This framework was later enhanced by Sebastian W. Ober et al. in An Improved Variational Approximate Posterior for the Deep Wishart Process, which introduced a more flexible approximate posterior based on linear combinations of matrix decompositions, allowing kernel-based deep models to consistently match or outperform traditional feature-based Deep Gaussian Processes.

Strategy 3: Learning and Preserving Equivariance

Symmetries are not always internal redundancies to be eliminated; they can also represent fundamental physical properties of the data. For instance, in motion prediction, if a physical trajectory is rotated by 45 degrees, the model's predictions should rotate by the exact same amount.

Bahar Azari et al. address this in Equivariant Deep Dynamical Model for Motion Prediction by modifying the variational inference framework so that the ELBO explicitly preserves geometric properties. This ensures that latent variable estimation remains strictly consistent with the underlying physical symmetries of the system.

However, real-world data rarely exhibits perfect global symmetry. A model should be rotation-invariant when classifying a texture, but orientation-sensitive when distinguishing the digit '6' from '9'. To handle this nuance, Hyunsu Kim et al. developed Variational Partial Group Convolutions in Variational Partial Group Convolutions for Input-Aware Partial Equivariance of Rotations and Color-Shifts. Instead of imposing hard-coded geometric constraints, the authors treat the degree of equivariance as a learnable, input-dependent latent variable within the variational framework. This allows the network to dynamically balance classification accuracy against a symmetry prior, learning exactly when to maintain or break specific geometric constraints on an item-by-item basis.

Theoretical Foundations

The validity of embedding symmetries directly into variational objectives is anchored in foundational optimization theory. Long before its widespread application to deep neural networks, Kristian Kersting et al. proved in Equitable Partitions of Concave Free Energies that structural symmetries in graphical models are preserved within the mathematical framework of concave variational inference. They demonstrated that the parameters defining a variational approximation can be partitioned to reflect the model's inherent symmetry without losing global optimality. This mathematical guarantee provides the bedrock for modern symmetry-aware approximations, proving that reducing the search space to match the model's structural symmetries is not just a heuristic shortcut, but a theoretically sound path to optimal inference.

Key Foundational Work

Deep Kernel Processes (2021) — contributed 5 concept elements to this direction.
A variational approximate posterior for the deep Wishart process (2021) — contributed 2 concept elements to this direction.
Equitable Partitions of Concave Free Energies (2015) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_symmetrized_variational_posterior_c2ecc99b,
  title = {symmetrized variational posterior},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/symmetrized-variational-posterior/rdr_c2ecc99bf41c4354a201a55c46685ee8},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_symmetrized_variational_posterior_c2ecc99b_v1,
  title = {symmetrized variational posterior},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/symmetrized-variational-posterior/rdr_c2ecc99bf41c4354a201a55c46685ee8/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}

See something wrong? Report a mistake