Research map / Architectures and efficiency / Attention and transformers
Monotonic Location Attention for Length Generalization
Jishnu Ray Chowdhury, Cornelia Caragea
University of Illinois at Chicago
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
5improved
2no clear effect
5hurt
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 |
|---|---|---|---|
| interpolate forward and reversed encoder representations (Bi-Relative) | relative attention · Reverse Copy / Reverse Lookup | accuracy: Reverse Copy 0 -> 100 at length 100; Reverse Lookup 0.4 -> 100 at length 11 | Improved |
| interpolate forward and reversed encoder representations | relative attention · ReCopy-based tasks | accuracy: ReCopy 15: Relative 43.1 vs Bi-Relative 33.4; longer lengths still 0 | No clear effect |
| OneStep attention (ref_t = pa_{t-1}, sigmoid steps, bidirectional encoding) | location attention · Copy, Reverse Copy, Lookup, Reverse Lookup, ReCopy, Reverse ReCopy | accuracy: 100% at all lengths on these tasks; LocAttn fails on Copy length 30 (0) and Reverse Lookup length 7 (13.3) | Improved |
| OneStep attention | Inv ReCopy and Inv Reverse ReCopy · Inv ReCopy / Inv Reverse ReCopy | accuracy: Inv ReCopy length 15: 0.1 vs Bi-Relative 69.8; Inv Reverse ReCopy 0 vs 71.3 | Hurt |
| monotonic attention (ReLU-allowed larger steps) | OneStep attention on inverted ReCopy tasks · Inv ReCopy / Inv Reverse ReCopy | accuracy: Inv ReCopy length 30: 0 (OneStep) -> 100 (Mono); Inv Reverse ReCopy length 100: 0 -> 98.3 | Improved |
| monotonic attention (ReLU-allowed larger steps) | OneStep attention on lookup tasks · Lookup / Reverse Lookup | accuracy: Lookup length 11: 100 (OneStep) -> 29.9 (Mono); Reverse Lookup length 11: 100 -> 0 | Hurt |
| replace sigmoid step with softstair (-Step 3) (ablation) | OneStepAttn · Copy / Lookup / Reverse Lookup | accuracy: Lookup length 7: 100 -> 41.9; Reverse Lookup length 7: 100 -> 22.9; Copy length 15: 100 -> 6.9 | Hurt |
| use location-attention style reference (ref_t with gate and b_t) instead of pa_{t-1} (-Step 2) (ablation) | OneStepAttn · Inv ReCopy / Inv Reverse ReCopy | accuracy: Inv ReCopy length 15: 0.1 -> 95.5; Inv Reverse ReCopy length 15: 0 -> 96.2 (but drops to 0 at length 30) | Improved |
| remove sigmoid activation from step computation (-Sigmoid) (ablation) | OneStepAttn · Lookup / Reverse Lookup | accuracy: Lookup length 9: 100 -> 74.3; Reverse Lookup length 7: 100 -> 19.1 | Hurt |
| mixing content attention with location attention (Mix OneStepAttn) | OneStep attention · SCAN length split | accuracy: Mix OneStepAttn 29.51 vs unmixed-type baselines around 17-21 | Improved |
| mixing content attention with location attention (ablation) | OneStep and location attention on synthetic probing tasks · Copy / Lookup / ReCopy-based tasks | accuracy: Mix OneStepAttn Copy length 15: 2.6 vs OneStepAttn 100; Mix MonoAttn Copy length 15: 99.95 vs MonoAttn 100 (mixing gener | Hurt |
| mixing content attention with location attention | CFQ · CFQ length split | accuracy: Content 62.14 vs Mix OneStepAttn 60.65 vs Mix MonoAttn 60.32 | No clear effect |
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
- The Role of Sparsity for Length Generalization in LLMs (ICML 2025 · similarity 0.88)
- Efficient Length-Generalizable Attention via Causal Retrieval for Long-Context Language Modeling (ICML 2025 · similarity 0.86)
- Beyond Single-Task: Robust Multi-Task Length Generalization for LLMs (NeurIPS 2025 · similarity 0.85)
- How Do Position Encodings Affect Length Generalization? Case Studies On In-Context Function Learning (AAAI 2025 · similarity 0.85)
- LLM Maybe LongLM: SelfExtend LLM Context Window Without Tuning (ICML 2024 · similarity 0.85)
- Understanding and Improving Length Generalization in Recurrent Models (ICML 2025 · similarity 0.84)
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.