Bayesian Online Natural Gradient (BONG)

Matt Jones, Peter Chang, Kevin Murphy
2/3/2026

No official code found. Best implementation: petergchang/bong (5 stars, MIT, last commit 2024-10-30).

Abstract

We propose a novel approach to sequential Bayesian inference based on variational Bayes (VB). The key insight is that, in the online setting, we do not need to add the KL term to regularize to the prior (which comes from the posterior at the previous timestep); instead we can optimize just the expected log-likelihood, performing a single step of natural gradient descent starting at the prior predictive. We prove this method recovers exact Bayesian inference if the model is conjugate. We also show how to compute an efficient deterministic approximation to the VB objective, as well as our simplified objective, when the variational distribution is Gaussian or a sub-family, including the case of a diagonal plus low-rank precision matrix. We show empirically that our method outperforms other online VB methods in the non-conjugate setting, such as online learning for neural networks, especially when controlling for computational costs.

View on arXivView PDF

Code Implementations(1)

petergchang/bongCommunity100%
MIT

bong

50Python, Jupyter NotebookApr 22, 20241 years agoMIT

Similar Papers

Cite this paper

@article{jones2026bayesian,
  title  = {Bayesian Online Natural Gradient (BONG)},
  author = {Matt Jones and Peter Chang and Kevin Murphy},
  year   = {2026},
  eprint = {2405.19681},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.19681},
  url    = {https://arxiv.org/abs/2405.19681},
  journal = {NEURIPS 2024 2024}
}

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/2405.19681.svg)](https://codeofpaper.com/paper/2405.19681)

Discussion