Summary
The paper characterises exactly when a single multi-head self-attention (MHSA) layer is equivariant to a group acting linearly on token features. Theorem 1 (§3, App. C) states that for tokens, equivariance at one token is equivalent to equivariance at all tokens, and to this condition: heads grouped by identical QK matrix form clusters, permutes the non-dead clusters, the QK matrices are transported by conjugation, and the cluster-summed OV matrices are transported equivariantly. Extensions cover biases (Thm 4), generalised softmax (Remark 2) and identifiability (Thm 3).
Theorem 2 (§4, App. D) uses this to show that the equivariance locus in a reduced parameter space has many Zariski-irreducible components, and any analytically parameterised architecture lands in only one. A family of architectures that covers all equivariant MHSA therefore needs at least members, which is (about for ) for with 8 heads. Group averaging with heads and the same parameter count covers every component.
The experiments are illustrations: a teacher–student study among six -equivariant 2-head architectures (Fig. 4); head-orbit structure that emerges in unconstrained attention trained on modular addition with an equivariance loss (§5.1) and in a ViT on vector fields trained with augmentation (§5.2); and QM9 / Outex runs showing that the choice of hard-coded component (stabiliser ) changes accuracy (§5.3).
Strengths
Exact, global characterisation of equivariant MHSA (Theorem 1), confirmed numerically
§3, Theorem 1 (p. 4); App. C Eq. (7)
The theorem covers coinciding QK matrices, dead clusters, non-free orbits, non-orthogonal representations and . In our numerical tests, layers built to satisfy condition (3) were equivariant to relative error for , and with (check 01). Five kinds of violation broke equivariance at a single output token by more than the baseline (check 02). The transpose and inverse placement in (3) is correct for non-orthogonal bases, and only cluster sums of OV matrices need to be constrained, which is a non-obvious and useful observation.
Weaknesses
Modular-addition setup is internally inconsistent (confirmed discrepancy)
major · §5.1 (p. 7 line 366) vs App. F.2 (p. 32)
§5.1 states a '32-head self-attention layer with head dimension d = 8', but App. F.2 states 'H = 32 heads, each with head dimension d = 128' (check 12). The difference matters for the experiment's message. With , the per-head rank bound is vacuous and the run tests none of the rank-constrained component structure that motivates Theorem 2; with it binds. is 256 vs 4096, a 16× difference in width. App. F.2 also says 'cross-entropy for 24 classes' and ' acts on … ' for all , which only fits . Because no code is released, a reader cannot tell which model produced Figs. 5, 6 and 9. state the actual , the number of classes and the group for each , and comment on whether the rank bound is active.
Questions for the authors
Which head dimension (8 or 128) and how many output classes were actually used for the p = 15 and p = 17 runs, and does the per-head rank constraint bind in the reported models?
Why is the p = 15 test accuracy 0%, below the 6.7% chance level? Is the train/test split orbit-closed so that the model systematically predicts a shifted answer?
Does Theorem 2 hold as stated when Hd ≠ D, or should the assumption Hd = D be added?
In Fig. 4, do the off-diagonal entries include approximate cross-fits at the 1e-3 to 1e-2 level (we observed seven such pairs in a re-implementation)? What threshold separates 'learns' from 'does not learn'?
Was the Fig. 7 norm computed with Eq. (69) as printed (variance over queries for a fixed key) or with the intended variance over keys for a fixed query?
Can the Lean formalisation of Theorems 1–2 be released, and which statements exactly does it cover (e.g. the generalised-softmax and bias variants)?
Verification
We ran 16 checks with self-contained scripts. Thirteen were confirmed. These cover both directions of Theorem 1 on several groups and non-orthogonal bases, the sharpness of , Lemma 3's Eulerian formula, the count and the bound, the group-averaging cover, the bias extension, all small combinatorial examples, the irrep bookkeeping and orbit predictions for §5.1, the restriction tables, the QM9 means from Table 2, and the cited values from Islam et al. and Ông & Bökman. Two were found. The modular-addition head dimension is in §5.1 but in App. F.2, and the class count and group are stated for only. Eq. (69) computes the transposed variance relative to Eq. (70). One check was : an independent re-implementation of the Fig. 4 teacher–student study reproduced the diagonal and the named exception but found additional approximate cross-fits, and the paper's heatmap values cannot be extracted for comparison. The numerical checks of Theorem 1 test instances and so support but do not prove necessity. No trained models, code or Lean files were available.
References
48 references checked
- Nordström et al. 2025 ('Octic Vision Transformers: Quicker ViTs Through Equivariance', arXiv 2505.15441) and Nordström et al. 2026 ('Quick ViTs: Speeding up Vision Transformers through Equivariance', arXiv 2505.15441)
Duplicate entry: both references carry the same arXiv ID, which resolves to a single work ('Quick ViTs: Speeding up Vision Transformers through Equivariance', Nordström, Edstedt, Kahl, Bökman; v1 21 May 2025, v5 6 Jul 2026; also Crossref DOI 10.1007/978-3-032-37044-0_32). The two bibliography items should be merged (log: work/verify/refs_arxiv_resolution.log, work/verify/16_cited_values.log).
- Henry 2026, 'Generic Fibers and Functional Dimension of Multi-Head Attention', ICML 2026 Workshop on Weight-Space Symmetries, OpenReview 7vPmnHdAPl
Could not be verified: not on Crossref/arXiv, and the OpenReview API returned a 403 challenge to automated access. It is cited in §3 for positioning Theorem 1 against prior characterisations, so its existence and content should be checked manually.
- Wang & Wang 2025, 'Complete Characterization of Gauge Symmetries in Transformer Architectures', OpenReview KrkbYbK0cH
Could not be verified: not on Crossref/arXiv, and OpenReview blocked automated access (403 challenge). It is cited in §3 as prior work that Theorem 1 claims to go beyond (global vs local characterisation); manual check needed.
- Agrawal & Ostrowski 2023, 'A Classification of G-invariant Shallow Neural Networks'
Minor: year mismatch. arXiv 2205.09219 (May 2022) and the NeurIPS 2022 proceedings (Crossref DOI 10.52202/068431-0994, year 2022); cited as 2023. Content (classification of G-invariant shallow ReLU networks) is consistent with its use in the introduction.
- Weiler et al. 2026, 'Equivariant and Coordinate Independent Convolutional Networks: A Gauge Field Theory of Neural Networks', World Scientific 2026
Minor: Crossref lists the World Scientific book (DOI 10.1142/14143) with year 2024, not 2026.
Suggestions
Reconcile §5.1 and App. F.2 (head dimension, number of classes, group per p) and state whether the rank bound is active in the modular-addition models.
Replace 'structures come entirely from equivariance, and not the task' with a claim supported by ablations (-only, -only, several seeds), and explain the below-chance 0% test accuracy.
Ethics and integrity
No ethical concerns about data or dual use. The paper includes a detailed LLM-use statement (p. 11) covering experiment code, proof checking and Lean formalisation; the supporting artefacts are not supplied (see weaknesses). We found no instructions to reviewers or other manipulative text in the manuscript, and nothing that suggests fabricated results; the two discrepancies look like ordinary editing errors.
Scope of this review
Only the PDF was available: no LaTeX source, code, trained weights, data or Lean files. Equations were read from extracted text, which is partly garbled. We verified the theory numerically and symbolically (instances, not proofs) and checked the internal consistency of the experimental predictions and tables. We could not regenerate any trained-model figure (Figs. 1, 5–7, 9, 12), and the Fig. 4 heatmap values could not be extracted. Two cited OpenReview works (Henry 2026; Wang & Wang 2025) and the Outex dataset page could not be fetched automatically. We did not check the algebraic-geometry steps of App. D (Prop. 2, Cor. 1–2) line by line beyond their counting consequences.