Dippel, O., Peng, B. orcid.org/0000-0003-0152-3180 and Lisitsa, A. (2026) Heuristic transformer: belief augmented in-context reinforcement learning. In: Proceedings of the 25th International Conference on Autonomous Agents and Multiagent Systems. 25th International Conference on Autonomous Agents and Multiagent Systems, 25-29 May 2026, Paphos, Cyprus. International Foundation for Autonomous Agents and Multiagent Systems, pp. 3122-3124. ISBN: 9798400723179.
Abstract
Transformers have recently shown that reinforcement learning can be reframed as an in-context prediction problem, allowing agents to adapt to new tasks without updating their parameters. However, existing in-context RL approaches rely solely on past trajectories as prompts, leaving the model to implicitly infer uncertainty about the reward structure from raw experience alone. We introduce the Heuristic Transformer (HT), an in-context RL method that explicitly augments the prompt with a learned belief over rewards. A low-dimensional stochastic latent variable captures the posterior distribution over rewards and is provided to the transformer alongside trajectories and query states. This enables the model to reason directly over uncertainty rather than inferring it indirectly from data. Across Darkroom, Miniworld, and MuJoCo benchmarks, HT consistently outperforms existing in-context RL baselines in both performance and generalization, particularly in stochastic settings. Our results show that combining belief-based representations with transformer policies is a powerful mechanism for improving in-context decision-making, and suggest a new direction for integrating probabilistic reasoning into transformer-based RL.
Metadata
| Item Type: | Proceedings Paper |
|---|---|
| Authors/Creators: |
|
| Copyright, Publisher and Additional Information: | © 2026 International Foundation for Autonomous Agents and Multiagent Systems. This work is licensed under a Creative Commons Attribution International 4.0 License. https://creativecommons.org/licenses/by/4.0/ |
| Keywords: | In-context reinforcement learning; meta-RL; Bayesian RL |
| Dates: |
|
| Institution: | The University of Sheffield |
| Academic Units: | The University of Sheffield > Faculty of Engineering (Sheffield) > Department of Computer Science (Sheffield) |
| Date Deposited: | 22 Oct 2026 09:04 |
| Last Modified: | 22 Oct 2026 09:06 |
| Status: | Published |
| Publisher: | International Foundation for Autonomous Agents and Multiagent Systems |
| Refereed: | Yes |
| Identification Number: | 10.65109/iwms8291 |
| Related URLs: | |
| Open Archives Initiative ID (OAI ID): | oai:eprints.whiterose.ac.uk:246971 |
Download
Filename: IWMS8291.pdf
Licence: CC-BY 4.0

CORE (COnnecting REpositories)
CORE (COnnecting REpositories)