Skip to content
DraconiticResearch
Search Sources API
203,234 studies31 sourcesUpdated 41 min ago
PreprintCC BY 4.0arXiv

BAM! Bayesian Anything Model: a foundation model for generative computational imaging

Abstract

Generative models are transforming Bayesian computational imaging, yet the field still lacks physics-aware foundation models. Current practice falls into two camps. Large foundation image models are deployed as plug-and-play priors with zero-shot approximate likelihood guidance, which introduces significant bias and computational cost. Physics-aware generative models avoid this bias, but each is tied to a specific dataset, task and instrument. We introduce BAM (Bayesian Anything Model), a lightweight foundation model for few-step, physics-aware posterior sampling that generalises robustly to unseen data and tasks, zero-shot or with minimal finetuning. BAM upgrades the operator-conditioned Reconstruct Anything Model (RAM) backbone (Terris et al.) into a conditional flow map, so instrument physics is specified at inference time rather than fixed during training. BAM has just 36M parameters and is pre-trained jointly on large image corpora and libraries of forward operators. A single network then draws posterior samples in a few steps, with no likelihood approximation and no guidance weights to tune. Across linear inverse problems on FFHQ, AFHQ, LSUN, DIV2K and the Kohler camera-shake benchmark, BAM outperforms in just 3 steps both specialised models and leading zero-shot methods in sample quality, at a fraction of their computational cost. BAM gives the community an accessible entry point to generative computational imaging, lowers the economic and environmental cost of training imaging models, and opens a new path for research on physics-aware Bayesian computational imaging. Official page: https://bayesian-anything-model.github.io/

Related

  1. Modular Bayesian Foundation Models: Bayesian time series encoders for OOD detection, routing and forecasting
    Mame Diarra Toure, Quang Hung Pham, Mohamed Ryad Zemouri +3
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  2. BayesNDE: Bayesian Generative Modeling for Neural Density Estimation
    Chenglin Li, Qiao Liu
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  3. BGM-IV: AI-Powered Bayesian Generative Modeling for Instrumental Variable Regression with High-Dimensional Covariates
    Guyue Luo, Haidong Lu, Andrew J. Loza +1
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  4. Generative modelling meets Bayesian inference: a new paradigm for inverse problems
    Alain Oliviero-Durmus, Yazid Janati, Eric Moulines +2
    Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering SciencesPeer-reviewedCC BY3 citedStatisticsHAL
  5. Generative Priors Conditioned on Natural Language for Bayesian Inversion in PDEs
    Pengyu Zhang, Mark Girolami, Arnaud Vadeboncoeur
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
BibTeX
@misc{spagnoletti2026bayesian,
  title = {{BAM! Bayesian Anything Model: a foundation model for generative computational imaging}},
  author = {Alessio Spagnoletti and Charlesquin Kemajou Mbakam and Jonathan Spence and Andrés Almansa and Marcelo Pereyra},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2609.39660},
  eprint = {2609.39660},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.39660},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - BAM! Bayesian Anything Model: a foundation model for generative computational imaging
AU  - Alessio Spagnoletti
AU  - Charlesquin Kemajou Mbakam
AU  - Jonathan Spence
AU  - Andrés Almansa
AU  - Marcelo Pereyra
PY  - 2026
DA  - 2026/09/30
PB  - arXiv
DO  - 10.48550/arxiv.2609.39660
UR  - https://arxiv.org/abs/2609.39660
AB  - Generative models are transforming Bayesian computational imaging, yet the field still lacks physics-aware foundation models. Current practice falls into two camps. Large foundation image models are deployed as plug-and-play priors with zero-shot approximate likelihood guidance, which introduces significant bias and computational cost. Physics-aware generative models avoid this bias, but each is tied to a specific dataset, task and instrument. We introduce BAM (Bayesian Anything Model), a lightweight foundation model for few-step, physics-aware posterior sampling that generalises robustly to unseen data and tasks, zero-shot or with minimal finetuning. BAM upgrades the operator-conditioned Reconstruct Anything Model (RAM) backbone (Terris et al.) into a conditional flow map, so instrument physics is specified at inference time rather than fixed during training. BAM has just 36M parameters and is pre-trained jointly on large image corpora and libraries of forward operators. A single network then draws posterior samples in a few steps, with no likelihood approximation and no guidance weights to tune. Across linear inverse problems on FFHQ, AFHQ, LSUN, DIV2K and the Kohler camera-shake benchmark, BAM outperforms in just 3 steps both specialised models and leading zero-shot methods in sample quality, at a fraction of their computational cost. BAM gives the community an accessible entry point to generative computational imaging, lowers the economic and environmental cost of training imaging models, and opens a new path for research on physics-aware Bayesian computational imaging. Official page: https://bayesian-anything-model.github.io/
ER  -