Manuscript Offprint

arXiv:2609.01129

Scaled Idempotence in Transformer Attention: Paired OV Geometry and Shared-Value Algebras

Jiming Feng, Junliang Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We identify a recurrent algebraic regularity in Transformer attention: a sparse subset of effective OV operators T=OV⊤T = OV^\top nearly closes under composition, T2≈αTT^2 \approx \alpha T.¹ Across six pretrained endpoints spanning 2.8B–235B parameters, 3.98–8.00% of heads reach squared closure alignment P≥0.9\mathcal{P} \geq 0.9, whereas no matched within-layer O/V mismatch reaches this threshold. The tail is not numerically square-zero: over all 881 strong heads, the return gain ∥T2∥F/∥T∥F\|T^2\|_F / \|T\|_F has model medians 0.032–2.51 and a pooled minimum of 0.014. An exact factorization in principal coordinates,

T=QOKQV⊤,T2=QO(KDK)QV⊤,T = Q_O K Q_V^\top, \qquad T^2 = Q_O (K D K) Q_V^\top,

separates within-support transport KK from read–write return geometry DD. A population-wide intervention over all 7,304 heads in nine MHA/GQA models scrambles only the orientation of KK while preserving its singular spectrum, norm, read/write factor spans, and every principal angle; all 14,608 participating O/V factors have full numerical column rank. Median closure falls from 0.336 to 1.04×10−41.04 \times 10^{-4}; the trained orientation yields higher closure for 98.64% of heads and in all 268 layers. A complementary search, with heads sampled independently of closure, finds an explicit feasible construction above 0.8 among the sampled heads in every layer, including layers without a strong head, although most sampled high-capacity heads do not attain strong closure. Retrospective trajectories in three independently trained lineages further separate broadly available feasible geometry from the orientations attained by the final strong population. Under exact value sharing, headwise closure extends to a fixed-gain right-action algebra: TiTj=αjTiT_i T_j = \alpha_j T_i for every sibling ii. Seven-model experiments verify the approximate law and reveal distinct oblique projections with a shared value-defined kernel. Together, these results characterize scaled idempotence as a sparse trained orientation within a broadly available geometric capacity and show that value sharing extends the headwise relation to a local operator algebra.

1 Introduction

For a generic low-rank map, applying it twice need not preserve the direction of applying it once. Yet a nontrivial minority of trained Transformer attention heads exhibit

T2≈αT,T=OV⊤,(1)T^2 \approx \alpha T, \qquad T = O V^\top, \tag{1}

¹Large language model tools assisted with code drafting, experimental-design iteration, analysis scripting, literature discovery, and language editing. The research question and final scientific judgments are the authors'; all derivations, executions, numerical claims, citations, and final text were independently checked, and the authors assume full responsibility.

where TT is the head's effective residual-stream OV operator. This scaled idempotence is visually and algebraically suggestive: the operator nearly closes under composition. It also poses a concrete mechanistic question. Is Equation 1 a chance consequence of low rank, an approximate projection or copying rule, or the visible endpoint of a relation learned between the separately parameterized value and output factors?

To distinguish these possibilities, we compare each canonical O/V pair with cyclic within-layer wrong-V pairings that preserve the two factor collections while breaking their trained correspondence. Strong scaled idempotence disappears under this control. We then decompose each operator into principal-angle geometry and a transport core, allowing the contribution of their head-specific pairing to be tested directly.

Our results attribute Equation 1 to a specific relation between separately parameterized O and V factors and establish an exact compositional consequence under value sharing. The relation does not require TT to be an orthogonal projection, the read and write subspaces to coincide, or the head to copy tokens. We derive a small-matrix factorization that separates subspace support from within-subspace transport. Let the principal-angle cosines between the read and write spaces form a diagonal matrix DD, and let KK express the OV core in the corresponding principal coordinates. Then

T=QOKQV⊤,T2=QO(KDK)QV⊤.(2)T=Q_{O}K Q_{V}^{\top},\qquad T^{2}=Q_{O}(K D K)Q_{V}^{\top}. \tag{2}

When D≈cID \approx cI, closure of TT is governed by the more general latent law K2≈βKK^{2} \approx \beta K; the transport core need not be close to a scalar matrix. More importantly, the decomposition makes the mechanism experimentally separable: support geometry and transport orientation can be intervened on while their coarse invariants remain fixed.

We study this phenomenon across model scale, attention topology, training stage, and matched geometric controls. Our contributions are:

  • We identify a recurrent scaled-idempotent upper tail across pretrained Transformer endpoints from 2.8B to 235B parameters, show that it disappears under marginal-preserving O/V mismatch, and derive its exact KDKKDK return geometry.

  • We isolate transport orientation without selecting heads by closure. Across all heads and layers in nine MHA/GQA models, closure collapses when the trained orientation is scrambled while spectrum, read/write spans, and principal angles remain fixed.

  • We separate geometric capacity from trained attainment. High closure is constructively feasible in every surveyed layer, while retrospective trajectories associate the sparse final tail primarily with attained orientation rather than with scarce capacity.

  • We prove that shared values turn exact headwise closure into a fixed-gain cross-head operator algebra. Seven-model tests confirm the approximate law, and an affine normal form characterizes distinct oblique projections with a common value-defined kernel.

Scaled idempotence is therefore a sparse signature of a paired O/V relation, not a property visible in either factor alone.

References (19)