Feature Transport in Machine Learning: Spectral Graph Learning, Object Tracking, and Model Merging
Continuous, single-column reading. Equations, tables, proofs, references and appendices stay in document order.
Contents · 23 sections
MATHEMATICAL MACHINE LEARNING
Feature Transport in
Machine Learning
Spectral graph learning, object tracking,
and model merging
AnonymousNovember 2026
Abstract. A model that returns the same prediction after relabeling can still assign different identities to its internal features along different paths. We study three instances where this distinction can be measured. For real Fiedler eigenlines of positive weighted triangles, winding parity determines sign transport. Every continuous unit-vector predictor on an odd-winding loop has worst-case sign-invariant loss one. On the fixed-gap loop, a projector readout fits to numerical precision, and a Lipschitz bound relates mean loss to the width of the high-error interval. For two interchangeable features, a degree-two Stiefel–Whitney class detects a lifting obstruction invisible on each point stabilizer. In 704 synthetic closed videos, changing the sampling gap reverses recovered identity even when object localization remains accurate. Across ten triples of independently trained digit classifiers, direct and composed neuron matchings disagree on 176 of 240 units. Their parameter midpoints disagree on 9.64% of held-out predictions. Joint alignment improves mean three-model merge accuracy to 93.00%; a probability ensemble attains 97.11%.
What should a feature do around a loop?
Suppose a video begins and ends with the same two bright spots. A detector can locate both spots perfectly in the last frame and still leave an important question unanswered. Did each object return to its starting point, or did the two objects trade places? Answering requires a rule for carrying a label from one observation to the next. We call that rule transport. Its composite around a closed path is the holonomy of the path. When the labels describe a real object exchange, the correct composite is a transposition.
A related issue arises when a model predicts spectral features. Following an eigenvector continuously can reverse its sign even though the graph returns exactly to its starting state. If the output must be a single signed unit vector determined by the current graph, this reversal imposes a worst-case prediction error. A third instance occurs when models trained on the same task are aligned for weight averaging. If one matches units from A to C through B, each intermediate assignment can be optimal for its own pair even though its composite disagrees with a direct match.
These uses of a closed path have different mathematical content. In the first two examples the specified path has an independent physical or geometric meaning. In the third the researcher asks whether three estimated correspondences can be realized by one consistent labeling. A fourth test, on two copies of the spectral feature, asks whether two commuting transformations remain commuting after lifting them through a double cover. Only this last question produces the degree-two class studied here. Table 1 gives the observable used to decide each question.
Each comparison specifies which choices of labels preserve its observable.
Experiment
Compared objects
Measured consequence
Spectral predictor
Lines and unit vectors on a graph loop
Sign transport, projective loss, and sampling error
Pair of spectral features
Two lifts of commuting frame changes
Central sign in a lifted commutator
Moving objects
Local matches along a known trajectory
Agreement with physical endpoint identity
Digit classifiers
Direct and composed unit assignments
Changed labels and prediction changes after weight averaging
Prior work on signs, identities, and permutations
A real eigenvector can reverse sign when its matrix traverses a closed path around a degeneracy. Berry included this phenomenon in his analysis of geometric phase [1]. In spectral graph learning, Lim and collaborators designed SignNet for sign changes of individual eigenvectors and BasisNet for changes of orthonormal basis within eigenspaces [2]. Dym, Lawrence and Siegel studied the continuity of canonicalization and of averaging over frames for group actions on point clouds [3]. Our weighted graph family makes the sign obstruction quantitative for a prediction task. It specifies the eigengap, the loss incurred by a continuous unit-vector output, and a target projector that admits an exact affine predictor.
Slot Attention learns exchangeable object representations from input features [4]. Its sequential extension SAVi uses temporal prediction and correction, and can condition the initial slots on cues such as object positions [5]. Motion information has also been used to associate visually similar targets across crossings and missing detections [6]. Our controlled videos specify the physical trajectories as well as the unordered observations. Comparing the observed transport with that ground truth distinguishes a correctly tracked exchange from an identity error.
Git Re-Basin aligns hidden units before averaging neural-network weights [7]. Crisostomi and collaborators developed C2M3, which enforces cycle consistency across three or more networks through a shared system of neuron permutations [8]. Their work establishes cycle consistency as a model-merging constraint. We use the direct-versus-composed discrepancy as a diagnostic and measure its relation to predictive behavior. The paired spectral calculation asks whether two commuting feature transformations admit commuting lifts to a double cover.
A sharp obstruction for spectral features
A graph positional encoding often uses eigenvectors of a Laplacian. A simple eigenvalue determines a line, and a chosen unit vector on that line has two possible signs. SignNet and BasisNet build the appropriate sign or basis invariances into the feature map [2]. Related obstructions occur when one tries to choose continuous canonical representatives of symmetry orbits [3]. The following graph family lets us calculate exactly what happens when a prediction head must produce one unit vector.
A closed curve of graphs with a uniform gap
Take the orthonormal basis b1=(1,−1,0)⊤/2 and b2=(1,1,−2)⊤/6 of the plane orthogonal to the constant vector. Write B=[b1b2] and Π=BB⊤. For 0≤θ≤2π, define L(θ)=B(3I2+(cosθsinθsinθ−cosθ))B⊤. Each L(θ) is the Laplacian of a triangle with strictly positive edge weights. Indeed, L(θ)1=0. Every off-diagonal entry of 3Π equals −1. Every row of B has norm 2/3, and the trigonometric matrix has operator norm one, so each off-diagonal perturbation has magnitude at most 2/3. The resulting edge weights thus lie between 1/3 and 5/3.
The eigenvalues are 0,2,4 throughout. A unit eigenvector for the Fiedler eigenvalue 2 on the cut interval is v(θ)=B(−sin(θ/2)cos(θ/2)). Since v(2π)=−v(0), the Fiedler lines over the circle form the Möbius line bundle. The spectral projector is single valued and satisfies P(θ)=v(θ)v(θ)⊤=21(4Π−L(θ)). Evaluation on the three eigenspaces verifies the second equality. Its affine dependence on L is specific to this fixed spectrum. The projector is an orthogonal-basis representation of the line and transforms by conjugation under vertex relabeling.
Worst-case loss and average loss
For a continuous single-valued prediction g(L)∈S2, define ℓg(θ)=1−∣g(L(θ))⊤v(θ)∣2=21∥g(L(θ))g(L(θ))⊤−P(θ)∥F2. This loss is independent of the sign of either representative. Nonetheless the scalar g(L(θ))⊤v(θ) on the cut interval has opposite endpoint values, or equals zero at both ends. At some θ it vanishes. Since 0≤ℓg≤1, this proves the exact minimax identity gcontinuous,∥g∥=1infθ∈S1maxℓg(θ)=1. The same argument applies to any loop along which a continuous family of real eigenlines has negative sign holonomy. Equivalently, a nowhere-orthogonal prediction would project to a nowhere-zero section of the line, trivializing its orientation cover. The proof allows g to leave the mean-zero plane. A head with the projector as its output can attain zero loss on the triangle family. Passing to a sign-invariant loss while requiring a unit-vector output still subjects the predictor to the displayed bound.
The narrowness of the high-loss region depends on how fast the prediction varies. Equip the parameter circle with arc length and the unit sphere with geodesic distance. Suppose θ↦g(L(θ)) is Lipschitz with constant K≥0. The true local lift v has speed 1/2. Let H=K+1/2, and choose an orthogonality point. At an arc distance s≤π/(2H) from it, the angle between the locally lifted true vector and the prediction differs from π/2 by at most Hs, by the triangle inequality for spherical distance. Consequently ℓg≥cos2(Hs) on that arc, on either side. Integration gives 2π1∫02πℓg(θ)dθ≥4H1=4K+21. For K≥1/2 this bound is attained by a piecewise smooth predictor in the mean-zero plane. Follow the angular speed 1/2 of the true vector outside an interval of length π/H, and use angular speed −K inside it. The total winding of the predicted vector is then zero, so the predictor is periodic. Choosing initial alignment makes the loss zero outside the interval and a single squared-sine excursion inside. Thus no positive architecture-independent lower bound on the mean loss follows from the worst-case result alone. On an equally spaced test grid of N angles, the nearest grid point to an orthogonality point has distance at most π/N. If Hπ/N≤π/2, the largest measured loss is at least cos2(Hπ/N). Both estimates use speed with respect to the specified graph-angle parameter.
A sign test independent of numerical conventions
Take N≥3 equally spaced angles and obtain a numerical unit eigenvector vi separately at each angle. Include the closing edge in the statistic H=i=0∏N−1sgn(vi⊤v(i+1)modN). Changing the sign of one eigenvector changes two factors, so the product is independent of every eigensolver sign choice. In our analytic interval lift the first N−1 overlaps equal cos(π/N)>0, while the closing one is its negative. Hence H=−1. A constant graph loop gives +1. For a general sampled path, this interpretation requires a sufficiently fine discretization to resolve the continuous eigenline and nonzero adjacent overlaps. This test measures the orientation of one line. The paired-feature obstruction below probes the interaction between transport along this loop and interchange of two features.
Reading the obstruction directly from the three edge weights
The preceding circle is one representative of an entire family of graph loops. Label the positive edge weights a=w12, b=w23 and c=w13. In the same fixed basis B, define s=a+b+c,z1=a−21(b+c),z2=23(c−b). Direct multiplication gives B⊤LB=sI2+(z1z2z2−z1). The two positive eigenvalues are s±∥z∥. The degeneracy locus is exactly a=b=c. Away from it the lower eigenline has angle 21arg(z1+iz2)+π/2 in the chosen plane. Consequently, for any closed continuous path of positive labeled weights avoiding the degeneracy locus, its Fiedler sign is H=(−1)wind(z1+iz2,0). Normalizing by s gives the interior of a triangle with its center removed, while the factor s>0 is contractible. Winding parity therefore classifies the orientation obstruction on all of this parameter space. An odd winding forces the same worst-case loss of one. On an even-winding loop the sign returns and a continuous exact lift along the parameter circle exists. A single-valued function of graph weights must in addition agree where a parameter path visits the same graph twice.
A polygonal interpolation has a computable robustness margin. Let d be the smallest distance from the origin to any interpolating segment in the z-plane. If every vertex is perturbed by less than d, linear interpolation of those perturbations cannot move any segment through zero. The winding and sign are preserved. An unobserved path between successive frames can still encircle the origin. The certificate applies to the specified interpolation. The reproduction script checks fourteen perturbed polygons of winding −3 through 3 against direct eigendecomposition with randomized eigenvector signs.
Learning a Fiedler feature
We use the weighted-triangle family and mean-zero basis B of Section 2. At unit radius the three Laplacian eigenvalues are 0,2,4. For each graph we predict either a normalized vector in the mean-zero plane or the orthogonal projector P onto the Fiedler line. With a unit-vector output g, half the squared Frobenius distance between gg⊤ and P equals the projective loss 1−∣g⊤v∣2, independent of the target eigenvector sign. The worst-case theorem fixes this loss at one somewhere on the loop for every continuous vector head. The experiment measures how often ordinary test samples capture it.
Learned predictions between training angles
For the vector head, extract the two coordinates z=(cosθ,sinθ) from the trace-free part of B⊤LB. They are linear functions of the graph weights. A one-hidden-layer network with 16 tanh units predicts ϕ(z)=b⊤tanh(W⊤z+a)+c and returns B(−sinϕ,cosϕ)⊤. This output is continuous, mean-zero and normalized for every input. The optimization minimizes the mean projective loss, which depends only on the target line. Full-batch L-BFGS uses analytic gradients and a limit of 1,500 iterations. For both training sizes we use seeds zero through four and equally spaced angles 2πj/n. Each head is evaluated on the same 256 unseen midpoints 2π(j+1/2)/256. A separate fine grid has 8,192 midpoints.
Training
Training
Test
Test
Fine-grid
graphs
mean
mean
maximum
maximum
8
<3⋅10−15
0.06810
0.998665
0.99999982
64
1.21⋅10−5
0.00957
0.907805
0.99994792
Each entry summarizes the median of five run-level statistics. All five 64-graph fits reached the iteration limit. Their held-out means ranged from 0.00715 to 0.01788 and their 256-point maxima from 0.81050 to 0.9999994. The denser training set reduced the median test mean while leaving the true maximum equal to one. The lower sampled maximum is consistent with narrower regions of high error, as seen directly in Figure 1.
Projective prediction loss near a zero of the signed overlap, for seed zero. The horizontal coordinate is displacement from the located zero divided by 2π/n, so one unit represents a different angular width in each panel. Open circles are held-out graph evaluations. A 256-point test grid can miss a peak even on this one-dimensional family.
We also bisected the continuous signed overlap on [0,2π] 42 times for each fit. The final endpoint values bracketed zero in all ten numerical runs, with midpoint absolute overlap below 4⋅10−11. The intermediate value argument establishes the exact maximum independently of floating-point bisection. Model training controls the location and width of the error peak.
For the projector baseline, eight equally spaced graphs provide three edge weights, an intercept, and nine target matrix entries computed by symmetric eigendecomposition. A single ordinary least-squares fit gives a maximum Frobenius error of 1.37⋅10−15 over the 256 held-out graphs. Permuting their vertices in all six ways and comparing with conjugation of the predicted matrix gives a maximum residual of 1.51⋅10−15 over 1,536 tests. The closed formula explains this accuracy within the chosen family.
Changing the spectral gap
Multiply the trace-free 2-by-2 block by 0<r<3/2, which preserves positive edge weights. Its two mean-zero eigenvalues become 3−r,3+r, while their lines remain fixed. The fitted affine head was trained at r=1. Along this trace-six family its raw Frobenius error is ∣r−1∣/2. Indeed the trace-six plane is affinely spanned by the training circle, so the fit extends (4Π−L)/2 to that plane. We tested r∈{0.4,0.7,1,1.2,1.4}, using 256 graphs per radius. At r=0.4 the largest raw error was 0.42426. Setting r=∥L−3Π∥F/2 and applying the frozen head to 3Π+(L−3Π)/r restored a maximum error below 2.26⋅10−15 over all 1,280 graphs. This calibration uses the known two-dimensional subspace and mean eigenvalue. It shows exactly which part of the affine solution depended on the fixed gap.
Transport and the obstruction for two spectral features
What changes under relabeling
Let G act on an input space X. The topological action groupoid has objects x∈X and arrows g:x→gx. Its classifying space is XhG=EG×GX. The comparison q:XhG→X/G sends a point to its orbit. A continuous scalar predictor invariant under G already defines a continuous predictor on X/G by the quotient topology. A fiber of features over each input contains more information. The action on the fibers can permute feature labels at fixed inputs.
Consider a finite set Fi of labels for each of several inputs or checkpoints i. An estimator supplies bijections Tij:Fi→Fj. A change of labels bi:Fi→Fi′ gives Tij′=bjTijbi−1. When transports define functors from the path groupoid into finite sets and bijections, this rule is the naturality square for an isomorphism of functors. It also gives a diagnostic for independently estimated maps. The defect between a direct match and a match through a third input is the permutation Hi=Tik−1TjkTij:Fi⟶Fi. It transforms by Hi′=biHibi−1. Its cycle lengths and number of moved elements can therefore be compared across runs with different label names. Independent edges of a triangle can have a nonidentity composite. Compatibility requires Hi=1 if the two paths are prescribed to be the same morphism, for example on a filled triangle with homotopy-invariant transport. A loop representing a physical exchange can legitimately have nontrivial monodromy.
An observable may itself be invariant under a subgroup Ki of label changes. If transports intertwine the endpoint stabilizers, the two composites agree modulo these symmetries exactly when Hi∈Ki. Ties in a numerical assignment can produce several candidate matches. The selected match, its cost, and the effect on an observable then measure different properties. These qualifications matter when comparing a video equipped with ground-truth identities to neural networks whose hidden units admit several close matches.
From a permutation to a lifting gerbe
Let Y=S1 parametrize the weighted triangle family and write ℓ→Y for its Fiedler line. Its first Stiefel–Whitney class h=w1(ℓ) is the generator of H1(Y;F2). Consider two graph inputs with the action of C2 exchanging their positions. The plane with fibers ℓy1⊕ℓy2 is equivariant and induces a real plane bundle V on E=(Y2)hC2. Each orthogonal frame of this bundle has transition maps in O(2). Lifting these transitions through the central double cover Pin+(2)→O(2) has obstruction w2(V)∈H2(E;F2) [9].
The categorical degree can be seen on overlaps. Choose local lifts gij of frame transitions, with gjkgij=gik. On triple overlaps, gjkgij=(−1)cijkgik. Associativity on quadruple overlaps gives δc=0. Changing the chosen lifts by edge signs changes c by a coboundary. This cocycle represents w2(V). The groupoid of local lifts, equipped with its gluing maps, is the lifting gerbe. Its classifying target is B2C2=K(F2,2) [10]. The permutations measured in the video and checkpoint experiments take values in an ordinary permutation group. A degree-two interpretation there would require specifying a lifting problem and determining its central signs.
Over the diagonal family j:Y×BC2→E, sum and difference of the coincident features split the plane as j∗V=ℓ⊕(ℓ⊗λ), with pullbacks understood. Here λ is the sign line on BC2 and u=w1(λ). The Whitney product formula gives j∗w2(V)=h(h+u)=hu=0. Indeed h2=0 on a circle and hu generates the mixed Künneth summand. At a single fixed input h restricts to zero, so the degree-two obstruction vanishes over its stabilizer. Along the full diagonal, qj factors through the projection Y×BC2→Y. Consequently every class from the coarse symmetric square restricts to a class pulled back from Y. The term hu rules out descent of w2(V). The swap already acts on the plane by +1 on the sum and −1 on the difference. Pointwise vanishing here concerns the obstruction to lifting this action.
Two matrices that detect the mixed term
On the cut parameter interval choose the continuous Fiedler unit vectors in both slots. After a circuit of the diagonal the frame changes by d=−I2, and the swap acts by the matrix s that exchanges the two coordinate vectors. They commute in O(2). Take the following real matrix model for the generators of the positive Clifford algebra, e1=(100−1),e2=(0110). The generators square to one and anticommute. The unit Clifford vector S=(e1−e2)/2 lifts reflection in the hyperplane perpendicular to (1,−1), namely s. The product D=e1e2 lifts d. Thus S2=I2,DSD−1S−1=−I2. In the last formula −I2 represents the central kernel element in the Clifford matrix model. Its image in O(2) is the identity. Each of S,−S therefore supplies a splitting of the swap over a single fixed input, and conjugation by D interchanges them.
Labels are products in the covering group; each step multiplies on the left. The upper path yields DS and the lower path yields SD=−DS. Projecting either path to O(2) gives the same endpoint. The discrepancy is unchanged by changing either lift’s sign.
Tracking exchangeable objects around a closed scene
Two identical objects move along opposite halves of a circle. At the end the image is identical to the first image, while each physical object occupies the other’s starting position. A tracker judged by the positions it reconstructs in each frame can score well even if it reports the wrong endpoint correspondence. We isolate this effect in a synthetic scene where the physical correspondence is known exactly.
The covering and the target.
Let C be the space of ordered pairs of distinct points of the plane. The map C→C/S2 that forgets the ordering is a double cover. A path of unordered configurations lifts uniquely once the initial labeling is specified. For a closed path the lifted endpoint either retains or exchanges the initial labels. This element of S2 is the target of the experiment. The constant path and any path followed by its reverse induce the identity. Moving the two points half a turn in the same direction at opposite positions induces the transposition. Both kinds of scene have identical initial and final unordered configurations.
Write the positions as p1(θ)=R(cosθ,sinθ) and p2(θ)=−p1(θ). For two consecutive noiseless frames whose angle increases by δ, compare the sum of squared displacements under the physical assignment and under its exchange. The costs are Cphysical=4R2(1−cosδ),Cexchange=4R2(1+cosδ). Thus minimum-displacement assignment recovers the physical link for ∣δ∣<π/2, ties at π/2, and picks the opposite link when π/2<∣δ∣≤π. This threshold is a property of the estimator and of the motion family. Knowledge of angular velocity would supply additional information. Without a motion assumption, rotations through δ and δ−π reach exactly the same unordered observation.
The observations and the fitted slots.
Each frame is a 40×40 count image. The two objects are identical isotropic Gaussian spots of width 1.8 pixels with centers at radius R=8 pixels about the image center. Each spot contributes an expected 70 counts to the whole image. Pixels are independent Poisson draws at the sum of the component intensities. Every clip ends with a copy of its first sampled frame, giving exact closure even at the level of sensor noise. The other frames use fresh draws. Relative to a uniformly sampled initial angle, the dense exchange follows θ(t)=πt, and the retrace follows θ(t)=0.9(1−∣2t−1∣) for t∈[0,1]. Both use 16 adjacent links.
We infer two exchangeable slots separately in each image. Each slot is a fitted component mean of a two-component Gaussian mixture with equal priors and fixed width. Four expectation–maximization updates use the pixel counts as weights. Initial means lie on the major principal axis of the counts, at one empirical standard deviation on either side of the centroid. This model isolates the correspondence stage of object-centric inference. Its emissions are fitted to pixels, with the generative width supplied to the estimator. No persistent appearance or identity marker enters the fit. The model has neither trainable attention weights nor a learned temporal prior.
Sorting the two centers by horizontal position gives a reproducible indexing convention. The endpoint baseline matches the first set of fitted centers directly to the last. The temporal tracker composes the cheapest assignments for all consecutive pairs. If the assignment from frame i to i+1 is mi and the slots in frame i are renamed by gi, then mi⟼gi+1migi−1,mT−1⋯m0⟼gT(mT−1⋯m0)g0−1. All intermediate names cancel. With the same endpoint convention (gT=g0), even the endpoint permutation is unchanged for S2. We tested this by independently flipping the two labels in random interior frames of every clip. The two tracking rules always consumed the same estimated positions.
Observed successes and failures.
Each condition used the same 64 seed indices, with an independent random stream for each seed. The resulting 704 clips comprise two dense conditions and nine sampling-gap conditions. The image-level localization error is the root mean squared Euclidean center distance after optimal matching to truth separately in each frame. The repeated endpoint is excluded. On the dense retrace it was 0.309 pixels, and on the dense exchange it was 0.308 pixels. Temporal matching recovered all 1,024 adjacent physical assignments and all 64 endpoint permutations in each dense condition. Direct endpoint matching recovered all 64 retraces and zero of the 64 exchanges. The equal endpoint images force that baseline to choose identity.
The left panel shows the initial noisy frame, both physical trajectories (curves), their starting positions (open circles), and fitted centers from every third frame (dark points). The two objects are visually identical. On the right each point summarizes 64 clips with one enlarged angular step. The dotted line marks the predicted noiseless assignment tie.
In the gap experiment the first three links are 6∘ each, followed by one designated gap. The rest of the half-turn is divided into six equal links. At gaps of 45∘, 75∘, and 85∘ temporal matching returned the correct exchange in 64/64 clips each. At 89∘, 90∘, and 91∘ the counts were 46/64, 36/64, and 19/64. At each of 95∘, 105∘, and 135∘ the counts were 0/64. The center RMSE stayed between 0.301 and 0.310 pixels in all nine conditions. At 95∘, the tracker still recovered 576/640 physical links. One wrong link in each clip reversed every endpoint decision. Figure 3 shows the transition.
The measured quantity is permutation transport in an ordinary covering space. A transposition is the correct outcome on a genuine exchange. Evidence for a degree-two lifting obstruction would additionally require an identified central extension and a compatible family of lifted symmetries, as in the paired spectral calculation. The closed-film test can also be applied to a learned slot encoder by replacing the two fitted means with its predicted object centers and evaluating the same two correspondence rules against persistent ground truth.
A supervised detector trained on rendered images
To test whether fitting a Gaussian mixture in each frame was essential to the preceding result, we trained an image-to-centers predictor on fresh synthetic images. A training example was one frame, with no sequence or identity labels. The generator placed the midpoint uniformly in [−3,3]2 pixels, sampled the radius uniformly in [6,10] pixels, and sampled phase uniformly on the circle. The two spots used the same width and photon count as the tracking clips. The 4,096 training images and 512 held-out images came from separate random streams, distinct from all clip streams.
Represent pixel positions as complex numbers. If the centers are m+z,m−z, the four real supervised coordinates are the real and imaginary parts of m/3 and z2/64. Exchanging the object names changes the sign of z and preserves the target. Taking either square root at prediction time returns the same unordered pair. This parameterization makes the intended symmetry explicit while leaving the visual detection problem to the network.
We pooled the raw counts over nonoverlapping 4×4 pixel blocks. Dividing by the frame total and multiplying by ten produced a 100-dimensional input. Two fully connected hidden layers of widths 64 and 32 used tanh activations, followed by four linear outputs. Each network was trained for 90 epochs by Adam with minibatches of 128, learning rate 0.002, squared-error supervision and scikit-learn’s L2 parameter 0.0001. We fixed this schedule and trained three initializations on the same data, then froze their weights. A fresh frame passed only through the pooled-pixel encoder, the decoder and the matching rule.
The three held-out localization errors were 0.432, 0.431, and 0.433 pixels. As a scale reference, decoding the empirical mean of the four training targets for every image gave 7.925 pixels. All three networks recovered 64/64 retraces and 64/64 dense exchanges by composing adjacent matches. Direct endpoint alignment again yielded 64/64 on the retraces and 0/64 on the exchanges. Dense exchange localization errors ranged from 0.405 to 0.429 pixels.
Correct exchanges out of 64 paired clips per step size. All four detectors saw the same test pixels and used the same temporal matching rule. MLP columns vary the training initialization with seeds 211, 431, and 877.
Largest step
Fitted mixture
MLP 1
MLP 2
MLP 3
85∘
64
64
64
64
89∘
46
40
45
40
90∘
36
36
37
39
91∘
19
23
26
26
95∘
0
1
1
1
105∘
0
0
0
0
Both detection procedures retain the sampling transition around 90∘ (Table 2). In this comparison localization error and assignment error answer different questions. For example, the first network still localized centers within 0.430 pixels RMSE at 95∘, yet tracked only one of the 64 endpoint exchanges correctly. The detector was trained under supervised synthetic two-object conditions. The experiment measures how its outputs compose under a specified matching rule, and a direct evaluation of a video-trained Slot Attention system would require that system’s own outputs.
Matching hidden units across three digit classifiers
Suppose a pairwise matcher sends the hidden units of model A to those of B by a permutation pAB, with analogous assignments for B,C and A,C. It is possible to preserve the predictions of each individual network under every relabeling and still obtain different predictions after merging the networks. We measure both effects. Git Re-Basin established permutation alignment for weight-space merging [7]. Crisostomi and colleagues formulated cycle-consistent multi-model merging and developed a data-free optimizer [8]. Our experiment uses a calibration set, a single hidden layer and an alternating linear-assignment baseline.
Data, fits and assignment
We use the 1,797 handwritten digit images distributed in scikit-learn’s digits dataset. Each input comprises 64 pixel counts scaled by 1/16. A stratified split supplies 1,197 training, 240 calibration and 360 test images. We train a fully connected ReLU classifier with 24 hidden units and 10 logits by cross-entropy minimization. Training lasts 55 epochs with Adam, learning rate 0.003 and minibatches of size 64. In each of ten replicates we independently train three networks on the same split. The first trained network also supplies two control triples. The first control comprises three copies with random hidden permutations and independent positive unit scalings. The second starts three branches at the same trained parameters and runs six more epochs on each, using independently shuffled minibatches and fresh optimizer states. Random permutations are applied to all three checkpoints in each condition before matching.
A hidden unit with nonzero incoming affine weight u=(w,b) admits the reparametrization u↦su, v↦v/s for s>0, where v is its vector of outgoing weights. Before averaging, we normalize u to unit length and apply the compensating scale to v. We also remove the common logit component of every outgoing weight vector and of the output bias. These changes preserve predicted probabilities. We use the arithmetic mean of all resulting weights and biases as the merged model.
Let zi be the calibration activations of unit i, normalized to unit Euclidean length when nonzero and assigned the zero vector when silent. Define Cij=21∥zi−zj′∥2+0.0521∥ui−uj′∥2. The second term gives direction information even when a calibration activation vanishes. The minimum-cost bijection is computed by linear assignment. The exact gap to the second-best assignment is the minimum over optimal edges of the increase after forbidding that edge. Indeed, every different assignment omits at least one optimal edge. This check distinguishes disagreement between unique optima from choices within a tie.
With the combined cost, every pair assignment in the experiment had a positive gap; the smallest gap over the independently trained triples was 2.08×10−4 in total assignment cost. With only activation distances, all ten independent triples had a tie on at least one edge, as did four of the ten clone triples. The existence of these ties depends on the observations and the score. The combined score recovered all planted clone permutations exactly.
Path dependence and predictive consequences
For m=24, the fraction d△=m1#{i:pAC(i)=pBC(pAB(i))} is the normalized Hamming distance of the cycle from the identity. It is unchanged by consistent relabeling of the three unit sets when the pairwise optima are unique. The control triples have d△=0. For independent fits the direct and indirect assignments disagree on 176 of 240 units across the ten triples. Each triple moves between 16 and 22 of its 24 units. The indirect assignment incurs mean excess cost 0.0630 per unit when evaluated on the direct A,C edge.
Left, each dot gives the number of units moved by a three-model cycle as a percentage of layer width. Horizontal segments show means. Right, each thin line follows the same independently trained triple as the A,C parameter midpoint is recomputed under three alignments. The thick line shows the mean. Test examples and training split are shared across runs.
All permutations preserve their respective endpoint logits after gauge normalization, to absolute and relative tolerance 10−11. Across independent triples the mean individual accuracy is 96.63%. For the A,C midpoint the randomly relabeled, unaligned baseline attains 78.11%, indirect alignment 89.89%, and direct alignment 93.36%. Direct alignment scores higher on nine of ten triples. The two midpoint classifiers return different test labels on 9.64% of images averaged over replicates. Retaining the original training order without alignment gives 72.44%; averaging the two endpoint probability vectors gives 96.86%. In the clone and common-base controls direct and indirect midpoints have identical test labels.
Choosing one labeling for three models
Index a common label set by A and choose bijections b,c to units of B,C. Their induced correspondence from B to C is c∘b−1. We jointly minimize the sum of the three selected edge costs, E(b,c)=i∑[CAB(i,b(i))+CAC(i,c(i))+CBC(b(i),c(i))]. A spanning tree of two independently matched edges determines a feasible pair (b,c). Starting in turn from each of the three trees, we fix c and update b by exact linear assignment, then interchange their roles. We retain the least-cost result of the three runs. The search gives a feasible upper bound on the minimum. The sum of the three independently optimal edge costs is a lower bound; unique optimal pair matches with a nonidentity cycle make this lower bound unattainable. The observed gap between our feasible cost and this lower bound averages 0.0248 per unit.
Three-model average
Cost/unit
Accuracy (%)
Log loss
Random label orders
1.2533
67.58
0.9013
Tree centered at A
0.6330
91.67
0.2561
Tree centered at B
0.6266
91.50
0.2597
Tree centered at C
0.6243
91.61
0.2558
Joint assignment
0.5884
93.00
0.2355
Probability ensemble
—
97.11
0.1159
All table entries are means over the ten independent triples. The joint assignment improves three-model test accuracy over the A-centered tree in seven runs and lowers it in three. Lower correspondence cost therefore gives a useful objective on this example but does not order test accuracy for every replicate. The ensemble evaluates all three original networks; each parameter average produces one width-24 network. The experiment uses a single dataset split and a single architecture. The measured permutation describes the failure of a particular pairwise matching rule to compose. Establishing a characteristic class of a continuous family would require additional data about transport and its lifts.
How many assignments must change?
A triangle defect also has an exact combinatorial interpretation with no reference to a classifier. On bijections between equally sized finite sets let d(P,Q) be the fraction of inputs on which they disagree. This distance is invariant under precomposition and postcomposition by bijections. Given three assignments TAB,TBC,TAC, the minimum total normalized distance to a consistent triangle is QAC=QBCQABmin(d(TAB,QAB)+d(TBC,QBC)+d(TAC,QAC))=d(TBCTAB,TAC). For any feasible Q, insert QBCQAB=QAC between the two terms on the right and apply the triangle inequality and bi-invariance. Conversely, keep the first two edges and replace the direct edge by their composite. The right side is therefore both attainable and a lower bound. The code exhausts all three-edge assignments on three labels as a finite check; the argument holds at every finite width. The cost on the left counts changed label assignments. It gives no bound on classification accuracy without an additional relation between hidden-unit changes and model outputs.
Interpreting a transport test
The three experiments have different success criteria. On a graph loop, an orientation reversal is evidence that a global signed-vector readout has an impossible specification. On the video exchange loop the reversal is the correct answer. On a triangle of independently trained networks, a nontrivial composite measures the incompatibility of three estimated correspondences under a chosen matching cost. In this last setting the practical consequence must be measured on a task, because even numerically distinct assignments can yield the same predicted class.
For spectral predictions the calculation gives a quantitative guide to evaluation. A denser training set can concentrate the misalignment on a short arc while retaining the full worst-case error. Monitoring only mean loss or a fixed test grid can conceal this effect. A signed-overlap product with a sufficiently resolved path detects the reversal; a computed zero of the alignment supplies an explicit failing input. For a learned object detector the analogous test needs both a reference trajectory and an assumption on the sampling interval. The identical endpoint frames contain no information that distinguishes an exchange from a retrace.
The model-merging experiment uses one shared stratified split of a small real dataset. Its ten triples repeat training initializations; they provide neither ten independent test sets nor an estimate of performance for other architectures. For the direct-minus-indirect midpoint comparison, the paired accuracy change ranges from −1.11 to +11.67 percentage points. For the joint three-model merge versus the tree anchored at A, it ranges from −1.39 to +7.22 points. These ranges explain why the average correspondence cost and the task score are both worth reporting. The classical representations, the learned similarities and the subgroup of label changes visible to an application must all be specified before a cycle statistic has a predictive interpretation.
Sources, code, and authorship.
The lifting calculation applies the symmetric-square construction of the companion manuscript, Descent from Homotopy Quotients to Orbit Spaces. All definitions needed here are supplied above. The archive includes the source of the paper, experiment code, seeds, run-level results and figures. The digit classifiers use the scikit-learn distribution of the UCI optical digits data [11]. The responsible submitter uses the byline Anonymous. AI assistance was used to develop the arguments, implement and rerun the experiments, prepare the figures and draft the text. The code provides numerical and finite checks; the general mathematical statements rest on the arguments in the paper.
References
M. V. Berry. Quantal phase factors accompanying adiabatic changes. Proc. R. Soc. Lond. A 392 (1984), 45–57. Journal article.
D. Lim, J. Robinson, L. Zhao, T. Smidt, S. Sra, H. Maron, and S. Jegelka. Sign and basis invariant networks for spectral graph representation learning. ICLR, 2023. Author version.
N. Dym, H. Lawrence, and J. W. Siegel. Equivariant frames and the impossibility of continuous canonicalization. ICML, PMLR 235 (2024), 12228–12267. Conference article.
F. Locatello, D. Weissenborn, T. Unterthiner, A. Mahendran, G. Heigold, J. Uszkoreit, A. Dosovitskiy, and T. Kipf. Object-centric learning with Slot Attention. NeurIPS 33, 2020. Conference article.
T. Kipf, G. F. Elsayed, A. Mahendran, A. Stone, S. Sabour, G. Heigold, R. Jonschkowski, A. Dosovitskiy, and K. Greff. Conditional object-centric learning from video. ICLR, 2022. Author version.
C. Dicle, O. I. Camps, and M. Sznaier. The way they move: tracking multiple targets with similar appearance. ICCV, 2013. Conference article.
S. K. Ainsworth, J. Hayase, and S. Srinivasa. Git Re-Basin: merging models modulo permutation symmetries. ICLR, 2023. Author version.
D. Crisostomi, M. Fumero, D. Baieri, F. Bernard, and E. Rodolà. C2M3: Cycle-consistent multi-model merging. NeurIPS 37, 2024. Author version.
R. C. Kirby and L. R. Taylor. Pin structures on low-dimensional manifolds. In Geometry of Low-Dimensional Manifolds, vol. 2, London Mathematical Society Lecture Note Series 151, Cambridge University Press, 1991, 177–242. Publisher’s chapter.
T. Nikolaus, U. Schreiber and D. Stevenson. Principal ∞-bundles. General theory. J. Homotopy Relat. Struct. 10 (2015), 749–801. Author version.
E. Alpaydın and C. Kaynak. Optical Recognition of Handwritten Digits. UCI Machine Learning Repository, 1998. Dataset record.
Complete flattened LaTeX source
\documentclass[11pt]{article}
\usepackage[paperwidth=7.7in,paperheight=10.2in,left=.83in,right=.83in,top=.85in,bottom=.82in,headheight=14pt,headsep=16pt]{geometry}
\usepackage{fontspec}
\setmainfont{Latin Modern Roman}
\setsansfont{Latin Modern Sans}
\usepackage{amsmath,amssymb,booktabs,array,graphicx,tikz,xcolor,titlesec,caption,fancyhdr,microtype}
\usetikzlibrary{arrows.meta}
\definecolor{ink}{HTML}{173341}
\definecolor{sea}{HTML}{11665F}
\definecolor{rust}{HTML}{A24A30}
\usepackage[colorlinks=true,linkcolor=sea,citecolor=sea,urlcolor=sea,bookmarksnumbered=true]{hyperref}
\hypersetup{pdftitle={Feature Transport in Machine Learning},pdfauthor={Anonymous},pdfsubject={Spectral graph learning, object tracking, and model merging},pdfdisplaydoctitle=true}
\newcommand{\F}{\mathbb{F}_{2}}
\titleformat{\section}{\normalfont\bfseries\Large\color{ink}\raggedright}{\thesection}{.58em}{}
\titleformat{\subsection}{\normalfont\bfseries\large\color{ink}\raggedright}{\thesubsection}{.58em}{}
\titlespacing*{\section}{0pt}{1.25\baselineskip}{.5\baselineskip}
\titlespacing*{\subsection}{0pt}{.95\baselineskip}{.36\baselineskip}
\captionsetup{font=small,labelfont={bf,color=sea},margin=10pt}
\pagestyle{fancy}\fancyhf{}
\fancyhead[L]{\small\sffamily\color{sea}Feature transport in machine learning}
\fancyhead[R]{\small\sffamily\thepage}
\renewcommand{\headrulewidth}{.3pt}
\setlength{\emergencystretch}{2em}
\raggedbottom
\begin{document}
\thispagestyle{empty}
\noindent\textcolor{sea}{\rule{\linewidth}{1.25pt}}\par\vspace{12pt}
{\sffamily\small\bfseries\color{sea} MATHEMATICAL MACHINE LEARNING}\par\vspace{10pt}
{\raggedright\fontsize{33}{36}\selectfont\color{ink}Feature Transport in\\ Machine Learning\par}
\vspace{7pt}
{\Large Spectral graph learning, object tracking,\\ and model merging}\par
\vspace{12pt}
{\sffamily Anonymous\hfill November 2026}\par\vspace{14pt}
\noindent\textbf{Abstract.}
A model that returns the same prediction after relabeling can still assign different identities to its internal features along different paths. We study three instances where this distinction can be measured. For real Fiedler eigenlines of positive weighted triangles, winding parity determines sign transport. Every continuous unit-vector predictor on an odd-winding loop has worst-case sign-invariant loss one. On the fixed-gap loop, a projector readout fits to numerical precision, and a Lipschitz bound relates mean loss to the width of the high-error interval. For two interchangeable features, a degree-two Stiefel--Whitney class detects a lifting obstruction invisible on each point stabilizer. In 704 synthetic closed videos, changing the sampling gap reverses recovered identity even when object localization remains accurate. Across ten triples of independently trained digit classifiers, direct and composed neuron matchings disagree on 176 of 240 units. Their parameter midpoints disagree on 9.64\% of held-out predictions. Joint alignment improves mean three-model merge accuracy to 93.00\%; a probability ensemble attains 97.11\%.
\section{What should a feature do around a loop?}
Suppose a video begins and ends with the same two bright spots. A detector can locate both spots perfectly in the last frame and still leave an important question unanswered. Did each object return to its starting point, or did the two objects trade places? Answering requires a rule for carrying a label from one observation to the next. We call that rule \emph{transport}. Its composite around a closed path is the \emph{holonomy} of the path. When the labels describe a real object exchange, the correct composite is a transposition.
A related issue arises when a model predicts spectral features. Following an eigenvector continuously can reverse its sign even though the graph returns exactly to its starting state. If the output must be a single signed unit vector determined by the current graph, this reversal imposes a worst-case prediction error. A third instance occurs when models trained on the same task are aligned for weight averaging. If one matches units from $A$ to $C$ through $B$, each intermediate assignment can be optimal for its own pair even though its composite disagrees with a direct match.
These uses of a closed path have different mathematical content. In the first two examples the specified path has an independent physical or geometric meaning. In the third the researcher asks whether three estimated correspondences can be realized by one consistent labeling. A fourth test, on two copies of the spectral feature, asks whether two commuting transformations remain commuting after lifting them through a double cover. Only this last question produces the degree-two class studied here. Table~\ref{tab:objects} gives the observable used to decide each question.
\begin{table}[htbp]
\centering\small
\begin{tabular}{@{}>{\raggedright\arraybackslash}p{.21\linewidth}>{\raggedright\arraybackslash}p{.29\linewidth}>{\raggedright\arraybackslash}p{.40\linewidth}@{}}
\toprule
Experiment & Compared objects & Measured consequence \\
\midrule
Spectral predictor & Lines and unit vectors on a graph loop & Sign transport, projective loss, and sampling error \\[3pt]
Pair of spectral features & Two lifts of commuting frame changes & Central sign in a lifted commutator \\[3pt]
Moving objects & Local matches along a known trajectory & Agreement with physical endpoint identity \\[3pt]
Digit classifiers & Direct and composed unit assignments & Changed labels and prediction changes after weight averaging \\
\bottomrule
\end{tabular}
\caption{Each comparison specifies which choices of labels preserve its observable.}
\label{tab:objects}
\end{table}
\subsection{Prior work on signs, identities, and permutations}
A real eigenvector can reverse sign when its matrix traverses a closed path around a degeneracy. Berry included this phenomenon in his analysis of geometric phase \cite{berry}. In spectral graph learning, Lim and collaborators designed SignNet for sign changes of individual eigenvectors and BasisNet for changes of orthonormal basis within eigenspaces \cite{signnet}. Dym, Lawrence and Siegel studied the continuity of canonicalization and of averaging over frames for group actions on point clouds \cite{dym}. Our weighted graph family makes the sign obstruction quantitative for a prediction task. It specifies the eigengap, the loss incurred by a continuous unit-vector output, and a target projector that admits an exact affine predictor.
Slot Attention learns exchangeable object representations from input features \cite{slots}. Its sequential extension SAVi uses temporal prediction and correction, and can condition the initial slots on cues such as object positions \cite{savi}. Motion information has also been used to associate visually similar targets across crossings and missing detections \cite{tracking}. Our controlled videos specify the physical trajectories as well as the unordered observations. Comparing the observed transport with that ground truth distinguishes a correctly tracked exchange from an identity error.
Git Re-Basin aligns hidden units before averaging neural-network weights \cite{gitrebasin}. Crisostomi and collaborators developed $C^2M^3$, which enforces cycle consistency across three or more networks through a shared system of neuron permutations \cite{consistency}. Their work establishes cycle consistency as a model-merging constraint. We use the direct-versus-composed discrepancy as a diagnostic and measure its relation to predictive behavior. The paired spectral calculation asks whether two commuting feature transformations admit commuting lifts to a double cover.
\section{A sharp obstruction for spectral features}
\label{sec:triangle-theory}
A graph positional encoding often uses eigenvectors of a Laplacian. A simple eigenvalue determines a line, and a chosen unit vector on that line has two possible signs. SignNet and BasisNet build the appropriate sign or basis invariances into the feature map \cite{signnet}. Related obstructions occur when one tries to choose continuous canonical representatives of symmetry orbits \cite{dym}. The following graph family lets us calculate exactly what happens when a prediction head must produce one unit vector.
\subsection{A closed curve of graphs with a uniform gap}
Take the orthonormal basis $b_1=(1,-1,0)^\top/\sqrt2$ and $b_2=(1,1,-2)^\top/\sqrt6$ of the plane orthogonal to the constant vector. Write $B=[b_1\ b_2]$ and $\Pi=BB^\top$. For $0\leq\theta\leq2\pi$, define
\[
L(\theta)=B\left(3I_2+
\begin{pmatrix}\cos\theta&\sin\theta\\\sin\theta&-\cos\theta\end{pmatrix}
\right)B^\top.
\]
Each $L(\theta)$ is the Laplacian of a triangle with strictly positive edge weights. Indeed, $L(\theta)\mathbf1=0$. Every off-diagonal entry of $3\Pi$ equals $-1$. Every row of $B$ has norm $\sqrt{2/3}$, and the trigonometric matrix has operator norm one, so each off-diagonal perturbation has magnitude at most $2/3$. The resulting edge weights thus lie between $1/3$ and $5/3$.
The eigenvalues are $0,2,4$ throughout. A unit eigenvector for the Fiedler eigenvalue $2$ on the cut interval is
\[
v(\theta)=B\begin{pmatrix}-\sin(\theta/2)\\ \cos(\theta/2)\end{pmatrix}.
\]
Since $v(2\pi)=-v(0)$, the Fiedler lines over the circle form the M\"obius line bundle. The spectral projector is single valued and satisfies
\[
P(\theta)=v(\theta)v(\theta)^\top=\tfrac12(4\Pi-L(\theta)).
\]
Evaluation on the three eigenspaces verifies the second equality. Its affine dependence on $L$ is specific to this fixed spectrum. The projector is an orthogonal-basis representation of the line and transforms by conjugation under vertex relabeling.
\subsection{Worst-case loss and average loss}
For a continuous single-valued prediction $g(L)\in S^2$, define
\[
\ell_g(\theta)=1-|g(L(\theta))^\top v(\theta)|^2
=\tfrac12\Vert g(L(\theta))g(L(\theta))^\top-P(\theta)\Vert_F^2.
\]
This loss is independent of the sign of either representative. Nonetheless the scalar $g(L(\theta))^\top v(\theta)$ on the cut interval has opposite endpoint values, or equals zero at both ends. At some $\theta$ it vanishes. Since $0\leq \ell_g\leq1$, this proves the exact minimax identity
\[
\inf_{g\,\mathrm{continuous},\ \|g\|=1}
\max_{\theta\in S^1}\ell_g(\theta)=1.
\]
The same argument applies to any loop along which a continuous family of real eigenlines has negative sign holonomy. Equivalently, a nowhere-orthogonal prediction would project to a nowhere-zero section of the line, trivializing its orientation cover. The proof allows $g$ to leave the mean-zero plane. A head with the projector as its output can attain zero loss on the triangle family. Passing to a sign-invariant loss while requiring a unit-vector output still subjects the predictor to the displayed bound.
The narrowness of the high-loss region depends on how fast the prediction varies. Equip the parameter circle with arc length and the unit sphere with geodesic distance. Suppose $\theta\mapsto g(L(\theta))$ is Lipschitz with constant $K\geq0$. The true local lift $v$ has speed $1/2$. Let $H=K+1/2$, and choose an orthogonality point. At an arc distance $s\leq\pi/(2H)$ from it, the angle between the locally lifted true vector and the prediction differs from $\pi/2$ by at most $Hs$, by the triangle inequality for spherical distance. Consequently $\ell_g\geq\cos^2(Hs)$ on that arc, on either side. Integration gives
\[
\frac{1}{2\pi}\int_0^{2\pi}\ell_g(\theta)\,d\theta
\ \geq\ \frac{1}{4H}=\frac{1}{4K+2}.
\]
For $K\geq1/2$ this bound is attained by a piecewise smooth predictor in the mean-zero plane. Follow the angular speed $1/2$ of the true vector outside an interval of length $\pi/H$, and use angular speed $-K$ inside it. The total winding of the predicted vector is then zero, so the predictor is periodic. Choosing initial alignment makes the loss zero outside the interval and a single squared-sine excursion inside. Thus no positive architecture-independent lower bound on the mean loss follows from the worst-case result alone. On an equally spaced test grid of $N$ angles, the nearest grid point to an orthogonality point has distance at most $\pi/N$. If $H\pi/N\leq\pi/2$, the largest measured loss is at least $\cos^2(H\pi/N)$. Both estimates use speed with respect to the specified graph-angle parameter.
\subsection{A sign test independent of numerical conventions}
Take $N\geq3$ equally spaced angles and obtain a numerical unit eigenvector $v_i$ separately at each angle. Include the closing edge in the statistic
\[
\mathcal H=\prod_{i=0}^{N-1}
\operatorname{sgn}(v_i^\top v_{(i+1)\bmod N}).
\]
Changing the sign of one eigenvector changes two factors, so the product is independent of every eigensolver sign choice. In our analytic interval lift the first $N-1$ overlaps equal $\cos(\pi/N)>0$, while the closing one is its negative. Hence $\mathcal H=-1$. A constant graph loop gives $+1$. For a general sampled path, this interpretation requires a sufficiently fine discretization to resolve the continuous eigenline and nonzero adjacent overlaps. This test measures the orientation of one line. The paired-feature obstruction below probes the interaction between transport along this loop and interchange of two features.
\subsection{Reading the obstruction directly from the three edge weights}
The preceding circle is one representative of an entire family of graph loops. Label the positive edge weights $a=w_{12}$, $b=w_{23}$ and $c=w_{13}$. In the same fixed basis $B$, define
\[
s=a+b+c,\quad z_1=a-\tfrac12(b+c),\quad z_2=\tfrac{\sqrt3}{2}(c-b).
\]
Direct multiplication gives
\[
B^\top LB=sI_2+
\begin{pmatrix} z_1 & z_2 \\ z_2 & -z_1\end{pmatrix}.
\]
The two positive eigenvalues are $s\pm\|z\|$. The degeneracy locus is exactly $a=b=c$. Away from it the lower eigenline has angle $\tfrac12\arg(z_1+iz_2)+\pi/2$ in the chosen plane. Consequently, for any closed continuous path of positive labeled weights avoiding the degeneracy locus, its Fiedler sign is
\[
\mathcal H=(-1)^{\operatorname{wind}(z_1+iz_2,0)} .
\]
Normalizing by $s$ gives the interior of a triangle with its center removed, while the factor $s>0$ is contractible. Winding parity therefore classifies the orientation obstruction on all of this parameter space. An odd winding forces the same worst-case loss of one. On an even-winding loop the sign returns and a continuous exact lift along the parameter circle exists. A single-valued function of graph weights must in addition agree where a parameter path visits the same graph twice.
A polygonal interpolation has a computable robustness margin. Let $d$ be the smallest distance from the origin to any interpolating segment in the $z$-plane. If every vertex is perturbed by less than $d$, linear interpolation of those perturbations cannot move any segment through zero. The winding and sign are preserved. An unobserved path between successive frames can still encircle the origin. The certificate applies to the specified interpolation. The reproduction script checks fourteen perturbed polygons of winding $-3$ through $3$ against direct eigendecomposition with randomized eigenvector signs.
\section{Learning a Fiedler feature}
\label{sec:spectral-experiment}
We use the weighted-triangle family and mean-zero basis $B$ of Section~\ref{sec:triangle-theory}. At unit radius the three Laplacian eigenvalues are $0,2,4$. For each graph we predict either a normalized vector in the mean-zero plane or the orthogonal projector $P$ onto the Fiedler line. With a unit-vector output $g$, half the squared Frobenius distance between $gg^\top$ and $P$ equals the projective loss $1-|g^\top v|^2$, independent of the target eigenvector sign. The worst-case theorem fixes this loss at one somewhere on the loop for every continuous vector head. The experiment measures how often ordinary test samples capture it.
\subsection{Learned predictions between training angles}
For the vector head, extract the two coordinates $z=(\cos\theta,\sin\theta)$ from the trace-free part of $B^\top L B$. They are linear functions of the graph weights. A one-hidden-layer network with 16 tanh units predicts $\phi(z)=b^\top\tanh(W^\top z+a)+c$ and returns $B(-\sin\phi,\cos\phi)^\top$. This output is continuous, mean-zero and normalized for every input. The optimization minimizes the mean projective loss, which depends only on the target line. Full-batch L-BFGS uses analytic gradients and a limit of 1,500 iterations. For both training sizes we use seeds zero through four and equally spaced angles $2\pi j/n$. Each head is evaluated on the same 256 unseen midpoints $2\pi(j+1/2)/256$. A separate fine grid has 8,192 midpoints.
\begin{center}
\small
\begin{tabular}{r r r r r}
\hline
Training & Training & Test & Test & Fine-grid\\
graphs & mean & mean & maximum & maximum\\
\hline
8 & $<3\cdot10^{-15}$ & 0.06810 & 0.998665 & 0.99999982\\
64 & $1.21\cdot10^{-5}$ & 0.00957 & 0.907805 & 0.99994792\\
\hline
\end{tabular}
\end{center}
Each entry summarizes the median of five run-level statistics. All five 64-graph fits reached the iteration limit. Their held-out means ranged from $0.00715$ to $0.01788$ and their 256-point maxima from $0.81050$ to $0.9999994$. The denser training set reduced the median test mean while leaving the true maximum equal to one. The lower sampled maximum is consistent with narrower regions of high error, as seen directly in Figure~\ref{fig:spectral-risk}.
\begin{figure}[htbp]
\centering
\includegraphics[width=.99\linewidth]{spectral.pdf}
\caption{Projective prediction loss near a zero of the signed overlap, for seed zero. The horizontal coordinate is displacement from the located zero divided by $2\pi/n$, so one unit represents a different angular width in each panel. Open circles are held-out graph evaluations. A 256-point test grid can miss a peak even on this one-dimensional family.}
\label{fig:spectral-risk}
\end{figure}
We also bisected the continuous signed overlap on $[0,2\pi]$ 42 times for each fit. The final endpoint values bracketed zero in all ten numerical runs, with midpoint absolute overlap below $4\cdot10^{-11}$. The intermediate value argument establishes the exact maximum independently of floating-point bisection. Model training controls the location and width of the error peak.
For the projector baseline, eight equally spaced graphs provide three edge weights, an intercept, and nine target matrix entries computed by symmetric eigendecomposition. A single ordinary least-squares fit gives a maximum Frobenius error of $1.37\cdot10^{-15}$ over the 256 held-out graphs. Permuting their vertices in all six ways and comparing with conjugation of the predicted matrix gives a maximum residual of $1.51\cdot10^{-15}$ over 1,536 tests. The closed formula explains this accuracy within the chosen family.
\subsection{Changing the spectral gap}
Multiply the trace-free $2$-by-$2$ block by $0<r<3/2$, which preserves positive edge weights. Its two mean-zero eigenvalues become $3-r,3+r$, while their lines remain fixed. The fitted affine head was trained at $r=1$. Along this trace-six family its raw Frobenius error is $|r-1|/\sqrt2$. Indeed the trace-six plane is affinely spanned by the training circle, so the fit extends $(4\Pi-L)/2$ to that plane. We tested $r\in\{0.4,0.7,1,1.2,1.4\}$, using 256 graphs per radius. At $r=0.4$ the largest raw error was $0.42426$. Setting $\widehat r=\|L-3\Pi\|_F/\sqrt2$ and applying the frozen head to $3\Pi+(L-3\Pi)/\widehat r$ restored a maximum error below $2.26\cdot10^{-15}$ over all 1,280 graphs. This calibration uses the known two-dimensional subspace and mean eigenvalue. It shows exactly which part of the affine solution depended on the fixed gap.
\section{Transport and the obstruction for two spectral features}
\label{sec:paired-features}
\subsection{What changes under relabeling}
Let $G$ act on an input space $X$. The topological action groupoid has
objects $x\in X$ and arrows $g:x\to gx$. Its classifying space is
$X_{hG}=EG\times_GX$. The comparison $q:X_{hG}\to X/G$ sends a point
to its orbit. A continuous scalar predictor invariant under $G$ already
defines a continuous predictor on $X/G$ by the quotient topology.
A fiber of features over each input contains more information. The
action on the fibers can permute feature labels at fixed inputs.
Consider a finite set $F_i$ of labels for each of several inputs or
checkpoints $i$. An estimator supplies bijections
$T_{ij}:F_i\to F_j$. A change of labels $b_i:F_i\to F'_i$ gives
$T'_{ij}=b_jT_{ij}b_i^{-1}$. When transports define functors from the
path groupoid into finite sets and bijections, this rule is the
naturality square for an isomorphism of functors. It also gives
a diagnostic for independently estimated maps. The defect between
a direct match and a match through a third input is the permutation
\[
H_i=T_{ik}^{-1}T_{jk}T_{ij}:F_i\longrightarrow F_i .
\]
It transforms by $H'_i=b_iH_i b_i^{-1}$. Its cycle lengths and number of
moved elements can therefore be compared across runs with different label
names. Independent edges of a triangle can have a nonidentity composite.
Compatibility requires $H_i=1$ if the two paths are prescribed to be the
same morphism, for example on a filled triangle with homotopy-invariant
transport. A loop representing a physical exchange can legitimately have
nontrivial monodromy.
An observable may itself be invariant under a subgroup $K_i$ of label
changes. If transports intertwine the endpoint stabilizers, the two
composites agree modulo these symmetries exactly when $H_i\in K_i$.
Ties in a numerical assignment can produce several candidate matches.
The selected match, its cost, and the effect on an observable then
measure different properties. These qualifications matter when comparing
a video equipped with ground-truth identities to neural networks whose
hidden units admit several close matches.
\subsection{From a permutation to a lifting gerbe}
Let $Y=S^1$ parametrize the weighted triangle family and write
$\ell\to Y$ for its Fiedler line. Its first Stiefel--Whitney class
$h=w_1(\ell)$ is the generator of $H^1(Y;\mathbb F_2)$. Consider
two graph inputs with the action of $C_2$ exchanging their positions.
The plane with fibers $\ell_{y_1}\oplus\ell_{y_2}$ is equivariant and
induces a real plane bundle $V$ on $E=(Y^2)_{hC_2}$. Each orthogonal
frame of this bundle has transition maps in $O(2)$. Lifting these
transitions through the central double cover
$\operatorname{Pin}^+(2)\to O(2)$ has obstruction
$w_2(V)\in H^2(E;\mathbb F_2)$ \cite{pin}.
The categorical degree can be seen on overlaps. Choose local lifts
$\widetilde g_{ij}$ of frame transitions, with $g_{jk}g_{ij}=g_{ik}$.
On triple overlaps,
\[
\widetilde g_{jk}\widetilde g_{ij}
=(-1)^{c_{ijk}}\widetilde g_{ik}.
\]
Associativity on quadruple overlaps gives $\delta c=0$.
Changing the chosen lifts by edge signs changes $c$ by a coboundary.
This cocycle represents $w_2(V)$. The groupoid of local lifts, equipped
with its gluing maps, is the lifting gerbe. Its classifying target is
$B^2C_2=K(\mathbb F_2,2)$ \cite{nss}. The permutations measured in the
video and checkpoint experiments take values in an ordinary permutation
group. A degree-two interpretation there would require specifying a
lifting problem and determining its central signs.
Over the diagonal family $j:Y\times BC_2\to E$, sum and difference of
the coincident features split the plane as
$j^*V=\ell\oplus(\ell\otimes\lambda)$, with pullbacks understood.
Here $\lambda$ is the sign line on $BC_2$ and $u=w_1(\lambda)$. The
Whitney product formula gives
\[
j^*w_2(V)=h(h+u)=hu\ne 0 .
\]
Indeed $h^2=0$ on a circle and $hu$ generates the mixed Künneth summand.
At a single fixed input $h$ restricts to zero, so the degree-two
obstruction vanishes over its stabilizer. Along the full diagonal,
$qj$ factors through the projection $Y\times BC_2\to Y$. Consequently
every class from the coarse symmetric square restricts to a class
pulled back from $Y$. The term $hu$ rules out descent of $w_2(V)$.
The swap already acts on the plane by $+1$ on the sum and $-1$ on the
difference. Pointwise vanishing here concerns the obstruction to lifting
this action.
\subsection{Two matrices that detect the mixed term}
On the cut parameter interval choose the continuous Fiedler unit vectors
in both slots. After a circuit of the diagonal the frame changes by
$d=-I_2$, and the swap acts by the matrix $s$ that exchanges the two
coordinate vectors. They commute in $O(2)$. Take the following real
matrix model for the generators of the positive Clifford algebra,
\[
e_1=\begin{pmatrix}1&0\\0&-1\end{pmatrix},\qquad
e_2=\begin{pmatrix}0&1\\1&0\end{pmatrix}.
\]
The generators square to one and anticommute. The unit Clifford vector
$S=(e_1-e_2)/\sqrt2$ lifts reflection in the hyperplane perpendicular to
$(1,-1)$, namely $s$. The product $D=e_1e_2$ lifts $d$. Thus
\[
S^2=I_2,\qquad DSD^{-1}S^{-1}=-I_2 .
\]
In the last formula $-I_2$ represents the central kernel element in the
Clifford matrix model. Its image in $O(2)$ is the identity. Each of
$S,-S$ therefore supplies a splitting of the swap over a single fixed
input, and conjugation by $D$ interchanges them.
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[>=stealth,x=1cm,y=1cm,
every node/.style={font=\small}]
\node (a) at (0,0.9) {$1$};
\node (b) at (2.55,1.8) {$S$};
\node (c) at (2.55,0) {$D$};
\node (d) at (5.05,1.8) {$DS$};
\node (e) at (5.05,0) {$SD$};
\draw[->,thick] (a)--node[above,sloped] {swap} (b);
\draw[->,thick] (a)--node[below,sloped] {circuit} (c);
\draw[->,thick] (b)--node[above] {circuit} (d);
\draw[->,thick] (c)--node[below] {swap} (e);
\draw[<->,dashed] (d)--node[right] {central sign $-1$} (e);
\end{tikzpicture}
\caption{Labels are products in the covering group; each step multiplies
on the left. The upper path yields $DS$ and the lower path yields
$SD=-DS$. Projecting either path to $O(2)$ gives the
same endpoint. The discrepancy is unchanged by changing either lift's
sign.}
\label{fig:lifted-swap}
\end{figure}
\section{Tracking exchangeable objects around a closed scene}
\label{sec:closed-scenes}
Two identical objects move along opposite halves of a circle. At the end the image is identical to the first image, while each physical object occupies the other's starting position. A tracker judged by the positions it reconstructs in each frame can score well even if it reports the wrong endpoint correspondence. We isolate this effect in a synthetic scene where the physical correspondence is known exactly.
\paragraph{The covering and the target.}
Let $C$ be the space of ordered pairs of distinct points of the plane. The map $C\to C/S_2$ that forgets the ordering is a double cover. A path of unordered configurations lifts uniquely once the initial labeling is specified. For a closed path the lifted endpoint either retains or exchanges the initial labels. This element of $S_2$ is the target of the experiment. The constant path and any path followed by its reverse induce the identity. Moving the two points half a turn in the same direction at opposite positions induces the transposition. Both kinds of scene have identical initial and final unordered configurations.
Write the positions as $p_1(\theta)=R(\cos\theta,\sin\theta)$ and $p_2(\theta)=-p_1(\theta)$. For two consecutive noiseless frames whose angle increases by $\delta$, compare the sum of squared displacements under the physical assignment and under its exchange. The costs are
\[
C_{\rm physical}=4R^2(1-\cos\delta),\qquad
C_{\rm exchange}=4R^2(1+\cos\delta).
\]
Thus minimum-displacement assignment recovers the physical link for $|\delta|<\pi/2$, ties at $\pi/2$, and picks the opposite link when $\pi/2<|\delta|\leq\pi$. This threshold is a property of the estimator and of the motion family. Knowledge of angular velocity would supply additional information. Without a motion assumption, rotations through $\delta$ and $\delta-\pi$ reach exactly the same unordered observation.
\paragraph{The observations and the fitted slots.}
Each frame is a $40\times40$ count image. The two objects are identical isotropic Gaussian spots of width $1.8$ pixels with centers at radius $R=8$ pixels about the image center. Each spot contributes an expected $70$ counts to the whole image. Pixels are independent Poisson draws at the sum of the component intensities. Every clip ends with a copy of its first sampled frame, giving exact closure even at the level of sensor noise. The other frames use fresh draws. Relative to a uniformly sampled initial angle, the dense exchange follows $\theta(t)=\pi t$, and the retrace follows $\theta(t)=0.9(1-|2t-1|)$ for $t\in[0,1]$. Both use 16 adjacent links.
We infer two exchangeable slots separately in each image. Each slot is a fitted component mean of a two-component Gaussian mixture with equal priors and fixed width. Four expectation--maximization updates use the pixel counts as weights. Initial means lie on the major principal axis of the counts, at one empirical standard deviation on either side of the centroid. This model isolates the correspondence stage of object-centric inference. Its emissions are fitted to pixels, with the generative width supplied to the estimator. No persistent appearance or identity marker enters the fit. The model has neither trainable attention weights nor a learned temporal prior.
Sorting the two centers by horizontal position gives a reproducible indexing convention. The endpoint baseline matches the first set of fitted centers directly to the last. The temporal tracker composes the cheapest assignments for all consecutive pairs. If the assignment from frame $i$ to $i+1$ is $m_i$ and the slots in frame $i$ are renamed by $g_i$, then
\[
m_i\longmapsto g_{i+1}m_i g_i^{-1},\qquad
m_{T-1}\cdots m_0\longmapsto
g_T(m_{T-1}\cdots m_0)g_0^{-1}.
\]
All intermediate names cancel. With the same endpoint convention ($g_T=g_0$), even the endpoint permutation is unchanged for $S_2$. We tested this by independently flipping the two labels in random interior frames of every clip. The two tracking rules always consumed the same estimated positions.
\paragraph{Observed successes and failures.}
Each condition used the same $64$ seed indices, with an independent random stream for each seed. The resulting $704$ clips comprise two dense conditions and nine sampling-gap conditions. The image-level localization error is the root mean squared Euclidean center distance after optimal matching to truth separately in each frame. The repeated endpoint is excluded. On the dense retrace it was $0.309$ pixels, and on the dense exchange it was $0.308$ pixels. Temporal matching recovered all $1{,}024$ adjacent physical assignments and all $64$ endpoint permutations in each dense condition. Direct endpoint matching recovered all $64$ retraces and zero of the $64$ exchanges. The equal endpoint images force that baseline to choose identity.
\begin{figure}[tbp]
\centering
\includegraphics[width=.98\linewidth]{slots.pdf}
\caption{The left panel shows the initial noisy frame, both physical trajectories (curves), their starting positions (open circles), and fitted centers from every third frame (dark points). The two objects are visually identical. On the right each point summarizes $64$ clips with one enlarged angular step. The dotted line marks the predicted noiseless assignment tie.}
\label{fig:closed-slots}
\end{figure}
In the gap experiment the first three links are $6^\circ$ each, followed by one designated gap. The rest of the half-turn is divided into six equal links. At gaps of $45^\circ$, $75^\circ$, and $85^\circ$ temporal matching returned the correct exchange in $64/64$ clips each. At $89^\circ$, $90^\circ$, and $91^\circ$ the counts were $46/64$, $36/64$, and $19/64$. At each of $95^\circ$, $105^\circ$, and $135^\circ$ the counts were $0/64$. The center RMSE stayed between $0.301$ and $0.310$ pixels in all nine conditions. At $95^\circ$, the tracker still recovered $576/640$ physical links. One wrong link in each clip reversed every endpoint decision. Figure~\ref{fig:closed-slots} shows the transition.
The measured quantity is permutation transport in an ordinary covering space. A transposition is the correct outcome on a genuine exchange. Evidence for a degree-two lifting obstruction would additionally require an identified central extension and a compatible family of lifted symmetries, as in the paired spectral calculation. The closed-film test can also be applied to a learned slot encoder by replacing the two fitted means with its predicted object centers and evaluating the same two correspondence rules against persistent ground truth.
\subsection{A supervised detector trained on rendered images}
\label{sec:learned-slots}
To test whether fitting a Gaussian mixture in each frame was essential to the preceding result, we trained an image-to-centers predictor on fresh synthetic images. A training example was one frame, with no sequence or identity labels. The generator placed the midpoint uniformly in $[-3,3]^2$ pixels, sampled the radius uniformly in $[6,10]$ pixels, and sampled phase uniformly on the circle. The two spots used the same width and photon count as the tracking clips. The $4{,}096$ training images and $512$ held-out images came from separate random streams, distinct from all clip streams.
Represent pixel positions as complex numbers. If the centers are $m+z,m-z$, the four real supervised coordinates are the real and imaginary parts of $m/3$ and $z^2/64$. Exchanging the object names changes the sign of $z$ and preserves the target. Taking either square root at prediction time returns the same unordered pair. This parameterization makes the intended symmetry explicit while leaving the visual detection problem to the network.
We pooled the raw counts over nonoverlapping $4\times4$ pixel blocks. Dividing by the frame total and multiplying by ten produced a 100-dimensional input. Two fully connected hidden layers of widths 64 and 32 used $\tanh$ activations, followed by four linear outputs. Each network was trained for 90 epochs by Adam with minibatches of 128, learning rate $0.002$, squared-error supervision and scikit-learn's $L^2$ parameter $0.0001$. We fixed this schedule and trained three initializations on the same data, then froze their weights. A fresh frame passed only through the pooled-pixel encoder, the decoder and the matching rule.
The three held-out localization errors were $0.432$, $0.431$, and $0.433$ pixels. As a scale reference, decoding the empirical mean of the four training targets for every image gave $7.925$ pixels. All three networks recovered $64/64$ retraces and $64/64$ dense exchanges by composing adjacent matches. Direct endpoint alignment again yielded $64/64$ on the retraces and $0/64$ on the exchanges. Dense exchange localization errors ranged from $0.405$ to $0.429$ pixels.
\begin{table}[tbp]
\centering
\small
\begin{tabular}{r|rrrr}
Largest step & Fitted mixture & MLP 1 & MLP 2 & MLP 3\\
\hline
$85^\circ$ & 64 & 64 & 64 & 64\\
$89^\circ$ & 46 & 40 & 45 & 40\\
$90^\circ$ & 36 & 36 & 37 & 39\\
$91^\circ$ & 19 & 23 & 26 & 26\\
$95^\circ$ & 0 & 1 & 1 & 1\\
$105^\circ$ & 0 & 0 & 0 & 0
\end{tabular}
\caption{Correct exchanges out of 64 paired clips per step size. All four detectors saw the same test pixels and used the same temporal matching rule. MLP columns vary the training initialization with seeds $211$, $431$, and $877$.}
\label{tab:learned-slots}
\end{table}
Both detection procedures retain the sampling transition around $90^\circ$ (Table~\ref{tab:learned-slots}). In this comparison localization error and assignment error answer different questions. For example, the first network still localized centers within $0.430$ pixels RMSE at $95^\circ$, yet tracked only one of the 64 endpoint exchanges correctly. The detector was trained under supervised synthetic two-object conditions. The experiment measures how its outputs compose under a specified matching rule, and a direct evaluation of a video-trained Slot Attention system would require that system's own outputs.
\section{Matching hidden units across three digit classifiers}
\label{sec:digitmerge}
Suppose a pairwise matcher sends the hidden units of model $A$ to those of $B$
by a permutation $p_{AB}$, with analogous assignments for $B,C$ and $A,C$.
It is possible to preserve the predictions of each individual network under
every relabeling and still obtain different predictions after merging the
networks. We measure both effects. Git Re-Basin established permutation
alignment for weight-space merging \cite{gitrebasin}. Crisostomi and
colleagues formulated cycle-consistent multi-model merging and developed a
data-free optimizer \cite{consistency}. Our experiment uses a calibration
set, a single hidden layer and an alternating linear-assignment baseline.
\subsection{Data, fits and assignment}
We use the 1,797 handwritten digit images distributed in scikit-learn's
\href{https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_digits.html}
{digits dataset}. Each input comprises 64 pixel counts scaled by $1/16$.
A stratified split supplies 1,197 training, 240 calibration and 360 test
images. We train a fully connected ReLU classifier with 24 hidden units and
10 logits by cross-entropy minimization. Training lasts 55 epochs with
Adam, learning rate $0.003$ and minibatches of size 64. In each of ten
replicates we independently train three networks on the same split.
The first trained network also supplies two control triples. The first
control comprises three copies with random hidden permutations and
independent positive unit scalings. The second starts three branches at the
same trained parameters and runs six more epochs on each, using independently
shuffled minibatches and fresh optimizer states. Random permutations are
applied to all three checkpoints in each condition before matching.
A hidden unit with nonzero incoming affine weight $u=(w,b)$ admits the
reparametrization $u\mapsto s u$, $v\mapsto v/s$ for $s>0$, where $v$ is
its vector of outgoing weights. Before averaging, we normalize $u$ to unit
length and apply the compensating scale to $v$. We also remove the common
logit component of every outgoing weight vector and of the output bias.
These changes preserve predicted probabilities. We use the arithmetic
mean of all resulting weights and biases as the merged model.
Let $z_i$ be the calibration activations of unit $i$, normalized to unit
Euclidean length when nonzero and assigned the zero vector when silent.
Define
\[
C_{ij}=\tfrac12\|z_i-z'_j\|^2+
0.05\,\tfrac12\|u_i-u'_j\|^2.
\]
The second term gives direction information even when a calibration
activation vanishes. The minimum-cost bijection is computed by linear
assignment. The exact gap to the second-best assignment is the minimum
over optimal edges of the increase after forbidding that edge. Indeed,
every different assignment omits at least one optimal edge. This check
distinguishes disagreement between unique optima from choices within a tie.
With the combined cost, every pair assignment in the experiment had a
positive gap; the smallest gap over the independently trained triples was
$2.08\times10^{-4}$ in total assignment cost. With only activation distances,
all ten independent triples had a tie on at least one edge, as did four
of the ten clone triples. The existence of these ties depends on the
observations and the score. The combined score recovered all planted clone
permutations exactly.
\subsection{Path dependence and predictive consequences}
For $m=24$, the fraction
\[
d_\triangle=\frac{1}{m}\#\{i:p_{AC}(i)\ne p_{BC}(p_{AB}(i))\}
\]
is the normalized Hamming distance of the cycle from the identity. It is
unchanged by consistent relabeling of the three unit sets when the
pairwise optima are unique. The control triples have $d_\triangle=0$.
For independent fits the direct and indirect assignments disagree on
176 of 240 units across the ten triples. Each triple moves between 16
and 22 of its 24 units. The indirect assignment incurs mean excess cost
$0.0630$ per unit when evaluated on the direct $A,C$ edge.
\begin{figure}[htbp]
\centering
\includegraphics[width=\linewidth]{merge.pdf}
\caption{Left, each dot gives the number of units moved by a three-model
cycle as a percentage of layer width. Horizontal segments show means.
Right, each thin line follows the same independently trained triple as the
$A,C$ parameter midpoint is recomputed under three alignments. The thick line
shows the mean. Test examples and training split are shared across runs.}
\label{fig:digitmerge}
\end{figure}
All permutations preserve their respective endpoint logits after
gauge normalization, to absolute and relative tolerance $10^{-11}$.
Across independent triples the mean individual accuracy is $96.63\%$.
For the $A,C$ midpoint the randomly relabeled, unaligned baseline attains
$78.11\%$, indirect alignment $89.89\%$, and direct alignment $93.36\%$.
Direct alignment scores higher on nine of ten triples. The two midpoint
classifiers return different test labels on $9.64\%$ of images averaged
over replicates. Retaining the original training order without alignment
gives $72.44\%$; averaging the two endpoint probability vectors gives
$96.86\%$. In the clone and common-base controls direct and indirect
midpoints have identical test labels.
\subsection{Choosing one labeling for three models}
Index a common label set by $A$ and choose bijections $b,c$ to units of
$B,C$. Their induced correspondence from $B$ to $C$ is $c\circ b^{-1}$.
We jointly minimize the sum of the three selected edge costs,
\[
E(b,c)=\sum_i\big[C_{AB}(i,b(i))+C_{AC}(i,c(i))
+C_{BC}(b(i),c(i))\big].
\]
A spanning tree of two independently matched edges determines a feasible
pair $(b,c)$. Starting in turn from each of the three trees, we fix $c$
and update $b$ by exact linear assignment, then interchange their roles.
We retain the least-cost result of the three runs. The search gives a
feasible upper bound on the minimum. The sum of the three independently
optimal edge costs is a lower bound; unique optimal pair matches with a
nonidentity cycle make this lower bound unattainable. The observed gap
between our feasible cost and this lower bound averages $0.0248$ per unit.
\begin{center}
\begin{tabular}{lrrr}
\hline
Three-model average & Cost/unit & Accuracy (\%) & Log loss\\
\hline
Random label orders & 1.2533 & 67.58 & 0.9013\\
Tree centered at $A$ & 0.6330 & 91.67 & 0.2561\\
Tree centered at $B$ & 0.6266 & 91.50 & 0.2597\\
Tree centered at $C$ & 0.6243 & 91.61 & 0.2558\\
Joint assignment & 0.5884 & 93.00 & 0.2355\\
Probability ensemble & --- & 97.11 & 0.1159\\
\hline
\end{tabular}
\end{center}
All table entries are means over the ten independent triples. The joint
assignment improves three-model test accuracy over the $A$-centered tree
in seven runs and lowers it in three. Lower correspondence cost therefore
gives a useful objective on this example but does not order test accuracy
for every replicate. The ensemble evaluates all three original networks;
each parameter average produces one width-24 network. The experiment
uses a single dataset split and a single architecture. The measured
permutation describes the failure of a particular pairwise matching rule
to compose. Establishing a characteristic class of a continuous family
would require additional data about transport and its lifts.
\subsection{How many assignments must change?}
A triangle defect also has an exact combinatorial interpretation with no reference to a classifier. On bijections between equally sized finite sets let $d(P,Q)$ be the fraction of inputs on which they disagree. This distance is invariant under precomposition and postcomposition by bijections. Given three assignments $T_{AB},T_{BC},T_{AC}$, the minimum total normalized distance to a consistent triangle is
\[
\min_{Q_{AC}=Q_{BC}Q_{AB}}\!
\bigl(d(T_{AB},Q_{AB})+d(T_{BC},Q_{BC})+d(T_{AC},Q_{AC})\bigr)
= d(T_{BC}T_{AB},T_{AC}) .
\]
For any feasible $Q$, insert $Q_{BC}Q_{AB}=Q_{AC}$ between the two terms on the right and apply the triangle inequality and bi-invariance. Conversely, keep the first two edges and replace the direct edge by their composite. The right side is therefore both attainable and a lower bound. The code exhausts all three-edge assignments on three labels as a finite check; the argument holds at every finite width. The cost on the left counts changed label assignments. It gives no bound on classification accuracy without an additional relation between hidden-unit changes and model outputs.
\section{Interpreting a transport test}
The three experiments have different success criteria. On a graph loop, an orientation reversal is evidence that a global signed-vector readout has an impossible specification. On the video exchange loop the reversal is the correct answer. On a triangle of independently trained networks, a nontrivial composite measures the incompatibility of three estimated correspondences under a chosen matching cost. In this last setting the practical consequence must be measured on a task, because even numerically distinct assignments can yield the same predicted class.
For spectral predictions the calculation gives a quantitative guide to evaluation. A denser training set can concentrate the misalignment on a short arc while retaining the full worst-case error. Monitoring only mean loss or a fixed test grid can conceal this effect. A signed-overlap product with a sufficiently resolved path detects the reversal; a computed zero of the alignment supplies an explicit failing input. For a learned object detector the analogous test needs both a reference trajectory and an assumption on the sampling interval. The identical endpoint frames contain no information that distinguishes an exchange from a retrace.
The model-merging experiment uses one shared stratified split of a small real dataset. Its ten triples repeat training initializations; they provide neither ten independent test sets nor an estimate of performance for other architectures. For the direct-minus-indirect midpoint comparison, the paired accuracy change ranges from $-1.11$ to $+11.67$ percentage points. For the joint three-model merge versus the tree anchored at $A$, it ranges from $-1.39$ to $+7.22$ points. These ranges explain why the average correspondence cost and the task score are both worth reporting. The classical representations, the learned similarities and the subgroup of label changes visible to an application must all be specified before a cycle statistic has a predictive interpretation.
\paragraph{Sources, code, and authorship.}
The lifting calculation applies the symmetric-square construction of the companion manuscript, \emph{Descent from Homotopy Quotients to Orbit Spaces}. All definitions needed here are supplied above. The archive includes the source of the paper, experiment code, seeds, run-level results and figures. The digit classifiers use the scikit-learn distribution of the UCI optical digits data \cite{digits}. The responsible submitter uses the byline Anonymous. AI assistance was used to develop the arguments, implement and rerun the experiments, prepare the figures and draft the text. The code provides numerical and finite checks; the general mathematical statements rest on the arguments in the paper.
\begin{thebibliography}{99}
\small\setlength{\itemsep}{3pt}
\bibitem{berry} M. V. Berry.
Quantal phase factors accompanying adiabatic changes.
\emph{Proc. R. Soc. Lond. A} 392 (1984), 45--57.
\href{https://www.physics.mcgill.ca/~keshav/551/berryphase2.pdf}{Journal article}.
\bibitem{signnet} D. Lim, J. Robinson, L. Zhao, T. Smidt, S. Sra, H. Maron, and S. Jegelka.
Sign and basis invariant networks for spectral graph representation learning.
\emph{ICLR}, 2023. \href{https://arxiv.org/abs/2202.13013}{Author version}.
\bibitem{dym} N. Dym, H. Lawrence, and J. W. Siegel.
Equivariant frames and the impossibility of continuous canonicalization.
\emph{ICML}, PMLR 235 (2024), 12228--12267.
\href{https://proceedings.mlr.press/v235/dym24a.html}{Conference article}.
\bibitem{slots} F. Locatello, D. Weissenborn, T. Unterthiner, A. Mahendran, G. Heigold, J. Uszkoreit, A. Dosovitskiy, and T. Kipf.
Object-centric learning with Slot Attention.
\emph{NeurIPS} 33, 2020.
\href{https://proceedings.neurips.cc/paper/2020/hash/8511df98c02ab60aea1b2356c013bc0f-Abstract.html}{Conference article}.
\bibitem{savi} T. Kipf, G. F. Elsayed, A. Mahendran, A. Stone, S. Sabour, G. Heigold, R. Jonschkowski, A. Dosovitskiy, and K. Greff.
Conditional object-centric learning from video.
\emph{ICLR}, 2022. \href{https://arxiv.org/abs/2111.12594}{Author version}.
\bibitem{tracking} C. Dicle, O. I. Camps, and M. Sznaier.
The way they move: tracking multiple targets with similar appearance.
\emph{ICCV}, 2013.
\href{https://openaccess.thecvf.com/content_iccv_2013/papers/Dicle_The_Way_They_2013_ICCV_paper.pdf}{Conference article}.
\bibitem{gitrebasin} S. K. Ainsworth, J. Hayase, and S. Srinivasa.
Git Re-Basin: merging models modulo permutation symmetries.
\emph{ICLR}, 2023. \href{https://arxiv.org/abs/2209.04836}{Author version}.
\bibitem{consistency} D. Crisostomi, M. Fumero, D. Baieri, F. Bernard, and E. Rodolà.
$C^2M^3$: Cycle-consistent multi-model merging.
\emph{NeurIPS} 37, 2024.
\href{https://arxiv.org/abs/2405.17897}{Author version}.
\bibitem{pin} R. C. Kirby and L. R. Taylor. Pin structures on low-dimensional manifolds.
In \emph{Geometry of Low-Dimensional Manifolds}, vol. 2, London Mathematical Society Lecture Note Series 151, Cambridge University Press, 1991, 177--242.
\href{https://doi.org/10.1017/CBO9780511629341.015}{Publisher's chapter}.
\bibitem{nss} T. Nikolaus, U. Schreiber and D. Stevenson. Principal $\infty$-bundles. General theory. \emph{J. Homotopy Relat. Struct.} 10 (2015), 749--801. \href{https://arxiv.org/abs/1207.0248}{Author version}.
\bibitem{digits} E. Alpaydın and C. Kaynak. \emph{Optical Recognition of Handwritten Digits}. UCI Machine Learning Repository, 1998.
\href{https://archive.ics.uci.edu/dataset/80/optical+recognition+of+handwritten+digits}{Dataset record}.
\end{thebibliography}
\end{document}