NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Memo: Training Memory-Efficient Embodied Agents with Reinforcement Learning

Gunshi Gupta, Karmesh Yadav, Zsolt Kira, Yarin Gal, Rahaf Aljundi

Introduction

Embodied agents operating in complex environments require robust long-term memory to perform tasks like multi-object navigation. While Transformers have become the standard for sequence modeling due to their superior credit assignment, their quadratic computational cost and expanding Key-Value (KV) cache memory footprint make them impractical for long-horizon Reinforcement Learning (RL). Conversely, Recurrent Neural Networks (RNNs) offer fixed-size memory but struggle with vanishing gradients over long sequences.

This paper introduces Memo, a memory-efficient transformer architecture that bridges this gap. Memo periodically compresses past experiences into compact "summary tokens," allowing agents to maintain extensive historical context with significantly reduced resource requirements.

The Memo Architecture

Memo's core innovation lies in its approach to memory management. Instead of attending to every raw observation in a massive history, the model partitions the sequence into segments of length $l_{seg}$. At the end of each segment, the transformer is prompted with learnable summary embeddings to generate a small set of summary tokens ($l_{sum}$).

The Memo architecture accumulates summary tokens across segments, maintaining full gradient flow for effective RL training.

Key features of the architecture include:

  • Summary Accumulation: Unlike purely recurrent models that overwrite a hidden state, Memo accumulates these summary tokens over time. This creates a condensed timeline of the entire history that the model can attend to directly.
  • Full Gradient Propagation: To ensure memory formation is driven by the task's reward signal, Memo propagates RL gradients through all past summaries. This avoids the performance degradation seen in language-modeling compression techniques that truncate gradients.
  • Segment Length Randomization: Randomizing segment length during training prevents overfitting to temporal boundaries and serves as a natural curriculum for the agent.

Experimental Results

The authors evaluated Memo on several memory-intensive benchmarks, including ExtObjNav (a 3D photo-realistic navigation task in Habitat) and Dark-Key-To-Door.

Performance comparison on the ExtObjNav task. Memo (red) outperforms the Full-Context Transformer (yellow) and other baselines in both Success Rate and SPL as context length increases.

Memo demonstrated significant improvements in both performance and efficiency:

  • Superior Success Rates: In the ExtObjNav task, Memo achieved a 7.5% higher Success Rate (SR) and a 2.5% higher Success weighted by Path Length (SPL) compared to a naive Full-Context Transformer (FCT).
  • Resource Efficiency: Memo required 10x less GPU memory for its KV cache (51.8 MB vs. 546.5 MB for FCT) and executed with 4.2x fewer FLOPs, resulting in inference speeds approximately 2x faster.
  • Effective Bottlenecking: Interestingly, the compression mechanism acts as a beneficial bottleneck, filtering out irrelevant visual noise and leading to better generalization and in-context learning.

Conclusion

Memo provides a scalable solution for long-horizon RL by combining the strengths of transformers with efficient memory compression. By accumulating summary tokens and maintaining full gradient flow, it achieves state-of-the-art performance while drastically reducing the computational burden. Future work may explore more advanced memory consolidation techniques and self-supervised objectives to further enhance data efficiency and long-term reasoning.

Summary updated

BibTeX
@inproceedings{gupta2025memo,
  author = {Gunshi Gupta and Karmesh Yadav and Zsolt Kira and Yarin Gal and Rahaf Aljundi},
  title = {{Memo: Training Memory-Efficient Embodied Agents with Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=9eIntNc69t},
}
Figure