Research map / Architectures and efficiency / Attention and transformers
Location Attention for Extrapolation to Longer Sequences
Yann Dubois, Gautier Dagan, Dieuwke Hupkes, Elia Bruni
University of Cambridge · University of Amsterdam · Universitat Pompeu Fabra
Read the paperPlace an idea next to itCheck your own paper ↗
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use the location attender instead of transformer attention | GRU seq2seq · Long Lookup Tables, extrapolation | sequence accuracy | Improved |
| add separate location attention with content-attention mixing (Mix Attention) | GRU seq2seq · Lookup tables, Long 5 | attention loss: 13.9 -> 6.7 vs Transformer | Improved |
| use Transformer attention baseline when inputs get slightly longer | GRU seq2seq · Long Lookup Tables | sequence accuracy: 100% -> 0% | Hurt |
| use Mix Attender on reversed and noisy tasks | GRU seq2seq · Reversed / noisy lookup tables, Long 1 and Long 2 | sequence accuracy: <=40% (Long 1), <=5% (Long 2) | Mixed |
| measure accuracy before EOS instead of full sequence (ablation) | Mix Attender · Noisy lookup tables extrapolation | seqAccBE vs seqAcc | Improved |
| use Mix Attention on interpolation sanity check | GRU seq2seq · Lookup tables interpolation | sequence accuracy: 100% | No clear effect |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- TransformerXL — Transformer-XL: Attentive Language Models beyond a Fixed-Length Context (ACL 2019) · better on 3 of 3 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in attention head mechanisms
Do the attention-head mechanisms and length-generalization results hold in full-scale, real-world models?
- Mechanisms are shown only at small scale, with larger models untested. · 19 papers state it
- Theory covers only one-layer or attention-only transformers. · 14 papers state it
- Findings come from synthetic or toy tasks that may not match natural language. · 12 papers state it
Closest papers by meaning
- Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation (ICLR 2022 · similarity 0.90)
- Monotonic Location Attention for Length Generalization (ICML 2023 · similarity 0.88)
- InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memory (NeurIPS 2024 · similarity 0.86)
- Mesa-Extrapolation: A Weave Position Encoding Method for Enhanced Extrapolation in LLMs (NeurIPS 2024 · similarity 0.86)
- Understanding and Improving Length Generalization in Recurrent Models (ICML 2025 · similarity 0.86)
- Exploring Transformer Extrapolation (AAAI 2024 · similarity 0.86)
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.