mlsanityData to 7 Oct 2026

Distribution Transformers: Fast Approximate Bayesian Inference With On-The-Fly Prior Adaptation

arXiv 2502.02463 ↗First posted 4 Feb 2025stat.ML cs.LGcited by 12

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  6. 2015Variational Inference with Normalizing Flowscited by 2,161
  7. 2016Variational Inference: A Review for Statisticianscited by 1,466
  8. 2019Aleatoric and Epistemic Uncertainty in Machine Learning: An Introduction to Concepts and Methodscited by 903
  9. 2017Masked Autoregressive Flow for Density Estimationcited by 680
  10. 2021A Survey of Uncertainty in Deep Neural Networkscited by 675
  11. 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
  12. 2019The frontier of simulation-based inferencecited by 490
24 more
  1. 2018Conditional Neural Processescited by 421
  2. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  3. 2021Transformers Can Do Bayesian Inferencecited by 338
  4. 2013Black Box Variational Inferencecited by 317
  5. 2018Neural Processescited by 307
  6. 2019Attentive Neural Processescited by 280
  7. 2018Sequential Neural Likelihood: Fast Likelihood-free Inference with Autoregressive Flowscited by 217
  8. 2019Automatic Posterior Transformation for Likelihood-Free Inferencecited by 216
  9. 2013Expectation Propagation for approximate Bayesian inferencecited by 172
  10. 2017Flexible statistical inference for mechanistic models of neural dynamicscited by 162
  11. 2020BayesFlow: Learning complex stochastic models with invertible neural networkscited by 139
  12. 2022Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modelingcited by 126
  13. 2023Flow Matching for Scalable Simulation-Based Inferencecited by 97
  14. 2021A survey on high-dimensional Gaussian process modeling with application to Bayesian optimizationcited by 76
  15. 2024All-in-one simulation-based inferencecited by 71
  16. 2022Sequential Neural Score Estimation: Likelihood-Free Inference with Conditional Score Based Diffusion Modelscited by 50
  17. 2025Can Transformers Learn Full Bayesian Inference in Context?cited by 30
  18. 2024Amortized Probabilistic Conditioning for Optimization, Simulation and Inferencecited by 22
  19. 2019Meta-Amortized Variational Inference and Learningcited by 21
  20. 2023Sensitivity-Aware Amortized Bayesian Inferencecited by 20
  21. 2022Amortized Variational Inference: A Systematic Reviewcited by 16
  22. 2020Meta-Learning with Shared Amortized Variational Inferencecited by 14
  23. 2022Portfolio Construction with Gaussian Mixture Returns and Exponential Utility via Convex Optimizationcited by 4
  24. 2024Fast and Reliable Probabilistic Reflectometry Inversion with Prior-Amortized Neural Posterior Estimationcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 5.

12 papers.