Martingale Posterior Neural Networks for Fast Sequential Decision Making

Gerardo Duran-Martin, Leandro Sánchez-Betancourt, Álvaro Cartea, Kevin Murphy
6/13/2025
cs.LGstat.ML

No official code found. Best implementation: gerdm/martingale-posterior-neural-networks (25 stars, MIT, last commit 2025-11-13).

Abstract

We introduce scalable algorithms for online learning of neural network parameters and Bayesian sequential decision making. Unlike classical Bayesian neural networks, which induce predictive uncertainty through a posterior over model parameters, our methods adopt a predictive-first perspective based on martingale posteriors. In particular, we work directly with the one-step-ahead posterior predictive, which we parameterize with a neural network and update sequentially with incoming observations. This decouples Bayesian decision-making from parameter-space inference: we sample from the posterior predictive for decision making, and update the parameters of the posterior predictive via fast, frequentist Kalman-filter-like recursions. Our algorithms operate in a fully online, replay-free setting, providing principled uncertainty quantification without costly posterior sampling. Empirically, they achieve competitive performance-speed trade-offs in non-stationary contextual bandits and Bayesian optimization, offering 10-100 times faster inference than classical Thompson sampling while maintaining comparable or superior decision performance.

View on arXivView PDF

Code Implementations(1)

MIT

Martingale posterior neural networks for fast sequential decision making @ Neurips 2025

251Shell, PythonFeb 24, 202511 months agoMIT

Cite this paper

@article{duranmartin2025martingale,
  title  = {Martingale Posterior Neural Networks for Fast Sequential Decision Making},
  author = {Gerardo Duran-Martin and Leandro Sánchez-Betancourt and Álvaro Cartea and Kevin Murphy},
  year   = {2025},
  eprint = {2506.11898},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.11898v2},
  journal = {NEURIPS 2025 2025}
}

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

Discussion