mlsanityData to 7 Oct 2026

Multi-Task Bayesian In-Context Learning

arXiv 2606.20538 ↗First posted 18 Jun 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Bayesian predictive inference provides a principled framework for uncertainty quantification, data efficiency, and robust generalization. However, exact inference is often intractable, and scalable approximations may remain computationally expensive or require restrictive modeling assumptions that degrade predictive performance. Prior-Data Fitted and in-context models have recently emerged as an amortized alternative by learning to map datasets directly to predictive distributions, but existing approaches are tightly coupled to the support of the training prior and lack explicit mechanisms for adapting to new priors at test time, resulting in limited robustness under distribution shift. We introduce a multi-task in-context learning framework for amortized hierarchical Bayesian predictive inference that explicitly represents prior information as a prefix of in-context datasets. A transformer trained on sequences of prior and target tasks learns to adapt its predictions across families of priors. On a suite of evaluations with increasing difficulty, including out-of-meta-distribution priors and priors with high-dimensional latent structures, our method matches oracle Bayesian predictors while being orders of magnitude faster. We further demonstrate its practical relevance on a real-world spatiotemporal temperature prediction benchmark. Code is available at https://github.com/martianmartina/multi-task-bayesian-icl/.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 30 of its 38 references that are in the map. First posted on arXiv 18 Jun 2026.

Builds on

30 of 38 references.

References · 30

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2018Neural Ordinary Differential Equationscited by 3,733
  5. 2016Variational Inference: A Review for Statisticianscited by 1,466
  6. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  7. 2022Transformers learn in-context by gradient descentcited by 714
  8. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  9. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  10. 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
  11. 2019The frontier of simulation-based inferencecited by 490
  12. 2018Pyro: Deep Universal Probabilistic Programmingcited by 379
18 more
  1. 2021Transformers Can Do Bayesian Inferencecited by 338
  2. 2018Neural Processescited by 307
  3. 2024Many-Shot In-Context Learningcited by 203
  4. 2021Benchmarking Simulation-Based Inferencecited by 160
  5. 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
  6. 2016Towards a Neural Statisticiancited by 119
  7. 2018Meta-Learning Probabilistic Inference For Predictioncited by 108
  8. 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 102
  9. 2024All-in-one simulation-based inferencecited by 71
  10. 2023Meta-in-context learning in large language modelscited by 59
  11. 2021The Gaussian Neural Processcited by 34
  12. 2025Can Transformers Learn Full Bayesian Inference in Context?cited by 30
  13. 2024Amortized Probabilistic Conditioning for Optimization, Simulation and Inferencecited by 22
  14. 2025Position: The Future of Bayesian Prediction Is Prior-Fittedcited by 19
  15. 2024Does learning the right latent variables necessarily improve in-context learning?cited by 12
  16. 2025Distribution Transformers: Fast Approximate Bayesian Inference With On-The-Fly Prior Adaptationcited by 12
  17. 2023Episodic Multi-Task Learning with Heterogeneous Neural Processescited by 8
  18. 2025Supervised Contrastive Block Disentanglementcited by 2

Built on by

Not cited yet.