Not All Memories are Created Equal: Learning to Forget by Expiring
Sainbayar Sukhbaatar, Da Ju, Spencer Poff, Stephen Roller, Arthur, Szlam, Jason Weston, Angela Fan

TL;DR
This paper introduces Expire-Span, a memory management method that learns to forget irrelevant information, enabling Transformers to efficiently handle extremely long sequences while retaining critical data for tasks like language modeling and reinforcement learning.
Contribution
The paper proposes Expire-Span, a novel memory mechanism that selectively expires less important memories, improving scalability and efficiency of sequence models in long-term tasks.
Findings
Achieves state-of-the-art performance on long-context tasks
Scales to tens of thousands of memory states
Trains faster and uses less memory than existing methods
Abstract
Attention mechanisms have shown promising results in sequence modeling tasks that require long-term memory. Recent work investigated mechanisms to reduce the computational cost of preserving and storing memories. However, not all content in the past is equally important to remember. We propose Expire-Span, a method that learns to retain the most important information and expire the irrelevant information. This forgetting of memories enables Transformers to scale to attend over tens of thousands of previous timesteps efficiently, as not all states from previous timesteps are preserved. We demonstrate that Expire-Span can help models identify and retain critical information and show it can achieve strong performance on reinforcement learning tasks specifically designed to challenge this functionality. Next, we show that Expire-Span can scale to memories that are tens of thousands in size,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Expire-Span: Not All Memories are Created Equal: Learning to Forget by Expiring (Paper Explained)· youtube
Taxonomy
TopicsTopic Modeling · Multimodal Machine Learning Applications · Natural Language Processing Techniques
