mlsanityData to 7 Oct 2026

Towards mental time travel: a hierarchical memory for reinforcement learning agents

arXiv 2105.14039 ↗First posted 28 May 2021cs.LG cs.AI cs.NEcited by 38

Not on the map. Why?

Abstract (arXiv)

Reinforcement learning agents often forget details of the past, especially after delays or distractor tasks. Agents with common memory architectures struggle to recall and integrate across multiple timesteps of a past event, or even to recall the details of a single timestep that is followed by distractor tasks. To address these limitations, we propose a Hierarchical Chunk Attention Memory (HCAM), which helps agents to remember the past in detail. HCAM stores memories by dividing the past into chunks, and recalls by first performing high-level attention over coarse summaries of the chunks, and then performing detailed attention within only the most relevant chunks. An agent with HCAM can therefore "mentally time-travel" -- remember past events in detail without attending to all intervening events. We show that agents with HCAM substantially outperform agents with other memory architectures at tasks requiring long-term recall, retention, or reasoning over memory. These include recalling where an object is hidden in a 3D environment, rapidly learning to navigate efficiently in a new neighborhood, and rapidly learning and retaining new object names. Agents with HCAM can extrapolate to task sequences much longer than they were trained on, and can even generalize zero-shot from a meta-learning setting to maintaining knowledge across episodes. HCAM improves agent sample efficiency, generalization, and generality (by solving tasks that previously required specialized architectures). Our work is a step towards agents that can learn, interact, and adapt in complex and temporally-extended environments.

Key facts. Cited by 38 papers in the map (data through 7 Oct 2026). Builds on 37 of its 64 references that are in the map. First posted on arXiv 28 May 2021.

Builds on

37 of 64 references.

References · 37

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  6. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  7. 2020Reformer: The Efficient Transformercited by 1,658
  8. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  9. 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
  10. 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
  11. 2018IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architecturescited by 866
  12. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
25 more
  1. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  2. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  3. 2020Self-supervised Learning: Generative or Contrastivecited by 693
  4. 2017The NarrativeQA Reading Comprehension Challengecited by 590
  5. 2016Reinforcement Learning with Unsupervised Auxiliary Taskscited by 400
  6. 2019Stabilizing Transformers for Reinforcement Learningcited by 262
  7. 2019Online Meta-Learningcited by 137
  8. 2019Hierarchical Transformers for Multi-Document Summarizationcited by 132
  9. 2019HIBERT: Document Level Pre-training of Hierarchical Bidirectional Transformers for Document Summarizationcited by 120
  10. 2021Adaptive Semiparametric Language Modelscited by 83
  11. 2020Out of Order: How Important Is The Sequential Order of Words in a Sentence in Natural Language Understanding Tasks?cited by 72
  12. 2021Differentiable Patch Selection for Image Recognitioncited by 68
  13. 2018Optimizing Agent Behavior over Long Time Scales by Transporting Valuecited by 57
  14. 2018Unsupervised Predictive Memory in a Goal-Directed Agentcited by 54
  15. 2020Grounded Language Learning Fast and Slowcited by 54
  16. 2019Task Agnostic Continual Learning via Meta Learningcited by 53
  17. 2019Environmental drivers of systematicity and generalization in a situated agentcited by 50
  18. 2019The StreetLearn Environment and Datasetcited by 42
  19. 2020Meta-learning in natural and artificial intelligencecited by 39
  20. 2020Online Fast Adaptation and Knowledge Accumulation: a New Approach to Continual Learningcited by 38
  21. 2019Generalization of Reinforcement Learners with Working and Episodic Memorycited by 35
  22. 2018Sparse Attentive Backtracking: Temporal CreditAssignment Through Remindingcited by 33
  23. 2020Rapid Task-Solving in Novel Environmentscited by 23
  24. 2020MEMO: A Deep Network for Flexible Combination of Episodic Memoriescited by 21
  25. 2021Updater-Extractor Architecture for Inductive World State Representationscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 3; 2022: 9; 2023: 9; 2024: 5; 2025: 10; 2026: 2.

38 papers.

Sort:

By area:

  1. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
  2. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  3. 2023When Do Transformers Shine in RL? Decoupling Memory from Credit Assignmentcited by 62
  4. 2025Memory, Benchmark & Robots: A Benchmark for Solving Complex Tasks with Reinforcement Learningcited by 34
  5. 2023Facing Off World Model Backbones: RNNs, Transformers, and S4cited by 31
  6. 2022Large-Scale Retrieval for Reinforcement Learningcited by 24
  7. 2023Recurrent Action Transformer with Memorycited by 17
  8. 2023Large language models can segment narrative events similarly to humanscited by 16
  9. 2023Memory Gym: Towards Endless Tasks to Benchmark Memory Capabilities of Agentscited by 16
  10. 2022On the link between conscious function and general intelligence in humans and machinescited by 15
  11. 2025Latent learning: episodic memory complements parametric learning by enabling flexible reuse of experiencescited by 14
  12. 2022Zipfian environments for Reinforcement Learningcited by 13
26 more
  1. 2024MemoNav: Working Memory Model for Visual Navigationcited by 13
  2. 2025Episodic memory in AI agents poses risks that should be studied and mitigatedcited by 11
  3. 2022Generalization, Mayhems and Limits in Recurrent Proximal Policy Optimizationcited by 9
  4. 2024MrSteve: Instruction-Following Agents in Minecraft with What-Where-When Memorycited by 8
  5. 2022Planning Irregular Object Packing via Hierarchical Reinforcement Learningcited by 7
  6. 2023Graph schemas as abstractions for transfer learning, inference, and planningcited by 7
  7. 2021Temporal-Spatial Causal Interpretations for Vision-Based Reinforcement Learningcited by 6
  8. 2025Knowledge Retention for Continual Model-Based Reinforcement Learningcited by 6
  9. 2025ELMUR: External Layer Memory with Update/Rewrite for Long-Horizon RL Problemscited by 6
  10. 2024Spatially-Aware Transformer for Embodied Agentscited by 5
  11. 2024Unraveling the Complexity of Memory in RL Agents: an Approach for Classification and Evaluationcited by 5
  12. 2025Beyond Sliding Windows: Learning to Manage Memory in Non-Markovian Environmentscited by 3
  13. 2023EMO: Episodic Memory Optimization for Few-Shot Meta-Learningcited by 2
  14. 2023Grid Cell-Inspired Fragmentation and Recall for Efficient Map Buildingcited by 2
  15. 2023Neuro-Inspired Fragmentation and Recall to Overcome Catastrophic Forgetting in Curiositycited by 2
  16. 2022Off-Beat Multi-Agent Reinforcement Learningcited by 1
  17. 2022MemoNav: Selecting Informative Memories for Visual Navigationcited by 1
  18. 2022Contrastive Distillation Is a Sample-Efficient Self-Supervised Loss Policy for Transfer Learningcited by 1
  19. 2025Sequence-to-Sequence Models with Attention Mechanistically Map to the Architecture of Human Memory Searchcited by 1
  20. 2025The Imperfect Learner: Incorporating Developmental Trajectories in Memory-based Student Simulationcited by 1
  21. 2026Memory Retention Is Not Enough to Master Memory Tasks in Reinforcement Learningcited by 1
  22. 2021Feature-Attending Recurrent Modules for Generalization in Reinforcement Learningcited by 0
  23. 2024CrowdTransfer: Enabling Crowd Knowledge Transfer in AIoT Communitycited by 0
  24. 2025Momentum Boosted Episodic Memory for Improving Learning in Long-Tailed RL Environmentscited by 0
  25. 2025A New Perspective on Transformers in Online Reinforcement Learning for Continuous Controlcited by 0
  26. 2026ALER: Adaptive Learnable Experience Rewriting for Reinforcement Learningcited by 0