In-Context Decision Transformer: Reinforcement Learning via Hierarchical Chain-of-Thought
On the map: LLM reasoning → Test-time compute and efficient thinking
also in 1 more
Abstract (arXiv)
In-context learning is a promising approach for offline reinforcement learning (RL) to handle online tasks, which can be achieved by providing task prompts. Recent works demonstrated that in-context RL could emerge with self-improvement in a trial-and-error manner when treating RL tasks as an across-episodic sequential prediction problem. Despite the self-improvement not requiring gradient updates, current works still suffer from high computational costs when the across-episodic sequence increases with task horizons. To this end, we propose an In-context Decision Transformer (IDT) to achieve self-improvement in a high-level trial-and-error manner. Specifically, IDT is inspired by the efficient hierarchical structure of human decision-making and thus reconstructs the sequence to consist of high-level decisions instead of low-level actions that interact with environments. As one high-level decision can guide multi-step low-level actions, IDT naturally avoids excessively long sequences and solves online tasks more efficiently. Experimental results show that IDT achieves state-of-the-art in long-horizon tasks over current in-context RL methods. In particular, the online evaluation time of our IDT is 36× times faster than baselines in the D4RL benchmark and 27× times faster in the Grid World benchmark.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 29 of its 41 references that are in the map. First posted on arXiv 31 May 2024.
Builds on
29 of 41 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016Layer Normalizationcited by 5,579
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2013Playing Atari with Deep Reinforcement Learningcited by 3,211
- 2020Conservative Q-Learning for Offline Reinforcement Learningcited by 1,777
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2020D4RL: Datasets for Deep Data-Driven Reinforcement Learningcited by 1,406
- 2018Off-Policy Deep Reinforcement Learning without Explorationcited by 1,227
- 2018On First-Order Meta-Learning Algorithmscited by 1,003
17 more
- 2021A Minimalist Approach to Offline Reinforcement Learningcited by 882
- 2019Stabilizing Off-Policy Q-Learning via Bootstrapping Error Reductioncited by 833
- 2022A Generalist Agentcited by 802
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
- 2016RL2: Fast Reinforcement Learning via Slow Reinforcement Learningcited by 490
- 2018Behavioral Cloning from Observationcited by 482
- 2018Data-Efficient Hierarchical Reinforcement Learningcited by 436
- 2016The Option-Critic Architecturecited by 433
- 2016Learning to reinforcement learncited by 369
- 2021COMBO: Conservative Offline Model-Based Policy Optimizationcited by 365
- 2022Multi-Game Decision Transformerscited by 212
- 2022In-context Reinforcement Learning with Algorithm Distillationcited by 186
- 2023Chain of Hindsight Aligns Language Models with Feedbackcited by 147
- 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 137
- 2020Offline Meta-Reinforcement Learning with Advantage Weightingcited by 92
- 2021Offline Meta-Reinforcement Learning with Online Self-Supervisioncited by 52
- 2023Emergent Agentic Transformer from Chain of Hindsight Experiencecited by 33
Built on by
Citing papers per year: 2024: 2; 2025: 13; 2026: 10.
25 papers.
Sort:
By area:
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learnerscited by 29
- 2024Retrieval-Augmented Decision Transformer: External Memory for In-context RLcited by 20
- 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Taskscited by 14
- 2025Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planningcited by 12
- 2025Yes, Q-learning Helps Offline In-Context RLcited by 8
- 2025Mixture-of-Experts Meets In-Context Reinforcement Learningcited by 7
- 2025Text-to-Decision Agent: Offline Meta-Reinforcement Learning from Natural Language Supervisioncited by 5
- 2025Scalable In-Context Q-Learningcited by 5
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptationcited by 4
- 2025Analytic Energy-Guided Policy Optimization for Offline Reinforcement Learningcited by 2
- 2025Towards Provable Emergence of In-Context Reinforcement Learningcited by 2
- 2025Safe In-Context Reinforcement Learningcited by 2
13 more
- 2026VLGOR: Visual-Language Knowledge Guided Offline Reinforcement Learning for Generalizable Agentscited by 1
- 2026Hierarchical Chain-of-Thought: Enhancing LLM Reasoning Performance and Efficiencycited by 1
- 2025Mental Accounts for Actions: EWA-Inspired Attention in Decision Transformerscited by 0
- 2025Towards Monotonic Improvement in In-Context Reinforcement Learningcited by 0
- 2025Adjusting the Output of Decision Transformer with Action Gradientcited by 0
- 2026Learning in Context, Guided by Choice: A Reward-Free Paradigm for Reinforcement Learning with Transformerscited by 0
- 2026In-Context Planning with Latent Temporal Abstractionscited by 0
- 2026A Training-Free Regeneration Paradigm: Contrastive Reflection Memory Guided Self-Verification and Self-Improvementcited by 0
- 2026Decoupled Guidance Diffusion for Adaptive Offline Safe Reinforcement Learningcited by 0
- 2026ACIL: Auto Chain of Thoughts for In-Context Learningcited by 0
- 2026Downstream-Aware Context Selection for Online In-Context Reinforcement Learningcited by 0
- 2026Scalable In-Context Reinforcement Learning with Recurrent Algorithm Distillationcited by 0
- 2026Do LLMs Learn from Rewards in Context? : Rethinking the role of reward in In-Context Reinforcement Learningcited by 0
- 2026Do LLMs Learn from Rewards in Context? : Rethinking the role of reward in In-Context Reinforcement Learning8 Oct 2026
- 2026Scalable In-Context Reinforcement Learning with Recurrent Algorithm Distillation28 Sep 2026
- 2026Downstream-Aware Context Selection for Online In-Context Reinforcement Learning27 Sep 2026
- 2026ACIL: Auto Chain of Thoughts for In-Context Learning16 May 2026
- 2026Decoupled Guidance Diffusion for Adaptive Offline Safe Reinforcement Learning4 May 2026
- 2026Hierarchical Chain-of-Thought: Enhancing LLM Reasoning Performance and Efficiency31 Mar 2026
- 2026VLGOR: Visual-Language Knowledge Guided Offline Reinforcement Learning for Generalizable Agents24 Mar 2026
- 2026A Training-Free Regeneration Paradigm: Contrastive Reflection Memory Guided Self-Verification and Self-Improvement20 Mar 2026
- 2026In-Context Planning with Latent Temporal Abstractions21 Feb 2026
- 2026Learning in Context, Guided by Choice: A Reward-Free Paradigm for Reinforcement Learning with Transformers9 Feb 2026
- 2025Adjusting the Output of Decision Transformer with Action Gradient6 Oct 2025
- 2025Safe In-Context Reinforcement Learning29 Sep 2025
13 more
- 2025Towards Monotonic Improvement in In-Context Reinforcement Learning27 Sep 2025
- 2025Towards Provable Emergence of In-Context Reinforcement Learning22 Sep 2025
- 2025Mental Accounts for Actions: EWA-Inspired Attention in Decision Transformers19 Sep 2025
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptation11 Jul 2025
- 2025Mixture-of-Experts Meets In-Context Reinforcement Learning5 Jun 2025
- 2025Scalable In-Context Q-Learning2 Jun 2025
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learners21 May 2025
- 2025Analytic Energy-Guided Policy Optimization for Offline Reinforcement Learning3 May 2025
- 2025Text-to-Decision Agent: Offline Meta-Reinforcement Learning from Natural Language Supervision21 Apr 2025
- 2025Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planning26 Feb 2025
- 2025Yes, Q-learning Helps Offline In-Context RL24 Feb 2025
- 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Tasks29 Oct 2024
- 2024Retrieval-Augmented Decision Transformer: External Memory for In-context RL9 Oct 2024
- 2025Yes, Q-learning Helps Offline In-Context RLcited by 8
- 2025Text-to-Decision Agent: Offline Meta-Reinforcement Learning from Natural Language Supervisioncited by 5
- 2025Mental Accounts for Actions: EWA-Inspired Attention in Decision Transformerscited by 0
- 2025Adjusting the Output of Decision Transformer with Action Gradientcited by 0
- 2026Decoupled Guidance Diffusion for Adaptive Offline Safe Reinforcement Learningcited by 0
- 2026Decoupled Guidance Diffusion for Adaptive Offline Safe Reinforcement Learning4 May 2026
- 2025Adjusting the Output of Decision Transformer with Action Gradient6 Oct 2025
- 2025Mental Accounts for Actions: EWA-Inspired Attention in Decision Transformers19 Sep 2025
- 2025Text-to-Decision Agent: Offline Meta-Reinforcement Learning from Natural Language Supervision21 Apr 2025
- 2025Yes, Q-learning Helps Offline In-Context RL24 Feb 2025
- 2025Scalable In-Context Q-Learningcited by 5
- 2025Scalable In-Context Q-Learning2 Jun 2025
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learnerscited by 29
- 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Taskscited by 14
- 2025Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planningcited by 12
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptationcited by 4
- 2025Towards Provable Emergence of In-Context Reinforcement Learningcited by 2
- 2025Safe In-Context Reinforcement Learningcited by 2
- 2025Towards Monotonic Improvement in In-Context Reinforcement Learningcited by 0
- 2026In-Context Planning with Latent Temporal Abstractionscited by 0
- 2026Scalable In-Context Reinforcement Learning with Recurrent Algorithm Distillationcited by 0
- 2026Do LLMs Learn from Rewards in Context? : Rethinking the role of reward in In-Context Reinforcement Learningcited by 0
- 2026Do LLMs Learn from Rewards in Context? : Rethinking the role of reward in In-Context Reinforcement Learning8 Oct 2026
- 2026Scalable In-Context Reinforcement Learning with Recurrent Algorithm Distillation28 Sep 2026
- 2026In-Context Planning with Latent Temporal Abstractions21 Feb 2026
- 2025Safe In-Context Reinforcement Learning29 Sep 2025
- 2025Towards Monotonic Improvement in In-Context Reinforcement Learning27 Sep 2025
- 2025Towards Provable Emergence of In-Context Reinforcement Learning22 Sep 2025
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptation11 Jul 2025
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learners21 May 2025
- 2025Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planning26 Feb 2025
- 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Tasks29 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2026In-Context Reinforcement Learning From Suboptimal Historical Data
- 2026In-Context Reinforcement Learning under Non-Stationarity: A Survey
- 2023Rethinking Decision Transformer via Hierarchical Reinforcement Learning
- 2026Vintix II: Decision Pre-Trained Transformer is a Scalable In-Context Reinforcement Learner
- 2024In-context Exploration-Exploitation for Reinforcement Learning
- 2023Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretraining
- 2024Pre-trained Language Models Improve the Few-shot Prompt Ability of Decision Transformer
- 2022Contextual Transformer for Offline Meta Reinforcement Learning