Is In-Context Reinforcement Learning A Posterior Sampler? An Empirical Study
On the map: Deep reinforcement learning methods → Deep RL algorithms and representations also fits: RL theory and sample complexity
Abstract (arXiv)
In-context reinforcement learning (ICRL) exploits the impressive in-context learning ability of large language models to zero-shot generalize to new, unseen tasks at inference time without any parameter updates. Among many approaches, the Decision-Pretrained Transformer (DPT) is particularly appealing for its theoretical grounding: under idealized assumptions such as a sufficiently expressive model and infinite pretraining data, DPT can perform Bayesian posterior sampling. Whether this characterization survives in practice remains open. Therefore, we ask: textitis ICRL, specifically DPT and our proposed DPT variants, a Bayesian posterior sampler in practice? To approach this question, we establish two necessary conditions that a Bayesian posterior sampler must satisfy: textitsufficient-statistic invariance and the textitmartingale property. We then construct statistical hypothesis tests to statistically assess if practically-trained ICRL models satisfy these conditions. Applying these tests in Gaussian, Bernoulli, and linear bandit settings, we find that both conditions are consistently violated, suggesting that ICRL may not behave as Bayesian posterior samplers in practice. Beyond this negative result, our tests provide a principled toolkit for testing the Bayesian behavior of ICRL.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Placed in Deep RL algorithms and representations, one of 15 directions in Deep reinforcement learning methods. Builds on 24 of its 30 references that are in the map. Submitted 20 Oct 2026.
Builds on
24 of 30 references.
Closest ancestors · 1
Same direction, newest first
Other references · 23
- 2017Attention Is All You Needcited by 62,125
- 2023GPT-4 Technical Reportcited by 19,416
- 2017Proximal Policy Optimization Algorithmscited by 16,162
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,661
- 2018Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actorcited by 5,016
- 2023Mistral 7Bcited by 3,489
- 2013Playing Atari with Deep Reinforcement Learningcited by 3,364
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,582
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 989
- 2015End-to-End Training of Deep Visuomotor Policiescited by 891
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 656
- 2023Larger language models do in-context learning differentlycited by 436
11 more
- 2016Benchmarking Deep Reinforcement Learning for Continuous Controlcited by 376
- 2013(More) Efficient Reinforcement Learning via Posterior Samplingcited by 241
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 230
- 2022In-context Reinforcement Learning with Algorithm Distillationcited by 205
- 2021Reinforcement learning based recommender systems: A surveycited by 191
- 2014An Information-Theoretic Analysis of Thompson Samplingcited by 184
- 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 149
- 2023Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretrainingcited by 92
- 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 68
- 2025In-Context Learning Is Provably Bayesian Inference: A Generalization Theory for Meta-Learningcited by 23
- 2021A Survey on Reinforcement Learning for Recommender Systemscited by 19
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026In-Context Reinforcement Learning under Non-Stationarity: A Survey
- 2026In-Context Reinforcement Learning through Bayesian Fusion of Context and Value Prior
- 2026In-Context Reinforcement Learning From Suboptimal Historical Data
- 2025Scalable In-Context Q-Learning
- 2024In-Context Decision Transformer: Reinforcement Learning via Hierarchical Chain-of-Thought
- 2026Vintix II: Decision Pre-Trained Transformer is a Scalable In-Context Reinforcement Learner
- 2025Filtering Learning Histories Enhances In-Context Reinforcement Learning
- 2026Learning in Context, Guided by Choice: A Reward-Free Paradigm for Reinforcement Learning with Transformers