# SOAP-Bubbles: Effective and Scalable Variational Learning with Structured Covariances

*Robert Adrian Minut, Nico Daheim, Marco Miani, Mohammad Emtiyaz Khan, Wu Lin, Thomas Möllenhoff*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151769) · [OpenReview](https://openreview.net/forum?id=YBJkwSJVbo) · [alphaXiv](https://www.alphaxiv.org/abs/2606.23357) · [Open on the map](../papers.html#p151769)

Category: [Optimization & Federated Learning](../pcat/13.md) › [Large-Scale Optimization Theory](../pgroup/410.md) · Type: new method · Keywords: variational inference, structured covariance, second-order optimization, SOAP optimizer, IVON, language model pretraining

Areas: [Optimization & Algorithms](../areas/optimization.md) › Optimization Dynamics › Optimization Algorithms

## Summary
SOAP-Bubbles introduces EVON, a scalable variational learning method that yields block-diagonal Gaussian posteriors by adapting the SOAP optimizer, achieving better validation loss on language model pretraining and improved ensembling performance.

## Explained to a 5-year-old
We want computers to learn better guesses about what they don't know. Usually they make simple guesses, but we found a way to make smarter guesses that are still easy to compute. We use a trick that looks at how fast the computer learns and uses that to get better guesses. This helps the computer understand language better. It also makes the computer more accurate when it works with many examples.

## Explained to a 5-year-old, longer
Computers sometimes have to guess things they don't know. These guesses are called posteriors in the language of scientists. Usually the guesses are simple, like a single number for each thing. But better guesses can be more accurate, like knowing how different things relate to each other. The problem is that making these richer guesses is hard to do on big computers. The reason is that most easy tricks only work for simple guesses. We discovered a new trick that uses an existing learning method called SOAP. By running a special version of that method in a different space, we can get richer guesses without slowing things down. This gives us block-diagonal covariances, which capture some relationships between variables. For a simple problem like logistic regression, the new guesses are actually the best possible. When we apply it to training language models, the smarter guesses lead to lower validation loss and better performance when we combine several models.

## For a technical reader
The paper shows how to obtain richer Gaussian posteriors in variational inference by leveraging second-order optimization. It modifies the SOAP optimizer to run IVON in the eigenspace of its preconditioner, producing block-diagonal covariances at no extra cost. This yields better validation loss on language model pretraining and improves ensembling results compared to existing methods.

## Problem
Variational learning for large deep networks currently relies on diagonal Gaussian posteriors, which may be suboptimal, and there is a lack of effective, scalable methods to obtain structured covariance approximations.

## Method
The approach adapts the SOAP optimizer to run IVON in the eigenspace of the preconditioner, yielding block-diagonal Gaussian posteriors without additional computational cost, enabling scalable estimation of structured covariances for variational inference.

## Results
The approach achieves significant improvements in validation loss compared to IVON and yields greater test loss reduction when ensembling compared to IVON's posterior.

## Contributions
The work demonstrates a scalable way to obtain block-diagonal Gaussian posteriors via a connection between second-order optimization and variational inference, and shows empirical gains on language model pretraining and ensembling.

## Practical relevance
This connection enables more accurate variational inference for large models, potentially improving model performance and uncertainty estimates in practice.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151769)
