# Attention as Lattice Gauge Theory: Relations Interact Only Through Wilson Loops

arXiv: https://arxiv.org/abs/2610.37656 · HTML: https://mlsanity.com/paper/2610.37656/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 19 of its 33 references that are in the map.
- Submitted 27 Oct 2026.

## Builds on (most cited first, 19 of 19)

- [Embedding Entities and Relations for Learning and Inference in Knowledge Bases](https://mlsanity.com/paper/1412.6575/) (2014)
- [RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space](https://mlsanity.com/paper/1902.10197/) (2019)
- [Complex Embeddings for Simple Link Prediction](https://mlsanity.com/paper/1606.06357/) (2016)
- [Gauge Equivariant Convolutional Networks and the Icosahedral CNN](https://mlsanity.com/paper/1902.04615/) (2019)
- [Neural Sheaf Diffusion: A Topological Perspective on Heterophily and Oversmoothing in GNNs](https://mlsanity.com/paper/2202.04579/) (2022)
- [Network Embedding as Matrix Factorization: Unifying DeepWalk, LINE, PTE, and node2vec](https://mlsanity.com/paper/1710.02971/) (2017)
- [Equivariant flow-based sampling for lattice gauge theory](https://mlsanity.com/paper/2003.06413/) (2020)
- [Sampling using SU(N) gauge equivariant flows](https://mlsanity.com/paper/2008.05456/) (2020)
- [Sheaf Neural Networks](https://mlsanity.com/paper/2012.06333/) (2020)
- [Lattice gauge equivariant convolutional neural networks](https://mlsanity.com/paper/2012.12901/) (2020)
- [Systematic Generalization with Edge Transformers](https://mlsanity.com/paper/2112.00578/) (2021)
- [Gauge equivariant neural networks for quantum lattice gauge theories](https://mlsanity.com/paper/2012.05232/) (2020)
- [Relation Embedding with Dihedral Group in Knowledge Graph](https://mlsanity.com/paper/1906.00687/) (2019)
- [Robust Group Synchronization via Cycle-Edge Message Passing](https://mlsanity.com/paper/1912.11347/) (2019)
- [The Geometry of Synchronization Problems and Learning Group Actions](https://mlsanity.com/paper/1610.09051/) (2016)
- [Gauge-Equivariant Graph Neural Networks for Lattice Gauge Theories](https://mlsanity.com/paper/2604.20797/) (2026)
- [Robust Reasoning as a Symmetry-Protected Topological Phase](https://mlsanity.com/paper/2601.05240/) (2026)
- [From Self-Attention to Connection Laplacian: A Unified Operator View of Transformers](https://mlsanity.com/paper/2607.10677/) (2026)
- [Relational Composition as Parallel Transport: What Per-Entity Frames Force in Attention](https://mlsanity.com/paper/2610.34945/) (2026)

## Abstract (arXiv)

Relations compose through the entity they share - Alice is Bob's mother and Bob is Carol's father, so Alice is Carol's grandmother - and the order matters, since a father's mother is not a mother's father; verifying a composed relation means closing the loop. We show that if each entity's coordinate frame may be rotated independently (per-entity frame freedom), three things follow. In the pure-gauge sector, relations that share no cycle cannot interact at all. The only gauge-invariant score of a triangle is a class function of its holonomy H = Tij Tjk Tki - a Wilson loop. And the only equivariant update of an edge is U = Psi(H), Tij with Psi conjugation-equivariant. Edge attention by Wilson loops is therefore not one design among many but the unique form the symmetry permits. Three communities hold pieces of this form: the commuting-operator embeddings of knowledge graphs are its abelian (commuting) sector; AlphaFold's triangle update and the Edge Transformer have its shape - an edge updated through the third vertex - without its constraints; and lattice QCD builds it equivariantly on lattices. We instantiate the equivariant sub-family on general relational graphs as holonomy attention. With no training and composition alone, it infers unobserved S4 relations on sparse graphs at 0.88 with a fifth of the edges corrupted, at or slightly below specialist synchronization algorithms, where every commutative architecture is capped at 0.083; its holonomy score flags corrupted triangles at AUC 0.99 where commuting scores are capped at 0.76 by a second selection rule, and it separates clusters without labels.
