mlsanityData to 7 Oct 2026

Retrieval-Augmented Decision Transformer: External Memory for In-context RL

arXiv 2410.07071 ↗First posted 9 Oct 2024cs.LG cs.AIcited by 20

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

  1. 2022Retrieval-Augmented Reinforcement Learning17 Feb

Other references · 90

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  5. 2017Proximal Policy Optimization Algorithmscited by 14,441
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  8. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  9. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
  10. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  11. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  12. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
38 more
  1. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  2. 2023RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Controlcited by 2,993
  3. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  4. 2017Billion-scale similarity search with GPUscited by 2,477
  5. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  6. 2022RT-1: Robotics Transformer for Real-World Control at Scalecited by 2,007
  7. 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,873
  8. 2020Conservative Q-Learning for Offline Reinforcement Learningcited by 1,777
  9. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
  10. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  11. 2018Learning Latent Dynamics for Planning from Pixelscited by 1,221
  12. 2020Gradient Surgery for Multi-Task Learningcited by 1,210
  13. 2019Meta-World: A Benchmark and Evaluation for Multi-Task and Meta Reinforcement Learningcited by 1,168
  14. 2017Mixed Precision Trainingcited by 1,135
  15. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
  16. 2018DeepMind Control Suitecited by 935
  17. 2018IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architecturescited by 866
  18. 2022A Generalist Agentcited by 802
  19. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  20. 2021Deep Reinforcement Learning at the Edge of the Statistical Precipicecited by 781
  21. 2024Genie: Generative Interactive Environmentscited by 706
  22. 2023In-Context Retrieval-Augmented Language Modelscited by 694
  23. 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
  24. 2014Neural Turing Machinescited by 630
  25. 2016RL2: Fast Reinforcement Learning via Slow Reinforcement Learningcited by 490
  26. 2019Leveraging Procedural Generation to Benchmark Reinforcement Learningcited by 478
  27. 2023Learning Interactive Real-World Simulatorscited by 440
  28. 2016Learning to reinforcement learncited by 369
  29. 2024xLSTM: Extended Long Short-Term Memorycited by 320
  30. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  31. 2022Multi-Game Decision Transformerscited by 212
  32. 2024Many-Shot In-Context Learningcited by 203
  33. 2022Recurrent Memory Transformercited by 197
  34. 2020The NetHack Learning Environmentcited by 196
  35. 2022In-context Reinforcement Learning with Algorithm Distillationcited by 186
  36. 2018RUDDER: Return Decomposition for Delayed Rewardscited by 162
  37. 2017Neural Episodic Controlcited by 148
  38. 2023Bigger, Better, Faster: Human-level Atari with human-level efficiencycited by 145

50 most cited of 90 All 90 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 11; 2026: 6.

20 papers.

Sort:

By area:

  1. 2025Towards Agentic RAG with Deep Reasoning: A Survey of RAG-Reasoning Systems in LLMscited by 40
  2. 2025LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making Abilitiescited by 36
  3. 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approachescited by 18
  4. 2025A Survey of Continual Reinforcement Learningcited by 16
  5. 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Taskscited by 14
  6. 2024REGENT: A Retrieval-Augmented Generalist Agent That Can Act In-Context in New Environmentscited by 12
  7. 2025Episodic memory in AI agents poses risks that should be studied and mitigatedcited by 11
  8. 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
  9. 2025Yes, Q-learning Helps Offline In-Context RLcited by 8
  10. 2024N-Gram Induction Heads for In-Context RL: Improving Stability and Reducing Data Needscited by 6
  11. 2025BiTrajDiff: Bidirectional Trajectory Generation with Diffusion Models for Offline Reinforcement Learningcited by 4
  12. 2025Behavioral Exploration: Learning to Explore via In-Context Adaptationcited by 4
8 more
  1. 2026IMWM: Intuition Models Complement World Models for Latent Planningcited by 3
  2. 2025Disentangling Exploration of Large Language Models by Optimal Exploitationcited by 1
  3. 2025In-Context Compositional Q-Learning for Offline Reinforcement Learningcited by 0
  4. 2026Learning in Context, Guided by Choice: A Reward-Free Paradigm for Reinforcement Learning with Transformerscited by 0
  5. 2026DRIVE: Distributional and Retrieval-Augmented Bidding with Value Evaluationcited by 0
  6. 2026Breaking Feedback-Blindness: Utility-Augmented Transformer for Sequential Decision Makingcited by 0
  7. 2026Downstream-Aware Context Selection for Online In-Context Reinforcement Learningcited by 0
  8. 2026Scalable In-Context Reinforcement Learning with Recurrent Algorithm Distillationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Retrieval-Augmented Hierarchical in-Context Reinforcement Learning and Hindsight Modular Reflections for Task Planning with LLMs
  2. 2025RAD: Retrieval High-quality Demonstrations to Enhance Decision-making
  3. 2026In-Context Reinforcement Learning under Non-Stationarity: A Survey
  4. 2024Pre-trained Language Models Improve the Few-shot Prompt Ability of Decision Transformer
  5. 2026Beyond Reward Engineering: A Data Recipe for Long-Context Reinforcement Learning
  6. 2024In-context Exploration-Exploitation for Reinforcement Learning
  7. 2026In-Context Reinforcement Learning From Suboptimal Historical Data
  8. 2024Meta-DT: Offline Meta-RL as Conditional Sequence Modeling with World Model Disentanglement