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