Relational Composition as Parallel Transport: What Per-Entity Frames Force in Attention
Organizations: University of California, San Francisco · Brigham and Women’s Hospital
Abstract
A dot product means something only when both vectors share a coordinate system. Content words have one; a fresh entity does not: rotating its coordinates alone changes nothing. We take this per-entity frame freedom as a symmetry and ask what it forces in attention. For orthogonal transports, invariant scores depend only on norms and the transported inner product ; equivariant messages lie in the span of and . Endpoint channel count bounds transport rank, so with one vector per entity relations must be supplied; standard attention is the flat sector of a shared frame. Representation theory attaches an integer to each mechanism; the readout decides which. With orthogonal transitions, a convex-cell readout composes a finite group exactly only at or above its smallest faithful real representation dimension. At this minimum, exactness forces a faithful representation. An even readout can decode a cover at smaller width, and the gap is unbounded. Below its threshold, the part of the group a mechanism cannot see sets an accuracy ceiling computable before training. 17/17 fitting seeds at minimal width passed tests through length 1000, versus 7/18 at twice the width; 12 models carry correctness certificates to explicit lengths, from the weights alone. On (faithful width 5), descent at width 4 learned the 72-state double cover under sign-blind attention (6/48 seeds; monotone 0/48); on a frozen cover the cross-entropy-optimal affine head is uniform, a quadratic head exact. On parsed CLUTRR, transported composition beats a matched transformer by 41 points at 4-10 hops, but forcing isometries costs 65 points; on StepGame's commutative algebra, isometries help. 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.
Figures & tables
| group | commutative ceiling | derived length | nilpotency class | |||||
| 8 | ||||||||
| 100 | — (cap ) | |||||||
| 12 | — (cap ) | |||||||
| 24 | — (cap ) | |||||||
| 60 | never (perfect) | — (cap ) | ||||||
| 8 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Group | Raw, in distribution | Raw, | ||
|---|---|---|---|---|
| 10 | 2 | 1.000 | 1.000 | |
| 8 | 2 | 1.000 | 1.000 | |
| 100 | 2 | 0.898 | 0.549 | |
| 12 | 3 | 1.000 | 1.000 | |
| 24 | 3 | 1.000 | 0.998–1.000 | |
| 60 | 3 | 1.000 | 1.000 |
| Group, width | Readout | Fit | Eval. success | Extracted structure |
| Registered protocol | ||||
| , 4 | quadratic | 2/12 | 2/12 | double cover, 72 states |
| , 4 | affine | 0/12 | 0/12 | — |
| , 4 | monotone prototype | 0/12 | 0/12 | — |
| , 4 | even prototype | 0/12 | 0/12 | — |
| , 5 | affine | 6/12 | 0/12 | 3 faithful, 36 states |
| Readout | Reported accuracy | Reported cross-entropy |
|---|---|---|
| Affine, fitted by cross-entropy | near chance ( ) | 3.5835 ( ) |
| Nearest selected lift, affine | 0.500 | not the optimized objective |
| Full quadratic | 1.000 | |
| Squared prototype | 1.000 |
| Task | Mechanism | Train fit | Mean OOD |
| StepGame | transformer, sinusoidal PE | 0.889 | 0.481 |
| additive transport, difference readout | — | 0.753 | |
| additive transport, probe readout | 0.63 | 0.36 | |
| general linear transport, probe readout | — | 0.73 | |
| rotation transport, probe readout | — | 0.82 | |
| exact lattice, period 12, probe readout | — | 0.84 |
| target | constructed | labels | readout separation | |
|---|---|---|---|---|
| ( ) | , | 72 | 36 | quadratic (min ); |
| ( ) | 288 | 144 | quadratic | |
| ( ) | 7200 | 3600 | quadratic |
| run | prot. | fit/ex/ | orbit | cert. | first err. | closure | ker. | defect | snapped eval | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| A4A4-6-lin-s2 | rec | y/y/1.00 | 144 (1) | 0.1531 | 2.23/2.23/2.23 | 14/14/14 | 14268 | 144 | 1 | 3e-15 | 3.8 | 1/1/1 |
| A4A4-6-lin-s9 | rec | y/y/0.47 | 144 (1) | 0.2560 | 1.84/1.84/1.84 | 7/7/7 | 2546 | 144 | 1 | 3e-15 | 2.6 | 1/1/1 |
| C3A4-4-quad-s1 | rec | y/y/0.00 | 72 (2) | 0.0218 | 0.342/0.471/0.831 | 15/21/38 | 1737 | 72 | 3e-13 | 7.7 | 1/1/1 | |
| C3A4-4-quad-s4 | rec | y/y/0.00 | 72 (2) | 0.0216 | 0.341/0.479/0.784 | 15/22/36 | 2872 | 72 | 3e-13 | 7.6 | 1/1/1 | |
| C3A4-5-lin-s1 | rec | y/n/0.05 | 36 (1) | 0.0641 | 2.58/2.58/2.58 | 40/40/40 | 457 | 36 | 1 | 2e-15 | 6.1 | 1/1/1 |
| C3A4-5-lin-s2 | rec | y/n/0.04 | 36 (1) | 0.0393 | 2.45/2.45/2.45 | 62/62/62 | 533 | 36 | 1 | 2e-15 | 6.9 | 1/1/1 |
| Group | First exact constructed tower | |||
|---|---|---|---|---|
| 1 | 1 | depth 2 | ||
| 1 | 1 | depth 2 | ||
| 1 | depth 3 | |||
| none in this class |
Relational Reasoning
Relational reasoning studies how AI systems represent and infer relationships among objects, entities, events, and facts.
See all 35 papers