Lune

ICML2024Top-tier venue

In-Context Reinforcement Learning for Variable Action Spaces

Viacheslav Sinii, Alexander Nikulin, Vladislav Kurenkov, Ilya Zisman, Sergey Kolesnikov

Abstract

Recently, it has been shown that transformers pretrained on diverse datasets with multi-episode contexts can generalize to new reinforcement learning tasks in-context. A key limitation of previously proposed models is their reliance on a predefined action space size and structure. The introduction of a new action space often requires data re-collection and model re-training, which can be costly for some applications. In our work, we show that it is possible to mitigate this issue by proposing the Headless-AD model that, despite being trained only once, is capable of generalizing to discrete action spaces of variable size, semantic content and order. By experimenting with Bernoulli and contextual bandits, as well as a gridworld environment, we show that Headless-AD exhibits significant capability to generalize to action spaces it has never encountered, even outperforming specialized models trained for a specific set of actions on several environment configurations. Implementation is available at: https://github.com/ corl-team/headless-ad .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Scalable In-Context Q-Learning cites Mixture-of-Experts Meets In-Context Reinforcement Learning
  • Mixture-of-Experts Meets In-Context Reinforcement Learning cites Scalable In-Context Q-Learning
  • Scalable In-Context Q-Learning cites Language Models are Few-Shot Learners
  • Towards Large-Scale In-Context Reinforcement Learning by Meta-Training in Randomized Worlds cites Decision Transformer: Reinforcement Learning via Sequence Modeling
  • Towards Large-Scale In-Context Reinforcement Learning by Meta-Training in Randomized Worlds cites Language Models are Few-Shot Learners
  • Mixture-of-Experts Meets In-Context Reinforcement Learning cites Language Models are Few-Shot Learners
  • Efficiently Modeling Long Sequences with Structured State Spaces cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
  • Decision Transformer: Reinforcement Learning via Sequence Modeling cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Decision Transformer: Reinforcement Learning via Sequence Modeling cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Mixture-of-Experts Meets In-Context Reinforcement LearningWenhao Wu, Fuhong Liu, Haoru Li, Zican Hu et al.NeurIPS 2025 · 15 citations
  2. Zero-Shot Adaptation of Behavioral Foundation Models to Unseen DynamicsMaksim Bobrin, Ilya Zisman, Alexander Nikulin, Vladislav Kurenkov et al.ICLR 2026 · 9 citations
  3. Scalable In-Context Q-LearningJinmei Liu, Fuhong Liu, Zhenhong Sun, Jianye HAO et al.ICLR 2026 · 8 citations
  4. Towards Large-Scale In-Context Reinforcement Learning by Meta-Training in Randomized WorldsFan Wang, Pengtao Shao, Yiming Zhang, Bo Yu et al.NeurIPS 2025 · 6 citations
  5. Post-Training LLMs as Better Decision-Making Agents: A Regret-Minimization ApproachChanwoo Park, Ziyang Chen, Asuman Ozdaglar, Kaiqing ZhangICML 2026 · 5 citations

Builds on20

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. Efficiently Modeling Long Sequences with Structured State SpacesAlbert Gu, Karan Goel, Christopher RéICLR 2022 · 3,482 citations
  4. Decision Transformer: Reinforcement Learning via Sequence ModelingLili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee et al.NeurIPS 2021 · 2,557 citations
  5. Dream to Control: Learning Behaviors by Latent ImaginationDanijar Hafner, Timothy P. Lillicrap, Jimmy Ba, Mohammad NorouziICLR 2020 · 1,852 citations

Related papers

  1. Meta-DT: Offline Meta-RL as Conditional Sequence Modeling with World Model DisentanglementZhi Wang, Li Zhang, Wenhao Wu, Yuanheng Zhu et al.NeurIPS 2024 · 31 citations
  2. Generalization to New Sequential Decision Making Tasks with In-Context LearningSharath Chandra Raparthy, Eric Hambro, Robert Kirk, Mikael Henaff et al.ICML 2024 · 37 citations
  3. Dita: Scaling Diffusion Transformer for Generalist Vision-Language-Action PolicyZhi Hou, Tianyi Zhang, Yuwen Xiong, Haonan Duan et al.ICCV 2025 · 9 citations
  4. Reidentify: Context-Aware Identity Generation for Contextual Multi-Agent Reinforcement LearningZhiwei Xu, Kun Hu, Xin Xin, Weiliang Meng et al.ICML 2025
  5. Efficient Cross-Episode Meta-RLGresa Shala, André Biedenkapp, Pierre Krack, Florian Walter et al.ICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines