Heuristic Transformer: Belief Augmented In-Context Reinforcement Learning

Oliver Dippel, Alexei Lisitsa, Bei Peng
11/13/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Transformers have demonstrated exceptional in-context learning (ICL) capabilities, enabling applications across natural language processing, computer vision, and sequential decision-making. In reinforcement learning, ICL reframes learning as a supervised problem, facilitating task adaptation without parameter updates. Building on prior work leveraging transformers for sequential decision-making, we propose Heuristic Transformer (HT), an in-context reinforcement learning (ICRL) approach that augments the in-context dataset with a belief distribution over rewards to achieve better decision-making. Using a variational auto-encoder (VAE), a low-dimensional stochastic variable is learned to represent the posterior distribution over rewards, which is incorporated alongside an in-context dataset and query states as prompt to the transformer policy. We assess the performance of HT across the Darkroom, Miniworld, and MuJoCo environments, showing that it consistently surpasses comparable baselines in terms of both effectiveness and generalization. Our method presents a promising direction to bridge the gap between belief-based augmentations and transformer-based decision-making.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{dippel2025heuristic,
  title  = {Heuristic Transformer: Belief Augmented In-Context Reinforcement Learning},
  author = {Oliver Dippel and Alexei Lisitsa and Bei Peng},
  year   = {2025},
  eprint = {2511.10251},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.10251v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.10251.svg)](https://codeofpaper.com/paper/2511.10251)

Discussion