Is In-Context Reinforcement Learning A Posterior Sampler? An Empirical Study
Weiqin Chen, Xinlong Du, Gesualdo Scutari, Harsha Honnappa
Key points
From the paper's conclusion- Therefore, we ask: \textit{is 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: \textit{sufficient-statistic invariance} and the \textit{martingale property}.
Abstract
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: \textit{is 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: \textit{sufficient-statistic invariance} and the \textit{martingale 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Do LLMs Learn from Rewards in Context? : Rethinking the role of reward in In-Context Reinforcement LearningarXiv · 2026
- Out of Support, Not Out of Reach: In-Context Learning with Unsupported Instructions and Composed TasksarXiv · 2026
- Unifying ICL, SFT, KL-Regularized RL Through a Bayesian LensarXiv · 2026
- Characterizing In-Context Learning: When Can Transformers Match Standard Learning Algorithms?2026
- Questioning Instrumental Convergence in RLVR: Checkpoint Evidence from OLMo-3arXiv · 2026
- Agentic In-Context Learning: What Algorithms Can Transformers Learn in Closed-Loop Interaction?arXiv · 2026