Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Not All Memories are Created Equal: Learning to Forget by Expiring (2105.06548v2)

Published 13 May 2021 in cs.LG and cs.AI

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, setting a new state of the art on incredibly long context tasks such as character-level LLMing and a frame-by-frame moving objects task. Finally, we analyze the efficiency of Expire-Span compared to existing approaches and demonstrate that it trains faster and uses less memory.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Sainbayar Sukhbaatar (53 papers)
  2. Da Ju (18 papers)
  3. Spencer Poff (7 papers)
  4. Stephen Roller (27 papers)
  5. Arthur Szlam (86 papers)
  6. Jason Weston (130 papers)
  7. Angela Fan (49 papers)
Citations (31)
Youtube Logo Streamline Icon: https://streamlinehq.com