Bayesian Ensembling: Insights from Online Optimization and Empirical Bayes

Daniel Waxman, Fernando Llorente, Petar M. Djurić
5/21/2025
cs.LGstat.COstat.ME

No official code found. Best implementation: DanWaxman/OnlineBayesianStacking (0 stars, MIT, last commit 2026-01-19).

Abstract

We revisit the classical problem of Bayesian ensembles and address the challenge of learning optimal combinations of Bayesian models in an online, continual learning setting. To this end, we reinterpret existing approaches such as Bayesian model averaging (BMA) and Bayesian stacking through a novel empirical Bayes lens, shedding new light on the limitations and pathologies of BMA. Further motivated by insights from online optimization, we propose Online Bayesian Stacking (OBS), a method that optimizes the log-score over predictive distributions to adaptively combine Bayesian models. A key contribution of our work is establishing a novel connection between OBS and portfolio selection, bridging Bayesian ensemble learning with a rich, well-studied theoretical framework that offers efficient algorithms and extensive regret analysis. We further clarify the relationship between OBS and online BMA, showing that they optimize related but distinct cost functions. Through theoretical analysis and empirical evaluation, we identify scenarios where OBS outperforms online BMA and provide principled guidance on when practitioners should prefer one approach over the other.

View on arXivView PDF

Code Implementations(1)

MIT

[TMLR 2026] Online Bayesian Ensembles via Online Optimization and Empirical Bayes

00Shell, PythonMar 31, 20259 months agoMIT

Similar Papers

Cite this paper

@article{waxman2025bayesian,
  title  = {Bayesian Ensembling: Insights from Online Optimization and Empirical Bayes},
  author = {Daniel Waxman and Fernando Llorente and Petar M. Djurić},
  year   = {2025},
  eprint = {2505.15638},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.15638v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.15638.svg)](https://codeofpaper.com/paper/2505.15638)

Discussion