Lune

ICML2026Top-tier venue

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

George Whittle, Juliusz Ziomek, Jacob Rawling, Michael A Osborne

Abstract

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 expected 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Second cites Transformers Can Do Bayesian Inference
  • TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Second cites Language Models are Few-Shot Learners
  • \alpha-PFN: Fast Entropy Search via In-Context Learning cites Transformers Can Do Bayesian Inference
  • \alpha-PFN: Fast Entropy Search via In-Context Learning cites ALINE: Joint Amortization for Bayesian Inference and Active Data Acquisition
  • Transformers Can Do Bayesian Inference cites Language Models are Few-Shot Learners
  • Efficient Autoregressive Inference for Transformer Probabilistic Models cites TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Second
  • Efficient Autoregressive Inference for Transformer Probabilistic Models cites Transformers Can Do Bayesian Inference
  • Efficient Autoregressive Inference for Transformer Probabilistic Models cites Language Models are Few-Shot Learners
  • Efficient Autoregressive Inference for Transformer Probabilistic Models cites Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modeling
  • ALINE: Joint Amortization for Bayesian Inference and Active Data Acquisition cites Transformers Can Do Bayesian Inference
  • ALINE: Joint Amortization for Bayesian Inference and Active Data Acquisition cites Efficient Autoregressive Inference for Transformer Probabilistic Models
  • ALINE: Joint Amortization for Bayesian Inference and Active Data Acquisition cites Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modeling
  • PriorGuide: Test-Time Prior Adaptation for Simulation-Based Inference cites Flow Matching for Scalable Simulation-Based Inference
  • PriorGuide: Test-Time Prior Adaptation for Simulation-Based Inference cites Transformers Can Do Bayesian Inference
  • PriorGuide: Test-Time Prior Adaptation for Simulation-Based Inference cites Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models
  • PriorGuide: Test-Time Prior Adaptation for Simulation-Based Inference cites Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modeling
  • Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models cites TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Second
  • Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models cites Flow Matching for Scalable Simulation-Based Inference
  • Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models cites Transformers Can Do Bayesian Inference
  • Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models cites Language Models are Few-Shot Learners
  • Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modeling cites Transformers Can Do Bayesian Inference
  • Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modeling cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation ModelsJulius Vetter, Manuel Glöckler, Daniel Gedon, Jakob H. MackeNeurIPS 2025 · 14 citations
  2. ALINE: Joint Amortization for Bayesian Inference and Active Data AcquisitionDaolang Huang, Xinyi Wen, Ayush Bharti, Samuel Kaski et al.NeurIPS 2025 · 8 citations
  3. Efficient Autoregressive Inference for Transformer Probabilistic ModelsConor Hassan, Nasrulloh R. B. S. Loka, Cen-You Li, Daolang Huang et al.ICLR 2026 · 5 citations
  4. PriorGuide: Test-Time Prior Adaptation for Simulation-Based InferenceYang Yang, Severi Rissanen, Paul Edmund Chang, Nasrulloh Ratu Bagus Satrio Loka et al.ICLR 2026 · 3 citations
  5. α\alpha-PFN: Fast Entropy Search via In-Context LearningHerilalaina Rakotoarison, Steven Adriaensen, Tom Viering, Carl Hvarfner et al.ICML 2026

Builds on11

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Transformers Can Do Bayesian InferenceSamuel Müller, Noah Hollmann, Sebastian Pineda-Arango, Josif Grabocka et al.ICLR 2022 · 287 citations
  3. Flow Matching for Scalable Simulation-Based InferenceJonas Wildberger, Maximilian Dax, Simon Buchholz, Stephen R. Green et al.NeurIPS 2023 · 153 citations
  4. Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence ModelingTung Nguyen, Aditya GroverICML 2022 · 148 citations
  5. TabPFN: A Transformer That Solves Small Tabular Classification Problems in a SecondNoah Hollmann, Samuel Müller, Katharina Eggensperger, Frank HutterICLR 2023 · 96 citations

Related papers

  1. Multi-Task Bayesian In-Context LearningQingyang Zhu, Eric Oermann, Kyunghyun ChoICML 2026
  2. Calibrating Transformers via Sparse Gaussian ProcessesWenlong Chen, Yingzhen LiICLR 2023
  3. Transformers can optimally learn regression mixture modelsReese Pathak, Rajat Sen, Weihao Kong, Abhimanyu DasICLR 2024 · 16 citations
  4. Transformers as Unsupervised Learning Algorithms: A study on Gaussian MixturesZhiheng Chen, Ruofan Wu, Guanhua FangICLR 2026 · 2 citations
  5. TACTiS: Transformer-Attentional Copulas for Time SeriesAlexandre Drouin, Étienne Marcotte, Nicolas ChapadosICML 2022 · 55 citations
Dusk over the sea between two cliffs drawn in fine vertical lines