Generalized Hierarchical Bayesian Segmentation with Irregular Designs, Multi-Sequence Hierarchies, and Grouped/Latent-Group Designs
Organizations: sAIm Labs
Abstract
Bayesian change-point and segmentation models provide uncertainty-aware piecewise-constant representations of ordered data, but exact inference is often limited to narrow likelihood classes, single sequences, or index-uniform designs. We present BayesBreak, a modular offline Bayesian segmentation framework that separates local block scoring from global inference: each candidate block supplies a marginal likelihood and any needed moment numerators, while a dynamic program combines these scores to compute posteriors over segment counts, boundaries, and latent signals. For weighted exponential-family likelihoods with conjugate priors, block evidences and posterior moments are available in closed form from cumulative sufficient statistics, enabling exact sum-product inference for , , boundary marginals, and Bayes regression curves. We distinguish these summaries from the joint MAP segmentation, recovered by a separate max-sum recursion. BayesBreak supports design-aware partition priors for irregular observations, exact pooling across replicates with shared boundaries, and latent-template mixtures with exact EM updates. For non-conjugate GLM blocks, the same DP layer can use deterministic local approximations such as Laplace, variational methods, EP, or quadrature. We prove a posterior-odds stability bound: uniform per-block log-evidence error perturbs -odds and boundary-odds by at most and . Validation includes synthetic recovery, calibration, and scaling experiments, plus four real-data illustrations: well-log geology, array-CGH copy number, equity-return volatility, and CpG-atlas methylation.
Figures & tables
| Symbol | Meaning |
| Number of observations on the ordered design. | |
| Design point / location of observation . | |
| Observation at location (single-sequence case). | |
| Deterministic exposure, trial-count, or precision weight when required by the observation model. Unless otherwise stated, point-observation models use . | |
| ; | Number of segments; maximum segment count considered by the DP. |
| Boundary vector, with . |
| Family | Prior | Posterior | Block evidence | Mean |
| Gaussian | closed-form normal ratio | |||
| Poisson | ||||
| Binomial | ||||
| NegBin | ||||
| Beta-obs | (1D quadrature) | Gauss–Legendre nodes | from quadrature |
| Evaluation objective | Metric |
| Boundary recovery | Precision / Recall / F1 at tolerance |
| Signal recovery | MSE between estimated and true latent signal |
| Posterior calibration | Calibration curve / ECE for |
| Model fit quality | (marginal evidence) or predictive NLL |
| Runtime | Wall-clock time vs. and |
| Quantity | Value |
| Selected ( k_ml_ ) | 4 |
| Posterior mean | 4.742 |
| MAP | 4 |
| -18.031 |
| Family | n | F1@ | MAE | MSE | |||
| Gaussian | 120 | 3 | 3 | 0.968 | 0.00 | 0.0023 | 0.191 |
| Poisson | 120 | 3 | 4 | 0.777 | 0.20 | 0.4501 | 2.162 |
| Binomial | 120 | 3 | 3 | 0.960 | 0.06 | 0.0004 | 2.108 |
| Beta-valued | 120 | 3 | 3 | 1.000 | 0.00 | 0.0001 | 2.620 |
| Method | time (s) | F1@ | ||
| quadrature | 0.000 | 0.108 | 0.286 | 6 |
| laplace | 4.081 | 0.066 | 0.286 | 6 |
| jj | 4.076 | 0.087 | 0.500 | 3 |
| ep | 17.654 | 0.077 | 0.500 | 7 |
| pg_vb | 4.076 | 0.090 | 0.500 | 3 |
| n | mean (s) | std (s) | |
| 50 | 20 | 0.0718 | 0.0010 |
| 100 | 20 | 0.1530 | 0.0024 |
| 200 | 20 | 0.3200 | 0.0049 |
| 400 | 20 | 0.6681 | 0.0029 |
| Configuration | MAP evidence | ECE (boundary) | Runtime (s) | |
| Index-uniform prior, | — | — | — | — |
| Length-aware prior, | — | — | — | — |
| Strategy | Boundary F1 | Boundary MAE | Pooled log-evidence | Runtime (s) |
| Independent per-subject (no pooling) | — | — | — | — |
| Shared boundaries, subject-specific | — | — | — | — |
| Block model | Log evidence | Visual alignment with known macro events | |
| Gaussian on | — | — | — |
| Poisson on threshold crossings | — | — | — |
| Region / cell type | Held-out log-predictive | Boundary F1 vs. atlas | |
| Region A, cell type 1 | — | — | — |
| Region A, cell type 2 | — | — | — |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Theme | Representative papers | Annotation relative to BayesBreak |
|---|---|---|
| Foundational product partitions | Barry and Hartigan (1992) ; Barry and Hartigan (1993) | Introduced the product-partition view of Bayesian changepoint analysis. BayesBreak adopts exactly this segment-factorization principle, but repackages it around a reusable block-evidence interface that is intended to work across multiple observation families and prediction tasks. |
| Exact offline DP | Fearnhead (2006) ; Hutter (2007) | These are the closest conceptual ancestors of the exact offline core. Fearnhead (2006) emphasizes exact posterior recursion for changepoints, while Hutter (2007) highlights Bayesian curve summaries and evidence-based model comparison. BayesBreak systematizes both inside a single modular framework and makes the distinction between sum-product summaries and joint MAP segmentations explicit. |
| Segment dependence and richer local models | Fearnhead and Liu (2011) ; Ruggieri and Lawrence (2014) | These papers show how offline Bayesian segmentation can be enriched beyond i.i.d. block means, for example by allowing dependence across neighboring segments or by fitting piecewise polynomial regression. They motivate the claim that the real bottleneck is the local block integral, not the DP itself. |
| Frequentist exact partitioning | Auger and Lawrence (1989) ; Jackson et al. (2005) ; Killick et al. (2012) | These methods are critical baselines for optimization-based segmentation. They solve related partitioning problems efficiently but do not natively provide posterior probabilities over boundary locations or segment counts. BayesBreak differs mainly in inferential target rather than in the use of dynamic programming per se. |
| Penalized and multiscale segmentation | Tibshirani et al. (2005) ; Bleakley and Vert (2011) ; Frick et al. (2014) ; Fryzlewicz (2014) | These approaches offer strong algorithmic or confidence guarantees, especially in large-scale or multisequence settings. They are natural comparators for future empirical work, but they optimize penalized objectives or detection rules rather than the posterior quantities emphasized here. |
| Online and trans-dimensional Bayes | Adams and MacKay (2007) ; Green (1995) ; Denison et al. (1998) | These references represent two alternative Bayesian regimes: streaming detection and fully flexible posterior simulation over model dimension. BayesBreak instead targets exact offline inference when block marginalization is feasible, and deterministic approximations when only the block integral is intractable. |
Change-Point Detection
Change-point detection identifies when the statistical behavior or underlying regime of a sequence changes.
See all 83 papers