arXiv:2610.34945cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.34945

Relational Composition as Parallel Transport: What Per-Entity Frames Force in Attention

Aakash Sarkar, Ananya Mukherjee, Motoshige Sato

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

ABSTRACT

A dot product means something only when both vectors share a coordinate system. Content words have one—the corpus fixes what every direction means—but a fresh entity, a name in a story or a variable in a program, does not: rotating its coordinates alone changes nothing. We take this per-entity frame freedom as a symmetry of the representation and ask what it forces in attention. Every invariant score depends on two entities only through their norms and the transported inner product ⟨xi,Tijxj⟩\langle x_i, T_{ij}x_j\rangle, and every equivariant message lies in the span of xix_i and TijxjT_{ij}x_j. A transport computed from the endpoints' own channels has rank at most the number of channels, never a group element from one vector each, so relations must be supplied; the standard transformer is the flat sector of one shared frame. Representation theory then attaches an integer to each axis of a mechanism, and the readout decides which integer. A readout with convex decision cells composes a finite group exactly only at widths of at least its smallest faithful real representation, and at that width every exact solution is a faithful representation with a finite latent group—as a conclusion, not a hypothesis. An even readout can decode a cover of the group instead, at a smaller width, and the gap is unbounded. Below its integer a mechanism is capped by the part of the group it cannot see—the commutator subgroup for a commutative mechanism, the derived series for a stack of commutative layers, the lower central series for a signature readout—all computable from the group before training. Empirically, every fitting seed at the minimal width generalizes exactly to length 1000 (17 of 17, against 7 of 18 at twice the width), with certified horizons read from the weights. On C3×A4C_3 \times A_4, a 36-element group whose faithful width is 5, gradient descent at width 4 learned the 72-state double cover under a quadratic readout and under sign-blind attention (6 of 48 seeds, half declared in advance; monotone attention 0 of 48), and on a frozen cover the cross-entropy-optimal affine head is provably uniform while a quadratic head is exact. On parsed CLUTRR, transported composition beats a matched transformer by 41 points over four to ten hops (trained on two and three), and forcing isometries reverses that by 65—no isometry represents an idempotent rule such as sibling of sibling, as Krohn–Rhodes predicts—while on StepGame's commutative algebra isometries help instead. Static embeddings gave each word one vector; contextual models gave each occurrence its own; per-entity frames make each relation an operator, the unit in which relations compose. This points toward attention that produces its operators from context rather than retrieving them from a library, and the carrier theorem writes its specification in advance: not from the two entities, but from a carrier the context supplies.

(a) transport, then compare

Figure

frame of j

frame of i

b)treegauge:onlyloopssurvive(c)acover:twostatesperlabelb) tree gauge: only loops survive(c) a cover: two states per label

H→GH \rightarrow G

zhz_h

H1H_1

H2H_2

II

zgz_g

−zh-z_h

aa convex cell owning ±zg\pm z_g owns 0

a quadratic cell reads zz⊤zz^{\top}

zij=ϕ(∥xi∥,∥xj∥,⟨xi,Tijxj⟩)z_{ij} = \phi\left(\|x_i\|, \|x_j\|, \langle x_i, T_{ij}x_j \rangle\right)

rotating either frame alone changes nothing

flat ⇔\Leftrightarrow every loop product is I

loops keep H1,H2H_{1}, H_{2}, up to conjugation

Figure 1: Frames, loops and covers. (a) Under per-entity frames, with the relation data transformed consistently, an invariant score can depend on the pair only through the norms and the transported inner product ⟨xi,Tijxj⟩\langle x_i, T_{ij}x_j \rangle: transport, then compare (Theorem 1). (b) A spanning-tree gauge makes every tree transport II; only the loop products H1H_1, H2H_2 survive, up to one common conjugation, and the connection is flat iff they are all II (Section 2.3). (c) An exact memory need not represent GG itself: a finite H→GH \to G with kernel ±I\pm I, acting freely on a generic initial state, has two states ±zg\pm z_g per label; a convex decision cell owning both owns their midpoint 0, so no convex-cell readout decodes the cover, while a quadratic readout, which reads zz⊤zz^\top and so cannot tell zz from −z-z, decodes it (Theorem 4).

1 INTRODUCTION

Attention compares vectors with a dot product, and a dot product is meaningful only when the two vectors are written in the same coordinate system. That assumption is natural for embeddings learned in one vocabulary, but less natural for a newly introduced name, object, or program variable whose role is specified through relations. We study an explicit alternative: changing the coordinates of one entity, while transforming its attached relation data consistently, should not change the prediction. This is an inductive bias, not a claim that fresh names logically imply a physical symmetry.

The premise leads to a simple rule: transport, then compare. Each entity owns its frame, so a relation operator must carry a neighbour's vector into the receiver's frame before it enters a score or message (Figure 1), a translator between two coordinate languages, of which standard attention is the case where every entity already speaks the same one. The form itself has fifteen years of empirical precedent, in knowledge-graph embedding, orthogonal recurrences and local-frame attention (Nickel et al., 2011; Sun et al., 2019; He et al., 2021; Miyato et al., 2024); what is ours is the derivation from the premise and what follows from it. Our questions are what the premise requires, what information can supply the operator, what exact composition requires of the resulting memory, and what a mechanism short of that requirement can still do.

The last two questions have one answer: the pair (width, readout) selects the algebra the model can realize. With convex decision cells, exact tracking of a finite group needs its smallest faithful real representation, and at that width exactness forces the learned transitions to be the group itself, their latent closure finite as a conclusion. Below the width a transport does not degrade gracefully: its accuracy is capped by the largest quotient the width admits, the kernel it cannot see, and in our runs descent lands on that quotient; or, with a readout blind to sign, it can realize a cover of the group, more states in fewer dimensions. For C3×A4C_3 \times A_4 the faithful width is five, but a double cover works in four; for A4×A4A_4 \times A_4, six and four; and gradient descent at width four finds the cover, certified, when the readout can read it and not when it cannot.

Sections 2–4 prove this chain: the forced form of scores and messages and the rank of a transport computed from endpoint channels (Section 2); convex-readout rigidity, the readout-graded width, and the ceilings below the integer, which classify tasks by their algebra before training (Section 3); and finite certificates that separate a verified snapped model from the learned weights and bound the latter to an explicit horizon (Section 4). Section 5 measures all of it, the frozen-cover intervention most directly: the states are identical, and changing only the head changes what can be decoded.

Throughout, a proof of existence is not a guarantee that descent finds the construction, and finite-test accuracy is not all-word exactness: unsuccessful runs are reported, exploratory protocols kept separate, and the raw weights given worst-case horizons.