BAM! Bayesian Anything Model: a foundation model for generative computational imaging
Alessio Spagnoletti, Charlesquin Kemajou Mbakam, Jonathan Spence, Andrés Almansa, Marcelo Pereyra
Key points
From the paper's conclusion- Introduced BAM (Bayesian Anything Model), a lightweight foundation model for few-step, physics-aware posterior sampling that generalises robustly to unseen data and tasks.
- Reported that BAM outperforms specialised models and leading zero-shot methods in sample quality, at a fraction of their computational cost across linear inverse problems.
- Lowered the economic and environmental cost of training imaging models.
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/
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Introduced BAM (Bayesian Anything Model), a lightweight foundation model for few-step, physics-aware posterior sampling that generalises robustly to unseen data and tasks.
- Reported that BAM outperforms specialised models and leading zero-shot methods in sample quality, at a fraction of their computational cost across linear inverse problems.
- Lowered the economic and environmental cost of training imaging models.
Readers' thoughts
No reader thoughts yet.
Related papers
- Image Modeling: From Handcrafted Priors to Foundation Image ModelsarXiv · 2026
- Spanning Diffusion and Flow-based Posterior Sampling via Exact Gaussian ConditioningarXiv · 2026
- Posterior sampling by source-space MCMC via prior-based few-step transport mapsarXiv · 2026
- Macrocanonical Generator Networks: Data-Efficient Neural Surrogates for Amortized Physics SimulationarXiv · 2026
- Empirical Bayes Flow Matching for Continuous Cryo-EM HeterogeneityarXiv · 2026
- Accelerating posterior sampling in Bayesian inverse problems with diffusion models: an online-offline perspectivearXiv · 2026