Recursive PAC-Bayes: A Frequentist Approach to Sequential Prior Updates with No Information Loss

Yi-Shan Wu, Yijie Zhang, Badr-Eddine Ch'erief-Abdellatif, Yevgeny Seldin
2/3/2026

No official code found. Best implementation: pyijiezhang/rpb (2 stars, MIT, last commit 2024-11-05).

Abstract

PAC-Bayesian analysis is a frequentist framework for incorporating prior knowledge into learning. It was inspired by Bayesian learning, which allows sequential data processing and naturally turns posteriors from one processing step into priors for the next. However, despite two and a half decades of research, the ability to update priors sequentially without losing confidence information along the way remained elusive for PAC-Bayes. While PAC-Bayes allows construction of data-informed priors, the final confidence intervals depend only on the number of points that were not used for the construction of the prior, whereas confidence information in the prior, which is related to the number of points used to construct the prior, is lost. This limits the possibility and benefit of sequential prior updates, because the final bounds depend only on the size of the final batch. We present a novel and, in retrospect, surprisingly simple and powerful PAC-Bayesian procedure that allows sequential prior updates with no information loss. The procedure is based on a novel decomposition of the expected loss of randomized classifiers. The decomposition rewrites the loss of the posterior as an excess loss relative to a downscaled loss of the prior plus the downscaled loss of the prior, which is bounded recursively. As a side result, we also present a generalization of the split-kl and PAC-Bayes-split-kl inequalities to discrete random variables, which we use for bounding the excess losses, and which can be of independent interest. In empirical evaluation the new procedure significantly outperforms state-of-the-art.

View on arXivView PDF

Code Implementations(1)

pyijiezhang/rpbCommunity100%
MIT
20Python, Jupyter NotebookMay 22, 20241 years agoMIT

Cite this paper

@article{wu2026recursive,
  title  = {Recursive PAC-Bayes: A Frequentist Approach to Sequential Prior Updates with No Information Loss},
  author = {Yi-Shan Wu and Yijie Zhang and Badr-Eddine Ch'erief-Abdellatif and Yevgeny Seldin},
  year   = {2026},
  eprint = {2405.14681},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.14681},
  url    = {https://arxiv.org/abs/2405.14681},
  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.14681.svg)](https://codeofpaper.com/paper/2405.14681)

Discussion