mlsanityData to 14 Oct 2026

Location Attention for Extrapolation to Longer Sequences

arXiv 1911.03872 ↗First posted 10 Nov 2019cs.LG stat.MLcited by 33

Not on the map. Why?

Abstract (arXiv)

Neural networks are surprisingly good at interpolating and perform remarkably well when the training set examples resemble those in the test set. However, they are often unable to extrapolate patterns beyond the seen data, even when the abstractions required for such patterns are simple. In this paper, we first review the notion of extrapolation, why it is important and how one could hope to tackle it. We then focus on a specific type of extrapolation which is especially useful for natural language processing: generalization to sequences that are longer than the training ones. We hypothesize that models with a separate content- and location-based attention are more likely to extrapolate than those with common attention mechanisms. We empirically support our claim for recurrent seq2seq models with our proposed attention on variants of the Lookup Table task. This sheds light on some striking failures of neural models for sequences and on possible methods to approaching such issues.

Key facts. Cited by 33 papers in the map (data through 14 Oct 2026). First posted on arXiv 10 Nov 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 4; 2022: 5; 2023: 8; 2024: 6; 2025: 7; 2026: 3.

33 papers.

Sort:

By area:

  1. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
  2. 2022Exploring Length Generalization in Large Language Modelscited by 206
  3. 2022State-of-the-art generalisation research in NLP: A taxonomy and reviewcited by 98
  4. 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 86
  5. 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
  6. 2023Length Generalization in Arithmetic Transformerscited by 66
  7. 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
  8. 2024Foundation Models for Music: A Surveycited by 37
  9. 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encodingcited by 32
  10. 2025Self-Improving Transformers Overcome Easy-to-Hard and Length Generalization Challengescited by 31
  11. 2021How BPE Affects Memorization in Transformerscited by 29
  12. 2022Law Informs Code: A Legal Informatics Approach to Aligning Artificial Intelligence with Humanscited by 23
21 more
  1. 2024Transformers Provably Learn Sparse Token Selection While Fully-Connected Nets Cannotcited by 22
  2. 2023Improving Length-Generalization in Transformers via Task Hintingcited by 13
  3. 2025Extrapolation by Association: Length Generalization Transfer in Transformerscited by 13
  4. 2022CTL++: Evaluating Generalization on Never-Seen Compositional Patterns of Known Functions, and Compatibility of Neural Representationscited by 12
  5. 2024Your Context Is Not an Array: Unveiling Random Access Limitations in Transformerscited by 11
  6. 2023Monotonic Location Attention for Length Generalizationcited by 9
  7. 2025h1: Bootstrapping LLMs to Reason over Longer Horizons via Reinforcement Learningcited by 9
  8. 2023Grounded Image Text Matching with Mismatched Relation Reasoningcited by 8
  9. 2021∞-former: Infinite Memory Transformercited by 7
  10. 2021Compositional Generalization for Natural Language Interfaces to Web APIscited by 7
  11. 2024Principled Understanding of Generalization for Generative Transformer Models in Arithmetic Reasoning Taskscited by 5
  12. 2023Approximating CKY with Transformerscited by 3
  13. 2025The Imitation Game: Turing Machine Imitator is Length Generalizable Reasonercited by 3
  14. 2023It Ain't That Bad: Understanding the Mysterious Performance Drop in OOD Generalization for Generative Transformer Modelscited by 2
  15. 2025TRA: Better Length Generalisation with Threshold Relative Attentioncited by 1
  16. 2026Retrievit: In-context Retrieval Capabilities of Transformers, State Space Models, and Hybrid Architecturescited by 1
  17. 2024Enhancing Length Extrapolation in Sequential Models with Pointer-Augmented Neural Memorycited by 0
  18. 2025Learning Model Successorscited by 0
  19. 2025Data Distributional Properties As Inductive Bias for Systematic Generalizationcited by 0
  20. 2026Generalization in LLM Problem Solving: The Case of the Shortest Pathcited by 0
  21. 2026Fodor and Pylyshyn's Systematicity Challenge Still Standscited by 0