Retrieval-Augmented Decision Transformer: External Memory for In-context RL
On the map: Retrieval-augmented generation → Agentic RAG, agents and memory
also in 1 more
Abstract (arXiv)
In-context learning (ICL) is the ability of a model to learn a new task by observing a few exemplars in its context. While prevalent in NLP, this capability has recently also been observed in Reinforcement Learning (RL) settings. Prior in-context RL methods, however, require entire episodes in the agent's context. Given that complex environments typically lead to long episodes with sparse rewards, these methods are constrained to simple environments with short episodes. To address these challenges, we introduce Retrieval-Augmented Decision Transformer (RA-DT). RA-DT employs an external memory mechanism to store past experiences from which it retrieves only sub-trajectories relevant for the current situation. The retrieval component in RA-DT does not require training and can be entirely domain-agnostic. We evaluate the capabilities of RA-DT on grid-world environments, robotics simulations, and procedurally-generated video games. On grid-worlds, RA-DT outperforms baselines, while using only a fraction of their context length. Furthermore, we illuminate the limitations of current in-context RL methods on complex environments and discuss future directions. To facilitate future research, we release datasets for four of the considered environments.
Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). Placed in Agentic RAG, agents and memory, one of 15 directions in Retrieval-augmented generation. Builds on 91 of its 110 references that are in the map. First posted on arXiv 9 Oct 2024.
Builds on
91 of 110 references.
Closest ancestors · 1
Same direction, newest first
Other references · 90
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
38 more
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2023RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Controlcited by 2,993
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2022RT-1: Robotics Transformer for Real-World Control at Scalecited by 2,007
- 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,873
- 2020Conservative Q-Learning for Offline Reinforcement Learningcited by 1,777
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2018Learning Latent Dynamics for Planning from Pixelscited by 1,221
- 2020Gradient Surgery for Multi-Task Learningcited by 1,210
- 2019Meta-World: A Benchmark and Evaluation for Multi-Task and Meta Reinforcement Learningcited by 1,168
- 2017Mixed Precision Trainingcited by 1,135
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2018DeepMind Control Suitecited by 935
- 2018IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architecturescited by 866
- 2022A Generalist Agentcited by 802
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2021Deep Reinforcement Learning at the Edge of the Statistical Precipicecited by 781
- 2024Genie: Generative Interactive Environmentscited by 706
- 2023In-Context Retrieval-Augmented Language Modelscited by 694
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
- 2014Neural Turing Machinescited by 630
- 2016RL2: Fast Reinforcement Learning via Slow Reinforcement Learningcited by 490
- 2019Leveraging Procedural Generation to Benchmark Reinforcement Learningcited by 478
- 2023Learning Interactive Real-World Simulatorscited by 440
- 2016Learning to reinforcement learncited by 369
- 2024xLSTM: Extended Long Short-Term Memorycited by 320
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2022Multi-Game Decision Transformerscited by 212
- 2024Many-Shot In-Context Learningcited by 203
- 2022Recurrent Memory Transformercited by 197
- 2020The NetHack Learning Environmentcited by 196
- 2022In-context Reinforcement Learning with Algorithm Distillationcited by 186
- 2018RUDDER: Return Decomposition for Delayed Rewardscited by 162
- 2017Neural Episodic Controlcited by 148
- 2023Bigger, Better, Faster: Human-level Atari with human-level efficiencycited by 145
50 most cited of 90 All 90 (JSON)
Built on by
Citing papers per year: 2024: 3; 2025: 11; 2026: 6.
20 papers.
Sort:
By area:
- 2025Towards Agentic RAG with Deep Reasoning: A Survey of RAG-Reasoning Systems in LLMscited by 40
- 2025LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making Abilitiescited by 36
- 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approachescited by 18
- 2025A Survey of Continual Reinforcement Learningcited by 16
- 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Taskscited by 14
- 2024REGENT: A Retrieval-Augmented Generalist Agent That Can Act In-Context in New Environmentscited by 12
- 2025Episodic memory in AI agents poses risks that should be studied and mitigatedcited by 11
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
- 2025Yes, Q-learning Helps Offline In-Context RLcited by 8
- 2024N-Gram Induction Heads for In-Context RL: Improving Stability and Reducing Data Needscited by 6
- 2025BiTrajDiff: Bidirectional Trajectory Generation with Diffusion Models for Offline Reinforcement Learningcited by 4
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptationcited by 4
8 more
- 2026IMWM: Intuition Models Complement World Models for Latent Planningcited by 3
- 2025Disentangling Exploration of Large Language Models by Optimal Exploitationcited by 1
- 2025In-Context Compositional Q-Learning for Offline Reinforcement Learningcited by 0
- 2026Learning in Context, Guided by Choice: A Reward-Free Paradigm for Reinforcement Learning with Transformerscited by 0
- 2026DRIVE: Distributional and Retrieval-Augmented Bidding with Value Evaluationcited by 0
- 2026Breaking Feedback-Blindness: Utility-Augmented Transformer for Sequential Decision Makingcited 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
- 2026Scalable In-Context Reinforcement Learning with Recurrent Algorithm Distillation28 Sep 2026
- 2026Downstream-Aware Context Selection for Online In-Context Reinforcement Learning27 Sep 2026
- 2026Breaking Feedback-Blindness: Utility-Augmented Transformer for Sequential Decision Making21 Jul 2026
- 2026DRIVE: Distributional and Retrieval-Augmented Bidding with Value Evaluation12 Jun 2026
- 2026IMWM: Intuition Models Complement World Models for Latent Planning1 Jun 2026
- 2026Learning in Context, Guided by Choice: A Reward-Free Paradigm for Reinforcement Learning with Transformers9 Feb 2026
- 2025In-Context Compositional Q-Learning for Offline Reinforcement Learning28 Sep 2025
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architectures14 Aug 2025
- 2025Towards Agentic RAG with Deep Reasoning: A Survey of RAG-Reasoning Systems in LLMs13 Jul 2025
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptation11 Jul 2025
- 2025A Survey of Continual Reinforcement Learning27 Jun 2025
- 2025BiTrajDiff: Bidirectional Trajectory Generation with Diffusion Models for Offline Reinforcement Learning6 Jun 2025
8 more
- 2025LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making Abilities22 Apr 2025
- 2025Yes, Q-learning Helps Offline In-Context RL24 Feb 2025
- 2025Episodic memory in AI agents poses risks that should be studied and mitigated20 Jan 2025
- 2025Disentangling Exploration of Large Language Models by Optimal Exploitation15 Jan 2025
- 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approaches6 Jan 2025
- 2024REGENT: A Retrieval-Augmented Generalist Agent That Can Act In-Context in New Environments6 Dec 2024
- 2024N-Gram Induction Heads for In-Context RL: Improving Stability and Reducing Data Needs4 Nov 2024
- 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Tasks29 Oct 2024
- 2025A Survey of Continual Reinforcement Learningcited by 16
- 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Taskscited by 14
- 2025Episodic memory in AI agents poses risks that should be studied and mitigatedcited by 11
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
- 2024N-Gram Induction Heads for In-Context RL: Improving Stability and Reducing Data Needscited by 6
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptationcited by 4
- 2025Disentangling Exploration of Large Language Models by Optimal Exploitationcited by 1
- 2026Breaking Feedback-Blindness: Utility-Augmented Transformer for Sequential Decision Makingcited by 0
- 2026Scalable In-Context Reinforcement Learning with Recurrent Algorithm Distillationcited by 0
- 2026Scalable In-Context Reinforcement Learning with Recurrent Algorithm Distillation28 Sep 2026
- 2026Breaking Feedback-Blindness: Utility-Augmented Transformer for Sequential Decision Making21 Jul 2026
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architectures14 Aug 2025
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptation11 Jul 2025
- 2025A Survey of Continual Reinforcement Learning27 Jun 2025
- 2025Episodic memory in AI agents poses risks that should be studied and mitigated20 Jan 2025
- 2025Disentangling Exploration of Large Language Models by Optimal Exploitation15 Jan 2025
- 2024N-Gram Induction Heads for In-Context RL: Improving Stability and Reducing Data Needs4 Nov 2024
- 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Tasks29 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2024Retrieval-Augmented Hierarchical in-Context Reinforcement Learning and Hindsight Modular Reflections for Task Planning with LLMs
- 2025RAD: Retrieval High-quality Demonstrations to Enhance Decision-making
- 2026In-Context Reinforcement Learning under Non-Stationarity: A Survey
- 2024Pre-trained Language Models Improve the Few-shot Prompt Ability of Decision Transformer
- 2026Beyond Reward Engineering: A Data Recipe for Long-Context Reinforcement Learning
- 2024In-context Exploration-Exploitation for Reinforcement Learning
- 2026In-Context Reinforcement Learning From Suboptimal Historical Data
- 2024Meta-DT: Offline Meta-RL as Conditional Sequence Modeling with World Model Disentanglement