Abstract
We advocate an optimization-centric view on and introduce a novel generalization of Bayesian inference. Our inspiration is the representation of Bayes' rule as an infinite-dimensional optimization problem. First, we use it to prove an optimality result of standard Variational Inference (VI): Under the proposed view, the standard Evidence Lower Bound (ELBO) maximizing VI posterior is preferable to alternative approximations of the Bayesian posterior. Next, we argue for generalizing standard Bayesian inference to address situations where priors are ill-specified, likelihoods are imperfect, or computing power is limited. Our generalization, called the Rule of Three (RoT), is derived axiomatically and recovers existing posteriors as special cases. We study a specific case called Generalized Variational Inference (GVI), where posteriors are specified by a loss, a divergence, and a variational family. We demonstrate that GVI posteriors are tractable, consistent, and offer significant improvements in robustness and predictive performance for Bayesian Neural Networks and Deep Gaussian Processes.
Introduction
In contemporary machine learning, Bayesian inference is typically treated as a rigid mathematical identity. However, this traditional view relies on three "holy" assumptions that are frequently violated in practice: the existence of a perfectly specified prior, a perfectly specified likelihood, and the availability of infinite computational resources. In fields like Deep Learning, these assumptions often fall apart. For instance, in a Bayesian Neural Network (BNN), the prior is often an arbitrary starting point, and the likelihood can be easily derailed by data outliers.
This paper reframes Bayesian inference as a flexible optimization problem. By decoupling the components of inference, we introduce Generalized Variational Inference (GVI)—a modular framework that allows researchers to build models that are intentionally robust to the imperfections of real-world data and limited compute.
The Optimization-Centric View
The authors move away from the traditional Bayes' Rule formula, adopting instead an optimization-centric perspective. They prove that the Bayesian posterior is actually the solution to an infinite-dimensional optimization problem that balances two competing goals: fitting the observed data (Loss) and remaining close to the prior knowledge (Divergence).
From this foundation, they derive the Rule of Three (RoT). The RoT defines a posterior based on three modular, independent arguments:
- A Loss Function ($\ell$): This defines what "fitting the data" means. While standard Bayes is restricted to the negative log-likelihood, GVI can employ robust losses (such as those derived from $\beta$ or $\gamma$-divergences) to ignore outliers.
- A Divergence ($D$): This defines how we penalize moving away from the prior. GVI can swap the standard Kullback-Leibler Divergence (KLD) for alternatives like Rényi’s $\alpha$-divergence to better handle poorly specified priors.
- A Variational Family ($\Pi$): This defines the set of "feasible" distributions that are actually computable, such as the Gaussian family.
Theoretical Insights
A major contribution of this work is the proof of the Optimality of VI. The authors show that standard Variational Inference (VI) is the optimal solution to the Bayesian optimization problem when the search is restricted to a specific family. This provides VI with a more rigorous theoretical foundation than the traditional view of it being merely a "second-best" approximation.
Furthermore, GVI maintains Frequentist Consistency. The authors prove that even when generalizing the divergence and loss, the posterior behaves correctly as more data is acquired, eventually collapsing to the true parameter value. This modularity ensures that changing how one quantifies uncertainty does not ruin the ability to identify the best parameters.
Empirical Results
The GVI framework was tested across several benchmarks, demonstrating its versatility and robustness:
- Robustness to Outliers: In changepoint detection using Well-log data—a dataset notorious for noise—standard Bayesian methods often identified "fake" changes. GVI, utilizing a robust $\beta$-divergence loss, correctly ignored the noise and identified the true underlying patterns.
- Bayesian Neural Networks: On nine UCI regression datasets, GVI posteriors using Rényi’s $\alpha$-divergence ($\alpha > 1$) produced more concentrated distributions. These models significantly outperformed standard VI and other state-of-the-art approximations in both predictive accuracy (RMSE) and Negative Log Likelihood (NLL).
- Deep Gaussian Processes: By replacing the standard log-loss with a robust $\gamma$-divergence loss, GVI allowed Deep GPs to ignore non-informative parts of the latent space, leading to comprehensive performance gains across nearly all tested datasets.
Limitations and Future Work
While GVI offers a powerful modular framework, it introduces new hyperparameters, such as the values for $\alpha, \beta, \text{ and } \gamma$. Currently, these are selected via cross-validation or rules of thumb; developing automated selection methods remains a priority. Additionally, while GVI is designed for tractability, certain robust losses can be more computationally intensive than standard KLD. Future research will also explore the axiomatic uniqueness of the GVI framework to determine if other frameworks might satisfy the same foundational principles.
Summary updated