A Positional Realizability Theory of Length Generalization in Single-Head Attention
Not on the map. Why?
Abstract (arXiv)
Why does length generalization (LG) depend so sharply on the positional encoding (PE)? Relative schemes extrapolate fixed offsets, absolute schemes fix positions, and neither handles growing offsets. We give a realizability theory for a deliberately controlled abstraction, a single positional-only attention head, that derives this well-documented empirical pattern and says precisely where it holds and breaks. The device is a simulation transfer operator TL that re-evaluates a selected length-L0-realizing positional kernel on the longer grid, with a scalar αL ∈ [0,1] read off before any training from (Phi, tn) alone. Here αL serves as the computable witness of that taxonomy's derivation, not as a stronger empirical predictor. Our results are a relative-head deep-row characterization for kernels with a strict unique global maximizer (Theorem 2), an absolute/relative duality that derives the pattern (Proposition 4), a learned-absolute underdetermination result, and a static expressivity bound; a sufficiency theorem (Theorem 1) bridges αL to LG, and the general deterministic case is a precise open conjecture (correcting a tempting but invalid "outside-colspan" argument). Experiments confirm the structure: in the controlled single-head regime αL exactly separates the taxonomy's generalizing and non-generalizing (PE, task) cells (2625 trained-model measurements; stable at vocab 64/d=128). Together, these results turn the received PE taxonomy into a positional-kernel transfer theorem, and identify the content and depth mechanisms that escape it. The theory concerns the positional channel alone: tasks whose targets depend on token content, including the standard length-generalization suite such as addition and sorting, fall outside Theorem 2.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 22 of its 23 references that are in the map. Submitted 30 Oct 2026.
Builds on
22 of 23 references.
References · 22
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,133
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,166
- 2017The Implicit Bias of Gradient Descent on Separable Datacited by 678
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 348
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 299
- 2018Implicit Bias of Gradient Descent on Linear Convolutional Networkscited by 254
- 2022Exploring Length Generalization in Large Language Modelscited by 219
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 219
- 2021Thinking Like Transformerscited by 201
- 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 145
- 2023Representational Strengths and Limitations of Transformerscited by 140
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 127
10 more
- 2023Transformers as Support Vector Machinescited by 85
- 2023Length Generalization in Arithmetic Transformerscited by 76
- 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 66
- 2023Max-Margin Token Selection in Attention Mechanismcited by 60
- 2024Length Generalization of Causal Transformers without Position Encodingcited by 55
- 2024A Formal Framework for Understanding Length Generalization in Transformerscited by 53
- 2024Position Coupling: Improving Length Generalization of Arithmetic Transformers Using Task Structurecited by 28
- 2025Quantitative Bounds for Length Generalization in Transformerscited by 11
- 2025The Role of Sparsity for Length Generalization in Transformerscited by 9
- 2025Deconstructing Positional Information: From Attention Logits to Training Biasescited by 6
Built on by
Not cited yet.