Learning with Symmetry: Holonomy, Equivariant Layers, and Low-Rank Adaptation
Continuous, single-column reading. Equations, tables, proofs, references and appendices stay in document order.
Contents · 27 sections
RESEARCH MANUSCRIPT
Learning with Symmetry
Holonomy, equivariant layers, and low-rank adaptation
Anonymous
Abstract. Which symmetries preserve enough information to identify a label, define a layer, or reproduce a training step? On a magnetic sphere with cyclic isotropy of order m, we prove that observing the loop powers h1,…,hs gives optimal uniform-label accuracy 1/gcd(m,h1,…,hs). A projective-action example recovers a label from the relative phase of two compositional paths. For equivariant line features we distinguish the congruence needed for a nonzero map at both poles from the integer-degree condition for a globally invertible weight. In 24 held-out-orbit experiments the correct symmetry reduced normalized prediction error from 0.0652 to 0.00395, while a target violating it reversed the comparison. For low-rank adapters we classify the orbits over the zero matrix and construct a finite gradient step that commutes with every change of hidden basis when its metric is transported. Tests on regression and causal attention distinguish identical forward predictions from identical training trajectories.
Imagine that a classifier receives exact measurements of a magnetic field at every point of a sphere. Its label specifies how a finite rotation fixing the north pole acts on the phase of a charged line there. Under a uniform prior on m possible lifts, every curvature-based classifier has accuracy 1/m. One measurement of a phase around the appropriate loop identifies the label exactly. The difference persists with unlimited training data and unlimited model capacity. It arises because the two instruments measure different mathematical objects.
The example comes from the companion manuscript Tensor Geometry on Smooth Stacks, which developed Wasserman’s tensor geometry of mechanics and relativity [1]. We give the necessary constructions here and ask three learning questions. What is the best prediction available from a specified measurement? Which network weights are compatible with a symmetry of the inputs and targets? When do two systems with identical forward predictions take identical optimization steps? In each case one must specify what a change of description does to the data. Consequences range from an exact error bound to a counterexample to coordinate invariance of gradient descent.
The role of the groupoid
Let X be a groupoid of objects and invertible comparisons. A scalar observation o constant along arrows factors through the set of isomorphism classes π0X. A vector-valued field also specifies how arrows act on the fibers. At a point x with stabilizer Gx, two feature bundles carry fiber representations ρx,σx. A linear layer between them obeys Lxρx(g)=σx(g)Lx. This equation is the naturality square for the endomorphism g:x→x. It can force particular weights to vanish, even when the two fibers have the same dimension.
A smooth stack permits these objects and arrows to vary smoothly in families and to be glued from overlapping charts [2]. For the action of G on a manifold M we write [M/G]. It retains the automorphisms Gx at a fixed representative. A field on the quotient can therefore distinguish an arrow with constant underlying base path from the identity. In Section 2 the signal is the action of this arrow on a line. In the projective-action calculation, two ways to compose symmetry transformations can differ by a scalar comparison. The scalar that survives allowed changes of phase is the higher observable there.
For optimization, take a groupoid whose objects are parameter settings and whose arrows change the basis of a hidden space. A map from parameters to predictions may be constant along every arrow. A training rule has to respect the arrows as well if the next predictions are to be determined by those same equivalences. A nonorthogonal change of hidden basis provides a failure case for Euclidean factor gradients. A choice of inner product that transforms with the basis restores the comparison for any finite number of steps. Such a rule still distinguishes genuinely different objects over the same prediction, such as two initial factors having different row spaces.
A decision-theoretic interpretation
Suppose k ranges over a finite parameter set and Pk is the observation law. A decision rule is a probability kernel from observations to labels. If a second observation is computed from the first by a kernel independent of k, any rule for the second can be used on the first by composing kernels. Thus optimal success on the first experiment is at least that on the second. If kernels simulate each experiment from the other, the optimal decision values agree for every prior and bounded loss. This is the elementary direction of Blackwell comparison [3]. It applies even if the chosen machines and optimizers have different sample efficiency. In the phase experiment, taking the product of the edge measurements is such a statistic, and a second kernel reconstructs their joint distribution given the product. The result gives an analytic ceiling against which a fitted classifier can be checked.
The empirical comparisons are paired wherever the algorithms can share data. For the classifier we report unseen draws from the full measurement channel. For a steerable kernel we reserve entire rotation orbits for testing, then violate the assumed symmetry to measure its cost. For an adapter we use test inputs that played no part in fitting, record all seed-level results, and compare with a closed-form reduced-rank fit. A causal attention experiment checks the gradient identity through a softmax. The mathematical results specify exactly which equalities hold for all inputs. The reported error rates describe the stated data-generating models.
Relation to prior work.
Prequantization of differentiable stacks gives an atlas-independent account of line bundles with connection [4]. Steerable and gauge-equivariant CNNs use intertwining conditions to design kernels on planes and manifolds [7, 8]. Quotient optimization studies the full-rank factorization of a matrix [10], and the loss landscape of shallow linear networks is well studied [11]. LoRA applies this parameterization to frozen neural-network weights [9]. Our contribution is to connect these results to explicit decisions that can be falsified on finite examples. We calculate the optimal sensor for a chosen set of cyclic probes, distinguish a polar weight test from a global obstruction to invertibility, and compare entire training trajectories under changes of basis. The projective example extends the sensor question to the coherence of two compositions.
Which lift can a classifier identify?
Fix an integer monopole charge n and a cyclic group Cm of order m≥2 rotating the unit sphere through multiples of δ=2π/m about its polar axis. The generator a is marked: the measurement specifies which rotation and which orientation it uses. A training label k∈Z/m specifies how this rotation acts on a unitary line with connection over the quotient stack [S2/Cm]. All labels have the same underlying connection on the atlas. A sensor may measure the curvature, or it may use the additional identification of fibers supplied by an arrow of the quotient groupoid. We calculate the best possible accuracy of each observation, for zero–one loss on the full label k.
The character as a stack observable
Use the standard oriented polar coordinates and write the local covariant derivatives as d−iAN and d−iAS. On the complements of the opposite poles choose AN=2n(1−cosθ)dφ,AS=−2n(1+cosθ)dφ. Their exterior derivatives are both Fn=2nsinθdθ∧dφ, of total flux 2πn. The north potential extends smoothly to N since (1−cosθ)dφ=2(xdy−ydx)/(1+x2+y2) in the stereographic coordinates of radius tan(θ/2). The analogous calculation holds at S. On the overlap AN−AS=ndφ and the fiber components obey vS=e−inφvN. Differentiating this transition verifies (d−iAS)vS=e−inφ(d−iAN)vN.
Put ζ=e2πi/m. Let the lift of a send the north component vN to ζkvN over (θ,φ+δ). The new south component is then e−in(φ+δ)ζkvN=ζk−nvS. Both lifts preserve the local potentials and obey am=1. Any two unitary lines of this curvature differ on the simply connected sphere by a flat line, which has a global parallel unit section. Two lifts on the identified connection differ by a parallel gauge transformation over the identity, necessarily a constant phase. The group law forces this phase to be an mth root of unity. Conversely each such phase gives one of the stated lifts. The resulting classes are pairwise inequivalent because a connection-preserving equivariant isomorphism must intertwine their north-pole characters. This is the elementary finite-quotient instance of prequantization on a differentiable stack [4].
The polar loop with rotation power h is the constant path at N closed by the arrow ah, where the integer h specifies the rotation power. Its transport is Wh(k)=ζhk. Under a change of fiber frame the resulting endomorphism is conjugated by the frame isomorphism. On a complex line its scalar is unchanged. The corresponding loop at S gives ζh(k−n), so multiplication by the known ζhn recovers the northern convention. A path from x to ahx closed by a−h uses the inverse arrow and acquires the inverse character when the lift is twisted. Every polar loop above projects to a constant path in the coarse sphere. To observe Wh one must measure or supply the arrow’s action on the fiber. Sampling finer grids of classical curvature values never performs that operation.
Exact identifiability
Let K have prior pk. Training data, internal randomization, and test-time nuisance variables are taken independent of the unseen test label unless explicitly included in an observation channel. In particular an arbitrary independent training set can be conditioned on throughout. A curvature-only observation has a law independent of k at fixed n when all sampling and noise mechanisms are class-independent. This also holds for functions of the ordinary atlas connection and for classical trajectories whose dynamics use only Fn, given class-independent initial conditions. The resulting posterior equals the prior. Constant prediction of a most-probable class has accuracy maxkpk, and no rule can exceed it. For uniform classes the accuracy is 1/m.
Proposition 1 (Polar observations and Bayes accuracy). For integer powers H=(h1,…,hs) observe the exact word WH(K)=(ζh1K,…,ζhsK). Put d=gcd(m,h1,…,hs) and q=m/d, taking d=m for an empty word. The word determines Kmodq. Optimal exact-label accuracy is j=0∑q−10≤t<dmaxpj+tq. For a uniform prior this is 1/d. Separation of all m labels is equivalent to d=1. For a specified prior, zero Bayes error holds precisely when each residue contains at most one label of positive mass.
Proof. Two words agree precisely if m∣hi(k−k′) for every i. Bézout’s identity expresses d as an integer combination of m and the hi, so equality implies m∣d(k−k′) and hence q∣k−k′. Conversely d∣hi, so q∣k−k′ gives equal words. The fiber at a residue j is consequently {j,j+q,…,j+(d−1)q}. Given this word, a decision rule maximizes its contribution to success by choosing a prior maximizer in that fiber. Summing the unconditioned mass of each such choice gives the displayed expression. Randomization only takes convex combinations of these contributions. ◻
For example m=6, H=(2) gives the three possible measurements 1,ζ2,ζ4. The labels 0 and 3 remain indistinguishable. The measurement with H=(3) alone identifies parity. Taken together the two measurements determine the entire class because gcd(6,2,3)=1. For a uniform prior, the noiseless word has entropy log2q bits and the residual conditional entropy is log2d bits. This quantifies the information supplied by sensing before a learning algorithm or hypothesis class is chosen.
Robustness and stochastic sensor noise
Give each phase its geodesic angular distance in radians, and the product torus the maximum coordinate distance. For q>1 the minimum separation among distinct observable words is ΔH=2π1≤r<qmin1≤i≤smaxmhirR/Z, where ∥u∥R/Z=minj∈Z∣u−j∣. Translation invariance reduces every pairwise distance to a difference from the identity, giving this formula. Under perturbations of size strictly less than ΔH/2, nearest-word decoding recovers the observable residue because the triangle inequality leaves it strictly closer than every competitor. At radius ΔH/2 the midpoint of shortest coordinatewise geodesics between a minimum-distance pair is admissible for both, so no decoder can guarantee their separation under all such perturbations. For a single h with q>1, the symbols are a regular q-gon and the threshold is π/q. When d>1, even a noiseless measurement retains the d-way ambiguity of the proposition. If further noise depends only on the clean word, perturbing it cannot improve the optimal exact-label accuracy. A decision rule with access to the clean word can simulate the noisy decision rule.
For a probabilistic example take h=1, a uniform prior and one sample Y=δK+Emod2π. Let E have circular density f with respect to angular Lebesgue measure. Equal priors and maximum-posterior decoding give exact accuracy Popt=m1∫02π0≤k<mmaxf(y−kδ)dy. Indeed the joint density of label k and observation y is f(y−kδ)/m. Maximizing this density for each y and integrating proves the formula. If f is symmetric about zero and nonincreasing in angular distance from zero, nearest phase realizes the maximum and Popt=∫−π/mπ/mf(e)de. For von Mises noise of concentration κ≥0 this becomes Popt=∫−ππexp(κcosu)du∫−π/mπ/mexp(κcosu)du. For a general single power h under the same uniform prior and unimodal circular noise, let q=m/gcd(m,h). Conditional on its residue class the d=m/q labels continue to be equiprobable even after observing noise. The residue symbols form a uniformly sampled regular q-gon, in an order permuted by h/d. Hence the optimal full-label accuracy is d1∫−π/qπ/qf(e)de. For q=1 this expression equals 1/m for every noise level. For d=1 the von Mises accuracy rises from chance at κ=0 to unit limiting accuracy as κ→∞. The general maximum formula also applies to multimodal noise, for which nearest phase can be suboptimal. These bounds concern a specified observation channel and its population distribution. Finite training samples, optimization error, and a misspecified predictor can reduce achieved accuracy, while a change in sensor, prior, or nuisance–label dependence changes the prediction problem itself.
Learning a lift from a noisy loop
At the north pole of the rotation quotient [S2/C8], choose a line of fixed magnetic curvature and label its equivariant lift by K∈{0,…,7}. The isotropy generator a multiplies the fiber by exp(2πiK/8). To measure ah we take the constant path at the pole and close it by the arrow ah. This orientation fixes the plus sign of the recorded phase. The resulting supervised problem is to predict the full label K. The learner observes transports in randomly chosen frames, knows h, and receives independent labeled training samples. The distribution of K is uniform.
Generating and observing a cycle
Write the loop as three identity transitions and the closing group arrow, and give its four vertices independent Haar-distributed frames g0,…,g3∈U(1). In a reference frame take edge coefficients V0=V1=V2=1 and V3=exp(i(2πhK/8+ϵ)). Noise acts on the measured closing phase. Its density on [−π,π) is fκ(t)=eκcost/(2πI0(κ)), where 2πI0(κ)=∫−ππeκcostdt. At κ=0 the phase is uniform. We use κ=∞ to denote zero measurement error. The observed array has entries Uj=gj+1Vjgj−1,j∈Z/4. Their product Z=∏jUj cancels every vertex frame. This is a model of noisy isotropy transport and assumes access to a loop phase.
Proposition 2 (Sufficiency of the closed product). On a cycle with ℓ≥2 edges, take independent Haar frames and put the entire signal and sensor noise on the closing edge as above. The experiment observing the full array and the experiment observing Z simulate each other by label-independent probability kernels. Observing a single edge has the prior distribution as its posterior on labels.
Proof. Starting with g0, the first ℓ−1 edge values determine the remaining frames successively. Haar translation invariance therefore gives independent Haar variables on these edges, independent also of K and ϵ. To simulate the full array given Z, draw these ℓ−1 edges and set the closing edge equal to Z divided by their product. The reverse simulation takes the product. Each nonclosing edge is Haar, and the closing edge, conditioned on Z, is also Haar since it contains the inverse of an independent Haar product. Thus no single-edge observation updates the prior. The full-array Bayes accuracy now follows from Section 2. With d=gcd(8,h) and q=8/d, it is d−1∫−π/qπ/qfκ(t)dt. ◻
Fitting and testing the classifier
For each h∈{1,2,4} and each noise level, we fit one complex prototype for each label residue modulo q. We sum the training values of Z in each residue and normalize the sum to unit modulus. The decision rule chooses the prototype having the largest real inner product with the test feature. For a predicted residue r it outputs the fixed representative r as a full label. This supplies the learner with the known aliasing relation. It learns the phase centers from examples. As a negative control we fit eight prototypes directly to the noisy closing edge U3. A second control uses the common curvature and always predicts label zero. Both controls have population accuracy 1/8. We fit on 3,072 independent labeled cycles and test on 20,000 new cycles for each of thirty (h,κ) settings. The three feature rules share test examples within a setting. We evaluate the reference integral by 96-point Gauss–Legendre quadrature. The intervals are pointwise 95% Wilson intervals [5] over independent test cycles, conditional on the fitted prototypes.
Predicting all eight lifts. In the left panel, curves give the Bayes accuracy and points give held-out accuracy with pointwise 95% intervals. The horizontal scale is log2(1+κ), labeled by κ. The right panel compares the noiseless generator experiment using a cycle product, its closing edge alone, or fixed curvature. Short horizontal bars give the population optima.
At κ=8 the learned accuracies were 72.22%, 48.11% and 24.86% in increasing order of h. The corresponding optimal values are 72.20%, 48.32% and 25.00% to two decimal places. With zero noise the classifier made 20,000, 10,037 and 5,059 correct predictions out of 20,000. A finite test fraction can exceed the population optimum through sampling variation. For the generator the open-edge control succeeded 2,482 times and the curvature control 2,446 times. Across all thirty settings the largest absolute difference between closed-product classifier test accuracy and its Bayes accuracy was 0.514 percentage points. A second independent change of frames on the first 256 held-out cycles in each setting changed no predicted classes and changed the cycle product by less than 8×10−16 in complex modulus. Figure 1 separates two effects of the measurement. Increasing concentration resolves neighboring phase centers, while increasing the kernel size of k↦hkmod8 makes distinct lifts indistinguishable even at zero noise.
Two compositional paths reveal a projective multiplier
The cyclic sensor reads the action on a single arrow. A different identification problem arises when the unknown datum assigns a phase to the composition of two arrows. Take the marked group G=Cm×Cm, with generators x=(1,0) and y=(0,1), and write ζ=e2πi/m. Regard BG as a one-object category and B2U(1) as the 2-groupoid with one object, one 1-arrow and circle-valued 2-automorphisms. A normalized pseudofunctor BG→B2U(1) sends each arrow to the unique 1-arrow. Its remaining data are the compositors, phases β(g,h) comparing multiplication of the two images with the image of the product. The associativity coherence reads β(g,h)β(g+h,l)=β(h,l)β(g,h+l). For g=(a,b) and h=(c,d) set βk(g,h)=ζkad, where k∈Z/m. This formula is independent of the chosen integer representatives. Bilinearity gives the coherence identity. Writing l=(e,f), the exponents are k(ad+(a+c)f) and k(cf+a(d+f)). They agree as integers. The phase is 1 if either argument is zero, as normalization requires.
Choose unitary representatives Tg with TgTh=βk(g,h)Tg+h. Replacing them by Tg′=λgQTgQ∗ for a common unitary Q and arbitrary phases with λ0=1 gives the new multiplier β′(g,h)=λgλhλg+h−1βk(g,h). The displayed factor is a coboundary. This is also the equivalence relation on normalized compositors obtained by changing the comparison on each arrow. The resulting multiplier class lies in H2(G;U(1)) with trivial action on the coefficients [6]. Restrict either argument pair to two elements of the first axis, or to two elements of the second axis. In each case the chosen normalized representative has value 1 on every such pair. Its restriction after any gauge change is consequently cohomologically trivial. An observation consisting only of the two axis restriction classes is constant across k. With uniform labels its optimal classification accuracy is 1/m. The sensor retains only restriction classes. Full matrices on one axis can carry extra information. For instance, the eigenvalue multiplicities of Dk below can reveal gcd(k,m).
In the square whose two paths multiply g,h in opposite orders the endpoint g+h=h+g is the same. The ratio of the two compositors is Ck(g,h)=βk(h,g)βk(g,h)=ζk(ad−bc). A coboundary contributes the same scalar to the numerator and denominator, so Ck is well defined on multiplier classes.
Translations in the marked group commute. Their unitary representatives compose with a relative phase. Comparing the two ordered products cancels a common basis change and the scalar chosen for each generator.
For (g,h)=(x,y) the value is ζk and distinguishes all m members of this family. Thus neither of the separately trivial restrictions prevents a mixed comparison from detecting the label. For a numerical example with composite order, take m=8 and compare x with 2y in place of y. The square then reports e2πi(2k)/8, so k and k+4 give the same answer. The loss is exactly the twofold ambiguity calculated for a power-two cyclic measurement. Unique identification with the original square requires the specified ordered pair of generators. Replacing it by another basis of G through a matrix A acts on the measured exponent by k↦kdetAmodm. In particular interchanging the axes inverts the phase. A predictor intended to be invariant under unknown changes of generators cannot recover the original marked k from this datum in general.
For an explicit realization let Dej=ζjej and Sej=ej+1 on an orthonormal basis indexed by jmodm. Then DS=ζSD. Put U=Dk, V=S and T(a,b)=VbUa. Commuting Ua past Vd gives exactly βk(g,h). Operationally one may compute the phase as the normalized trace of TxTy(TyTx)∗. Separate rephasings cancel, and a unitary change of basis only conjugates the matrix under the trace. A phase-sensitive comparison or access to representative matrices is implicit. Measuring only the projective ray of each output after the two compositions would erase their relative phase.
The numerical check uses m=8. For each of the eight labels we generate 32 independent presentations by unitary QR sampling and by drawing a phase for each nonidentity element of G. We take the normalized trace and decode against the eight roots of unity, using neither the random basis nor the rephasing in this decoder. All 256 trials recovered the marked label. The maximum absolute phase error was below 2×10−15. As a separate implementation check we compare matrix products with the predicted rephased multiplication law, testing every ordered pair on the first trial for each label and 32 sampled pairs on each subsequent trial. The largest absolute entrywise discrepancy was below 10−14. The experiment verifies the composition and gauge conventions in floating point. The cocycle and cancellation arguments give the identification theorem at every order m.
Which weights define a global layer?
Suppose a feature rotates by a known phase when the input is rotated about the polar axis. A pointwise layer has no spatial displacement with which to change that phase. A convolution has such a displacement and can use its direction. For a feature in a line bundle, the winding of the frame transition can force even a locally admissible weight to vanish somewhere. We derive the three constraints in the same convention.
A cyclic selection rule on a tangent disk
Let a generate Cm, set δ=2π/m and ζ=eiδ. Write χi(a)=ζi for a complex character. Choose a disk centered at a fixed point and a complex coordinate z=reiθ in which a acts by z↦ζz. In this paragraph i and j label the representations of the input and output fibers. For a kernel mapping an input sample at displacement z to an output at the center, the consistent active-rotation convention gives K(ζz)=χj(a)K(z)χi(a)−1=ζj−iK(z). Indeed the rotated input at ζz equals χi(a) times the original input at z. Multiplying each term by the rotated kernel and changing variables by the rotation must yield χj(a) times the original output. The statement uses the same invariant sampling measure on both disks. For multiple input and output channels the scalar characters are replaced by representation matrices [7, 8]. If a chosen complex coordinate rotates through −δ, the index of the angular harmonic below acquires a minus sign.
Proposition 3 (Cyclic kernel modes). In the coordinate above, a mode bh(r)eihθ can occur only for h≡j−i(modm), and each such mode satisfies the cyclic transformation law. A continuous kernel obeys K(0)=0 whenever i=j in Z/m. For a smooth kernel the radial coefficient of a single mode has the local form bh(r)=r∣h∣ch(r2) with ch smooth up to r=0. Conversely this form suffices for smoothness of a single mode.
Proof. Fourier projection of (1) multiplies the hth coefficient on the left by eihδ. Equality of phases gives the congruence, and substitution of z=0 gives the central constraint. To see the regularity assertion, project a smooth function onto its hth mode by integrating its rotations against e−ihθ. A Taylor monomial zuzˉv contributes only if u−v=h, hence only in total degrees ∣h∣,∣h∣+2,…. The projected function restricted to the real diameter is smooth, vanishes to order at least ∣h∣, and has parity (−1)h. Division by the corresponding power of the real coordinate gives a smooth even function. A smooth even function of one variable is a smooth function of its square up to the origin, as follows by successively Taylor expanding to even orders with smooth remainders. Conversely the mode is zhch(∣z∣2) for h≥0 and zˉ∣h∣ch(∣z∣2) for h<0. ◻
A finite learned basis of these functions obeys both conditions exactly in the continuous model. An infinite series also needs convergence of the series and its derivatives to define a smooth kernel. For m=8, input character 1 and output character 3, the permitted harmonics are 2+8t, t∈Z. The lowest-order term can be z2, and zˉ6 gives a distinct permitted term. A constant 1×1 weight between the same two channels vanishes at the center. Sampling or interpolation on a grid preserves the continuous equivariance identity only to the extent that the sampled action, quadrature and interpolation also implement the symmetry. The gauge-equivariant icosahedral architecture in [8] illustrates how to implement changes of mesh frame. In our polar example a physical rotation fixes the base point and acts on the fiber. A passive change of frame can be performed at any point. The two operations impose related matrix identities but refer to different actions.
Winding and pointwise layers on the sphere
Consider the equivariant line Ln,k with integer flux n, north weight k∈Z/m and south weight k−n. To specify the convention concretely, northern and southern components satisfy vS=e−inφvN on the overlap, and the rotation sends φ to φ+δ. An equivariant pointwise complex-linear operator from Lni,ki to Lno,ko is a section of the equivariant Hom line. Put d=no−ni and b=ko−ki(modm). Writing the operator as v↦wv in each frame yields wS=e−idφwN,wN(ax)=ζbwN(x),wS(ax)=ζb−dwS(x). In particular Hom(Lni,ki,Lno,ko)≅Ld,b as equivariant lines with these model transitions.
Proposition 4 (Polar tests and a globally invertible weight). An equivariant pointwise coefficient can be nonzero at both poles exactly when b=0 and d=0(modm). A nowhere-zero smooth equivariant coefficient exists exactly when b=0 and d=0 as an integer.
Proof. At a fixed pole a nonzero scalar coefficient requires the character on the Hom fiber to be trivial. This gives the two congruences. When both hold, choose invariant cutoff functions supported in disjoint polar disks, identically one near each center. Multiply the constant unit section in each polar frame by its cutoff, extend by zero, and add. This constructs one equivariant coefficient nonzero at both poles.
A nowhere-zero section trivializes the underlying Hom line. On an equatorial circle the two nonvanishing functions wN and wS must each have winding zero because each extends over a hemisphere. Their ratio has winding −d, forcing d=0 as an integer. Conversely when d=0 and b=0, the two constant coefficients equal to one agree on the overlap and are invariant under the lifted action. ◻
For example, take m=8 and map L1,1 to L9,1. Both north fibers have character 1 and both south fibers have character 0. A layer may be invertible at both poles, but every globally defined pointwise coefficient vanishes somewhere because its Hom line has degree eight. In contrast L1,1→L1,4 has degree-zero Hom line and unequal input and output characters at both poles. Every equivariant coefficient must vanish there. For L1,1→L1,1 a nonzero scalar multiple of the identity is admissible everywhere. These tests concern smooth bundle operators. A requirement that an operator also intertwine prescribed connections adds a parallel-section equation for its coefficient.
Composing layers and tying parameters
Tensor products add degrees and weights. The operation (s,t)↦s⊗t maps sections of Ln,k and Ln′,k′ to a section of Ln+n′,k+k′. Its two transition phases multiply. Dualization reverses the two labels. A Hermitian pairing with the same channel is a scalar invariant, so a radial gate s↦σ(∥s∥2)s is intrinsic for any smooth scalar σ. For a bank of identical line channels a constant learned mixing matrix acts on the multiplicity index and commutes with every transition. At a fixed pole, channels of unequal character admit only the zero block for pointwise complex-linear mixing. For example, two channels of type L1,1 can be multiplied into a channel of type L2,2. Both southern weights are zero, so the product is permitted a nonzero southern value. At the north pole every equivariant section of L1,1 must itself vanish, and this particular product vanishes there regardless of the learned coefficient. More generally the value of any input section invariant under the lifted group action lies in the invariant subspace of the fiber at a fixed point. A feature map that merely transforms equivariantly when the input signal is rotated need not be a globally invariant section for an arbitrary individual signal. Distinguishing these two uses of equivariance determines when a predicted zero is forced on every input. These elementary operations give a rule for checking the types of a sequence of layers before specifying values of trainable coefficients.
A residual addition s↦s+F(s) is defined when the summands lie in the same fiber. For a skip connection joining different line types, specify the bundle map used to align the summands. A globally invertible pointwise skip exists precisely under the preceding proposition. A nonlocal update can instead transport neighboring features to one fiber and combine them there. Changing frames conjugates the transport at its two endpoints. Thus the same learned kernel coefficients can be reused across an overlap after transforming the input, output and tangent displacement by the appropriate representations. Equations of the form (1) enforce these identities on a tangent disk. On the sphere, transition compatibility must additionally hold across polar charts. This gives checkable weight-sharing and vanishing conditions for an architecture. Predictive accuracy depends on the data and the chosen observables.
A finite-sample test of the cyclic kernel rule
We test the selection rule of Section 5 at a single pole. The unit of observation is one complex feature at a spatial displacement, so one can measure a kernel directly without interpolation or discretized convolution. The generator of C8 acts by (z,u)↦(ζz,ζu) on the displacement and the input feature, where ζ=exp(2πi/8). The predicted output must transform by ζ3. All weight maps in this experiment are complex-linear in u.
First consider a constant weight at the origin. Averaging its conjugates over C8 projects the scalar 1 for input character i and output character j to 8−1∑g=07ζg(j−i). Evaluation for all 64 ordered pairs gives one on the eight diagonal pairs and zero on the others, with maximum absolute difference 2.3×10−16 or smaller in the recorded run. Now let bh(z)=zh for h≥0 and bh(z)=zˉ∣h∣ for h<0. Project the thirteen modes bh(z)u, −6≤h≤6, onto the output character at a nonzero displacement. Dividing the projection by the original feature gives one for h=−6,2 and zero for all other modes, within 7.6×10−16. This is a numerical check of the implementation. The finite sum of roots of unity proves the identity for every displacement.
Training and test orbits
We generate a target on the annulus 0.65≤∣z∣≤1 by y(z,u)=[(1+0.30i)z2+(0.65−0.35i)zˉ6]u. For a second target add (0.65+0.30i)z3u, which transforms with output character four. For each run the position radius and feature magnitude are uniform on [0.65,1] and [0.75,1.25], respectively. Their arguments are independently uniform on [0,2π). Each of 32 training input pairs is observed at one orientation. Independent circular complex Gaussian noise of mean square magnitude 0.202 is added to its label. Each run has 128 independent test pairs, evaluated with clean targets at all eight orientations. All 160 sampled radii are checked for pairwise distinctness, which certifies that training and test orbit sets are disjoint. Each method receives the same training labels in that run. We repeat the experiment with 24 pseudorandom seeds beginning at 20261122, using the same inputs and training noise for both target laws within each run.
The unrestricted linear regression fits complex coefficients on all thirteen modes by least squares. The constrained regression fits coefficients on −6,2. The augmented regression uses all thirteen and generates eight copies of each observed example, rotating its label by the prescribed output character, including the noise already present. These copies provide no new independent labels. For the second law this augmentation deliberately imposes an incorrect symmetry. All three design matrices have full column rank on every run.
For prediction y, define Py as the mean squared modulus of the clean target over all test pairs and rotations. Test error E is the mean of ∣y−y∣2 over these examples divided by Py. The equivariance defect D is the mean of y(ζgz,ζgu)−ζ3gy(z,u)2/Py over the same indices. The eight rotations within a test orbit are dependent. The standard deviations shown in Table 1 are computed across the 24 independent simulation runs.
Generalization to held-out C8 orbits for one spatial kernel. Each entry normalizes by the signal power of its own target law.
Target
Fit
E, mean ± SD
Mean D
Equivariant
Unrestricted
0.0652±0.0345
0.107
Constrained
0.00395±0.00311
<10−29
Augmented
0.00395±0.00311
<10−29
Broken symmetry
Unrestricted
0.0504±0.0266
0.563
Constrained
0.254±0.0267
<10−29
Augmented
0.254±0.0267
<10−29
The coincidence of constrained and augmented regression admits a check independent of the numerical results. On each training orbit, functions in distinct output-character sectors are orthogonal under the uniform average. The augmented labels occupy only the sector of character three, so the other sectors have homogeneous least-squares objectives. Full column rank forces their coefficients to zero. The surviving objective is precisely the constrained objective multiplied by eight. The implementation checks equality of the two predictions on every test run. For the matched target, suppressing the eleven unused coefficients reduces finite-sample prediction error. When the target contains the forbidden cubic term, both methods discard signal and incur a larger error than unrestricted fitting. These measurements concern supervised identification of a single spatial kernel. Performance of a trained multilayer network on natural images requires a different experiment.
What a low-rank adapter remembers about a weight update
Consider one frozen linear layer W0:Rn→Rm. A low-rank adapter introduces two trainable linear maps RnARrBRm,D=BA,W=W0+sD, where 1≤r≤min(m,n) and the scale s>0 is fixed. The original LoRA construction takes s=α/r and initializes A randomly and B at zero [9, §4.1]. A forward pass through this layer depends on W. If one wishes to predict the result of a training step, one must also know how the two factors represent D. Even zero updates have representatives with different first-order behavior.
Fibers and tangent spaces of matrix multiplication
Write π(B,A)=BA. The group GLr(R) acts on factor pairs on the right by (B,A)⋅S=(BS,S−1A). Every such arrow preserves D. The orbit directions and the differential of the product fit into a sequence glrρHom(Rr,Rm)⊕Hom(Rn,Rr)dπHom(Rn,Rm), where ρ(Z)=(BZ,−ZA) and dπ(U,V)=UA+BV. Their composite vanishes. The first arrow alone presents the tangent complex of the quotient stack in degrees −1,0. The last arrow compares that complex with the observable matrix variation. If one instead imposes a specified value of D by a derived fiber, the target becomes the degree-one term of the relative deformation complex. These are distinct uses of the same linear maps.
Proposition 5 (Tangent image and full-rank quotient). Put a=rankA and b=rankB. The image of dπ consists exactly of the matrices T satisfying T(kerA)⊆imB. Its dimension is ma+nb−ab. On the locus a=b=r, the orbit directions equal kerdπ, and the quotient by GLr is the manifold of rank-r matrices.
Proof. The condition on kerA follows by differentiating the product. Conversely, lift T∣kerA through B to a map into Rr and extend it to a map V on Rn. Then T−BV factors through A as a map from imA. Extend that map to U on all of Rr. The condition thus removes exactly (m−b)(n−a) matrix entries in bases adapted to the kernel and image. When both factors have maximal rank, ρ is injective and the kernel of dπ has dimension r2. Every factorization of a rank-r matrix identifies the hidden space by B with its column space. Two such identifications differ by a unique S, and the corresponding A is then determined. Locally choose any r independent columns of D as B. Solving for the remaining columns in this frame gives A smoothly, as can be seen by inverting a nonzero r×r minor. These local sections identify the fiber with a principal GLr-orbit and give the asserted quotient. ◻
This quotient description is used in fixed-rank optimization [10, §3.1]. Its dimension is r(m+n−r). When the product vanishes the equation BA=0 says imA⊆kerB, so a+b≤r. Both kerA in the input and imB in the output are invariant under a hidden basis change. For example, two full-row-rank initializations of A with distinct row spaces already give inequivalent points above D=0 with B=0. The stabilizer Lie algebra at a general pair consists of Z vanishing on imA with image in kerB. Its dimension is (r−a)(r−b). At B=0 and a=r this dimension vanishes and the observable tangent image has dimension mr, while the entire hidden group fixes (0,0) and its observable tangent image has dimension zero. A change to only one factor at the origin is invisible even to arbitrary finite order. A simultaneous displacement (tU,tV) yields the exact quadratic update t2UV.
One can describe the whole zero-product orbit set in elementary linear terms. Fix K=kerA in the input and L=imB in the output. The induced map identifies Rn/K with imA. Choose a complement of this image in kerB, then a complement of kerB in the hidden space. The last summand maps isomorphically to L. Any two such decompositions for pairs with the same K,L are carried to one another by a hidden isomorphism intertwining the two factors. The dimension of the intermediate invisible summand is r−a−b. Thus every allowed pair of input kernel and output image determines exactly one orbit above zero. Its automorphisms are still part of the groupoid.
Parameter symmetries also depend on which observations are available. For a dataset with input span H=imX, two products D,D′ give the same layer outputs on those samples precisely when (D−D′)∣H=0. Even on the full-rank stratum such observational agreement can identify distinct gauge orbits. For example, the row maps (1,0) and (1,1) agree on H=R(1,0) but differ on the second coordinate vector. This distinction becomes relevant when interpreting a vanishing empirical gradient as a claim about every possible input.
A loss detects second-order directions
For data matrices X∈Rn×N and Y∈Rm×N with samples as columns, set R=Y−W0X. Use the squared training loss f(D)=2N1∥sDX−R∥F2,G=∇Df=Ns(sDX−R)X⊤. The Frobenius pairing and dπ give ∇B(f∘π)=GA⊤ and ∇A(f∘π)=B⊤G. Both vanish at the all-zero pair for every dataset. The second derivative makes a sharper prediction. Along (tU,tV) the exact expansion is f(t2UV)=2N∥R∥F2−Nst2⟨RX⊤,UV⟩F+2Ns2t4∥UVX∥F2. Put C=RX⊤/N. For each hidden coordinate the Hessian, on its output-column and input-row perturbations taken as vectors, is the block matrix (0−sC⊤−sC0). The r hidden coordinates give r copies of this block. If Cy=σx and C⊤x=σy with σ>0, its eigenvectors (x,y) and (x,−y) have eigenvalues −sσ and sσ. Thus the all-zero pair is a strict saddle precisely when C=0. When C=0 the quadratic cross term vanishes for every D, and the loss takes its global minimum at D=0, even if R=0. The Gauss–Newton approximation at the all-zero pair vanishes in both cases because the residual Jacobian is zero. For the full observation model X=I, this calculation recovers the origin of the shallow linear network squared-loss landscape [11].
The data qualification can be tested with two samples. Let W0=0, m=n=r=1, s=1, X=(1,1) and Y=(1,−1). Both labels have nonzero residual at zero, yet C=0 and f(D)=(1+D2)/2. Changing the second label to 1 leaves the zero-adapter loss equal to 1/2 and changes C to 1. The Hessian now has eigenvalues −1,1 and along A=B=t the loss is (1−t2)2/2. Even at a strict saddle, exact gradient descent started at the all-zero pair stays there. A traditional LoRA initialization with B=0 and random A generally gives a nonzero first gradient in B, whose precise criterion is CA⊤=0.
One optimization step need not respect a change of basis
For any differentiable f(D) consider simultaneous Euclidean gradient steps in the two factors with learning rate η. The gradient G can also come from a specified minibatch. Multiplying the updated factors gives the exact identity D+=D−η(BB⊤G+GA⊤A)+η2GD⊤G. The quadratic term depends only on D and G. The linear term depends on two Gram matrices. Under B↦BS the left Gram matrix becomes BSS⊤B⊤. Under A↦S−1A the right Gram matrix becomes A⊤S−⊤S−1A. An orthogonal basis change preserves both. A general invertible basis change can change even the next prediction on the same training example. Equivalently, the Frobenius metric used to turn covectors into gradients on the factor space does not furnish a GLr-invariant update rule.
For an explicit test on the full-rank stratum take scalar input 1, target 0, W0=0, s=1 and η=1/10. The factor pairs (B,A)=(1,1) and (2,1/2) represent the same weight D=1 and the same gradient G=1 in matrix space. The first pair becomes (0.9,0.9) and predicts 0.81. The second becomes (1.95,0.3) and predicts 0.585. Their different outputs after one step rule out a functor on the gauge groupoid that acts on objects by this Euclidean training step and on arrows by product-preserving comparisons. A quotient optimization method instead specifies a compatible metric on the full-rank locus [10].
At the usual B=0 initialization the first product step simplifies further to D+=−ηGA⊤A. Every input direction annihilated by A receives exactly zero prediction change from this layer in that step. The same identity applies to a deterministic nonlinear network when all remaining parameters are fixed, the loss depends on the factors solely through the effective matrix, and G is obtained by backpropagation through that network. The explicit sample cross-moment criterion above belongs to the stated squared linear prediction model. For a smooth nonlinear loss its replacement at the all-zero pair is the matrix gradient G(0), since the factor-to-matrix Jacobian again vanishes there. Dropout comparisons require the same mask, and the finite-step equation describes plain SGD without momentum, adaptive rescaling, or factor-specific penalties. For a trained transformer these distinctions specify which quantities must be measured before inferring its next update from a saved adapter.
A matched experiment in low-rank regression
How much can two factorizations of one initial update differ after training? We used a regression problem whose correct rank and best empirical rank-constrained fit can both be computed. Each of 16 seeds specifies a new base matrix W0∈R8×12, two independently drawn orthonormal three-frames U,V, and a planted update D∗=Udiag(2,1.2,0.6)V⊤. Gaussian inputs are columns of X and the labels are Y=(W0+D∗)X+E,Eij∼N(0,0.152) with independent noise. Each seed has 32 training and 512 independent test examples. All methods for that seed see the same training data, frozen base, and held-out data. The test inputs play no role in fitting. Let R=Y−W0X denote residual labels. Training uses L=∥BAX−R∥F2/(2N) with N=32. Test scores are mean squared errors per output coordinate and test example. The population prediction risk of the planted noiseless update under this scoring rule is 0.0225.
Each trainable factorization has B∈R8×3 and A∈R3×12. One control starts with both factors zero. The others start from B=0 and A=cA0, where A0 has three random orthonormal rows drawn once per seed. Every arm thus makes exactly the same predictions at initialization. We run 300 simultaneous full-batch gradient steps in float64, using learning rate η=0.08 for each factor in the ordinary Euclidean runs. There is no momentum, weight decay, or adaptive stopping rule.
Independent baselines.
Alongside the zero-update control, we solve dense least squares and rank-three least squares to their respective training optima. For the latter, write X⊤=QT with Q⊤Q=I and T upper triangular. The orthogonal decomposition of the squared loss leaves ∥DT⊤−RQ∥F2 plus a constant independent of D. Since T is invertible on every sampled design, truncate the singular value decomposition of RQ to three terms and solve DT⊤=(RQ)3. Keeping all terms gives the dense baseline. These direct estimators answer what each rank constraint permits on the same noisy data. Their horizontal lines in Figure 2 are fitted reference scores, with no gradient-step budget attached.
Arithmetic mean held-out MSE over the 16 tasks, with between-task sample standard deviation at step 300. All comparisons across arms are paired by seed.
Fit
Step 40
Step 300
SD at 300
Both factors zero
0.75306
0.75306
0.02524
Euclidean, c=1/2
0.14731
0.02908
0.00235
Euclidean, c=1
0.17689
0.03543
0.01299
Euclidean, c=2
0.30713
0.06866
0.04025
Rank-three least squares
0.02898
0.02898
0.00202
Dense least squares
0.03628
0.03628
0.00386
Mean held-out prediction error through training. Initial updates coincide for all factorized runs. With a common Euclidean learning rate their paths separate, and the both-zero initialization remains stationary.
Checking the prediction.
Write G0=−RX⊤/N for the loss gradient with respect to the product at zero. Starting from (0,cA0) leaves A fixed on the first step, so the predicted first product is −ηc2G0A0⊤A0. The observed update norms for c=1/2,1,2 were in the ratio 1/4:1:4 on every seed. The maximum relative Frobenius error of the matrix prediction was 3.55×10−16. A separate centered finite-difference check of the two-factor directional derivative at a nonzero pair gave scaled errors below 2.5×10−10 across seeds, using step 10−5 and denominator max(1,∣dL∣). The both-zero arm took zero steps in product space because both factor gradients vanished.
We also checked the role of the metric throughout training. To transport a reference Euclidean update along (B,A)↦(B/c,cA), give the new B block rate η/c2 and the new A block rate ηc2. The chain rule makes the transformed factors follow the transported update on every step. Across the 16 seeds the largest Frobenius discrepancy of any corresponding product was zero at the tested binary scales 1/2 and 2. By contrast, the unadjusted c=1/2 arm had lower held-out error than the unadjusted c=2 arm on all 16 tasks at step 300, with a mean paired difference of −0.03958. Taking the larger first step did not predict smaller error at this horizon.
Reproduction and scope.
Run python3 experiments/adapters.py from the source directory with NumPy and Matplotlib installed. The run regenerates the figure, per-seed trajectories, first-step and derivative checks, and summary tables under results/adapter-*. Seeds run from 0 through 15 and the standard deviations have denominator 15. The data-generating update has exactly the rank supplied to the factorized models. This favors rank-constrained estimation and frames the interpretation of its held-out advantage over dense least squares. The experiment tests a factorization identity and a finite optimization trajectory in linear regression. Larger models, minibatching, learned features, and optimizer state introduce variables outside this design.
A training step that respects a hidden change of basis
An adapter has a hidden vector space of dimension r. Its factors are maps into and out of this space. The Euclidean gradient calculation of Section 7 tacitly equips the hidden space with an inner product. Recording that choice lets us ask whether a change of coordinates describes the same optimization problem. The following construction uses a fixed inner product as additional data. Quotient metrics and iteration-dependent preconditioners for low-rank fitting are developed in [10, 12].
Proposition 6 (An equivariant finite training step). Let H be a positive-definite symmetric matrix giving the hidden inner product, and let f be any differentiable real objective of D=BA. Denote its Frobenius gradient by G. A simultaneous gradient step for the product-factor metric ∥(B˙,A˙)∥H2=tr(B˙H−1B˙⊤)+tr(A˙⊤HA˙) has the form B+=B−ηGA⊤H,A+=A−ηH−1B⊤G. Keep H fixed during training. Under the right action (B,A,H)⋅S=(BS,S−1A,S⊤HS)(S∈GLr), the update commutes with every arrow, at every rank and for every step size for which the objective is defined. All subsequent effective matrices agree between the two frames.
Proof. Pairing (B˙,A˙) with the stated gradient in the displayed metric gives ⟨G,B˙A+BA˙⟩F by cyclicity of the trace. The effective product at the two representatives is identical, so the matrix gradient G is identical. With H′=S⊤HS, the transformed gradient in the first block is G(S−1A)⊤H′=GA⊤HS and in the second block it is (H′)−1(BS)⊤G=S−1H−1B⊤G. Subtracting these from the transformed factors proves the assertion at one step. Iteration proves it at every step. For stochastic gradients the proof applies pathwise when the two runs use the same minibatches and random choices in the product objective. ◻
The identity holds for finite steps, including at singular products. It identifies two coordinate descriptions of one optimizer. Specifying H changes the problem from finding an update on bare factor pairs to finding one on triples. Indeed, no equivariant choice of positive-definite H(B,A) exists on the entire space of pairs. At (0,0) any scalar S=cI fixes the pair and would require H=c2H for every c=0. This is impossible already at c=2.
There is a canonical initialization on the open set where A has full row rank and the input has its Euclidean metric. Set H0=(AA⊤)−1. It obeys the transformation law above. At the common initialization B=0 the first product step becomes D+=−ηGA⊤(AA⊤)−1A=−ηGProwA. The orthogonal projection explains exactly which input directions can change on that step. The choice is unchanged as a geometric inner product by rescaling or mixing the initial rows. Choosing a different row space can change the update. In rank-deficient regimes a general H supplied as geometry still gives a well-defined update. The projection formula uses the full-row-rank hypothesis.
A nonorthogonal change of coordinates.
For an exactly reproducible check take r=2, B0=0, and A0 equal to the first two rows of I3. Fit the matrix T=(10020.40.2),f(D)=21∥D−T∥F2,S=(2011/2). Use H=I in the initial frame, η=0.05 and 40 simultaneous steps. Higher loss at the first step need not imply higher loss at the last one.
Frame and metric
Loss, step 1
Loss, step 40
Maximum product discrepancy
Original, Euclidean
2.35625
0.011961
0
Quarter turn, Euclidean
2.35625
0.011961
<5⋅10−16
Nonorthogonal S, Euclidean
1.71414
0.038087
1.1193
Nonorthogonal S, transported
2.35625
0.011961
<10−15
The discrepancy is the maximum Frobenius distance to the original-frame product over steps 0 through 40. The two Euclidean fits using different nonorthogonal coordinates have different trajectories. Transport of the inner product recovers the whole original trajectory to floating-point precision. This comparison measures coordinate invariance. Convergence speed requires further hypotheses about the objective, step-size rule and initialization.
A query adapter inside causal attention
The regression experiment admits a closed-form fit. Does its prediction about the next factor update survive when that update changes the attention paid to previous tokens? We train a single masked dot-product attention head [13] to predict the conditional distribution of the next symbol in sequences generated by a teacher. The nine symbols are synthetic. A sequence starts with one uniformly drawn symbol and continues with five draws from the teacher. We generate 64 training sequences and 256 independent test sequences for each of eight independently drawn teachers. All four student initializations within a task use the same frozen weights and sequences.
Let et∈R6 be the embedding of the token at position t. Keys kt, values vt and queries qt lie in R4. Only the query matrix changes during training. For a readout M:R4→R9 the predicted distribution is qtαtj=(WQ,0+BA)et,=∑l≤teutleutj(j≤t),utjpt=qt⊤kj/2,=softmax(Mj≤t∑αtjvj). The teacher uses the same base matrices with a planted rank-two query update of singular values 2 and 1 and independent random orthonormal singular frames. The student factors have dimensions 4×2 and 2×6. Embeddings have independent standard normal entries. The entries of the frozen query, key and value matrices are independent centered Gaussians with standard deviations 0.5/6, 1/6 and 1/6, respectively. The readout entries have standard deviation 1.5/2. No positional encoding is included. The mask gives causal prefix access, and attention within each prefix is content-based.
Backpropagating through the mask.
At each prefix the training target is the teacher distribution pt∗, including its probabilities for symbols that were not sampled. We minimize the mean KL(pt∗∥pt) over sequences and their five positions. Before averaging, the derivative with respect to the output logits is pt−pt∗. Put ht=M⊤(pt−pt∗), btj=ht⊤vj and bˉt=∑l≤tαtlbtl. The score derivative is αtj(btj−bˉt) on the visible prefix and zero elsewhere. The outer product of ∑j≤tαtj(btj−bˉt)kj/2 with et gives the query-matrix gradient for that prefix. Its average is G. Each term reflects both value mixing and the variation of the attention weights. In particular, the first token alone has a single visible key and hence supplies zero query gradient.
Four training trajectories.
We take 80 simultaneous full-batch steps of size one. The reference starts with B=0 and A=A0, an independent random orthonormal two-frame of rows. Starting both factors at zero is a stationary control. The remaining arms start from the sheared coordinates (BS,S−1A) with S=(103/41). One uses Euclidean updates in those coordinates. The other right-multiplies the B gradient by S⊤S and left-multiplies the A gradient by S−1S−⊤. These are the preconditioners obtained by transporting the reference metric. We score both the distance to the teacher and negative log probability on the actual sampled next symbols. Both use natural logarithms.
Next-symbol prediction with a frozen masked head. Entries are arithmetic means over eight tasks. At initialization all arms have mean training KL .03895 and held-out KL .03971. The teacher itself scores 1.85451 nats per sampled test symbol.
Fit
Test KL, step 1
Test KL, step 80
Test NLL, step 80
Both factors zero
.03971
.03971
1.89475
Reference
.03446
.00342
1.85890
Shear, Euclidean
.03530
.00372
1.85913
Shear, transported
.03446
.00342
1.85890
The initial matrix-gradient norm ranged from .0220 to .3007. Centered differences of all 24 entries, with step 10−5, agreed with backpropagation within relative Frobenius error 3.35×10−10. Substituting these independently estimated entries in −GA0⊤A0 predicted the first reference product within relative error 1.86×10−10. The largest product discrepancy between reference and transported runs was 1.62×10−15 over every seed and step. The unadjusted shear produced a maximum discrepancy between .0978 and .5434 across the eight tasks. At step 80 the between-task sample standard deviations of test KL were .00130 for the reference and .00147 for the unadjusted shear. These trajectories test the change-of-coordinates law inside a differentiable sequence model. Experiments on a language corpus and a pretrained multi-layer transformer would require new measurements. Run python3 experiments/attention.py to regenerate the trajectories and independent checks.
Consequences for designing a learning system
Take the sphere model with m=8, a hidden lift label k and known monopole charge n. It gives a precise specification for a data collection protocol. If only the power-four loop is available, an observation determines parity and leaves four possible labels. A second observation through an even power can refine the label only within the restriction imposed by their common divisor with eight. Any odd power alone gives all labels in the absence of noise. With noise, equal noiseless resolving power need not imply equal performance if the instrument error depends on the power. The Bayes integral must then use the noise law for the chosen measurement. This identifies a concrete quantity to estimate when moving from a simulated sensor to an actual one.
A layer designer faces a different decision. In the cyclic kernel experiment, full rotation augmentation and hard parameter tying agree because the chosen hypothesis space is a linear sum of character spaces, all group elements are used, least squares decouples the sectors, and the design has full column rank. Dropping any of these conditions requires a new argument. The broken-symmetry target is particularly informative. It has a component orthogonal to the permitted sector on complete orbits. More training examples from the same law cannot let a strictly equivariant layer represent that component. Reserving entire orbits for testing distinguishes generalization to a new displacement from interpolation among eight presentations of the same displacement.
For fine-tuning, agreement of two adapter checkpoints on every possible input establishes equality of their represented matrix for a bare linear layer. Reproducing their future training behavior additionally requires enough information about factor scales, row spaces, optimizer state and its transformation law. In the metric experiment one can rotate or shear the same rank-two hidden basis and predict the effect of ignoring that transformation before running any training. For a causal attention layer, equality of query matrices likewise implies equality of its forward output when the other weights and input agree. The identity for the first update through that layer uses its actual gradient, which depends on the mask, the current probabilities and the loss. The attention experiment differentiates these operations explicitly.
These examples support claims about observability under the stipulated sensor, admissible layer types, and finite-step training dynamics. Natural images do not generally have exact cyclic symmetry, and a large language model may use several adapters, adaptive learning rates and a data-dependent stochastic training procedure. A direct evaluation on such a model could save two gauge-related checkpoints and the same minibatch sequence, measure their effective layer updates, and compare the observed discrepancies with those predicted from the measured gradients and optimizer state. That experiment would answer a performance question outside the controlled tasks reported here.
Authorship and reproducibility.
An anonymous researcher commissioned this companion manuscript. OpenAI Codex drafted the exposition and implemented the synthetic experiments. The source bundle contains the experimental programs, recorded results, figures, and the full LaTeX source. The statements are supported by mathematical proofs, finite identities, and the reported experiments. Proof-assistant formalization is left for separate work.
Computational record
The six scripts in the source bundle run on a CPU. All data are generated by the scripts, including the causal teacher and its sampled sequences. From the extracted source directory, python reproduce.py writes the CSV results and both plotted figures under results/. The recorded environment used Python 3.12.14, NumPy 2.3.5, and Matplotlib 3.10.8. Seeded floating-point results can differ slightly with the linear algebra library.
Experiment in experiments/
Independent replication or deterministic check
holonomy.py
30 combinations of rotation power and noise, with independent training and test draws for each combination.
projective.py
Eight multipliers, each in 32 randomized unitary and phase conventions.
layers.py
24 paired draws, with test orbits disjoint from training orbits.
adapters.py
16 independent regression tasks, matched across factor scalings, optimizer metrics, and baseline fits.
metric.py
One rank-two trajectory checked in four choices of basis and metric.
attention.py
Eight autoregressive teachers with independently sampled training and held-out sequences.
References
R. H. Wasserman. Tensors and Manifolds with Applications to Mechanics and Relativity. Oxford University Press, 1992. ISBN 0-19-506561-1. Library of Congress.
T. Nikolaus, U. Schreiber, and D. Stevenson. Principal ∞-bundles: Presentations. J. Homotopy Relat. Struct. 10 (2015), 565–622. Author manuscript.
D. Blackwell. Comparison of experiments. Proc. Second Berkeley Symposium on Mathematical Statistics and Probability (1951), 93–102. Berkeley record and text.
E. Lerman and A. Malkin. Differential characters as stacks and prequantization. J. Gökova Geom. Topol. 2 (2008), 14–39. Author manuscript.
E. B. Wilson. Probable inference, the law of succession, and statistical inference. J. Amer. Statist. Assoc. 22 (1927), 209–212. Journal article.
T. L. Costache. A survey on projectively equivalent representations of finite groups. Surveys Math. Appl. 15 (2020), 425–458. Journal text.
M. Weiler and G. Cesa. General E(2)-equivariant steerable CNNs. Advances in Neural Information Processing Systems 32 (2019). Proceedings.
T. Cohen, M. Weiler, B. Kicanaoglu, and M. Welling. Gauge equivariant convolutional networks and the icosahedral CNN. Proceedings of Machine Learning Research 97 (2019), 1321–1330. Proceedings.
E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, and W. Chen. LoRA: Low-rank adaptation of large language models. ICLR, 2022. Author manuscript.
B. Mishra, G. Meyer, S. Bonnabel, and R. Sepulchre. Fixed-rank matrix factorizations and Riemannian low-rank optimization. Comput. Statist. 29 (2014), 591–621. Author manuscript.
Z. Zhu, D. Soudry, Y. C. Eldar, and M. B. Wakin. The global optimization geometry of shallow linear neural networks. J. Math. Imaging Vis. 62 (2020), 279–292. Author manuscript.
T. Tong, C. Ma, and Y. Chi. Accelerating ill-conditioned low-rank matrix estimation via scaled gradient descent. J. Mach. Learn. Res. 22 (2021), 1–63. Journal text.
A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. Advances in Neural Information Processing Systems 30 (2017). Author manuscript.
Complete flattened LaTeX source
\documentclass[11pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[margin=1.03in,top=.89in,bottom=.88in,headheight=15pt,headsep=14pt,footskip=28pt]{geometry}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{array,booktabs,tabularx,tikz,graphicx,xcolor,fancyhdr}
\usepackage[font=small,labelfont=bf,labelsep=period]{caption}
\usepackage{titlesec}
\usepackage[colorlinks=true,linkcolor=deep,citecolor=deep,urlcolor=deep,bookmarksnumbered=true]{hyperref}
\definecolor{deep}{HTML}{145563}
\definecolor{ink}{HTML}{172D38}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{definition}[theorem]{Definition}
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
\numberwithin{equation}{section}
\renewcommand{\sectionmark}[1]{\markright{#1}}
\titleformat{\section}{\Large\bfseries\color{ink}}{\color{deep}\thesection}{.55em}{}
\titleformat{\subsection}{\large\bfseries\color{ink}}{\thesubsection}{.55em}{}
\titlespacing*{\section}{0pt}{3ex plus .4ex minus .3ex}{1.4ex}
\titlespacing*{\subsection}{0pt}{2.4ex plus .4ex minus .2ex}{.8ex}
\setlength{\parindent}{1.15em}
\setlength{\emergencystretch}{1.8em}
\renewcommand{\arraystretch}{1.17}
\setcounter{tocdepth}{1}
\setcounter{secnumdepth}{2}
\AtBeginDocument{\lefthyphenmin=2\relax\righthyphenmin=3\relax}
\pagestyle{fancy}\fancyhf{}
\fancyhead[L]{\small\itshape Learning with symmetry}
\fancyhead[R]{\small Anonymous}
\fancyfoot[C]{\small\thepage}
\renewcommand{\headrulewidth}{.3pt}
\setlength{\textfloatsep}{11pt plus 4pt minus 2pt}
\setlength{\intextsep}{10pt plus 2pt minus 1pt}
\renewcommand{\topfraction}{.88}
\renewcommand{\bottomfraction}{.79}
\renewcommand{\textfraction}{.08}
\widowpenalty=3500 \clubpenalty=3500
\raggedbottom
\hypersetup{pdftitle={Learning with Symmetry: Holonomy, Equivariant Layers, and Low-Rank Adaptation},pdfauthor={Anonymous},pdfsubject={Observability and equivariance in geometric machine learning}}
\begin{document}
\thispagestyle{empty}
\noindent{\sffamily\small\bfseries\color{deep} RESEARCH MANUSCRIPT\par}
\vspace{12pt}
\noindent{\fontsize{29}{33}\selectfont\bfseries\color{ink} Learning with Symmetry\par}
\vspace{4pt}
\noindent{\fontsize{16}{20}\selectfont Holonomy, equivariant layers, and low-rank adaptation\par}
\vspace{9pt}
\noindent{\normalsize Anonymous\par}
\vspace{10pt}{\color{deep}\hrule height .7pt}\vspace{12pt}
\noindent\textbf{Abstract.}
Which symmetries preserve enough information to identify a label, define a layer, or reproduce a training step? On a magnetic sphere with cyclic isotropy of order $m$, we prove that observing the loop powers $h_1,\ldots,h_s$ gives optimal uniform-label accuracy $1/\gcd(m,h_1,\ldots,h_s)$. A projective-action example recovers a label from the relative phase of two compositional paths. For equivariant line features we distinguish the congruence needed for a nonzero map at both poles from the integer-degree condition for a globally invertible weight. In 24 held-out-orbit experiments the correct symmetry reduced normalized prediction error from $0.0652$ to $0.00395$, while a target violating it reversed the comparison. For low-rank adapters we classify the orbits over the zero matrix and construct a finite gradient step that commutes with every change of hidden basis when its metric is transported. Tests on regression and causal attention distinguish identical forward predictions from identical training trajectories.
\par\medskip
\noindent\textbf{Keywords.} Geometric deep learning, holonomy, equivariance, projective representations, quotient stacks, low-rank adaptation.
\vspace{5pt}
{\small\tableofcontents}
\clearpage
\section{Which data must a learning problem retain?}\label{sec:intro}
Imagine that a classifier receives exact measurements of a magnetic field at every point of a sphere. Its label specifies how a finite rotation fixing the north pole acts on the phase of a charged line there. Under a uniform prior on $m$ possible lifts, every curvature-based classifier has accuracy $1/m$. One measurement of a phase around the appropriate loop identifies the label exactly. The difference persists with unlimited training data and unlimited model capacity. It arises because the two instruments measure different mathematical objects.
The example comes from the companion manuscript \emph{Tensor Geometry on Smooth Stacks}, which developed Wasserman's tensor geometry of mechanics and relativity \cite{wasserman}. We give the necessary constructions here and ask three learning questions. What is the best prediction available from a specified measurement? Which network weights are compatible with a symmetry of the inputs and targets? When do two systems with identical forward predictions take identical optimization steps? In each case one must specify what a change of description does to the data. Consequences range from an exact error bound to a counterexample to coordinate invariance of gradient descent.
\subsection{The role of the groupoid}
Let $\mathcal X$ be a groupoid of objects and invertible comparisons. A scalar observation $o$ constant along arrows factors through the set of isomorphism classes $\pi_0\mathcal X$. A vector-valued field also specifies how arrows act on the fibers. At a point $x$ with stabilizer $G_x$, two feature bundles carry fiber representations $\rho_x,\sigma_x$. A linear layer between them obeys $L_x\rho_x(g)=\sigma_x(g)L_x$. This equation is the naturality square for the endomorphism $g:x\to x$. It can force particular weights to vanish, even when the two fibers have the same dimension.
A smooth stack permits these objects and arrows to vary smoothly in families and to be glued from overlapping charts \cite{stacks}. For the action of $G$ on a manifold $M$ we write $[M/G]$. It retains the automorphisms $G_x$ at a fixed representative. A field on the quotient can therefore distinguish an arrow with constant underlying base path from the identity. In Section~\ref{sec:holonomy} the signal is the action of this arrow on a line. In the projective-action calculation, two ways to compose symmetry transformations can differ by a scalar comparison. The scalar that survives allowed changes of phase is the higher observable there.
For optimization, take a groupoid whose objects are parameter settings and whose arrows change the basis of a hidden space. A map from parameters to predictions may be constant along every arrow. A training rule has to respect the arrows as well if the next predictions are to be determined by those same equivalences. A nonorthogonal change of hidden basis provides a failure case for Euclidean factor gradients. A choice of inner product that transforms with the basis restores the comparison for any finite number of steps. Such a rule still distinguishes genuinely different objects over the same prediction, such as two initial factors having different row spaces.
\subsection{A decision-theoretic interpretation}
Suppose $k$ ranges over a finite parameter set and $P_k$ is the observation law. A decision rule is a probability kernel from observations to labels. If a second observation is computed from the first by a kernel independent of $k$, any rule for the second can be used on the first by composing kernels. Thus optimal success on the first experiment is at least that on the second. If kernels simulate each experiment from the other, the optimal decision values agree for every prior and bounded loss. This is the elementary direction of Blackwell comparison \cite{blackwell}. It applies even if the chosen machines and optimizers have different sample efficiency. In the phase experiment, taking the product of the edge measurements is such a statistic, and a second kernel reconstructs their joint distribution given the product. The result gives an analytic ceiling against which a fitted classifier can be checked.
The empirical comparisons are paired wherever the algorithms can share data. For the classifier we report unseen draws from the full measurement channel. For a steerable kernel we reserve entire rotation orbits for testing, then violate the assumed symmetry to measure its cost. For an adapter we use test inputs that played no part in fitting, record all seed-level results, and compare with a closed-form reduced-rank fit. A causal attention experiment checks the gradient identity through a softmax. The mathematical results specify exactly which equalities hold for all inputs. The reported error rates describe the stated data-generating models.
\paragraph{Relation to prior work.}
Prequantization of differentiable stacks gives an atlas-independent account of line bundles with connection \cite{prequant}. Steerable and gauge-equivariant CNNs use intertwining conditions to design kernels on planes and manifolds \cite{steerable,gauge}. Quotient optimization studies the full-rank factorization of a matrix \cite{mishra}, and the loss landscape of shallow linear networks is well studied \cite{zhu}. LoRA applies this parameterization to frozen neural-network weights \cite{lora}. Our contribution is to connect these results to explicit decisions that can be falsified on finite examples. We calculate the optimal sensor for a chosen set of cyclic probes, distinguish a polar weight test from a global obstruction to invertibility, and compare entire training trajectories under changes of basis. The projective example extends the sensor question to the coherence of two compositions.
\section{Which lift can a classifier identify?}
\label{sec:holonomy}
Fix an integer monopole charge $n$ and a cyclic group $C_m$ of order
$m\ge2$ rotating the unit sphere through multiples of
$\delta=2\pi/m$ about its polar axis. The generator $a$ is marked:
the measurement specifies which rotation and which orientation it
uses. A training label $k\in\mathbb Z/m$ specifies how this rotation
acts on a unitary line with connection over the quotient stack
$[S^2/C_m]$. All labels have the same underlying connection on the
atlas. A sensor may measure the curvature, or it may use the
additional identification of fibers supplied by an arrow of the
quotient groupoid. We calculate the best possible accuracy of each
observation, for zero--one loss on the full label $k$.
\subsection{The character as a stack observable}
Use the standard oriented polar coordinates and write the local
covariant derivatives as $d-iA_N$ and $d-iA_S$. On the complements of
the opposite poles choose
\[
A_N=\tfrac n2(1-\cos\theta)\,d\varphi,\qquad
A_S=-\tfrac n2(1+\cos\theta)\,d\varphi .
\]
Their exterior derivatives are both
$F_n=\tfrac n2\sin\theta\,d\theta\wedge d\varphi$, of total flux
$2\pi n$. The north potential extends smoothly to $N$ since
$(1-\cos\theta)d\varphi=2(x\,dy-y\,dx)/(1+x^2+y^2)$ in the
stereographic coordinates of radius $\tan(\theta/2)$. The analogous
calculation holds at $S$. On the overlap $A_N-A_S=n\,d\varphi$ and
the fiber components obey $v_S=e^{-in\varphi}v_N$.
Differentiating this transition verifies
$(d-iA_S)v_S=e^{-in\varphi}(d-iA_N)v_N$.
Put $\zeta=e^{2\pi i/m}$. Let the lift of $a$ send the north
component $v_N$ to $\zeta^k v_N$ over
$(\theta,\varphi+\delta)$. The new south component is then
$e^{-in(\varphi+\delta)}\zeta^k v_N=\zeta^{k-n}v_S$.
Both lifts preserve the local potentials and obey $a^m=1$. Any two
unitary lines of this curvature differ on the simply connected sphere
by a flat line, which has a global parallel unit section. Two lifts
on the identified connection differ by a parallel gauge
transformation over the identity, necessarily a constant phase.
The group law forces this phase to be an $m$th root of unity.
Conversely each such phase gives one of the stated lifts. The
resulting classes are pairwise inequivalent because a
connection-preserving equivariant isomorphism must intertwine their
north-pole characters. This is the elementary finite-quotient instance
of prequantization on a differentiable stack \cite{prequant}.
The polar loop with rotation power $h$ is the constant path at $N$ closed by the arrow $a^h$, where the
integer $h$ specifies the rotation power. Its transport is
$W_h(k)=\zeta^{hk}$. Under a change of fiber frame the resulting
endomorphism is conjugated by the frame isomorphism. On a complex
line its scalar is unchanged. The corresponding loop at $S$ gives
$\zeta^{h(k-n)}$, so multiplication by the known $\zeta^{hn}$
recovers the northern convention. A path from $x$ to $a^h x$ closed
by $a^{-h}$ uses the inverse arrow and acquires the inverse character
when the lift is twisted. Every polar loop above projects to a
constant path in the coarse sphere. To observe $W_h$ one must
measure or supply the arrow's action on the fiber. Sampling finer
grids of classical curvature values never performs that operation.
\subsection{Exact identifiability}
Let $K$ have prior $p_k$. Training data, internal randomization,
and test-time nuisance variables are taken independent of the unseen
test label unless explicitly included in an observation channel.
In particular an arbitrary independent training set can be
conditioned on throughout. A curvature-only observation has a law
independent of $k$ at fixed $n$ when all sampling and noise mechanisms
are class-independent. This also holds for functions of the ordinary
atlas connection and for classical trajectories whose dynamics use
only $F_n$, given class-independent initial conditions. The resulting
posterior equals the prior. Constant prediction of a
most-probable class has accuracy $\max_k p_k$, and no rule can
exceed it. For uniform classes the accuracy is $1/m$.
\begin{proposition}[Polar observations and Bayes accuracy]
\label{prop:holonomy-bayes}
For integer powers $H=(h_1,\ldots,h_s)$ observe the exact word
$W_H(K)=(\zeta^{h_1K},\ldots,\zeta^{h_sK})$. Put
$d=\gcd(m,h_1,\dots,h_s)$ and $q=m/d$, taking $d=m$ for an
empty word. The word determines $K\bmod q$. Optimal exact-label
accuracy is
\[
\sum_{j=0}^{q-1}\max_{0\le t<d} p_{j+tq}.
\]
For a uniform prior this is $1/d$. Separation of all $m$ labels is equivalent to $d=1$. For a specified prior, zero Bayes error holds precisely when each residue contains at most one label of positive mass.
\end{proposition}
\begin{proof}
Two words agree precisely if $m\mid h_i(k-k')$ for every $i$.
B\'ezout's identity expresses $d$ as an integer combination of $m$
and the $h_i$, so equality implies $m\mid d(k-k')$ and hence
$q\mid k-k'$. Conversely $d\mid h_i$, so $q\mid k-k'$ gives equal
words. The fiber at a residue $j$ is consequently
$\{j,j+q,\ldots,j+(d-1)q\}$. Given this word, a decision rule
maximizes its contribution to success by choosing a prior maximizer
in that fiber. Summing the unconditioned mass of each such choice
gives the displayed expression. Randomization only takes convex
combinations of these contributions.
\end{proof}
For example $m=6$, $H=(2)$ gives the three possible measurements
$1,\zeta^2,\zeta^4$. The labels $0$ and $3$ remain indistinguishable. The
measurement with $H=(3)$ alone identifies parity. Taken together the
two measurements determine the entire class because $\gcd(6,2,3)=1$.
For a uniform prior, the noiseless word has entropy $\log_2 q$ bits
and the residual conditional entropy is $\log_2 d$ bits. This
quantifies the information supplied by sensing before a learning
algorithm or hypothesis class is chosen.
\subsection{Robustness and stochastic sensor noise}
Give each phase its geodesic angular distance in radians, and the
product torus the maximum coordinate distance. For $q>1$ the
minimum separation among distinct observable words is
\[
\Delta_H=2\pi\min_{1\le r<q}\;
\max_{1\le i\le s}
\left\|\frac{h_i r}{m}\right\|_{\mathbb R/\mathbb Z},
\]
where $\|u\|_{\mathbb R/\mathbb Z}=\min_{j\in\mathbb Z}|u-j|$.
Translation invariance reduces every pairwise distance to a
difference from the identity, giving this formula. Under perturbations
of size strictly less than $\Delta_H/2$, nearest-word decoding
recovers the observable residue because the triangle inequality leaves it
strictly closer than every competitor. At radius $\Delta_H/2$ the
midpoint of shortest coordinatewise geodesics between a
minimum-distance pair is admissible for both, so no decoder can
guarantee their separation under all such perturbations.
For a single $h$ with $q>1$, the symbols are a regular $q$-gon and
the threshold is $\pi/q$. When $d>1$, even a noiseless measurement
retains the $d$-way ambiguity of the proposition. If further noise
depends only on the clean word, perturbing it cannot improve the
optimal exact-label accuracy. A decision rule with access to the clean word can simulate
the noisy decision rule.
For a probabilistic example take $h=1$, a uniform prior and one
sample $Y=\delta K+E\bmod 2\pi$. Let $E$ have circular density
$f$ with respect to angular Lebesgue measure. Equal priors and
maximum-posterior decoding give exact accuracy
\[
P_{\rm opt}=\frac1m\int_0^{2\pi}
\max_{0\le k<m} f(y-k\delta)\,dy.
\]
Indeed the joint density of label $k$ and observation $y$ is
$f(y-k\delta)/m$. Maximizing this density for each $y$ and
integrating proves the formula. If $f$ is symmetric about zero and
nonincreasing in angular distance from zero, nearest phase realizes
the maximum and $P_{\rm opt}=\int_{-\pi/m}^{\pi/m} f(e)\,de$.
For von Mises noise of concentration $\kappa\ge0$ this becomes
\[
P_{\rm opt}=\frac{\displaystyle
\int_{-\pi/m}^{\pi/m}\exp(\kappa\cos u)\,du}
{\displaystyle\int_{-\pi}^{\pi}\exp(\kappa\cos u)\,du}.
\]
For a general single power $h$ under the same uniform prior and
unimodal circular noise, let $q=m/\gcd(m,h)$. Conditional on its
residue class the $d=m/q$ labels continue to be equiprobable even
after observing noise. The residue symbols form a uniformly sampled
regular $q$-gon, in an order permuted by $h/d$. Hence the optimal
full-label accuracy is
\[
\frac{1}{d}\int_{-\pi/q}^{\pi/q} f(e)\,de.
\]
For $q=1$ this expression equals $1/m$ for every noise level. For
$d=1$ the von Mises accuracy rises from chance at $\kappa=0$ to unit limiting accuracy as
$\kappa\to\infty$. The general maximum formula also applies to
multimodal noise, for which nearest phase can be suboptimal. These
bounds concern a specified observation channel and its population
distribution. Finite training samples, optimization error, and a
misspecified predictor can reduce achieved accuracy, while a change
in sensor, prior, or nuisance--label dependence changes the prediction
problem itself.
\section{Learning a lift from a noisy loop}\label{sec:holonomyexperiment}
At the north pole of the rotation quotient $[S^2/C_8]$, choose a line
of fixed magnetic curvature and label its equivariant lift by
$K\in\{0,\ldots,7\}$. The isotropy generator $a$ multiplies the fiber
by $\exp(2\pi iK/8)$. To measure $a^h$ we take the constant path at the
pole and close it by the arrow $a^h$. This orientation fixes the plus sign
of the recorded phase. The resulting supervised problem is to predict
the full label $K$. The learner observes transports in randomly chosen
frames, knows $h$, and receives independent labeled training samples.
The distribution of $K$ is uniform.
\subsection{Generating and observing a cycle}
Write the loop as three identity transitions and the closing group arrow,
and give its four vertices independent Haar-distributed frames
$g_0,\ldots,g_3\in U(1)$. In a reference frame take edge coefficients
$V_0=V_1=V_2=1$ and $V_3=\exp(i(2\pi hK/8+\epsilon))$. Noise acts
on the measured closing phase. Its density on $[-\pi,\pi)$ is
$f_\kappa(t)=e^{\kappa\cos t}/(2\pi I_0(\kappa))$, where
$2\pi I_0(\kappa)=\int_{-\pi}^{\pi}e^{\kappa\cos t}\,dt$.
At $\kappa=0$ the phase is uniform. We use $\kappa=\infty$ to denote
zero measurement error. The observed array has entries
\[
U_j=g_{j+1}V_jg_j^{-1},\qquad j\in\mathbb Z/4 .
\]
Their product $Z=\prod_j U_j$ cancels every vertex frame. This is a
model of noisy isotropy transport and assumes access to a loop phase.
\begin{proposition}[Sufficiency of the closed product]
\label{prop:cycle-sufficiency}
On a cycle with $\ell\ge2$ edges, take independent Haar frames and put
the entire signal and sensor noise on the closing edge as above. The
experiment observing the full array and the experiment observing $Z$
simulate each other by label-independent probability kernels. Observing
a single edge has the prior distribution as its posterior on labels.
\end{proposition}
\begin{proof}
Starting with $g_0$, the first $\ell-1$ edge values determine the remaining
frames successively. Haar translation invariance therefore gives independent
Haar variables on these edges, independent also of $K$ and $\epsilon$.
To simulate the full array given $Z$, draw these $\ell-1$ edges and set the
closing edge equal to $Z$ divided by their product. The reverse simulation
takes the product. Each nonclosing edge is Haar, and the closing edge,
conditioned on $Z$, is also Haar since it contains the inverse of an
independent Haar product. Thus no single-edge observation updates the
prior. The full-array Bayes accuracy now follows from
Section~\ref{sec:holonomy}. With $d=\gcd(8,h)$ and $q=8/d$, it is
$d^{-1}\int_{-\pi/q}^{\pi/q} f_\kappa(t)\,dt$.
\end{proof}
\subsection{Fitting and testing the classifier}
For each $h\in\{1,2,4\}$ and each noise level, we fit one complex prototype
for each label residue modulo $q$. We sum the training values of $Z$ in
each residue and normalize the sum to unit modulus. The decision rule
chooses the prototype having the largest real inner product with the test
feature. For a predicted residue $r$ it outputs the fixed representative
$r$ as a full label. This supplies the learner with the known aliasing
relation. It learns the phase centers from examples. As a negative
control we fit eight prototypes directly to the noisy closing edge
$U_3$. A second control uses the common curvature and always predicts
label zero. Both controls have population accuracy $1/8$. We fit on
$3{,}072$ independent labeled cycles and test on $20{,}000$ new
cycles for each of thirty $(h,\kappa)$ settings. The three feature
rules share test examples within a setting. We evaluate the reference integral by 96-point Gauss--Legendre quadrature. The intervals are pointwise
95\% Wilson intervals \cite{wilson} over independent test cycles, conditional on the
fitted prototypes.
\begin{figure}[htbp]
\centering
\includegraphics[width=\linewidth]{results/holonomy-accuracy.pdf}
\caption{Predicting all eight lifts. In the left panel, curves give the Bayes
accuracy and points give held-out accuracy with pointwise 95\% intervals.
The horizontal scale is $\log_2(1+\kappa)$, labeled by $\kappa$.
The right panel compares the noiseless generator experiment using a cycle product, its
closing edge alone, or fixed curvature. Short horizontal bars give the
population optima.}
\label{fig:holonomyaccuracy}
\end{figure}
At $\kappa=8$ the learned accuracies were $72.22\%$, $48.11\%$ and
$24.86\%$ in increasing order of $h$. The corresponding optimal values
are $72.20\%$, $48.32\%$ and $25.00\%$ to two decimal places.
With zero noise the classifier made $20{,}000$, $10{,}037$ and $5{,}059$
correct predictions out of $20{,}000$. A finite test fraction can exceed the population optimum through sampling variation. For the generator the open-edge
control succeeded $2{,}482$ times and the curvature control $2{,}446$
times. Across all thirty settings the largest absolute difference between
closed-product classifier test accuracy and its Bayes accuracy was $0.514$ percentage points.
A second independent change of frames on the first 256 held-out cycles
in each setting changed no predicted classes and changed the cycle
product by less than $8\times10^{-16}$ in complex modulus.
Figure~\ref{fig:holonomyaccuracy} separates two effects of the measurement. Increasing concentration resolves neighboring phase centers, while increasing
the kernel size of $k\mapsto hk\bmod 8$ makes distinct lifts
indistinguishable even at zero noise.
\section{Two compositional paths reveal a projective multiplier}
\label{sec:projective}
The cyclic sensor reads the action on a single arrow. A different
identification problem arises when the unknown datum assigns a phase
to the \emph{composition} of two arrows. Take the marked group
$G=C_m\times C_m$, with generators $x=(1,0)$ and $y=(0,1)$,
and write $\zeta=e^{2\pi i/m}$. Regard $BG$ as a one-object
category and $B^2U(1)$ as the $2$-groupoid with one object, one
$1$-arrow and circle-valued $2$-automorphisms. A normalized
pseudofunctor $BG\to B^2U(1)$ sends each arrow to the unique
$1$-arrow. Its remaining data are the compositors, phases
$\beta(g,h)$ comparing multiplication of the two images with the
image of the product. The associativity coherence reads
\[
\beta(g,h)\beta(g+h,l)=\beta(h,l)\beta(g,h+l).
\]
For $g=(a,b)$ and $h=(c,d)$ set $\beta_k(g,h)=\zeta^{kad}$,
where $k\in\mathbb Z/m$. This formula is independent of the chosen
integer representatives. Bilinearity gives the coherence identity. Writing $l=(e,f)$, the exponents are $k(ad+(a+c)f)$ and
$k(cf+a(d+f))$. They agree as integers.
The phase is $1$ if either argument is zero, as normalization requires.
Choose unitary representatives $T_g$ with
$T_gT_h=\beta_k(g,h)T_{g+h}$. Replacing them by
$T'_g=\lambda_g Q T_g Q^*$ for a common unitary $Q$ and arbitrary
phases with $\lambda_0=1$ gives the new multiplier
\[
\beta'(g,h)=\lambda_g\lambda_h\lambda_{g+h}^{-1}\beta_k(g,h).
\]
The displayed factor is a coboundary. This is also the equivalence
relation on normalized compositors obtained by changing the
comparison on each arrow. The resulting multiplier class lies in
$H^2(G;U(1))$ with trivial action on the coefficients
\cite{costache}. Restrict either argument pair to two elements of the
first axis, or to two elements of the second axis. In each case the
chosen normalized representative has value $1$ on every such pair.
Its restriction after any gauge change is consequently cohomologically
trivial. An observation consisting only of the two axis restriction
classes is constant across $k$. With uniform labels its optimal
classification accuracy is $1/m$. The sensor retains only restriction classes. Full matrices on one axis can carry extra information. For instance,
the eigenvalue multiplicities of $D^k$ below can reveal $\gcd(k,m)$.
In the square whose two paths multiply $g,h$ in opposite orders the
endpoint $g+h=h+g$ is the same. The ratio of the two compositors is
\[
C_k(g,h)=\frac{\beta_k(g,h)}{\beta_k(h,g)}
=\zeta^{k(ad-bc)} .
\]
A coboundary contributes the same scalar to the numerator and
denominator, so $C_k$ is well defined on multiplier classes.
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[x=1cm,y=1cm,>=stealth]
\node (o) at (0,0) {$0$};
\node (x) at (2.75,0) {$x$};
\node (y) at (0,1.48) {$y$};
\node (xy) at (2.75,1.48) {$x+y$};
\draw[->,thick,deep] (o) -- node[left] {$T_y$} (y);
\draw[->,thick,deep] (y) -- node[above] {$T_x$} (xy);
\draw[->,thick] (o) -- node[below] {$T_x$} (x);
\draw[->,thick] (x) -- node[right] {$T_y$} (xy);
\node[anchor=west,align=left] at (3.65,.74) {$T_xT_y=\zeta^k T_yT_x$\\[2pt]\small phase on the marked square};
\end{tikzpicture}
\caption{Translations in the marked group commute. Their unitary representatives compose with a relative phase. Comparing the two ordered products cancels a common basis change and the scalar chosen for each generator.}
\end{figure}
For $(g,h)=(x,y)$ the value is $\zeta^k$ and distinguishes all $m$
members of this family. Thus neither of the separately trivial
restrictions prevents a mixed comparison from detecting the label.
For a numerical example with composite order, take $m=8$ and
compare $x$ with $2y$ in place of $y$. The square then reports
$e^{2\pi i(2k)/8}$, so $k$ and $k+4$ give the same answer. The
loss is exactly the twofold ambiguity calculated for a power-two
cyclic measurement. Unique identification with the original square
requires the specified ordered pair of generators.
Replacing it by another basis of $G$ through a matrix $A$ acts on
the measured exponent by $k\mapsto k\det A\bmod m$. In particular
interchanging the axes inverts the phase. A predictor intended to be
invariant under unknown changes of generators cannot recover the
original marked $k$ from this datum in general.
For an explicit realization let $D e_j=\zeta^j e_j$ and
$S e_j=e_{j+1}$ on an orthonormal basis indexed by $j\bmod m$.
Then $DS=\zeta SD$. Put $U=D^k$, $V=S$ and $T_{(a,b)}=V^bU^a$.
Commuting $U^a$ past $V^d$ gives exactly $\beta_k(g,h)$.
Operationally one may compute the phase as the normalized trace of
$T_xT_y(T_yT_x)^*$. Separate rephasings cancel, and a unitary
change of basis only conjugates the matrix under the trace. A
phase-sensitive comparison or access to representative matrices is
implicit. Measuring only the projective ray of each output after
the two compositions would erase their relative phase.
The numerical check uses $m=8$. For each of the eight labels we
generate 32 independent presentations by unitary QR sampling and by
drawing a phase for each nonidentity element of $G$. We take the
normalized trace and decode against the eight roots of unity, using
neither the random basis nor the rephasing in this decoder. All
256 trials recovered the marked label. The maximum absolute phase
error was below $2\times10^{-15}$. As a separate implementation
check we compare matrix products with the predicted rephased
multiplication law, testing every ordered pair on the first trial
for each label and 32 sampled pairs on each subsequent trial. The
largest absolute entrywise discrepancy was below $10^{-14}$.
The experiment verifies the composition and gauge conventions in
floating point. The cocycle and cancellation arguments give the
identification theorem at every order $m$.
\section{Which weights define a global layer?}
\label{sec:cyclic-kernels}
Suppose a feature rotates by a known phase when the input is rotated about the polar axis. A pointwise layer has no spatial displacement with which to change that phase. A convolution has such a displacement and can use its direction. For a feature in a line bundle, the winding of the frame transition can force even a locally admissible weight to vanish somewhere. We derive the three constraints in the same convention.
\subsection{A cyclic selection rule on a tangent disk}
Let $a$ generate $C_m$, set $\delta=2\pi/m$ and $\zeta=e^{i\delta}$. Write $\chi_i(a)=\zeta^i$ for a complex character. Choose a disk centered at a fixed point and a complex coordinate $z=re^{i\theta}$ in which $a$ acts by $z\mapsto\zeta z$. In this paragraph $i$ and $j$ label the representations of the input and output fibers. For a kernel mapping an input sample at displacement $z$ to an output at the center, the consistent active-rotation convention gives
\begin{equation}
K(\zeta z)=\chi_j(a)K(z)\chi_i(a)^{-1}
=\zeta^{j-i}K(z).
\label{eq:ml-local-kernel}
\end{equation}
Indeed the rotated input at $\zeta z$ equals $\chi_i(a)$ times the original input at $z$. Multiplying each term by the rotated kernel and changing variables by the rotation must yield $\chi_j(a)$ times the original output. The statement uses the same invariant sampling measure on both disks. For multiple input and output channels the scalar characters are replaced by representation matrices \cite{steerable,gauge}. If a chosen complex coordinate rotates through $-\delta$, the index of the angular harmonic below acquires a minus sign.
\begin{proposition}[Cyclic kernel modes]
In the coordinate above, a mode $b_h(r)e^{ih\theta}$ can occur only for $h\equiv j-i\pmod m$, and each such mode satisfies the cyclic transformation law. A continuous kernel obeys $K(0)=0$ whenever $i\ne j$ in $\mathbb Z/m$. For a smooth kernel the radial coefficient of a single mode has the local form
\[
b_h(r)=r^{|h|}c_h(r^2)
\]
with $c_h$ smooth up to $r=0$. Conversely this form suffices for smoothness of a single mode.
\end{proposition}
\begin{proof}
Fourier projection of \eqref{eq:ml-local-kernel} multiplies the $h$th coefficient on the left by $e^{ih\delta}$. Equality of phases gives the congruence, and substitution of $z=0$ gives the central constraint. To see the regularity assertion, project a smooth function onto its $h$th mode by integrating its rotations against $e^{-ih\theta}$. A Taylor monomial $z^u\bar z^v$ contributes only if $u-v=h$, hence only in total degrees $|h|,|h|+2,\ldots$. The projected function restricted to the real diameter is smooth, vanishes to order at least $|h|$, and has parity $(-1)^h$. Division by the corresponding power of the real coordinate gives a smooth even function. A smooth even function of one variable is a smooth function of its square up to the origin, as follows by successively Taylor expanding to even orders with smooth remainders. Conversely the mode is $z^h c_h(|z|^2)$ for $h\ge0$ and $\bar z^{|h|}c_h(|z|^2)$ for $h<0$.
\end{proof}
A finite learned basis of these functions obeys both conditions exactly in the continuous model. An infinite series also needs convergence of the series and its derivatives to define a smooth kernel. For $m=8$, input character $1$ and output character $3$, the permitted harmonics are $2+8t$, $t\in\mathbb Z$. The lowest-order term can be $z^2$, and $\bar z^6$ gives a distinct permitted term. A constant $1\times1$ weight between the same two channels vanishes at the center. Sampling or interpolation on a grid preserves the continuous equivariance identity only to the extent that the sampled action, quadrature and interpolation also implement the symmetry. The gauge-equivariant icosahedral architecture in \cite{gauge} illustrates how to implement changes of mesh frame. In our polar example a physical rotation fixes the base point and acts on the fiber. A passive change of frame can be performed at any point. The two operations impose related matrix identities but refer to different actions.
\subsection{Winding and pointwise layers on the sphere}
Consider the equivariant line $L_{n,k}$ with integer flux $n$, north weight $k\in\mathbb Z/m$ and south weight $k-n$. To specify the convention concretely, northern and southern components satisfy $v_S=e^{-in\varphi}v_N$ on the overlap, and the rotation sends $\varphi$ to $\varphi+\delta$. An equivariant pointwise complex-linear operator from $L_{n_i,k_i}$ to $L_{n_o,k_o}$ is a section of the equivariant Hom line. Put $d=n_o-n_i$ and $b=k_o-k_i\pmod m$. Writing the operator as $v\mapsto wv$ in each frame yields
\[
w_S=e^{-id\varphi}w_N,\qquad
w_N(ax)=\zeta^{b}w_N(x),\qquad
w_S(ax)=\zeta^{b-d}w_S(x).
\]
In particular $\operatorname{Hom}(L_{n_i,k_i},L_{n_o,k_o})\cong L_{d,b}$ as equivariant lines with these model transitions.
\begin{proposition}[Polar tests and a globally invertible weight]
An equivariant pointwise coefficient can be nonzero at both poles exactly when $b=0$ and $d=0\pmod m$. A nowhere-zero smooth equivariant coefficient exists exactly when $b=0$ and $d=0$ as an integer.
\end{proposition}
\begin{proof}
At a fixed pole a nonzero scalar coefficient requires the character on the Hom fiber to be trivial. This gives the two congruences. When both hold, choose invariant cutoff functions supported in disjoint polar disks, identically one near each center. Multiply the constant unit section in each polar frame by its cutoff, extend by zero, and add. This constructs one equivariant coefficient nonzero at both poles.
A nowhere-zero section trivializes the underlying Hom line. On an equatorial circle the two nonvanishing functions $w_N$ and $w_S$ must each have winding zero because each extends over a hemisphere. Their ratio has winding $-d$, forcing $d=0$ as an integer. Conversely when $d=0$ and $b=0$, the two constant coefficients equal to one agree on the overlap and are invariant under the lifted action.
\end{proof}
For example, take $m=8$ and map $L_{1,1}$ to $L_{9,1}$. Both north fibers have character $1$ and both south fibers have character $0$. A layer may be invertible at both poles, but every globally defined pointwise coefficient vanishes somewhere because its Hom line has degree eight. In contrast $L_{1,1}\to L_{1,4}$ has degree-zero Hom line and unequal input and output characters at both poles. Every equivariant coefficient must vanish there. For $L_{1,1}\to L_{1,1}$ a nonzero scalar multiple of the identity is admissible everywhere. These tests concern smooth bundle operators. A requirement that an operator also intertwine prescribed connections adds a parallel-section equation for its coefficient.
\subsection{Composing layers and tying parameters}
Tensor products add degrees and weights. The operation $(s,t)\mapsto s\otimes t$ maps sections of $L_{n,k}$ and $L_{n',k'}$ to a section of $L_{n+n',k+k'}$. Its two transition phases multiply. Dualization reverses the two labels. A Hermitian pairing with the same channel is a scalar invariant, so a radial gate $s\mapsto \sigma(\|s\|^2)s$ is intrinsic for any smooth scalar $\sigma$. For a bank of identical line channels a constant learned mixing matrix acts on the multiplicity index and commutes with every transition. At a fixed pole, channels of unequal character admit only the zero block for pointwise complex-linear mixing. For example, two channels of type $L_{1,1}$ can be multiplied into a channel of type $L_{2,2}$. Both southern weights are zero, so the product is permitted a nonzero southern value. At the north pole every equivariant section of $L_{1,1}$ must itself vanish, and this particular product vanishes there regardless of the learned coefficient. More generally the value of any input section invariant under the lifted group action lies in the invariant subspace of the fiber at a fixed point. A feature map that merely transforms equivariantly when the input signal is rotated need not be a globally invariant section for an arbitrary individual signal. Distinguishing these two uses of equivariance determines when a predicted zero is forced on every input. These elementary operations give a rule for checking the types of a sequence of layers before specifying values of trainable coefficients.
A residual addition $s\mapsto s+F(s)$ is defined when the summands lie in the same fiber. For a skip connection joining different line types, specify the bundle map used to align the summands. A globally invertible pointwise skip exists precisely under the preceding proposition. A nonlocal update can instead transport neighboring features to one fiber and combine them there. Changing frames conjugates the transport at its two endpoints. Thus the same learned kernel coefficients can be reused across an overlap after transforming the input, output and tangent displacement by the appropriate representations. Equations of the form \eqref{eq:ml-local-kernel} enforce these identities on a tangent disk. On the sphere, transition compatibility must additionally hold across polar charts. This gives checkable weight-sharing and vanishing conditions for an architecture. Predictive accuracy depends on the data and the chosen observables.
\section{A finite-sample test of the cyclic kernel rule}
\label{sec:layer-experiment}
We test the selection rule of Section~\ref{sec:cyclic-kernels} at a single pole.
The unit of observation is one complex feature at a spatial displacement, so
one can measure a kernel directly without interpolation or discretized
convolution. The generator of $C_8$ acts by
$(z,u)\mapsto(\zeta z,\zeta u)$ on the displacement and the input feature,
where $\zeta=\exp(2\pi i/8)$. The predicted output must transform by
$\zeta^3$. All weight maps in this experiment are complex-linear in $u$.
First consider a constant weight at the origin. Averaging its conjugates
over $C_8$ projects the scalar $1$ for input character $i$ and output
character $j$ to $8^{-1}\sum_{g=0}^7\zeta^{g(j-i)}$. Evaluation for all
64 ordered pairs gives one on the eight diagonal pairs and zero on the
others, with maximum absolute difference $2.3\times10^{-16}$ or smaller in
the recorded run. Now let $b_h(z)=z^h$ for $h\ge0$ and
$b_h(z)=\bar z^{|h|}$ for $h<0$. Project the thirteen modes
$b_h(z)u$, $-6\le h\le6$, onto the output character at a nonzero
displacement. Dividing the projection by the original feature gives one
for $h=-6,2$ and zero for all other modes, within $7.6\times10^{-16}$.
This is a numerical check of the implementation. The finite sum of roots of
unity proves the identity for every displacement.
\subsection{Training and test orbits}
We generate a target on the annulus $0.65\le |z|\le1$ by
\[
y(z,u)=\big[(1+0.30i)z^2+(0.65-0.35i)\bar z^6\big]u .
\]
For a second target add $(0.65+0.30i)z^3u$, which transforms with output
character four. For each run the position radius and feature magnitude are
uniform on $[0.65,1]$ and $[0.75,1.25]$, respectively. Their arguments
are independently uniform on $[0,2\pi)$. Each of 32 training input pairs
is observed at one orientation. Independent circular complex Gaussian noise
of mean square magnitude $0.20^2$ is added to its label. Each run has 128
independent test pairs, evaluated with clean targets at all eight orientations.
All 160 sampled radii are checked for pairwise distinctness, which certifies
that training and test orbit sets are disjoint. Each method receives the same
training labels in that run. We repeat the experiment with 24 pseudorandom
seeds beginning at 20261122, using the same inputs and training noise for
both target laws within each run.
The unrestricted linear regression fits complex coefficients on all thirteen
modes by least squares. The constrained regression fits coefficients on
$-6,2$. The augmented regression uses all thirteen and generates eight
copies of each observed example, rotating its label by the prescribed output
character, including the noise already present. These copies provide no new
independent labels. For the second law this augmentation deliberately imposes
an incorrect symmetry. All three design matrices have full column rank on
every run.
For prediction $\widehat y$, define $P_y$ as the mean squared modulus of
the clean target over all test pairs and rotations. Test error $E$ is the
mean of $|\widehat y-y|^2$ over these examples divided by $P_y$.
The equivariance defect $D$ is the mean of
\[
\left|\widehat y(\zeta^g z,\zeta^g u)
-\zeta^{3g}\widehat y(z,u)\right|^2/P_y
\]
over the same indices. The eight rotations within a test orbit are
dependent. The standard deviations shown in Table~\ref{tab:layer-fits}
are computed across the 24 independent simulation runs.
\begin{table}[htbp]
\centering\small
\begin{tabular}{llrr}
\toprule
Target & Fit & $E$, mean $\pm$ SD & Mean $D$\\
\midrule
Equivariant & Unrestricted & $0.0652\pm0.0345$ & $0.107$\\
& Constrained & $0.00395\pm0.00311$ & $<10^{-29}$\\
& Augmented & $0.00395\pm0.00311$ & $<10^{-29}$\\[2pt]
Broken symmetry & Unrestricted & $0.0504\pm0.0266$ & $0.563$\\
& Constrained & $0.254\pm0.0267$ & $<10^{-29}$\\
& Augmented & $0.254\pm0.0267$ & $<10^{-29}$\\
\bottomrule
\end{tabular}
\caption{Generalization to held-out $C_8$ orbits for one spatial kernel.
Each entry normalizes by the signal power of its own target law.}
\label{tab:layer-fits}
\end{table}
The coincidence of constrained and augmented regression admits a check
independent of the numerical results. On each training orbit, functions in
distinct output-character sectors are orthogonal under the uniform average.
The augmented labels occupy only the sector of character three, so the
other sectors have homogeneous least-squares objectives. Full column rank
forces their coefficients to zero. The surviving objective is precisely the
constrained objective multiplied by eight. The implementation checks equality
of the two predictions on every test run. For the matched target, suppressing
the eleven unused coefficients reduces finite-sample prediction error. When
the target contains the forbidden cubic term, both methods discard signal
and incur a larger error than unrestricted fitting. These measurements
concern supervised identification of a single spatial kernel. Performance
of a trained multilayer network on natural images requires a different
experiment.
\section{What a low-rank adapter remembers about a weight update}
\label{sec:adapter-factors}
Consider one frozen linear layer $W_0:\mathbb R^n\to\mathbb R^m$. A low-rank adapter introduces two trainable linear maps
\[
\mathbb R^n\xrightarrow{A}\mathbb R^r\xrightarrow{B}\mathbb R^m,
\qquad D=BA,\qquad W=W_0+sD ,
\]
where $1\leq r\leq\min(m,n)$ and the scale $s>0$ is fixed. The original LoRA construction takes $s=\alpha/r$ and initializes $A$ randomly and $B$ at zero \cite[\S4.1]{lora}. A forward pass through this layer depends on $W$. If one wishes to predict the result of a training step, one must also know how the two factors represent $D$. Even zero updates have representatives with different first-order behavior.
\subsection{Fibers and tangent spaces of matrix multiplication}
Write $\pi(B,A)=BA$. The group $GL_r(\mathbb R)$ acts on factor pairs on the right by
\[
(B,A)\cdot S=(BS,S^{-1}A).
\]
Every such arrow preserves $D$. The orbit directions and the differential of the product fit into a sequence
\[
\mathfrak{gl}_r
\xrightarrow{\rho}
\operatorname{Hom}(\mathbb R^r,\mathbb R^m)
\oplus\operatorname{Hom}(\mathbb R^n,\mathbb R^r)
\xrightarrow{d\pi}
\operatorname{Hom}(\mathbb R^n,\mathbb R^m),
\]
where $\rho(Z)=(BZ,-ZA)$ and $d\pi(U,V)=UA+BV$. Their composite vanishes. The first arrow alone presents the tangent complex of the quotient stack in degrees $-1,0$. The last arrow compares that complex with the observable matrix variation. If one instead imposes a specified value of $D$ by a derived fiber, the target becomes the degree-one term of the relative deformation complex. These are distinct uses of the same linear maps.
\begin{proposition}[Tangent image and full-rank quotient]
Put $a=\operatorname{rank}A$ and $b=\operatorname{rank}B$. The image of $d\pi$ consists exactly of the matrices $T$ satisfying $T(\ker A)\subseteq\operatorname{im}B$. Its dimension is $ma+nb-ab$. On the locus $a=b=r$, the orbit directions equal $\ker d\pi$, and the quotient by $GL_r$ is the manifold of rank-$r$ matrices.
\end{proposition}
\begin{proof}
The condition on $\ker A$ follows by differentiating the product. Conversely, lift $T|_{\ker A}$ through $B$ to a map into $\mathbb R^r$ and extend it to a map $V$ on $\mathbb R^n$. Then $T-BV$ factors through $A$ as a map from $\operatorname{im}A$. Extend that map to $U$ on all of $\mathbb R^r$. The condition thus removes exactly $(m-b)(n-a)$ matrix entries in bases adapted to the kernel and image. When both factors have maximal rank, $\rho$ is injective and the kernel of $d\pi$ has dimension $r^2$. Every factorization of a rank-$r$ matrix identifies the hidden space by $B$ with its column space. Two such identifications differ by a unique $S$, and the corresponding $A$ is then determined. Locally choose any $r$ independent columns of $D$ as $B$. Solving for the remaining columns in this frame gives $A$ smoothly, as can be seen by inverting a nonzero $r\times r$ minor. These local sections identify the fiber with a principal $GL_r$-orbit and give the asserted quotient.
\end{proof}
This quotient description is used in fixed-rank optimization \cite[\S3.1]{mishra}. Its dimension is $r(m+n-r)$. When the product vanishes the equation $BA=0$ says $\operatorname{im}A\subseteq\ker B$, so $a+b\leq r$. Both $\ker A$ in the input and $\operatorname{im}B$ in the output are invariant under a hidden basis change. For example, two full-row-rank initializations of $A$ with distinct row spaces already give inequivalent points above $D=0$ with $B=0$. The stabilizer Lie algebra at a general pair consists of $Z$ vanishing on $\operatorname{im}A$ with image in $\ker B$. Its dimension is $(r-a)(r-b)$. At $B=0$ and $a=r$ this dimension vanishes and the observable tangent image has dimension $mr$, while the entire hidden group fixes $(0,0)$ and its observable tangent image has dimension zero. A change to only one factor at the origin is invisible even to arbitrary finite order. A simultaneous displacement $(tU,tV)$ yields the exact quadratic update $t^2UV$.
One can describe the whole zero-product orbit set in elementary linear terms. Fix $K=\ker A$ in the input and $L=\operatorname{im}B$ in the output. The induced map identifies $\mathbb R^n/K$ with $\operatorname{im}A$. Choose a complement of this image in $\ker B$, then a complement of $\ker B$ in the hidden space. The last summand maps isomorphically to $L$. Any two such decompositions for pairs with the same $K,L$ are carried to one another by a hidden isomorphism intertwining the two factors. The dimension of the intermediate invisible summand is $r-a-b$. Thus every allowed pair of input kernel and output image determines exactly one orbit above zero. Its automorphisms are still part of the groupoid.
Parameter symmetries also depend on which observations are available. For a dataset with input span $H=\operatorname{im}X$, two products $D,D'$ give the same layer outputs on those samples precisely when $(D-D')|_H=0$. Even on the full-rank stratum such observational agreement can identify distinct gauge orbits. For example, the row maps $(1,0)$ and $(1,1)$ agree on $H=\mathbb R(1,0)$ but differ on the second coordinate vector. This distinction becomes relevant when interpreting a vanishing empirical gradient as a claim about every possible input.
\subsection{A loss detects second-order directions}
For data matrices $X\in\mathbb R^{n\times N}$ and $Y\in\mathbb R^{m\times N}$ with samples as columns, set $R=Y-W_0X$. Use the squared training loss
\[
f(D)=\frac1{2N}\|sDX-R\|_F^2,
\qquad G=\nabla_D f=\frac{s}{N}(sDX-R)X^\top .
\]
The Frobenius pairing and $d\pi$ give
$\nabla_B(f\circ\pi)=GA^\top$ and
$\nabla_A(f\circ\pi)=B^\top G$.
Both vanish at the all-zero pair for every dataset. The second derivative makes a sharper prediction. Along $(tU,tV)$ the exact expansion is
\[
f(t^2UV)=\frac{\|R\|_F^2}{2N}
-\frac{s t^2}{N}\langle RX^\top,UV\rangle_F+
\frac{s^2t^4}{2N}\|UVX\|_F^2 .
\]
Put $C=RX^\top/N$. For each hidden coordinate the Hessian, on its output-column and input-row perturbations taken as vectors, is the block matrix
\[
\begin{pmatrix}0&-sC\\-sC^\top&0\end{pmatrix}.
\]
The $r$ hidden coordinates give $r$ copies of this block. If $Cy=\sigma x$ and $C^\top x=\sigma y$ with $\sigma>0$, its eigenvectors $(x,y)$ and $(x,-y)$ have eigenvalues $-s\sigma$ and $s\sigma$. Thus the all-zero pair is a strict saddle precisely when $C\ne0$. When $C=0$ the quadratic cross term vanishes for every $D$, and the loss takes its global minimum at $D=0$, even if $R\ne0$. The Gauss--Newton approximation at the all-zero pair vanishes in both cases because the residual Jacobian is zero. For the full observation model $X=I$, this calculation recovers the origin of the shallow linear network squared-loss landscape \cite{zhu}.
The data qualification can be tested with two samples. Let $W_0=0$, $m=n=r=1$, $s=1$, $X=(1,1)$ and $Y=(1,-1)$. Both labels have nonzero residual at zero, yet $C=0$ and $f(D)=(1+D^2)/2$. Changing the second label to $1$ leaves the zero-adapter loss equal to $1/2$ and changes $C$ to $1$. The Hessian now has eigenvalues $-1,1$ and along $A=B=t$ the loss is $(1-t^2)^2/2$. Even at a strict saddle, exact gradient descent started at the all-zero pair stays there. A traditional LoRA initialization with $B=0$ and random $A$ generally gives a nonzero first gradient in $B$, whose precise criterion is $CA^\top\ne0$.
\subsection{One optimization step need not respect a change of basis}
For any differentiable $f(D)$ consider simultaneous Euclidean gradient steps in the two factors with learning rate $\eta$. The gradient $G$ can also come from a specified minibatch. Multiplying the updated factors gives the exact identity
\begin{align*}
D_+={}&D-\eta\bigl(BB^\top G+G A^\top A\bigr)
+\eta^2 G D^\top G .
\end{align*}
The quadratic term depends only on $D$ and $G$. The linear term depends on two Gram matrices. Under $B\mapsto BS$ the left Gram matrix becomes $BSS^\top B^\top$. Under $A\mapsto S^{-1}A$ the right Gram matrix becomes $A^\top S^{-\top}S^{-1}A$. An orthogonal basis change preserves both. A general invertible basis change can change even the next prediction on the same training example. Equivalently, the Frobenius metric used to turn covectors into gradients on the factor space does not furnish a $GL_r$-invariant update rule.
For an explicit test on the full-rank stratum take scalar input $1$, target $0$, $W_0=0$, $s=1$ and $\eta=1/10$. The factor pairs $(B,A)=(1,1)$ and $(2,1/2)$ represent the same weight $D=1$ and the same gradient $G=1$ in matrix space. The first pair becomes $(0.9,0.9)$ and predicts $0.81$. The second becomes $(1.95,0.3)$ and predicts $0.585$. Their different outputs after one step rule out a functor on the gauge groupoid that acts on objects by this Euclidean training step and on arrows by product-preserving comparisons. A quotient optimization method instead specifies a compatible metric on the full-rank locus \cite{mishra}.
At the usual $B=0$ initialization the first product step simplifies further to $D_+=-\eta G A^\top A$. Every input direction annihilated by $A$ receives exactly zero prediction change from this layer in that step. The same identity applies to a deterministic nonlinear network when all remaining parameters are fixed, the loss depends on the factors solely through the effective matrix, and $G$ is obtained by backpropagation through that network. The explicit sample cross-moment criterion above belongs to the stated squared linear prediction model. For a smooth nonlinear loss its replacement at the all-zero pair is the matrix gradient $G(0)$, since the factor-to-matrix Jacobian again vanishes there. Dropout comparisons require the same mask, and the finite-step equation describes plain SGD without momentum, adaptive rescaling, or factor-specific penalties. For a trained transformer these distinctions specify which quantities must be measured before inferring its next update from a saved adapter.
\subsection{A matched experiment in low-rank regression}
\label{sec:adapter-runs}
How much can two factorizations of one initial update differ after training? We used a regression problem whose correct rank and best empirical rank-constrained fit can both be computed. Each of 16 seeds specifies a new base matrix $W_0\in\mathbb R^{8\times 12}$, two independently drawn orthonormal three-frames $U,V$, and a planted update
$D_*=U\,\operatorname{diag}(2,1.2,0.6)V^\top$. Gaussian inputs are columns of $X$ and the labels are
\[
Y=(W_0+D_*)X+E,\qquad E_{ij}\sim N(0,0.15^2)
\]
with independent noise. Each seed has 32 training and 512 independent test examples. All methods for that seed see the same training data, frozen base, and held-out data. The test inputs play no role in fitting. Let $R=Y-W_0X$ denote residual labels. Training uses $L=\|BA X-R\|_F^2/(2N)$ with $N=32$. Test scores are mean squared errors per output coordinate and test example. The population prediction risk of the planted noiseless update under this scoring rule is $0.0225$.
Each trainable factorization has $B\in\mathbb R^{8\times 3}$ and $A\in\mathbb R^{3\times12}$. One control starts with both factors zero. The others start from $B=0$ and $A=cA_0$, where $A_0$ has three random orthonormal rows drawn once per seed. Every arm thus makes exactly the same predictions at initialization. We run 300 simultaneous full-batch gradient steps in float64, using learning rate $\eta=0.08$ for each factor in the ordinary Euclidean runs. There is no momentum, weight decay, or adaptive stopping rule.
\paragraph{Independent baselines.}
Alongside the zero-update control, we solve dense least squares and rank-three least squares to their respective training optima. For the latter, write $X^\top=QT$ with $Q^\top Q=I$ and $T$ upper triangular. The orthogonal decomposition of the squared loss leaves $\|DT^\top-RQ\|_F^2$ plus a constant independent of $D$. Since $T$ is invertible on every sampled design, truncate the singular value decomposition of $RQ$ to three terms and solve $DT^\top=(RQ)_3$. Keeping all terms gives the dense baseline. These direct estimators answer what each rank constraint permits on the same noisy data. Their horizontal lines in Figure~\ref{fig:adapter-runs} are fitted reference scores, with no gradient-step budget attached.
\begin{table}[htbp]
\centering\small
\begin{tabular}{lrrr}
\toprule
Fit & Step 40 & Step 300 & SD at 300\\
\midrule
Both factors zero & 0.75306 & 0.75306 & 0.02524\\
Euclidean, $c=1/2$ & 0.14731 & 0.02908 & 0.00235\\
Euclidean, $c=1$ & 0.17689 & 0.03543 & 0.01299\\
Euclidean, $c=2$ & 0.30713 & 0.06866 & 0.04025\\
Rank-three least squares & 0.02898 & 0.02898 & 0.00202\\
Dense least squares & 0.03628 & 0.03628 & 0.00386\\
\bottomrule
\end{tabular}
\caption{Arithmetic mean held-out MSE over the 16 tasks, with between-task sample standard deviation at step 300. All comparisons across arms are paired by seed.}
\label{tab:adapter-runs}
\end{table}
\begin{figure}[htbp]
\centering
\includegraphics[width=\linewidth]{results/adapter-learning.pdf}
\caption{Mean held-out prediction error through training. Initial updates coincide for all factorized runs. With a common Euclidean learning rate their paths separate, and the both-zero initialization remains stationary.}
\label{fig:adapter-runs}
\end{figure}
\paragraph{Checking the prediction.}
Write $G_0=-RX^\top/N$ for the loss gradient with respect to the product at zero. Starting from $(0,cA_0)$ leaves $A$ fixed on the first step, so the predicted first product is $-\eta c^2 G_0 A_0^\top A_0$. The observed update norms for $c=1/2,1,2$ were in the ratio $1/4:1:4$ on every seed. The maximum relative Frobenius error of the matrix prediction was $3.55\times10^{-16}$. A separate centered finite-difference check of the two-factor directional derivative at a nonzero pair gave scaled errors below $2.5\times10^{-10}$ across seeds, using step $10^{-5}$ and denominator $\max(1,|dL|)$. The both-zero arm took zero steps in product space because both factor gradients vanished.
We also checked the role of the metric throughout training. To transport a reference Euclidean update along $(B,A)\mapsto(B/c,cA)$, give the new $B$ block rate $\eta/c^2$ and the new $A$ block rate $\eta c^2$. The chain rule makes the transformed factors follow the transported update on every step. Across the 16 seeds the largest Frobenius discrepancy of any corresponding product was zero at the tested binary scales $1/2$ and $2$. By contrast, the unadjusted $c=1/2$ arm had lower held-out error than the unadjusted $c=2$ arm on all 16 tasks at step 300, with a mean paired difference of $-0.03958$. Taking the larger first step did not predict smaller error at this horizon.
\paragraph{Reproduction and scope.}
Run \texttt{python3 experiments/adapters.py} from the source directory with NumPy and Matplotlib installed. The run regenerates the figure, per-seed trajectories, first-step and derivative checks, and summary tables under \texttt{results/adapter-*}. Seeds run from 0 through 15 and the standard deviations have denominator 15. The data-generating update has exactly the rank supplied to the factorized models. This favors rank-constrained estimation and frames the interpretation of its held-out advantage over dense least squares. The experiment tests a factorization identity and a finite optimization trajectory in linear regression. Larger models, minibatching, learned features, and optimizer state introduce variables outside this design.
\section{A training step that respects a hidden change of basis}\label{sec:metric}
An adapter has a hidden vector space of dimension $r$. Its factors are maps into and out of this space. The Euclidean gradient calculation of Section~\ref{sec:adapter-factors} tacitly equips the hidden space with an inner product. Recording that choice lets us ask whether a change of coordinates describes the same optimization problem. The following construction uses a fixed inner product as additional data. Quotient metrics and iteration-dependent preconditioners for low-rank fitting are developed in \cite{mishra,scaledgd}.
\begin{proposition}[An equivariant finite training step]\label{prop:metric}
Let $H$ be a positive-definite symmetric matrix giving the hidden inner product, and let $f$ be any differentiable real objective of $D=BA$. Denote its Frobenius gradient by $G$. A simultaneous gradient step for the product-factor metric
\[
\|(\dot B,\dot A)\|_H^2=
\operatorname{tr}(\dot B H^{-1}\dot B^\top)+
\operatorname{tr}(\dot A^\top H\dot A)
\]
has the form
\[
B_+=B-\eta G A^\top H,\qquad
A_+=A-\eta H^{-1} B^\top G.
\]
Keep $H$ fixed during training. Under the right action
\[
(B,A,H)\cdot S=(BS,S^{-1}A,S^\top H S)
\quad (S\in GL_r),
\]
the update commutes with every arrow, at every rank and for every step size for which the objective is defined. All subsequent effective matrices agree between the two frames.
\end{proposition}
\begin{proof}
Pairing $(\dot B,\dot A)$ with the stated gradient in the displayed metric gives $\langle G,\dot B A+B\dot A\rangle_F$ by cyclicity of the trace. The effective product at the two representatives is identical, so the matrix gradient $G$ is identical. With $H'=S^\top H S$, the transformed gradient in the first block is
$G(S^{-1}A)^\top H'=GA^\top H S$ and in the second block it is
$(H')^{-1}(BS)^\top G=S^{-1}H^{-1}B^\top G$. Subtracting these from the transformed factors proves the assertion at one step. Iteration proves it at every step. For stochastic gradients the proof applies pathwise when the two runs use the same minibatches and random choices in the product objective.
\end{proof}
The identity holds for finite steps, including at singular products. It identifies two coordinate descriptions of one optimizer. Specifying $H$ changes the problem from finding an update on bare factor pairs to finding one on triples. Indeed, no equivariant choice of positive-definite $H(B,A)$ exists on the entire space of pairs. At $(0,0)$ any scalar $S=cI$ fixes the pair and would require $H=c^2H$ for every $c\ne0$. This is impossible already at $c=2$.
There is a canonical initialization on the open set where $A$ has full row rank and the input has its Euclidean metric. Set $H_0=(AA^\top)^{-1}$. It obeys the transformation law above. At the common initialization $B=0$ the first product step becomes
\[
D_+=-\eta G A^\top(AA^\top)^{-1}A=-\eta G P_{\operatorname{row}A}.
\]
The orthogonal projection explains exactly which input directions can change on that step. The choice is unchanged as a geometric inner product by rescaling or mixing the initial rows. Choosing a different row space can change the update. In rank-deficient regimes a general $H$ supplied as geometry still gives a well-defined update. The projection formula uses the full-row-rank hypothesis.
\paragraph{A nonorthogonal change of coordinates.}
For an exactly reproducible check take $r=2$, $B_0=0$, and $A_0$ equal to the first two rows of $I_3$. Fit the matrix
\[
T=\begin{pmatrix}1&0&0.4\\0&2&0.2\end{pmatrix},
\qquad f(D)=\tfrac12\|D-T\|_F^2,\qquad
S=\begin{pmatrix}2&1\\0&1/2\end{pmatrix}.
\]
Use $H=I$ in the initial frame, $\eta=0.05$ and 40 simultaneous steps. Higher loss at the first step need not imply higher loss at the last one.
\begin{center}\small
\begin{tabular}{@{}lrrr@{}}
\toprule
Frame and metric & Loss, step 1 & Loss, step 40 & Maximum product discrepancy\\
\midrule
Original, Euclidean & 2.35625 & 0.011961 & 0\\
Quarter turn, Euclidean & 2.35625 & 0.011961 & $<5\cdot10^{-16}$\\
Nonorthogonal $S$, Euclidean & 1.71414 & 0.038087 & 1.1193\\
Nonorthogonal $S$, transported & 2.35625 & 0.011961 & $<10^{-15}$\\
\bottomrule
\end{tabular}
\end{center}
The discrepancy is the maximum Frobenius distance to the original-frame product over steps 0 through 40. The two Euclidean fits using different nonorthogonal coordinates have different trajectories. Transport of the inner product recovers the whole original trajectory to floating-point precision. This comparison measures coordinate invariance. Convergence speed requires further hypotheses about the objective, step-size rule and initialization.
\subsection{A query adapter inside causal attention}
\label{sec:attention-runs}
The regression experiment admits a closed-form fit. Does its prediction about the next factor update survive when that update changes the attention paid to previous tokens? We train a single masked dot-product attention head \cite{attention} to predict the conditional distribution of the next symbol in sequences generated by a teacher. The nine symbols are synthetic. A sequence starts with one uniformly drawn symbol and continues with five draws from the teacher. We generate 64 training sequences and 256 independent test sequences for each of eight independently drawn teachers. All four student initializations within a task use the same frozen weights and sequences.
Let $e_t\in\mathbb R^6$ be the embedding of the token at position $t$. Keys $k_t$, values $v_t$ and queries $q_t$ lie in $\mathbb R^4$. Only the query matrix changes during training. For a readout $M:\mathbb R^4\to\mathbb R^9$ the predicted distribution is
\begin{align*}
q_t&=(W_{Q,0}+BA)e_t, & u_{tj}&=q_t^\top k_j/2,\\
\alpha_{tj}&=\frac{e^{u_{tj}}}{\sum_{l\le t}e^{u_{tl}}}\quad(j\le t), &
p_t&=\operatorname{softmax}\!\left(M\sum_{j\le t}\alpha_{tj}v_j\right).
\end{align*}
The teacher uses the same base matrices with a planted rank-two query update of singular values $2$ and $1$ and independent random orthonormal singular frames. The student factors have dimensions $4\times2$ and $2\times6$. Embeddings have independent standard normal entries. The entries of the frozen query, key and value matrices are independent centered Gaussians with standard deviations $0.5/\sqrt6$, $1/\sqrt6$ and $1/\sqrt6$, respectively. The readout entries have standard deviation $1.5/2$. No positional encoding is included. The mask gives causal prefix access, and attention within each prefix is content-based.
\paragraph{Backpropagating through the mask.}
At each prefix the training target is the teacher distribution $p_t^*$, including its probabilities for symbols that were not sampled. We minimize the mean $\operatorname{KL}(p_t^*\Vert p_t)$ over sequences and their five positions. Before averaging, the derivative with respect to the output logits is $p_t-p_t^*$. Put $h_t=M^\top(p_t-p_t^*)$, $b_{tj}=h_t^\top v_j$ and $\bar b_t=\sum_{l\le t}\alpha_{tl}b_{tl}$. The score derivative is $\alpha_{tj}(b_{tj}-\bar b_t)$ on the visible prefix and zero elsewhere. The outer product of
$\sum_{j\le t}\alpha_{tj}(b_{tj}-\bar b_t)k_j/2$ with $e_t$ gives the query-matrix gradient for that prefix. Its average is $G$. Each term reflects both value mixing and the variation of the attention weights. In particular, the first token alone has a single visible key and hence supplies zero query gradient.
\paragraph{Four training trajectories.}
We take 80 simultaneous full-batch steps of size one. The reference starts with $B=0$ and $A=A_0$, an independent random orthonormal two-frame of rows. Starting both factors at zero is a stationary control. The remaining arms start from the sheared coordinates $(BS,S^{-1}A)$ with
$S=\left(\begin{smallmatrix}1&3/4\\0&1\end{smallmatrix}\right)$. One uses Euclidean updates in those coordinates. The other right-multiplies the $B$ gradient by $S^\top S$ and left-multiplies the $A$ gradient by $S^{-1}S^{-\top}$. These are the preconditioners obtained by transporting the reference metric. We score both the distance to the teacher and negative log probability on the actual sampled next symbols. Both use natural logarithms.
\begin{table}[htbp]
\centering\small
\begin{tabular}{@{}lrrr@{}}
\toprule
Fit & Test KL, step 1 & Test KL, step 80 & Test NLL, step 80\\
\midrule
Both factors zero & .03971 & .03971 & 1.89475\\
Reference & .03446 & .00342 & 1.85890\\
Shear, Euclidean & .03530 & .00372 & 1.85913\\
Shear, transported & .03446 & .00342 & 1.85890\\
\bottomrule
\end{tabular}
\caption{Next-symbol prediction with a frozen masked head. Entries are arithmetic means over eight tasks. At initialization all arms have mean training KL $.03895$ and held-out KL $.03971$. The teacher itself scores $1.85451$ nats per sampled test symbol.}
\label{tab:attention-runs}
\end{table}
The initial matrix-gradient norm ranged from $.0220$ to $.3007$. Centered differences of all 24 entries, with step $10^{-5}$, agreed with backpropagation within relative Frobenius error $3.35\times10^{-10}$. Substituting these independently estimated entries in $-G A_0^\top A_0$ predicted the first reference product within relative error $1.86\times10^{-10}$. The largest product discrepancy between reference and transported runs was $1.62\times10^{-15}$ over every seed and step. The unadjusted shear produced a maximum discrepancy between $.0978$ and $.5434$ across the eight tasks. At step 80 the between-task sample standard deviations of test KL were $.00130$ for the reference and $.00147$ for the unadjusted shear. These trajectories test the change-of-coordinates law inside a differentiable sequence model. Experiments on a language corpus and a pretrained multi-layer transformer would require new measurements. Run \texttt{python3 experiments/attention.py} to regenerate the trajectories and independent checks.
\section{Consequences for designing a learning system}
Take the sphere model with $m=8$, a hidden lift label $k$ and known monopole charge $n$. It gives a precise specification for a data collection protocol. If only the power-four loop is available, an observation determines parity and leaves four possible labels. A second observation through an even power can refine the label only within the restriction imposed by their common divisor with eight. Any odd power alone gives all labels in the absence of noise. With noise, equal noiseless resolving power need not imply equal performance if the instrument error depends on the power. The Bayes integral must then use the noise law for the chosen measurement. This identifies a concrete quantity to estimate when moving from a simulated sensor to an actual one.
A layer designer faces a different decision. In the cyclic kernel experiment, full rotation augmentation and hard parameter tying agree because the chosen hypothesis space is a linear sum of character spaces, all group elements are used, least squares decouples the sectors, and the design has full column rank. Dropping any of these conditions requires a new argument. The broken-symmetry target is particularly informative. It has a component orthogonal to the permitted sector on complete orbits. More training examples from the same law cannot let a strictly equivariant layer represent that component. Reserving entire orbits for testing distinguishes generalization to a new displacement from interpolation among eight presentations of the same displacement.
For fine-tuning, agreement of two adapter checkpoints on every possible input establishes equality of their represented matrix for a bare linear layer. Reproducing their future training behavior additionally requires enough information about factor scales, row spaces, optimizer state and its transformation law. In the metric experiment one can rotate or shear the same rank-two hidden basis and predict the effect of ignoring that transformation before running any training. For a causal attention layer, equality of query matrices likewise implies equality of its forward output when the other weights and input agree. The identity for the first update through that layer uses its actual gradient, which depends on the mask, the current probabilities and the loss. The attention experiment differentiates these operations explicitly.
These examples support claims about observability under the stipulated sensor, admissible layer types, and finite-step training dynamics. Natural images do not generally have exact cyclic symmetry, and a large language model may use several adapters, adaptive learning rates and a data-dependent stochastic training procedure. A direct evaluation on such a model could save two gauge-related checkpoints and the same minibatch sequence, measure their effective layer updates, and compare the observed discrepancies with those predicted from the measured gradients and optimizer state. That experiment would answer a performance question outside the controlled tasks reported here.
\paragraph{Authorship and reproducibility.}
An anonymous researcher commissioned this companion manuscript. OpenAI Codex drafted the exposition and implemented the synthetic experiments. The source bundle contains the experimental programs, recorded results, figures, and the full LaTeX source. The statements are supported by mathematical proofs, finite identities, and the reported experiments. Proof-assistant formalization is left for separate work.
\subsection*{Computational record}
The six scripts in the source bundle run on a CPU. All data are generated by the scripts, including the causal teacher and its sampled sequences. From the extracted source directory, \texttt{python reproduce.py} writes the CSV results and both plotted figures under \texttt{results/}. The recorded environment used Python 3.12.14, NumPy 2.3.5, and Matplotlib 3.10.8. Seeded floating-point results can differ slightly with the linear algebra library.
\begin{center}\small
\begin{tabularx}{\linewidth}{@{}lX@{}}
\toprule
Experiment in \texttt{experiments/} & Independent replication or deterministic check\\
\midrule
\texttt{holonomy.py} & 30 combinations of rotation power and noise, with independent training and test draws for each combination.\\
\texttt{projective.py} & Eight multipliers, each in 32 randomized unitary and phase conventions.\\
\texttt{layers.py} & 24 paired draws, with test orbits disjoint from training orbits.\\
\texttt{adapters.py} & 16 independent regression tasks, matched across factor scalings, optimizer metrics, and baseline fits.\\
\texttt{metric.py} & One rank-two trajectory checked in four choices of basis and metric.\\
\texttt{attention.py} & Eight autoregressive teachers with independently sampled training and held-out sequences.\\
\bottomrule
\end{tabularx}
\end{center}
\clearpage
\phantomsection\addcontentsline{toc}{section}{References}
\begin{thebibliography}{99}
\small
\bibitem{wasserman} R. H. Wasserman. \emph{Tensors and Manifolds with Applications to Mechanics and Relativity}. Oxford University Press, 1992. ISBN 0-19-506561-1. \href{https://lccn.loc.gov/91019271}{Library of Congress}.
\bibitem{stacks} T. Nikolaus, U. Schreiber, and D. Stevenson. Principal $\infty$-bundles: Presentations. \emph{J. Homotopy Relat. Struct.} 10 (2015), 565--622. \href{https://arxiv.org/abs/1207.0249}{Author manuscript}.
\bibitem{blackwell} D. Blackwell. Comparison of experiments. \emph{Proc. Second Berkeley Symposium on Mathematical Statistics and Probability} (1951), 93--102. \href{https://digicoll.lib.berkeley.edu/record/112749}{Berkeley record and text}.
\bibitem{prequant} E. Lerman and A. Malkin. Differential characters as stacks and prequantization. \emph{J. G\"okova Geom. Topol.} 2 (2008), 14--39. \href{https://arxiv.org/abs/0710.4340}{Author manuscript}.
\bibitem{wilson} E. B. Wilson. Probable inference, the law of succession, and statistical inference. \emph{J. Amer. Statist. Assoc.} 22 (1927), 209--212. \href{https://doi.org/10.1080/01621459.1927.10502953}{Journal article}.
\bibitem{costache} T. L. Costache. A survey on projectively equivalent representations of finite groups. \emph{Surveys Math. Appl.} 15 (2020), 425--458. \href{https://www.utgjiu.ro/math/sma/v15/p15_17.pdf}{Journal text}.
\bibitem{steerable} M. Weiler and G. Cesa. General $E(2)$-equivariant steerable CNNs. \emph{Advances in Neural Information Processing Systems} 32 (2019). \href{https://proceedings.neurips.cc/paper_files/paper/2019/hash/45d6637b718d0f24a237069fe41b0db4-Abstract.html}{Proceedings}.
\bibitem{gauge} T. Cohen, M. Weiler, B. Kicanaoglu, and M. Welling. Gauge equivariant convolutional networks and the icosahedral CNN. \emph{Proceedings of Machine Learning Research} 97 (2019), 1321--1330. \href{https://proceedings.mlr.press/v97/cohen19d.html}{Proceedings}.
\bibitem{lora} E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, and W. Chen. LoRA: Low-rank adaptation of large language models. ICLR, 2022. \href{https://arxiv.org/abs/2106.09685}{Author manuscript}.
\bibitem{mishra} B. Mishra, G. Meyer, S. Bonnabel, and R. Sepulchre. Fixed-rank matrix factorizations and Riemannian low-rank optimization. \emph{Comput. Statist.} 29 (2014), 591--621. \href{https://arxiv.org/abs/1209.0430}{Author manuscript}.
\bibitem{zhu} Z. Zhu, D. Soudry, Y. C. Eldar, and M. B. Wakin. The global optimization geometry of shallow linear neural networks. \emph{J. Math. Imaging Vis.} 62 (2020), 279--292. \href{https://arxiv.org/abs/1805.04938}{Author manuscript}.
\bibitem{scaledgd} T. Tong, C. Ma, and Y. Chi. Accelerating ill-conditioned low-rank matrix estimation via scaled gradient descent. \emph{J. Mach. Learn. Res.} 22 (2021), 1--63. \href{https://www.jmlr.org/papers/v22/20-1067.html}{Journal text}.
\bibitem{attention} A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. \emph{Advances in Neural Information Processing Systems} 30 (2017). \href{https://arxiv.org/abs/1706.03762}{Author manuscript}.
\end{thebibliography}
\end{document}