TL;DR
The authors introduce SOAP-Bubbles, a method for estimating structured (non-diagonal) weight uncertainty in large neural networks with minimal computational overhead. By running a variational optimizer within the eigenspace of the SOAP preconditioner, they create a new optimizer called EVON that scales to language models and provides superior uncertainty estimates for free.
What Problem Does This Paper Address?
Standard deep learning typically provides "point estimates"—a single set of weights that minimizes a loss function. However, understanding weight uncertainty (the range of plausible weights) is crucial for tasks like model merging, reinforcement learning exploration, and improving model robustness.
The gold standard for uncertainty is the Bayesian posterior, but calculating it for neural networks is notoriously difficult. Most scalable methods (like IVON) rely on "diagonal" Gaussian approximations, assuming each weight is independent. This is computationally cheap but inaccurate because weights in neural networks are highly correlated. "Structured" methods that capture these correlations (like K-FAC) exist but are often too slow, memory-intensive, or complex to implement for modern architectures like Large Language Models (LLMs).
Methods
The paper bridges this gap by combining two existing ideas:
- SOAP Optimizer: A state-of-the-art optimizer that uses Kronecker-factored preconditioners to "whiten" gradients, operating effectively in a rotated eigenspace where parameters are less correlated.
- IVON: A variational method that adapts Adam-like updates to estimate a diagonal Gaussian posterior.
The authors' key innovation, EVON (Eigenspace-Variational Online Newton), runs the diagonal IVON algorithm directly inside the eigenspace defined by SOAP. Because this eigenspace is rotated relative to the original weight space, a simple diagonal distribution in the eigenspace corresponds to a complex, non-diagonal "SOAP-Bubble" distribution in the original space.
Crucially, EVON requires only minor modifications to the SOAP codebase and maintains nearly the same computational efficiency.
Datasets
The authors evaluated EVON across a wide range of tasks:
- Language Modeling: Pretraining NanoGPT (125M parameters) on FineWeb-1B and Llama-based models (134M parameters) on a 2B token subset of C4.
- Vision (CLIP Finetuning): Finetuning CLIP ViT-B/16 on 8 classification benchmarks: CARS, DTD, EuroSAT, GTSRB, MNIST, RESISC45, SUN397, and SVHN.
- Illustrative Tasks: Binary logistic regression on USPS digits and multiclass regression on the UCI Iris dataset.
Key Insights and Ideas
- Leveraging Eigenspaces for Free Correlation: The most elegant insight is that SOAP’s preconditioner already identifies the directions of highest correlation. By doing simple diagonal math in that specific coordinate system, you capture inter-parameter correlations in the original weight space without ever explicitly calculating a massive $P \times P$ covariance matrix.
- Theoretical Exactness: The authors prove that for linear models and binary logistic regression, EVON can actually recover the exact full-Gaussian posterior, a feat diagonal methods cannot achieve.
- Hessian vs. Squared Gradients: Unlike Adam or SOAP, which use squared gradients, EVON uses a Hessian estimator. This change is mathematically necessary to target the true variational objective and avoid biased solutions.
Key Results
- Superior LLM Training: On NanoGPT and Llama, EVON reached a lower validation loss faster than both the standard SOAP optimizer and the diagonal IVON method.
- Better Uncertainty Quantification: When performing "Bayesian Model Averaging" (averaging predictions from multiple weight samples), EVON significantly outperformed IVON. The "SOAP-Bubble" samples provided much more useful diversity than samples from a diagonal posterior.
- State-of-the-Art Finetuning: In the CLIP vision benchmarks, EVON (specifically the EVON@32 variant using 32 samples) frequently achieved the best scores in accuracy, Negative Log-Likelihood, and Brier score across almost all datasets.
Limitations and Future Work
- Hyperparameter Sensitivity: EVON introduces a scaling parameter ($\zeta$) from the variational objective. If set too large, the posterior collapses; if too small, training becomes unstable. The authors note that developing "scaling laws" to predict the optimal $\zeta$ is a key area for future work.
- Distributed Implementation: While theoretically efficient, implementing the noisy gradient aggregation required for the Hessian estimator in a distributed (multi-GPU) environment requires careful engineering to avoid communication bottlenecks.
- Downstream Applications: The authors suggest that the rich uncertainty provided by SOAP-Bubbles could be highly beneficial for continual learning and model merging, which remain to be fully explored.
Summary updated