Learning with Symmetry: Holonomy, Equivariant Layers, and Low-Rank Adaptation
Anonymous
Abstract
A rotation can preserve every recorded field value while acting nontrivially on a feature fiber. We compute the resulting ambiguity in a classification problem, derive local and global restrictions on equivariant weights, and give a finite low-rank training step that commutes with changes of hidden basis. Held-out experiments on loop classification, spatial kernels, regression and causal attention test the predictions, including a case in which imposing equivariance increases prediction error.
Which observation determines the label?
A groupoid retains symmetries fixing a point and their actions on its fibers. Let a marked generator $a$ of $C_m$ rotate the sphere by $2\pi/m$ about the polar axis, and write $\zeta=e^{2\pi i/m}$. The quotient stack $[S^2/C_m]$ retains the stabilizer at each pole. A unitary line with connection on this stack is a line with connection on the sphere and compatible connection-preserving lifts of the rotations.
Fix the real curvature $F_n=(n/2)\sin\theta\,d\theta\wedge d\varphi$ for $n\in\mathbb Z$. The northern and southern potentials for $d-iA$ are $A_N=(n/2)(1-\cos\theta)d\varphi$ and $A_S=-(n/2)(1+\cos\theta)d\varphi$. Their difference gives the transition $v_S=e^{-in\varphi}v_N$. If a lift acts by $\zeta^k$ on northern components, the rotated transition acts by $\zeta^{k-n}$ on southern components. Each choice $k\bmod m$ respects the group law and gives a line $L_{n,k}$. These exhaust the choices. Two lines of that curvature differ on the simply connected sphere by a flat line with a parallel unit section. After identifying the underlying connections, two lifts differ by a constant unitary gauge transformation whose $m$th power is one. Their characters at the north pole distinguish them.
A constant path at the north pole closed by the arrow $a^h$ measures $\zeta^{hk}$. Each such path projects to a constant path in the coarse quotient. With fixed $n$ and class-independent sampling and noise, curvature measurements have the same distribution for every label. Prediction based on curvature alone has optimal accuracy $\max_k p_k$ for prior masses $p_k$ and zero–one loss. We assume an unseen test label independent of the training data and keep the generator and its orientation fixed.
Theorem 1. For the exact observations $W_H(k)=(\zeta^{h_1k},\ldots,\zeta^{h_sk})$, set $d=\gcd(m,h_1,\ldots,h_s)$ and $q=m/d$. The word identifies $k\bmod q$. Full-label Bayes accuracy is $$ \sum_{j=0}^{q-1}\max_{0\le t<d}p_{j+tq}. $$ For a uniform prior this is $1/d$.
Proof. Equal words require $m\mid h_i(k-k')$ for all $i$. Bézout's identity then gives $m\mid d(k-k')$. Conversely $q\mid k-k'$ implies equality of every coordinate because $d\mid h_i$. A decision rule can select one prior maximizer in each indistinguishable residue class. Summing the mass of the selected labels gives its optimal success probability.
We simulated each loop as four measured edge phases in independent Haar-random vertex frames. The product $Z$ cancels all four frame changes. Given $Z$, one can simulate the original array by drawing three independent Haar phases and setting the fourth equal to $Z$ divided by their product. This reproduces its conditional law, since successive independent frame changes give independent uniform phases on the first three edges. The whole array and its product therefore supply equivalent statistical experiments, while an individual edge has a uniform conditional law for every label.
For one power $h$, a uniform prior and symmetric, angularly unimodal noise with density $f$, nearest-phase decoding of the $q$ distinct symbols yields full-label accuracy $d^{-1}\int_{-\pi/q}^{\pi/q} f(t)dt$. Take $m=8$ and noise proportional to $e^{8\cos t}$. We fitted residue prototypes on 3,072 cycles and evaluated on 20,000 independent cycles per measurement. For $h=1,2,4$, test accuracies were 72.22%, 48.11% and 24.86%, against population optima of 72.20%, 48.32% and 25.00%. In the noiseless generator case the product recovered all 20,000 labels. The edge and curvature controls succeeded 2,482 and 2,446 times, respectively. The sensor measures fiber transport.
Observing a rule of composition
A normalized pseudofunctor $B(C_m\times C_m)\to B^2U(1)$ has one image object and one image arrow. Its additional data include phases comparing two compositions. For $g=(a,b)$ and $h=(c,d)$ define $\beta_k(g,h)=\zeta^{kad}$. Bilinearity proves the associativity condition $\beta(g,h)\beta(g+h,l)=\beta(h,l)\beta(g,h+l)$. Each coordinate axis has trivial restriction. If the instrument can measure the relative phase of the two paths around a square, it instead reads $$ \beta_k(g,h)/\beta_k(h,g)=\zeta^{k(ad-bc)}. $$ Any scalar rephasing of representatives multiplies both factors by the same coboundary. For the marked coordinate generators the square therefore distinguishes every $k$. With $De_j=\zeta^j e_j$, $Se_j=e_{j+1}$, the unitaries $T_{(a,b)}=S^b D^{ka}$ realize this multiplication law. Normalized traces of the corresponding commutators recovered all eight labels in 256 random basis and phase presentations. Measuring just the rays at the ends of those paths would lose their relative phase.
Local harmonics and a global obstruction
On a tangent disk let $a:z\mapsto\zeta z$. A complex-linear spatial kernel taking a feature of character $i$ to one of character $j$ must satisfy $K(\zeta z)=\zeta^{j-i}K(z)$. Thus a Fourier term $b_h(r)e^{ih\theta}$ is permitted exactly when $h\equiv j-i\pmod m$. At the center the same identity forces $K(0)=0$ if $i\ne j\bmod m$. Global weights must also respect transition functions.
Theorem 2. A smooth equivariant pointwise coefficient from $L_{n_i,k_i}$ to $L_{n_o,k_o}$ can be nonzero at both poles precisely when $b=k_o-k_i=0\bmod m$ and $e=n_o-n_i=0\bmod m$. An invertible coefficient exists precisely when $b=0\bmod m$ and $e=0$ as an integer.
Proof. The coefficient is a section of the Hom line with transition $w_S=e^{-ie\varphi}w_N$ and polar characters $b,b-e$. At each pole a nonzero value must be fixed by the stabilizer. When both characters vanish, constant local coefficients multiplied by invariant bump functions on two disjoint polar disks give a section nonzero at both poles. For a nowhere-zero section, the restrictions of the two local coefficients to the equator each have winding zero because they extend as nonvanishing functions over disks. Their ratio has winding $-e$, hence $e=0$. With $e=0$ and $b=0$, a common constant works globally.
We tested the disk calculation with $m=8$, input character 1 and output character 3. The target kernel is $(1+0.30i)z^2+(0.65-0.35i)\bar z^6$, acting by multiplication on a complex feature. For 24 independent seeds we fitted noisy observations at 32 input orbits and tested at all rotations of 128 new orbits. Clean squared prediction error was normalized by test signal power. Unrestricted least squares used all thirteen monomials for angular frequencies from $-6$ through $6$, and constrained least squares kept $-6,2$. Their mean errors were 0.0652 and 0.00395. Adding the forbidden term $(0.65+0.30i)z^3$ to the target reversed the ranking, with errors 0.0504 and 0.254. Generating all eight rotated copies of each observation under the prescribed character reproduced the constrained fit in both cases. Character orthogonality on full orbits and full column rank force unused coefficients to vanish.
Predicting the next training step
For a frozen linear layer, write a low-rank update as $D=BA$, with hidden dimension $r$ and fixed scale absorbed into the objective. The right action $(B,A)\cdot S=(BS,S^{-1}A)$ of $GL_r$ preserves inference. At the common product zero, $(0,0)$ gives zero factor gradients for every differentiable loss of $D$, while $(0,A_0)$ can move: its first Euclidean product step is $-\eta G A_0^\top A_0$ with $G=\nabla_D f$. A nonorthogonal change of basis of a single pair can also change its Euclidean training trajectory, despite preserving its factor ranks and every initial prediction.
Theorem 3. Equip the hidden space with a fixed positive-definite metric $H$. For a differentiable objective of the effective matrix and simultaneous updates, the finite step $$ B_+=B-\eta G A^\top H,\qquad A_+=A-\eta H^{-1}B^\top G $$ commutes with $(B,A,H)\mapsto(BS,S^{-1}A,S^\top HS)$ at every rank.
Proof. The factor differential is $dD=\dot BA+B\dot A$. Pairing with $G$ under the Frobenius inner product gives the displayed gradient in the metric $\operatorname{tr}(\dot B H^{-1}\dot B^\top)+\operatorname{tr}(\dot A^\top H\dot A)$. At the transformed point $G$ is unchanged. The first gradient transforms to $GA^\top HS$ and the second to $S^{-1}H^{-1}B^\top G$. The updated pair therefore represents the same product after one step and, by induction, after any common sequence of steps. At $(0,0)$ all scalar basis changes fix the factors, so no positive-definite metric can be chosen equivariantly from the pair alone there.
In 16 noisy rank-three regression tasks, the first product-step norms at $(0,cA_0)$ for $c=1/2,1,2$ followed the predicted ratio $1/4:1:4$. Mean held-out MSE after 300 ordinary gradient steps was 0.02908, 0.03543 and 0.06866, respectively. Directly fitted rank-three least squares gave 0.02898 and dense least squares 0.03628. The teacher had the stipulated rank. Scale alone gives no general convergence ranking.
In eight synthetic next-token tasks we trained a rank-two query update in one causal attention head. Each teacher generated 64 training and 256 held-out sequences; the objective used teacher probabilities for each prefix. After 80 simultaneous full-batch steps the mean test KL in nats was 0.03971 from both-zero factors, 0.00342 in the reference frame, and 0.00372 after a shear with ordinary Euclidean updates. Transporting the metric under the shear gave 0.00342 and matched every reference effective product within $1.62\times10^{-15}$ in Frobenius norm. The attention results characterize coordinate dependence in a synthetic model.
Authorship, evidence and references
An anonymous researcher commissioned this work. OpenAI Codex drafted the manuscript and implemented the synthetic experiments. The accompanying source contains the proofs, scripts, seeds and measurements.
- R. H. Wasserman, Tensors and Manifolds with Applications to Mechanics and Relativity (1992). Catalog record.
- D. Blackwell, Comparison of Experiments (1951). Berkeley record.
- E. Lerman and A. Malkin, Differential characters as stacks and prequantization (2008). Manuscript.
- M. Weiler and G. Cesa, General E(2)-Equivariant Steerable CNNs (2019). Proceedings.
- E. J. Hu et al., LoRA: Low-Rank Adaptation of Large Language Models (2022). Manuscript.
- B. Mishra et al., Fixed-rank matrix factorizations and Riemannian low-rank optimization (2014). Manuscript.
- A. Vaswani et al., Attention Is All You Need (2017). Manuscript.