# A Positional Realizability Theory of Length Generalization in Single-Head Attention

DevFeed: [A Positional Realizability Theory of Length Generalization in Single-Head Attention](<https://devfeed.tech/articles/a-positional-realizability-theory-of-length-generalization-in-single-head-attention-111558.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.41218>)

Author: Jiasong Han, Yunkai Chai, Jintao Wang

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Transformer](<https://devfeed.tech/topics/transformer.md>), [infini-attention](<https://devfeed.tech/topics/infini-attention.md>)

Tags: [absolute](<https://devfeed.tech/tags/absolute.md>), [addition](<https://devfeed.tech/tags/addition.md>), [attention](<https://devfeed.tech/tags/attention.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [lg](<https://devfeed.tech/tags/lg.md>), [positional-encoding](<https://devfeed.tech/tags/positional-encoding.md>), [theory](<https://devfeed.tech/tags/theory.md>)

## AI overview

The paper explains length generalization in a controlled model of a single positional-only attention head. Its transfer operator evaluates a positional kernel learned at one sequence length on a longer grid; a pretraining scalar α_L provides a sufficient-condition witness for generalization and separates generalizing from non-generalizing positional-encoding/task cells in 2,625 trained-model measurements. The results include a characterization for relative heads under a strict unique-global-maximum condition, an absolute/relative duality, and limits on learned-absolute determination and static expressivity. The general deterministic case remains an open conjecture. The theory concerns positional information alone: content-dependent tasks such as addition and sorting fall outside the stated characterization.

## Source excerpt

arXiv:2610.41218v1 Announce Type: new Abstract: 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 $T_L$ that re-evaluates a selected length-$L_0$-realizing positional kernel on the longer grid, with a scalar $\alpha_L \in [0,1]$ read off before any training from $(\Phi, t_n)$ alone. Here $\alpha_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 $\alpha_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 $\alpha_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.