Distribution Transformers: Fast Approximate Bayesian Inference With On-The-Fly Prior Adaptation
Not on the map. Why?
Abstract (arXiv)
While Bayesian inference provides a principled framework for reasoning under uncertainty, its widespread adoption is limited by the intractability of exact posterior computation, necessitating the use of approximate inference. However, existing methods are often computationally expensive, or demand costly retraining when priors change, limiting their utility, particularly in sequential inference problems such as real-time sensor fusion. To address these challenges, we introduce the Distribution Transformer -- a novel architecture that can learn arbitrary distribution-to-distribution mappings. Our method can be trained to map a prior to the corresponding posterior, conditioned on some dataset -- thus performing approximate Bayesian inference. Our novel architecture represents a prior distribution as a (universally-approximating) Gaussian Mixture Model (GMM), and transforms it into a GMM representation of the posterior. The components of the GMM attend to each other via self-attention, and to the datapoints via cross-attention. We demonstrate that Distribution Transformers both maintain flexibility to vary the prior, and significantly reduces computation times-from minutes to milliseconds-while achieving log-likelihood performance on par with or superior to existing approximate inference methods across tasks such as sequential inference, quantum system parameter inference, and Gaussian Process predictive posterior inference with hyperpriors.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 36 of its 76 references that are in the map. First posted on arXiv 4 Feb 2025.
Builds on
36 of 76 references.
References · 36
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2015Variational Inference with Normalizing Flowscited by 2,161
- 2016Variational Inference: A Review for Statisticianscited by 1,466
- 2019Aleatoric and Epistemic Uncertainty in Machine Learning: An Introduction to Concepts and Methodscited by 903
- 2017Masked Autoregressive Flow for Density Estimationcited by 680
- 2021A Survey of Uncertainty in Deep Neural Networkscited by 675
- 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
- 2019The frontier of simulation-based inferencecited by 490
24 more
- 2018Conditional Neural Processescited by 421
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2021Transformers Can Do Bayesian Inferencecited by 338
- 2013Black Box Variational Inferencecited by 317
- 2018Neural Processescited by 307
- 2019Attentive Neural Processescited by 280
- 2018Sequential Neural Likelihood: Fast Likelihood-free Inference with Autoregressive Flowscited by 217
- 2019Automatic Posterior Transformation for Likelihood-Free Inferencecited by 216
- 2013Expectation Propagation for approximate Bayesian inferencecited by 172
- 2017Flexible statistical inference for mechanistic models of neural dynamicscited by 162
- 2020BayesFlow: Learning complex stochastic models with invertible neural networkscited by 139
- 2022Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modelingcited by 126
- 2023Flow Matching for Scalable Simulation-Based Inferencecited by 97
- 2021A survey on high-dimensional Gaussian process modeling with application to Bayesian optimizationcited by 76
- 2024All-in-one simulation-based inferencecited by 71
- 2022Sequential Neural Score Estimation: Likelihood-Free Inference with Conditional Score Based Diffusion Modelscited by 50
- 2025Can Transformers Learn Full Bayesian Inference in Context?cited by 30
- 2024Amortized Probabilistic Conditioning for Optimization, Simulation and Inferencecited by 22
- 2019Meta-Amortized Variational Inference and Learningcited by 21
- 2023Sensitivity-Aware Amortized Bayesian Inferencecited by 20
- 2022Amortized Variational Inference: A Systematic Reviewcited by 16
- 2020Meta-Learning with Shared Amortized Variational Inferencecited by 14
- 2022Portfolio Construction with Gaussian Mixture Returns and Exponential Utility via Convex Optimizationcited by 4
- 2024Fast and Reliable Probabilistic Reflectometry Inversion with Prior-Amortized Neural Posterior Estimationcited by 4
Built on by
Citing papers per year: 2025: 7; 2026: 5.
12 papers.
- 2025Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Modelscited by 13
- 2025ALINE: Joint Amortization for Bayesian Inference and Active Data Acquisitioncited by 8
- 2025Efficient Autoregressive Inference for Transformer Probabilistic Modelscited by 4
- 2025End-to-End Analysis of Charge Stability Diagrams with Transformerscited by 3
- 2025PriorGuide: Test-Time Prior Adaptation for Simulation-Based Inferencecited by 3
- 2026One Operator for Many Densities: Amortized Approximation of Conditioning by Neural Operatorscited by 2
- 2025metabeta -- A fast neural model for Bayesian mixed-effects regressioncited by 1
- 2025Transformers can do Bayesian Clusteringcited by 1
- 2026α-PFN: Fast Entropy Search via In-Context Learningcited by 1
- 2026Amortized Factor Inference Networks for Posterior Inferencecited by 0
- 2026Multi-Task Bayesian In-Context Learningcited by 0
- 2026Guidance for Prior Change via Density Ratio Estimationcited by 0
- 2026Guidance for Prior Change via Density Ratio Estimation22 Aug 2026
- 2026Multi-Task Bayesian In-Context Learning18 Jun 2026
- 2026α-PFN: Fast Entropy Search via In-Context Learning5 Jun 2026
- 2026Amortized Factor Inference Networks for Posterior Inference26 May 2026
- 2026One Operator for Many Densities: Amortized Approximation of Conditioning by Neural Operators7 May 2026
- 2025Transformers can do Bayesian Clustering28 Oct 2025
- 2025PriorGuide: Test-Time Prior Adaptation for Simulation-Based Inference15 Oct 2025
- 2025Efficient Autoregressive Inference for Transformer Probabilistic Models10 Oct 2025
- 2025metabeta -- A fast neural model for Bayesian mixed-effects regression8 Oct 2025
- 2025End-to-End Analysis of Charge Stability Diagrams with Transformers21 Aug 2025
- 2025ALINE: Joint Amortization for Bayesian Inference and Active Data Acquisition8 Jun 2025
- 2025Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models24 Apr 2025