Research map / Architectures and efficiency / Attention and transformers
Do Transformers Need Deep Long-Range Memory?
Jack W. Rae, Ali Razavi
Google DeepMind · UCL
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
3improved
3no clear effect
6hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- WikiText-103 leaderboard perplexity 18.4 · rank 40 of 123 papers
- Enwik8 leaderboard BPC 0.974 · rank 6 of 16 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use only 4 interleaved long-range memories instead of 24 (ablation) | Transformer-XL · Enwik8 test | BPC: 0.9846 -> 0.9916 | No clear effect |
| use 12 long-range memories instead of 24 (ablation) | Transformer-XL · Enwik8 test | BPC | No clear effect |
| place long-range memories in first layers instead of later layers (ablation) | Transformer-XL · Enwik8 | BPC | Hurt |
| place 3 LRMs in first layers instead of interleaved (ablation) | Transformer-XL · WikiText-103 | perplexity: 18.4 -> 20.1 | Hurt |
| use 3 interleaved LRMs instead of 18 (ablation) | Transformer-XL · WikiText-103 | perplexity: 18.3 -> 18.4 | No clear effect |
| place LRMs in middle layers instead of interleaved/final (ablation) | Transformer-XL (4 LRMs) · Enwik8 | BPC: 1.01 bpc | Hurt |
| reduce LRMs from 24 to 4 (ablation) | Transformer-XL · Enwik8 training | peak activation memory: 3.4 GB -> 1.1 GB | Improved |
| reduce LRMs from 24 to 4 (ablation) | Transformer-XL · Enwik8 training | time per token: 405 us -> 191 us | Improved |
| set short-range memory length to 512 (ablation) | Transformer-XL (4 interleaved LRMs) · Enwik8 test | BPC: 0.99 -> 0.974 | Improved |
| shorten short-range memory below 128 (ablation) | Transformer-XL (4 interleaved LRMs) · Enwik8 | BPC | Hurt |
| increase short-range memory beyond 512 (ablation) | Transformer-XL (4 interleaved LRMs) · Enwik8 | BPC | Hurt |
| use a single long-range memory instead of many (ablation) | Transformer-XL · Enwik8 | BPC | Hurt |
Open problems in sparse efficient transformers for long context
Do sparse and efficient long-context attention methods keep their quality and speed at larger model scale?
- Not tested on models larger than a few billion parameters. · 12 papers state it
- Training costs more or is less stable than a standard transformer. · 7 papers state it
- Quality still falls behind softmax attention or the teacher model. · 6 papers state it
Closest papers by meaning
- Viewing Transformers Through the Lens of Long Convolutions Layers (ICML 2024 · similarity 0.90)
- Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent Memory (AAAI 2024 · similarity 0.88)
- MemoryFormer : Minimize Transformer Computation by Removing Fully-Connected Layers (NeurIPS 2024 · similarity 0.87)
- Memorization Capacity of Multi-Head Attention in Transformers (ICLR 2024 · similarity 0.87)
- Understanding the Expressive Power and Mechanisms of Transformer for Sequence Modeling (NeurIPS 2024 · similarity 0.87)
- Memory-Augmenting Decoder-Only Language Models through Encoders (Student Abstract) (AAAI 2024 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.