In-Context Reinforcement Learning From Suboptimal Historical Data
Not on the map. Why?
Abstract (arXiv)
Transformer models have achieved remarkable empirical successes, largely due to their in-context learning capabilities. Inspired by this, we explore training an autoregressive transformer for in-context reinforcement learning (ICRL). In this setting, we initially train a transformer on an offline dataset consisting of trajectories collected from various RL tasks, and then fix and use this transformer to create an action policy for new RL tasks. Notably, we consider the setting where the offline dataset contains trajectories sampled from suboptimal behavioral policies. In this case, standard autoregressive training corresponds to imitation learning and results in suboptimal performance. To address this, we propose the Decision Importance Transformer(DIT) framework, which emulates the actor-critic algorithm in an in-context manner. In particular, we first train a transformer-based value function that estimates the advantage functions of the behavior policies that collected the suboptimal trajectories. Then we train a transformer-based policy via a weighted maximum likelihood estimation loss, where the weights are constructed based on the trained value function to steer the suboptimal policies to the optimal ones. We conduct extensive experiments to test the performance of DIT on both bandit and Markov Decision Process problems. Our results show that DIT achieves superior performance, particularly when the offline dataset contains suboptimal historical data.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 34 of its 49 references that are in the map. First posted on arXiv 27 Jan 2026.
Builds on
34 of 49 references.
References · 34
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2018Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actorcited by 4,635
- 2015Trust Region Policy Optimizationcited by 2,503
- 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,873
- 2022Large Language Models Encode Clinical Knowledgecited by 1,807
- 2020Conservative Q-Learning for Offline Reinforcement Learningcited by 1,777
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2021Offline Reinforcement Learning with Implicit Q-Learningcited by 1,245
- 2019Meta-World: A Benchmark and Evaluation for Multi-Task and Meta Reinforcement Learningcited by 1,168
- 2017Constrained Policy Optimizationcited by 928
- 2023BloombergGPT: A Large Language Model for Financecited by 923
22 more
- 2021A Minimalist Approach to Offline Reinforcement Learningcited by 882
- 2019Advantage-Weighted Regression: Simple and Scalable Off-Policy Reinforcement Learningcited by 750
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2019Behavior Regularized Offline Reinforcement Learningcited by 654
- 2020MOReL : Model-Based Offline Reinforcement Learningcited by 582
- 2017A Tutorial on Thompson Samplingcited by 420
- 2020Is Pessimism Provably Efficient for Offline RL?cited by 362
- 2023Minigrid & Miniworld: Modular & Customizable Reinforcement Learning Environments for Goal-Oriented Taskscited by 320
- 2021Bridging Offline Reinforcement Learning and Imitation Learning: A Tale of Pessimismcited by 275
- 2022A Survey on Offline Reinforcement Learning: Taxonomy, Review, and Open Problemscited by 228
- 2018An Introduction to Deep Reinforcement Learningcited by 201
- 2022In-context Reinforcement Learning with Algorithm Distillationcited by 186
- 2022Prompting Decision Transformer for Few-Shot Policy Generalizationcited by 143
- 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 137
- 2020Deployment-Efficient Reinforcement Learning via Model-Based Offline Optimizationcited by 120
- 2022Q-learning Decision Transformer: Leveraging Dynamic Programming for Conditional Sequence Modelling in Offline RLcited by 103
- 2021Towards Instance-Optimal Offline Reinforcement Learning with Pessimismcited by 78
- 2022When does return-conditioned supervised learning work for offline reinforcement learning?cited by 73
- 2023Constrained Decision Transformer for Offline Safe Reinforcement Learningcited by 65
- 2023A Survey on Transformers in Reinforcement Learningcited by 50
- 2022Dichotomy of Control: Separating What You Can Control from What You Cannotcited by 47
- 2021On the Optimality of Batch Policy Optimization Algorithmscited by 28
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2023Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretraining
- 2024In-Context Decision Transformer: Reinforcement Learning via Hierarchical Chain-of-Thought
- 2026From Weak Data to Strong Policy: Q-Targets Enable Provable In-Context Reinforcement Learning
- 2026Learning in Context, Guided by Choice: A Reward-Free Paradigm for Reinforcement Learning with Transformers
- 2026Vintix II: Decision Pre-Trained Transformer is a Scalable In-Context Reinforcement Learner
- 2025Should We Ever Prefer Decision Transformer for Offline Reinforcement Learning?
- 2024Pre-trained Language Models Improve the Few-shot Prompt Ability of Decision Transformer
- 2026Beyond Autoregressive RTG: Conditioning via Injection Outside Sequential Modeling in Decision Transformer