# Bagel: A Fast Bayesian Online Changepoint Detection Algorithm for Linear Models via Posterior Merging

arXiv: https://arxiv.org/abs/2611.03230 · HTML: https://mlsanity.com/paper/2611.03230/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 7 of its 32 references that are in the map.
- Submitted 2 Nov 2026.

## Builds on (most cited first, 7 of 7)

- [DynamoLLM: Designing LLM Inference Clusters for Performance and Energy Efficiency](https://mlsanity.com/paper/2408.00741/) (2024)
- [Fast Online Changepoint Detection via Functional Pruning CUSUM statistics](https://mlsanity.com/paper/2110.08205/) (2021)
- [A Log-Linear Non-Parametric Online Changepoint Detection Algorithm based on Functional Pruning](https://mlsanity.com/paper/2302.02718/) (2023)
- [Fast Nonconvex Deconvolution of Calcium Imaging Data](https://mlsanity.com/paper/1802.07380/) (2018)
- [Kullback-Leibler Divergence for the Normal-Gamma Distribution](https://mlsanity.com/paper/1611.01437/) (2016)
- [Online Change-Point Detection in High-Dimensional Covariance Structure with Application to Dynamic Networks](https://mlsanity.com/paper/1911.07762/) (2019)
- [Scalable Multiple Changepoint Detection for Functional Data Sequences](https://mlsanity.com/paper/2008.01889/) (2020)

## Abstract (arXiv)

Bayesian online changepoint detection provides a natural framework for quantifying uncertainty about whether and when a change has occurred. It also enables the use of prior information which can increase detection power. Exact Bayesian inference sequentially updates the posterior of whether and when a change has occurred. We present a unified approach to calculating and updating this posterior for a class of regression models covering standard changepoint scenarios, such as changes in mean and slope, whilst also allowing common structure such as seasonal effects. However, naive implementation has a computational cost that increases linearly over time. We, further, introduce approximate updates that keep this cost constant. These are based on novel ideas of merging changepoint times, and are an alternative to existing pruning approaches. We show that merging enables better approximations of the posterior of when a change occurs. Furthermore, we introduce a novel condition for merging that accounts for both the posterior probability of the changepoint times and the similarity of their corresponding post-change parameters. We show that this is more accurate than conditions that only consider the former. We demonstrate the advantage of our approach on simulated data, and the Azure LLM inference traces.
