Independent scholarship · Open accessThe monthly digest

Full manuscript · browser edition

What a Learner Can Distinguish: Definable Observations, Equivariant Decisions, and Optimization

Continuous, single-column reading. Equations, tables, proofs, references and appendices stay in document order.

Contents · 23 sections

RESEARCH ARTICLE

What a Learner Can Distinguish

Definable observations, equivariant decisions, and optimization

Abstract. A representation partitions the inputs that a learner can observe; it also determines the symmetries that any equivariant output must respect. We derive a finite decision-risk decomposition that separates information lost by the observation map from the additional cost of requiring a deterministic equivariant decision. In a marked-triangle task these penalties are 0.600.60 and 0.200.20. We test the distinction on simple two-regular graphs: at six vertices every anonymous message-passing classifier with constant node features has error at least 1/71/7 under the uniform labeled law. A short closed-walk test learned at six vertices classifies all cycle types through twelve vertices, while another training-optimal threshold fails. Two further experiments compute when pairwise channel alignments glue and when a ReLU optimization step descends to functionally equivalent parameterizations. All reported calculations are reproducible on a CPU.

Keywords. Model theory, equivariance, graph neural networks, decision theory, weight-space symmetry.

What information does the learner receive?

Two labeled presentations of a graph can encode the same input. If the target is a class label, they should receive the same prediction. If the target is an edge, a permutation of the vertices must transport the answer. If no edge is fixed by every automorphism of the input, selecting one creates a further problem, even with perfect knowledge of the graph. A similar question arises inside a learner: two sets of weights can define the same function today and different functions after a gradient step tomorrow.

Our point of departure is the distinction in first-order model theory between satisfaction, realizations and their transport [2, 1]. An observation of finitely many formulas records a finite part of a complete type. Passing from a tuple to that record merges all tuples that give the same answers. Passing instead to the groupoid of presentations and isomorphisms keeps the automorphisms of a representative. These two constructions answer different questions for a learner. A cell of observations determines a conditional label law and hence a best achievable risk. An automorphism group constrains which structured outputs can be selected consistently. The paper uses ordinary sets, groupoids and finite probability for these tasks. The homotopy information used here is principally at the groupoid level, together with the compatibility of comparison maps around triangles.

Application Map or data Measured obstruction
Graph classification graph to message-passing observations mixed positive and negative labels within a single cell
Relational prediction structured input to an admissible output stabilizer moves every proposed deterministic witness
Matching model components pairwise identifications of channels nonzero parity on a triangle of identifications
Training dynamics positive ReLU parameters to their path coefficient equal initial functions take different gradient steps

The graph example specializes established expressivity bounds for message-passing networks [8, 9, 10]. Learning from definable families connects to the equivalence between finite VC dimension and the absence of the independence property for a fixed formula [6]. The constraint on a distribution-valued output is an instance of probabilistic equivariance [13, 14]. Rescaling and permutation symmetries in optimization are studied in [11, 12, 17]. Our contribution is the decision comparison, the explicit connection to definable observation maps, and experiments in which the predicted obstructions and their dependence on the task can be calculated exactly. A category of learning algorithms can describe composition of models and training maps [15]; here we examine whether the observation, decision, or update in a single problem passes to a specified quotient.

Definable observations and the cost of discarding distinctions

Suppose a monitoring system records whether each of several thresholds was crossed but discards the original measurements. Two records with the same bit vector become interchangeable for every downstream decision that reads only those bits. One can ask a statistical question about this quotient: how much error is forced by the observations? One can also ask a model-theoretic question: which traces of a parameterized classifier are possible on a finite set of inputs? Both questions use restrictions of types, but the coordinates held fixed and the quantities to be computed are different.

Finite restrictions of a type

Let MM be a nonempty first-order structure, take T=Th⁡(M)T=\operatorname{Th}(M) and choose parameters A⊆MA\subseteq M. For a finite list Δ\Delta of formulas δ(x)\delta(x) with parameters from AA, form the observation eΔ:M∣x∣⟶{0,1}Δ,eΔ(a)(δ)=1M⊨δ(a).e_\Delta:M^{|x|}\longrightarrow\{0,1\}^{\Delta},\qquad e_\Delta(a)(\delta)=\mathbf{1}_{M\models\delta(a)} . Call its image QΔQ_\Delta. Each realized bit vector qq corresponds to the nonempty cell defined by the conjunction of the positive or negative instances that qq prescribes. Every map from M∣x∣M^{|x|} to a set of decisions that is constant on these cells factors uniquely through QΔQ_\Delta: assign to qq the common decision on its cell. For each output label its decision region is definable over AA by a finite disjunction of cell formulas. If the labels form a finite definable output sort with named elements, the decision function has a definable graph. This is a factorization of a specified decision. It supplies neither the decision itself nor a method to estimate it from data.

Extending Δ\Delta gives surjections from refined to coarser observations. The inverse limit over finite fragments of the complete collection of AA-formulas is the Stone space Sx(A)S_x(A) if each QΔQ_\Delta has the discrete topology and the limit its inverse-limit topology. In fact each complete type selects a consistent cell at every finite stage. Its finite conjunction is realized in MM since its existential closure lies in the complete theory of (M,A)(M,A). Conversely a compatible family decides each formula consistently and respects negation and conjunction, hence defines a complete type. The space can contain points omitted by MM. Measurements of finitely many formulas always factor through one finite stage [2, 1].

The group Aut⁡(M/A)\operatorname{Aut}(M/A) preserves every cell, so each orbit lies inside a cell. A cell can contain many inequivalent tuples. In (Q,<,0,1)(\mathbb Q,<,0,1) consider the only observation x>0x>0. The numbers 11 and 22 have identical observations, whereas every automorphism fixes the named point 11. No such automorphism exchanges them. Even agreement on all formulas identifies orbits only with additional hypotheses, such as strong homogeneity over a small parameter set in a monster model. An observation quotient by itself specifies neither transports between representatives nor their stabilizers.

Exact binary risk under refinement

Let (X,Y)(X,Y) have a joint probability law, where XX takes values among the input tuples and Y∈{0,1}Y\in\{0,1\}. Assume the finitely many tests are measurable. For a cell qq put pqy=Pr⁡(eΔ(X)=q,Y=y)p_{qy}=\Pr(e_\Delta(X)=q,Y=y) and dq=pq1−pq0d_q=p_{q1}-p_{q0}. Define RΔ∗R_\Delta^* to be the least probability of error of any classifier that reads only eΔ(X)e_\Delta(X). Randomized decisions may use independent random bits.

Theorem 1 (Exact gain from a refined observation). For any refinement Δ′⊇Δ\Delta'\supseteq\Delta, let ρ:QΔ′→QΔ\rho:Q_{\Delta'}\to Q_\Delta forget the additional tests. Then RΔ∗=∑qmin⁡(pq0,pq1)=12(1−∑q∣dq∣),RΔ∗−RΔ′∗=12∑q∈QΔ(∑ρ(r)=q∣dr∣−∣∑ρ(r)=qdr∣).\begin{aligned} R_\Delta^*&=\sum_q\min(p_{q0},p_{q1}) =\tfrac12\bigl(1-\textstyle\sum_q |d_q|\bigr),\\ R_\Delta^*-R_{\Delta'}^* &=\tfrac12\sum_{q\in Q_\Delta} \left(\sum_{\rho(r)=q}|d_r|- \left|\sum_{\rho(r)=q}d_r\right|\right). \end{aligned} The improvement is strictly positive precisely when some coarse cell contains a refined cell with dr>0d_r>0 and another with dr<0d_r<0.

Proof. On qq the decision zero costs pq1p_{q1} and the decision one costs pq0p_{q0}. A randomized rule makes a convex combination of these contributions, minimized by a majority choice. Sum the smaller contribution over cells and use 2min⁡(a,b)=a+b−∣a−b∣2\min(a,b)=a+b-|a-b|. Refinement partitions each joint event by rr, so dq=∑ρ(r)=qdrd_q=\sum_{\rho(r)=q}d_r. Subtract the two risk identities. Equality in the triangle inequality for a finite list of real numbers holds exactly when its nonzero summands have one sign. Cells of mass zero have no effect. ◻

Consider three equally likely inputs (−1,0),(1,0),(1,1)(-1,0),(1,0),(1,1) with labels 0,0,10,0,1. Write each input as (u,v)(u,v) and observe first the single test u>0u>0. The positive cell has one example of each label and the negative cell is pure. The least error is 1/31/3. Adding the test v>0v>0 makes every occupied cell pure, so the gain is 1/31/3. If the same inputs instead have conditional positive-label probabilities 0, 1/4, 2/50,\,1/4,\,2/5, the finer observation improves the estimates of those probabilities. It gives zero gain in optimal binary decision error, because both refined positive cells have negative imbalance. Thus an increase in predictive information need not change the optimal class decision.

The theorem is exact for the specified law, including an empirical law that gives mass 1/N1/N to each of NN recorded observations. In the latter case the formula reports optimal training error of the cell lookup table. For a fixed observation with kk occupied-or-possible cells, there are at most 2k2^k binary lookup rules. If NN labeled observations are drawn independently from the same law, Hoeffding’s inequality and a union bound give, with probability at least 1−δ1-\delta, simultaneous empirical-to-population deviations at most (klog⁡2+log⁡(2/δ))/(2N)\sqrt{(k\log 2+\log(2/\delta))/(2N)}. This calculation requires a fixed observation map and a bound on its possible cells independent of the sample; substituting only the number of empirically occupied cells requires a different argument. The distinction matters when the tests themselves have been selected using the training labels [3, 5, 4].

For applications needing calibrated probabilities, keep the same partition but change the loss. For each positive-mass cell let pq=pq0+pq1p_q=p_{q0}+p_{q1} and ηq=pq1/pq\eta_q=p_{q1}/p_q. The conditional Brier loss of a prediction z∈[0,1]z\in[0,1] is ηq(1−z)2+(1−ηq)z2=ηq(1−ηq)+(z−ηq)2.\eta_q(1-z)^2+(1-\eta_q)z^2 =\eta_q(1-\eta_q)+(z-\eta_q)^2 . Its unique minimizing value is ηq\eta_q. If BΔ∗B_\Delta^* denotes the resulting population squared error, one obtains a second refinement identity, BΔ∗−BΔ′∗=∑r:pr>0pr(ηr−ηρ(r))2.B_\Delta^*-B_{\Delta'}^* =\sum_{r:p_r>0}p_r(\eta_r-\eta_{\rho(r)})^2 . Indeed a coarse optimal prediction reused on each fine cell pays precisely the fine-cell excess (ηr−ηρ(r))2(\eta_r-\eta_{\rho(r)})^2 relative to its optimum. In the second three-input example this gain equals 3/8003/800: the positive coarse cell has mean 13/4013/40 and each of its two equally weighted input points deviates by 3/403/40. Both criteria give the same direction of monotonicity, while squared error decreases for every refinement that changes a conditional probability on positive mass. A loss such as log loss would measure another discrepancy between the refined probability and its coarse average.

Occurrence counts and conditional label probabilities are extra probabilistic structure on the semantic quotient. If deployment changes the input distribution, the probability attached to a fixed definable cell changes as well. Even with exactly the same joint law of the observations and the label, a refined test’s gain may be undetermined: a cell with equal label masses can have a new bit independent of the label or a new bit exactly equal to it. In the first case the finer cells remain tied; in the second their imbalances have opposite signs and pure labels. No algorithm seeing only the coarse table can distinguish these two refinements.

Fixing inputs and varying the classifier

Let φ(x;θ)\varphi(x;\theta) define binary classifiers as the parameter tuple θ\theta varies in MM. Hold mm distinct inputs a1,…,ama_1,\ldots,a_m fixed. Now the tests apply to a candidate parameter rather than an input: write ΔD={φ(ai;θ):1≤i≤m}\Delta_D=\{\varphi(a_i;\theta):1\leq i\leq m\} for the indexed tests. Their realized vectors form exactly the trace set {(1M⊨φ(ai;b))i=1m:b∈M∣θ∣}.\bigl\{(\mathbf{1}_{M\models\varphi(a_i;b)})_{i=1}^m: b\in M^{|\theta|}\bigr\}. Consequently D={a1,…,am}D=\{a_1,\ldots,a_m\} is shattered precisely when the image has 2m2^m elements. This is a surjectivity test on a finite Boolean cube. It asks about the expressibility of hypothetical labels; the labels originally observed on the sample play no role. The VC dimension of this fixed formula is the supremum of the cardinalities of such shattered finite sets. For any fixed mm, existence of such a set is a first-order sentence: quantify the aia_i and one parameter bEb_E for each E⊆{1,…,m}E\subseteq\{1,\ldots,m\}, and impose the corresponding literals. All models of TT therefore agree on whether such a set exists. Passing to arbitrarily large finite mm gives exactly the independence property for the formula, by compactness [6]. NIP means the absence of this property; a theory is NIP when each fixed partitioned formula has a finite bound of its own.

The order property is weaker than the independence property for a formula. Indeed, if arbitrarily large finite sets are shattered, among the available labelings are all successive initial segments, producing arbitrarily long half-graphs. Consequently stability implies NIP [7]. For a converse test consider the threshold φ(x;θ)=(x<θ)\varphi(x;\theta)=(x<\theta) on a dense linear order without endpoints. On mm distinct sorted inputs it produces exactly m+1m+1 initial segments. It has VC dimension one and has the order property, witnessed by interleaving arbitrarily long increasing sequences of inputs and thresholds. The ambient theory of dense linear orders is NIP: quantifier elimination reduces each fixed formula to a Boolean combination of comparisons, and a fixed-length parameter tuple has only polynomially many order and equality patterns relative to the coordinates of mm input tuples. The degree of this polynomial can depend on the arities. Thus a linearly ordered feature can have low classification capacity for a fixed threshold class while still supporting arbitrarily long ordered configurations.

These statements are indexed by a specified architecture or formula. Even in this ordered language the family of all unions of up to kk intervals can shatter kk prescribed points, by isolating any selected subset with pairwise disjoint intervals. Taking the union over unbounded kk removes every finite VC bound from this construction. To use model theory for an actual learner one must specify its language, parameter domain, readout and architecture; a proof about one fixed family does not bound an adaptive union of families.

What a graph learner can observe

Consider the binary task of detecting a triangle in a finite simple undirected graph, given only its adjacency relation. A graph with a single cycle on six vertices and a graph with two disjoint triangles have the same order and degree sequence. We can nevertheless identify their isomorphism classes exactly, compute how often a learner confuses their labels under specified sampling distributions, and fit a classifier whose new input distinguishes them. The same experiment on larger graphs tests whether the fitted decision rule extends beyond its training order.

Factorization through an observation

Write G2\mathcal G_2 for the groupoid of finite simple 22-regular graphs and their isomorphisms. Sending a graph to its number nn of vertices defines a functor to the discrete category of finite cardinalities. An isomorphism-invariant binary label is a functor to the discrete set {0,1}\{0,1\}. For an observation OO, fitting a readout hh that is exactly correct means factoring the label as hOhO. On underlying sets of isomorphism classes a necessary and sufficient condition for such an unrestricted hh is that the label be constant on each fiber of OO. Whether the factor can then be learned from training data is a second question.

An anonymous message-passing network here has a constant initial state hv0=ch_v^0=c at every vertex of every input. Its deterministic layers apply shared maps MjM_j, a permutation-invariant multiset aggregator AjA_j, and a shared update UjU_j. They have the form hvj+1=Uj(hvj, Aj({ ⁣{Mj(hvj,huj):u∼v} ⁣})).h_v^{j+1}=U_j\bigl(h_v^j,\, A_j(\{\!\{M_j(h_v^j,h_u^j):u\sim v\}\!\})\bigr). The final readout is any function of the multiset of final vertex states. The maps may depend on the layer, and there is no width restriction. This definition omits vertex identities, positional encodings, persistent ordered tuples and input features derived from cycles. It is the neighbor-aggregation setting familiar from the comparison with color refinement [8, 9].

Proposition 2 (Exact loss of information on cycles). At every finite depth, the graph output of such a network on G2\mathcal G_2 factors through nn. The triangle label has no such factorization.

Proof. If all vertex states at layer jj in all graphs under consideration have the same value cjc_j, each input to AjA_j is two copies of Mj(cj,cj)M_j(c_j,c_j). Thus every next state is the same value cj+1c_{j+1}. The assertion starts at c0=cc_0=c by hypothesis. At depth dd the readout receives nn copies of cdc_d, so it can depend on nn alone. The six-cycle C6C_6 and C3⊔C3C_3\sqcup C_3 have equal nn and opposite triangle labels. This also covers depths chosen as a function of nn. ◻

In contrast the three-variable first-order sentence φ△=∃x ∃y ∃z (E(x,y)∧E(y,z)∧E(z,x))\varphi_\triangle = \exists x\,\exists y\,\exists z\, (E(x,y)\wedge E(y,z)\wedge E(z,x)) detects a triangle on every finite simple undirected graph. Simplicity forces three distinct witnesses. One can regard the satisfying triples as an invariant relation on the cube of the vertex set. Existential projection gives a truth value. Retaining the number of ordered witnesses yields tr⁡(A3)\operatorname{tr}(A^3) for adjacency matrix AA. To check the identity, expand the trace into ∑x,y,zAxyAyzAzx\sum_{x,y,z}A_{xy}A_{yz}A_{zx}. Every undirected triangle contributes six summands. A triangle can therefore be detected by either logical projection or a degree-three polynomial observation. The proposition identifies the obstruction for ordinary vertex-state propagation; it leaves open the design of efficient implementations of either richer observation.

Which distribution is being sampled?

Every finite simple 22-regular graph is a disjoint union of cycles of length at least three. If the cycle multiplicities are (mj)j≥3(m_j)_{j\ge3} and ∑jmj=n\sum j m_j=n, its automorphism group has order a(m)=∏j≥3(2j)mjmj!.a(m)=\prod_{j\ge3}(2j)^{m_j}m_j! . The dihedral symmetries of a jj-cycle contribute 2j2j choices and components of the same length can be permuted freely. Consequently its isomorphism class has n!/a(m)n!/a(m) representatives on the fixed vertex set {1,…,n}\{1,\ldots,n\}. Equal mass on labelled graphs induces mass proportional to reciprocal automorphism order on components of G2\mathcal G_2 at that order, precisely the weighting used in finite groupoid cardinality. Uniform weights on isomorphism classes generally give a different prediction problem.

Write pnp_n for the probability of a triangle in a specified fixed-order population. Under zero–one loss any classifier constant at order nn has minimum attainable risk min⁡(pn,1−pn)\min(p_n,1-p_n), by choosing a majority label. Randomizing independently of the input graph cannot improve this minimum because the risk is affine in the probability of predicting the positive class. This is the optimum across the specified architecture class since a constant predictor is feasible. With equal total mass on positive and negative graphs the risk is 1/21/2 whenever both labels occur. On six labelled vertices the stabilizer orders are 1212 for the six-cycle and 7272 for two triangles. The respective orbit sizes are 6060 and 1010. Thus uniform labelled sampling produces a minimum error of 1/71/7, whereas sampling each of the two isomorphism classes with equal probability produces an error of 1/21/2. A negative prediction on all inputs already achieves 85.71%85.71\% accuracy under the first protocol.

Exhaustive test and a learned walk statistic

The supplied Python program first enumerates every six-edge subset of the 1515 possible edges on six labelled vertices. The degree filter retains all 7070 admissible graphs among (156)=5005\binom{15}{6}=5005 candidates. It uses component search to assign a positive target when a component has size three, independently evaluates the triangle sentence by testing triples, and runs four rounds of color refinement with a shared palette across graphs. It finds exactly one histogram of vertex colors. For each order from seven through twelve the program enumerates integer partitions into cycle lengths, evaluates one graph per isomorphism class, and weights its result by n!/a(m)n!/a(m). All functions being evaluated are invariant under relabelling. The program independently checks the population totals by selecting the cycle of a distinguished vertex. If br(n)b_r(n) counts labelled graphs with every cycle of length at least r≥3r\ge3, that choice gives br(0)=1,br(n)=∑j=rn(n−1j−1)(j−1)!2br(n−j)(n>0).b_r(0)=1,\qquad b_r(n)=\sum_{j=r}^n\binom{n-1}{j-1}\frac{(j-1)!}{2} b_r(n-j)\qquad(n>0). The triangle count in the population is b3(n)−b4(n)b_3(n)-b_4(n). This recurrence checks the orbit computation without computing any automorphism groups.

Exact fixed-order triangle task under uniform labelled sampling. Error is the best possible for the anonymous network. The first-order sentence and the fitted trace test with threshold zero both make zero errors in every row.
nn Classes Labelled graphs Positive Error (%)
6 2 70 10 14.29
7 2 465 105 22.58
8 3 3,507 672 19.16
9 4 30,016 5,320 17.72
10 5 286,884 49,500 17.25
11 6 3,026,655 523,215 17.29
12 9 34,944,085 6,002,920 17.18

To measure supervised selection separately from architectural expressivity, fit a finite family of candidate rules on the 7070 labelled training graphs at order six. A candidate predicts one iff tr⁡(Aj)>t\operatorname{tr}(A^j)>t, with 1≤j≤51\le j\le5 and a nonnegative integer threshold. At each jj the largest training trace suffices as the maximum threshold searched, since larger thresholds yield the same constant negative predictions on training data. Candidates are ordered lexicographically by training errors, walk length and threshold. The code computes traces by propagating counts of walks from each starting vertex back to that starting vertex. Retaining the starting vertex supplies information unavailable to the anonymous vertex-state model in the proposition.

This fit selects j=3,t=0j=3,t=0. The first two traces are 00 and 1212 on every training graph. At length three the six-cycle has trace zero and two triangles have trace 1212. Consequently t=0,…,11t=0,\ldots,11 all give zero training error. The smallest-threshold convention selects the test equivalent to φ△\varphi_\triangle. It correctly predicts all 2929 held-out isomorphism classes at orders seven through twelve, representing 38,291,61238{,}291{,}612 labelled graphs. The polynomial identity above proves the same prediction is correct at every finite order, including on graphs outside the regularity restriction. Training alone leaves this extrapolation undetermined. Choosing the largest tied threshold t=11t=11 instead misses every graph with exactly one triangle. At order seven this alternative misses all 105105 positives out of 465465 inputs. The generator of candidates and the convention used among tied fits are therefore part of the learning claim.

The computation is a finite check of population counts, class overlap and one supervised search with a specified hypothesis class. The architecture lower bound applies to arbitrary shared layer maps by induction. The zero-risk predictor uses a richer observation whose evaluation explicitly relates the two endpoints of a walk. No optimization or timing comparison is needed to distinguish those two sources of error.

When can a relational learner choose a witness?

A graph can contain an edge even when its symmetries prevent a learner from singling out either endpoint. For a constrained predictor, this distinction affects both the output representation and the loss. A binary label can report that a feasible output exists. A solver returning an actual candidate must additionally specify how that candidate transforms when the vertices are renamed. The action-groupoid calculation in the companion manuscript [1] gives a criterion for the latter task.

Two selection criteria

Let C\mathcal C be a small groupoid of finite relational structures and isomorphisms, with any observed features included in the signature. One can restrict to structures on finite initial segments of the natural numbers to control size. Let W:C→FinSetW:\mathcal C\to\mathrm{FinSet} assign the finite set of admissible outputs to each input, transporting an output along an isomorphism by relabeling. For example, W(X)W(X) might be the set of tuples satisfying a fixed first-order formula in XX, or the set of all global orientations satisfying specified constraints. The Boolean decision e(X)=1W(X)≠∅e(X)=\mathbf{1}_{W(X)\ne\varnothing} is invariant under isomorphism. Restrict to the full subgroupoid of inputs where e(X)=1e(X)=1. A deterministic witness rule is a natural transformation 1⇒W1\Rightarrow W, where 11 assigns a singleton to every input. In concrete terms, wY=W(f)wX(f:X⟶∼Y).w_Y=W(f)w_X\qquad(f:X\overset{\sim}{\longrightarrow}Y). The same equation defines an equivariant prediction when outputs are attached to the entities of the input.

Proposition 3 (Stabilizer test for witness selection). Choose representatives RR of the isomorphism classes of feasible inputs and put HR=Aut⁡(R)H_R=\operatorname{Aut}(R). Evaluation on representatives gives a bijection Nat⁡(1,W)≅∏[R]W(R)HR.\operatorname{Nat}(1,W)\cong\prod_{[R]} W(R)^{H_R}. In particular, subject to ordinary set-theoretic choice, a natural rule exists exactly when every representative has an admissible output fixed by its whole automorphism group.

Proof. Naturality for each automorphism forces wRw_R to belong to the fixed set. Conversely, given one fixed element per representative, choose an isomorphism f:R→Xf:R\to X and set wX=W(f)wRw_X=W(f)w_R. If f′f' is a second such isomorphism, f−1f′f^{-1}f' fixes wRw_R and the two definitions agree. Composing ff with any isomorphism out of XX verifies naturality. These constructions are inverse. ◻

Existence in this result is semantic. Computing a rule efficiently or learning it from finitely many observations requires additional information about the input class and the training distribution.

For a finite set DD, let Δ(D)\Delta(D) denote its probability simplex, with pushforward on bijections. A randomized policy is a natural transformation 1⇒ΔW1\Rightarrow\Delta W. Naturality states an equality of probability laws. For each RR, decompose W(R)W(R) into HRH_R-orbits. Invariance requires equal point probabilities within each orbit OO. Writing aOa_O for its total mass, we obtain the exact parameterization pR(w)=aO∣O∣(w∈O),aO≥0,∑OaO=1.p_R(w)=\frac{a_O}{|O|}\quad(w\in O), \qquad a_O\geq 0,\quad \sum_O a_O=1. Conversely these equations give an invariant measure, and transport defines the policy on all isomorphic inputs by the same proof as Proposition 3. The full policy space is the product over input classes of the simplices Δ(W(R)/HR)\Delta(W(R)/H_R). In a single factor the extreme points are uniform laws on single orbits. For a deterministic natural policy each factor is an extreme point supported on an orbit of size one. All nonempty finite fibers admit a randomized policy, including the uniform law on the entire fiber. Probabilistic equivariance for learned functions has a broader representation theory [13].

An oriented edge and a cyclic orientation

Take an unmarked triangle X=K3X=K_3. Its automorphism group S3S_3 acts transitively on the six oriented edges (i,j)(i,j) with i≠ji\ne j. Existence of an oriented edge is invariant and true. No oriented edge is a natural deterministic output, and the only equivariant law is uniform on the six. For a permutation-equivariant network returning six edge logits, the equation for automorphisms forces all six logits to coincide on this input. An argmax routine which returns the first maximizer in storage order introduces a dependence on the serialization. Permutation-equivariant graph layers are concrete architectures in which the score constraint applies [18].

Change the desired output to a cyclic orientation of the entire triangle, so each vertex must have exactly one incoming and one outgoing edge. There are two allowed orientations. A transposition exchanges them, while a three-cycle fixes each. The unique equivariant policy puts probability 1/21/2 on each complete cycle. It can be sampled by first selecting a uniform oriented edge (i,j)(i,j), then taking the unique cyclic orientation containing i→ji\to j. Each of the two cycles is obtained from three of the six choices. This construction couples all three edge decisions through one random choice. Each edge marginal is fair. Sampling the three orientations independently from those same fair marginals gives eight equiprobable orientations, of which only two are cycles. Its feasibility probability is 1/41/4. Thus a relabeling-invariant joint distribution can still violate the constraints, even with all the edge marginals correct.

There is also a distinction between equivariance in law and consistent sampling across different presentations. To sample once and relabel that same realization, push the chosen oriented edge along the specified permutation and complete the cycle after transport. Two independent calls on isomorphic inputs have the correct marginal laws but need not return corresponding cycles. Requiring a deterministic rule at every value of a shared scalar seed that is held fixed under all relabelings would reintroduce Proposition 3 at each seed. Coupled randomness on the vertices, with the random marks transported when the graph is relabeled, provides a different implementation. Independent continuous marks from the same distribution give a uniformly random ordering almost surely, whose first two vertices give the uniform oriented edge.

What supervision identifies

Training on random permutations can encourage equal scores on equivalent presentations. It cannot supply a fixed point of the stabilizer when the admissible output has none. Indeed augment a single triangle with a designated oriented edge by all six vertex permutations, transporting the target each time. Every augmented input has the same adjacency matrix, and all six distinct targets appear once. Under log loss on a categorical distribution the unique optimal prediction on this augmented sample is uniform, with mean loss log⁡6\log 6 in natural units. The best deterministic single-edge guess on that balanced sample has accuracy 1/61/6. If the declared task accepts any oriented edge, each sample from the uniform policy is feasible with probability one. Accuracy against a designated hidden edge and feasibility measure different tasks.

For a general finite example, suppose the target conditional law at an observed representative RR gives probabilities q(w)q(w) to the admissible labels. If an equivariant classifier is evaluated by conditional log loss, minimizing over its orbit masses gives aO=∑w∈Oq(w)a_O=\sum_{w\in O}q(w). Indeed the expected loss equals −∑Oq(O)log⁡aO+∑Oq(O)log⁡∣O∣-\sum_O q(O)\log a_O+\sum_O q(O)\log |O|, and the second term is constant. This shows which information can survive equivariance during training: supervision determines the mass allocated to different orbits, while the predictor must average distinctions within each orbit. The formula concerns an ideal unrestricted conditional rule and makes no assumption about convergence of a particular network optimizer.

Observed information can change the stabilizer. A marked starting vertex leaves an automorphism swapping the two remaining vertices, so it still fails to select a unique outgoing edge there. A marked ordered pair of distinct vertices determines an oriented edge immediately. In a supervised application one should specify whether such marks are observed at inference, inferred from other observed relations, or confined to the labels. Asymmetric observed attributes can identify a designated output. Labels depending on unobserved variables may instead require modeling their conditional distribution. The groupoid criteria govern exactly the symmetries of the observed representation and impose no assumption that the real conditional distribution is symmetric when the data collection process favors particular labels or presentations.

The price of a deterministic equivariant decision

The information loss from a representation and the symmetry constraint on an output can be measured in the same units. This matters when a baseline score reflects both. The following result permits multiclass labels on which the symmetry group acts. It allows any finite features, including definable tests closed under the action. Use zero-one loss throughout this section.

Let a finite group GG act on finite sets X,Z,YX,Z,Y. The random input, its observation and the label are denoted X\mathbf X, Z=q(X)\mathbf Z=q(\mathbf X) and Y\mathbf Y. Suppose q:X→Zq:X\to Z is equivariant and the joint law of (X,Y)(\mathbf X,\mathbf Y) is invariant under the simultaneous action. Restrict attention to the support on the input and observation spaces. Write pz(y)=Pr⁡(Y=y∣Z=z)p_z(y)=\Pr(\mathbf Y=y\mid\mathbf Z=z), Hz={g:gz=z}H_z=\{g:gz=z\}, and let m[z]m_{[z]} be the probability of the entire orbit of zz. Use R∗(V)R^*(V) for unrestricted optimal classification error given VV. An equivariant randomized rule assigns a distribution on YY to each observation, with randomization conditionally independent of the label. A deterministic equivariant rule assigns a single label.

Theorem 4 (Information loss and deterministic selection). An equivariant randomized rule attains R∗(Z)R^*(Z). A deterministic equivariant rule on the support exists precisely when each YHzY^{H_z} is nonempty. Under this condition, its optimal risk Rdet,eq∗(Z)R^*_{\rm det,eq}(Z) satisfies Rdet,eq∗(Z)−R∗(X)=(R∗(Z)−R∗(X))+∑[z]m[z](max⁡y∈Ypz(y)−max⁡y∈YHzpz(y)).\begin{aligned} R^*_{\rm det,eq}(Z)-R^*(X) ={}& \bigl(R^*(Z)-R^*(X)\bigr)\\ &+\sum_{[z]}m_{[z]} \left(\max_{y\in Y}p_z(y)-\max_{y\in Y^{H_z}}p_z(y)\right). \end{aligned} Both summands are nonnegative. The second vanishes precisely when each observed orbit has a posterior maximizer fixed by its stabilizer.

Proof. Invariance and equivariance imply pgz(gy)=pz(y)p_{gz}(gy)=p_z(y), so the maximizers at zz form an HzH_z-invariant nonempty subset of YY. Their uniform law transports to all observations in the orbit and attains success probability max⁡ypz(y)\max_y p_z(y). No conditional randomized rule can improve on that maximum, since its success is a convex combination of the pz(y)p_z(y). For a deterministic equivariant rule its value at zz must lie in YHzY^{H_z}; every such value extends uniquely to a rule on that orbit. Thus its best conditional success probability is the second maximum. Summing the difference of success probabilities over the orbits gives the correction term. Any decision obtainable from ZZ is obtainable by first computing qq from XX, proving R∗(X)≤R∗(Z)R^*(X)\le R^*(Z). Since orbit masses are positive, equality in the correction is exactly the stated condition. ◻

Example 5 (A hidden mark and an observed abstention label). Choose a marked vertex of a labeled triangle uniformly. The full input contains the mark. With probability 9/109/10 the recorded target is the marked vertex, and with probability 1/101/10 it is a fourth label ⊥\bot. Predicting ⊥\bot is judged by the same zero-one loss as predicting a vertex. The observation qq erases the mark, so the resulting triangle has symmetry group S3S_3. This group permutes the three vertex labels and fixes ⊥\bot.

With the mark present, predicting it has error 1/101/10. After erasure the three vertex labels each have probability 3/103/10, so an equivariant policy that picks a uniform vertex has error 7/107/10. A deterministic equivariant policy can output only ⊥\bot. Its error is 9/109/10. The 8/108/10 total excess splits into 6/106/10 from erasing the input mark and 2/102/10 from deterministic selection. The latter cost would disappear for a task scored solely on feasibility of an allowed action that included ⊥\bot. The target distribution and loss are therefore as important as the symmetry.

If the data law favors an external numbering that is absent from the declared structure, the conditional posterior need not be constant on stabilizer orbits. Then the uniform-on-maximizers step can fail. Predictions on a symmetrized training distribution answer a different decision problem, a distinction that can be checked directly by counting the transported labels. The theorem also does not equate a mathematical optimum with the test error of a fitted network. The graph experiment computes an optimum for an explicitly specified distribution and then separately tests an actual readout.

Four models and a consistency check for pairwise channel matches

Consider four local dictionaries, each with two channels. Suppose a separate matcher has reported a bijection for every pair. After choosing a temporary order for the channels in each dictionary, encode the matching by an edge bit sijs_{ij}: zero preserves the order and one swaps it. Pairwise comparisons may be the only available evidence when the original data cannot be pooled. Does there exist one common labeling compatible with all six reports? Multiway permutation synchronization studies this question with larger permutation groups [16]. Permuting hidden units and compensating in adjacent weight tensors is also the basis of weight-matching methods for neural networks [17]. Here we resolve the finite consistency problem exactly, including which noisy observations leave an ambiguous reconstruction.

Counting globally compatible matchings

A candidate common labeling assigns ti∈F2t_i\in\mathbb F_2 to each vertex. The predicted match on edge ijij is cij=tj−ti=tj+tic_{ij}=t_j-t_i=t_j+t_i. Complementing every label leaves those predictions unchanged. Conversely equal predictions force the difference of the label assignments to be constant, by connectedness. The map therefore has image a binary linear code CC of length six and size 24/2=82^4/2=8. Without further measurements the global ordering of the two labels remains arbitrary. Reordering local dictionary ii changes the bits of all incident edges; transporting the candidate labels along that change gives the same intrinsic synchronization problem.

Each triangle gives a parity check σijk(s)=sij+sjk+sik.\sigma_{ijk}(s)=s_{ij}+s_{jk}+s_{ik}. If s=cs=c comes from vertex labels, each vertex occurs twice in this sum. Conversely, fix t0=0t_0=0, set tj=s0jt_j=s_{0j}, and use the triangles containing vertex 00 to obtain sij=ti+tjs_{ij}=t_i+t_j on every remaining edge. Therefore all triangles have even parity exactly when a global labeling exists. This is the same boundary equation as the independent triangle in the companion monograph [1]. Here the comparison maps are supplied by the channel matcher. No assumptions about first-order saturation or independence enter the proof. On a general graph a labeling exists exactly when the sum around every cycle vanishes: propagate from one base vertex in each connected component along a spanning tree and check the omitted edges. A square whose edges carry one swap passes every triangle test vacuously and fails its four-cycle test.

Noise, correction and ties

A nonconstant vertex labeling with rr ones gives a cut of size r(4−r)r(4-r). For r=1,2,3r=1,2,3 these weights are 3,4,33,4,3, so the minimum Hamming distance between distinct codewords is three. A single flipped comparison has a unique nearest codeword. Indeed the true assignment is at distance one, and any competing assignment at distance at most one would be at most two away from the truth. Additional errors can move the received word closer to a different assignment, even when the nearest assignment is unique.

Write the syndrome as the four triangle parities in lexicographic order of their triples. Its total sum is zero, since each edge belongs to two triangles. One flipped edge toggles exactly the two checks belonging to those triangles; any pair of distinct triangles shares exactly one edge. The six syndromes with two nonzero checks therefore identify six possible single-edge corrections. The all-ones syndrome can be produced by flipping the edges of any perfect matching. Each of its four triangles then contains exactly one flipped edge. An adjacent edge pair would toggle their shared triangle twice, so only the three perfect matchings are minimum-weight corrections of that syndrome. Each syndrome is a coset of the eight-element kernel CC. This reasoning gives an exhaustive table.

Triangle parities Words Nearest distance Nearest codewords
All zero 8 0 1
Exactly two nonzero 48 1 1
All four nonzero 8 2 3

Assume that each edge observation is independently flipped with the same probability 0<p<1/20<p<1/2. For a candidate c∈Cc\in C, the likelihood of a received word at distance dd is pd(1−p)6−dp^d(1-p)^{6-d}. It decreases with dd, so maximum likelihood chooses a nearest codeword. With uniformly random tie breaking the probability of exact recovery for any fixed true codeword is (1−p)6+6p(1−p)5+p2(1−p)4.(1-p)^6+6p(1-p)^5+p^2(1-p)^4. The first two terms account for zero and one errors. Among the double errors, only the three perfect matchings leave the true word at minimum distance, and each such tie selects it with probability 1/31/3. No larger error has minimum distance since the table gives covering radius two.

The accompanying Python experiment enumerates all sixteen vertex labelings and all sixty-four received words, computes the syndromes, and compares every received word against all eight compatible assignments. It confirms all forty-eight single-error corrections and the eight three-way ties. Summing the likelihoods over the finite experiment gives exact-recovery probability 0.8922960.892296 at p=0.1p=0.1, up to displayed rounding. This benchmark isolates a source of uncertainty in synchronizing channel names. A consistent set of matches still requires separate evidence that the channels correspond functionally and that a proposed parameter merge preserves predictive performance.

When does an optimizer act on represented functions?

Consider a bias-free network with one hidden rectifier and one scalar output. Write x+=max⁡(0,x)x_+=\max(0,x) and restrict the parameter space to P=(0,∞)2P=(0,\infty)^2. The prediction is fu,v(x)=v(ux)+=uv x+.f_{u,v}(x)=v(ux)_+=uv\,x_+ . The parameter group G=(R>0,⋅)G=(\mathbb R_{>0},\cdot) acts by c(u,v)=(cu,v/c)c(u,v)=(cu,v/c). Each orbit is a level set of q(u,v)=uvq(u,v)=uv, and the coefficient can be read from f(1)f(1). Thus the quotient Q=(0,∞)Q=(0,\infty) parameterizes all the represented functions in this chart. The action is free. The section p↦(p,p)p\mapsto(\sqrt p,\sqrt p) exhibits PP as a trivial principal GG-bundle over QQ. This is a particularly simple case of the orbit constructions in the model-theoretic companion [1]. Here the comparison can be tested against an actual training operation. Positive rescaling of hidden units and its consequences for optimization are classical in the neural network literature [11, 12].

A criterion for an update to descend

Let UU be a deterministic one-step update on parameters. An induced update U‾\overline U on QQ would have to satisfy qU=U‾qqU=\overline Uq wherever training stays in the chart. Such an update exists precisely when qUqU is constant along each orbit in the domain; the quotient map then defines U‾\overline U uniquely on its image. For a partial update to specify an intrinsic domain of admissible steps on QQ, its domain in PP must also be a union of entire orbits. A sufficient condition is equivariance on an invariant domain: U(cθ)=cU(θ)U(c\theta)=cU(\theta). Given equivariance, the update even determines an endofunctor on the action groupoid when it is everywhere defined. Send the arrow labeled cc on θ\theta to the arrow with the same label on U(θ)U(\theta). This comparison retains the specific rescaling carrying one representation to the other.

For data (xi,yi)i=1N(x_i,y_i)_{i=1}^N, write ai=(xi)+a_i=(x_i)_+ and use half the mean squared error. For p=uvp=uv define L(p)=12N∑i(pai−yi)2,g(p)=L′(p)=Hp−b,L(p)=\frac1{2N}\sum_i (pa_i-y_i)^2,\quad g(p)=L'(p)=Hp-b, where H=N−1∑iai2H=N^{-1}\sum_i a_i^2 and b=N−1∑iaiyib=N^{-1}\sum_i a_i y_i. All representatives yield the same objective. The pullback of the differential g(p) dpg(p)\,dp is g(p)(v du+u dv)g(p)(v\,du+u\,dv). Turning this covector into a vector by the Euclidean metric on PP gives the usual simultaneous update u′=u−ηvg(p),v′=v−ηug(p).u'=u-\eta v g(p),\qquad v'=v-\eta u g(p). It induces the following product whenever the new parameters are positive: u′v′=p−η(u2+v2)g(p)+η2p g(p)2. u'v'=p-\eta(u^2+v^2)g(p)+\eta^2 p\, g(p)^2. The coefficient u2+v2u^2+v^2 ranges from 2p2p to arbitrarily large values on the same orbit. At an interior point where g(p)≠0g(p)\ne0, take two representatives with different such coefficients and choose η>0\eta>0 small enough to keep both updates inside PP. Their updated values at x=1x=1 differ. Therefore no map on the represented functions computes these two steps. The discrepancy occurs at first order in the learning rate. Passing to a differential equation in time leaves it in the projected equation p˙=−(u2+v2)g(p)\dot p=-(u^2+v^2)g(p).

One can also quantify the change in numerical conditioning at a least-squares minimizer p⋆=b/H>0p_\star=b/H>0, assuming H>0H>0. There the parameter Hessian is H(v,u)T(v,u)H(v,u)^{\mathsf T}(v,u) with eigenvalues 00 and H(u2+v2)H(u^2+v^2). The zero eigenvector is tangent to the orbit. The linearized parameter step has transverse multiplier 1−ηH(u2+v2)1-\eta H(u^2+v^2). Transverse perturbations decay to first order if 0<ηH(u2+v2)<20<\eta H(u^2+v^2)<2. Since the second factor can grow without bound, no fixed positive step satisfies this linear condition uniformly over all representatives of the optimum. The varying finite eigenvalue gives a more informative comparison in this example than a formal condition number of the singular Hessian.

An equivariant lift of coefficient descent

Equip the coefficient half-line with its Euclidean metric dp2dp^2, and set p′=p−ηg(p)p'=p-\eta g(p). For p′>0p'>0, define Uη(u,v)=(su,sv),s=p′/p. U_\eta(u,v)=(su,sv),\qquad s=\sqrt{p'/p}. Its product is s2p=p′s^2p=p', and its ratio u/vu/v is unchanged. The ratio chooses how the two factors divide the change in log⁡p\log p: each undergoes the same log-increment. Both pp and p′p' are constant along orbits, so the same multiplier is used on c(u,v)c(u,v). Equation (2) commutes exactly with rescaling and descends to the requested coefficient update. This also explains how to implement it without first converting the weights of each network to a canonical representative. A different quotient coordinate or a different metric on QQ generally specifies a different step. The equivalence relation alone supplies no optimizer.

There is a metric construction behind this finite lift. Introduce the real coordinate z=12log⁡(u/v)z=\tfrac12\log(u/v), so that (u,v)=(p ez,p e−z)(u,v)=(\sqrt{p}\,e^z,\sqrt{p}\,e^{-z}). A group element cc acts by translation z↦z+log⁡cz\mapsto z+\log c. The product metric dp2+dz2dp^2+dz^2 is therefore invariant, and the negative gradient of LL in these coordinates is (−g(p),0)(-g(p),0). Updating in (p,z)(p,z) and then converting back to the weights gives precisely (2). The corresponding infinitesimal parameter velocities are −g/(2v)-g/(2v) and −g/(2u)-g/(2u). Applying an additive Euler step to these latter velocities also gives an equivariant rule on its positive domain, but its product contains the extra term η2g2/(4p)\eta^2g^2/(4p). The choice of coordinates for the finite step has a measurable effect even when both choices respect the symmetry. Our numeric experiment uses the exact lifted coefficient update.

For a stochastic variant, let BB be a random batch and substitute its gradient gB(p)g_B(p) for g(p)g(p). Run two equivalent representatives with identical sampled batches. If both begin in the positive chart, their proposed coefficient and admissibility test agree at every step by induction. With a batch law independent of the representation, even separately sampled runs induce the same transition law on QQ. Indeed, for a Borel set D⊆QD\subseteq Q the probability of the event p−ηgB(p)∈Dp-\eta g_B(p)\in D depends only on pp. An exit can be recorded as a common absorbing outcome. This argument requires the batch law itself to depend only on data and quotient state. A scheduler choosing batches from the magnitude of the first-layer weight can break the condition even for an equivariant per-batch update.

In a quadratic problem with H>0H>0 and p⋆>0p_\star>0, the coefficient recurrence is exact: pk=p⋆+(1−ηH)k(p0−p⋆).p_k=p_\star+(1-\eta H)^k(p_0-p_\star). In particular 0<ηH≤10<\eta H\leq1 keeps every iterate between p0p_0 and p⋆p_\star and preserves positivity. The larger interval 0<ηH<20<\eta H<2 ensures contraction on the full real line, but for a positive chart an overshoot can already invalidate the first lift. At a zero product the square-root ratio is undefined, and networks with zero input weight can also change their activation pattern. The construction is specific to a positive chart on which the coefficient identifies the represented function. A large network may have several paths sharing edges. Adjusting every path coefficient independently can violate the consistency constraints imposed by those edges. Path-normalized methods address rescaling of shared parameters in that setting [11].

Six equivalent initializations

Take the training inputs (−2,−1,0,1,1,2)(-2,-1,0,1,1,2), where the repeated 11 is counted twice. Take the held-out inputs (−4,−3,1/2,3/2,3)(-4,-3,1/2,3/2,3) and set each label to (3/2)x+(3/2)x_+. Then H=1H=1, p⋆=3/2p_\star=3/2 for training, and the held-out mean of x+2x_+^2 is 23/1023/10. Hence half the mean squared error on held-out inputs is (23/20)(p−3/2)2(23/20)(p-3/2)^2. Distinct inputs test that the implemented networks continue to agree away from the training sample. Since all labels come from the same realizable one-parameter family, these two loss values are proportional; this construction measures dependence on parameterization, without sampling uncertainty.

Initialize at (u0,v0)=(c,1/(2c))(u_0,v_0)=(c,1/(2c)) for six choices of cc. All have p0=1/2p_0=1/2, training loss 1/21/2 and held-out loss 23/2023/20. Apply sixteen full-batch updates of size η=1/8\eta=1/8 and stop an individual run if a proposed pair first exits the chart. The first Euclidean product is exactly 12+18(c2+14c2)+1128.\frac12+\frac18\left(c^2+\frac{1}{4c^2}\right)+\frac1{128}. In contrast the first lifted product is 5/85/8 at every scale. The table reports the ordinary Euclidean results. A dash denotes a trajectory that had already exited. The held-out numbers are rounded.

cc p1p_1 p16p_{16} held-out loss, step 16
1/21/2 0.664060.66406 1.4984111.498411 2.91×10−62.91\times10^{-6}
11 0.664060.66406 1.4984111.498411 2.91×10−62.91\times10^{-6}
22 1.015631.01563 1.5000001.500000 2.24×10−132.24\times10^{-13}
33 1.636281.63628 1.5000001.500000 8.74×10−268.74\times10^{-26}
44 2.509772.50977 1.3848471.384847 0.015250.01525
88 8.508308.50830 — —

The initializations c=1/2c=1/2 and c=1c=1 exchange the two scalar factors; Euclidean updates have the same exchange symmetry in this chart. Changing to c=3c=3 gives an overshoot followed by rapid approach to the optimum. Increasing to c=4c=4 makes the coefficient alternate between 2.509772.50977, 0.465110.46511, 2.479532.47953 and 0.556160.55616 in its first four steps. At c=8c=8 the output weight becomes negative on the second step; the table consequently makes no step-sixteen claim for that row. The Euclidean runs at several scales attain a smaller held-out loss at step sixteen than the quotient update. A common trajectory under all representations and a faster trajectory at a single representation are separate objectives.

For the lifted update, p4=0.913818p_4=0.913818, p8=1.156391p_8=1.156391 and p16=1.381933p_{16}=1.381933 to six decimal places. The final training and held-out losses are 0.0069700.006970 and 0.0160310.016031, respectively. The largest spread between the six computed coefficients at any of the seventeen recorded time indices was 4.45×10−164.45\times10^{-16} or less. Equation (2) proves that the corresponding exact spread is zero. The supplied standard-library Python program differentiates the network directly for the Euclidean step, calculates both losses on their input lists, checks the Euclidean first step against rational arithmetic, and checks every lifted iterate against the closed form. Its JSON output records every in-chart weight pair and the first rejected pair where applicable. A finite numerical test can expose failure of descent, while the equivariance identity establishes it for every positive representative and every admissible coefficient step.

Training on identical data after rescaling the same initial ReLU function. Left, selected Euclidean trajectories and the common quotient trajectory. Right, the first update across all six scales. The trajectory at c=8c=8 leaves the positive chart on the second step.

Interpretation and reproducibility

A classifier, a selector and an optimizer need different tests of invariance. To test a classifier, hold the observations fixed and change admissible labels: the conflicting conditional masses bound the best possible predictive accuracy. To test a selector, fix one observed object and find the permutations that preserve it: a deterministic answer must be fixed by every such permutation. To test an optimizer, take two parameter values already known to give the same function, run one step on identical data, and compare their next functions. One counterexample rules out descent of that update. For a collection of independently chosen channel matchings, agreement must also survive composition around loops. These checks use a specified group, observation language, data distribution and loss.

Scope of the evidence.

The graph census includes only finite simple two-regular graphs and explicitly weights isomorphism classes to model uniformly labeled graphs. Unique identifiers, positional embeddings, higher-order message passing or subgraph features change the observation class. The held-out walk calculation checks the behavior of a fitted classifier across sizes in this family. The theorem about tr⁡(A3)\operatorname{tr}(A^3) explains the successful extension; a second empirically optimal rule quantifies the ambiguity left by the training set. The channel matching experiment starts from prescribed pairwise assignments. The ReLU experiment compares parameter dynamics within a single positive chart on one neuron. It provides an exact counterexample to descent and an equivariant alternative there. These computations give neither a natural-data accuracy estimate nor a speed comparison for large neural networks.

Reproducible artifacts.

The source archive contains the three experiment programs, their machine-readable outputs, an exact-rational check of Theorem 4’s example, and the program that plots the training trajectories. The three experiment programs and the risk check use the Python standard library. A supplied vector figure permits building the manuscript without plotting dependencies. The graph program enumerates labeled inputs at order six, then generates representatives and orbit weights for higher orders. The matching program exhausts all six-bit observations. The optimizer program records both parameter trajectories and held-out losses until chart exit. The mathematical claims beyond these enumerations follow from the proofs in the text.

Authorship.

Prepared anonymously at the commissioning researcher’s request with OpenAI assistance in derivation, implementation, manuscript preparation and checking. The accompanying paper on first-order model theory supplies the background constructions; the definitions, risk calculations, experimental protocols and proofs needed here are included in this paper.

References

  1. Anonymous. Models and Their Symmetries: A Higher-Categorical Development of First-Order Model Theory. Unpublished companion manuscript, under editorial review at Higher Categorical Semantics, 2026.

  2. D. Marker. Model Theory: An Introduction. Graduate Texts in Mathematics 217, Springer, 2002.

  3. M. Anthony and P. L. Bartlett. Neural Network Learning: Theoretical Foundations. Cambridge University Press, 1999.

  4. W. Hoeffding. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association 58 (1963), 13–30.

  5. V. N. Vapnik and A. Ya. Chervonenkis. On the uniform convergence of relative frequencies of events to their probabilities. Theory of Probability and Its Applications 16 (1971), 264–280.

  6. M. C. Laskowski. Vapnik–Chervonenkis classes of definable sets. Journal of the London Mathematical Society (2) 45 (1992), 377–384.

  7. P. Simon. A Guide to NIP Theories. Lecture Notes in Logic 44, Cambridge University Press, 2015.

  8. K. Xu, W. Hu, J. Leskovec and S. Jegelka. How powerful are graph neural networks? International Conference on Learning Representations, 2019.

  9. C. Morris, M. Ritzert, M. Fey, W. L. Hamilton, J. E. Lenssen, G. Rattan and M. Grohe. Weisfeiler and Leman go neural: Higher-order graph neural networks. Proceedings of the AAAI Conference on Artificial Intelligence 33 (2019), 4602–4609.

  10. M. Grohe. The logic of graph neural networks. 36th Annual ACM/IEEE Symposium on Logic in Computer Science, 2021, 1–17.

  11. B. Neyshabur, R. Salakhutdinov and N. Srebro. Path-SGD: Path-normalized optimization in deep neural networks. Advances in Neural Information Processing Systems 28, 2015.

  12. L. Dinh, R. Pascanu, S. Bengio and Y. Bengio. Sharp minima can generalize for deep nets. Proceedings of the 34th International Conference on Machine Learning, PMLR 70 (2017), 1019–1028.

  13. B. Bloem-Reddy and Y. W. Teh. Probabilistic symmetries and invariant neural networks. Journal of Machine Learning Research 21(90) (2020), 1–61.

  14. R. Cornish. Stochastic neural network symmetrisation in Markov categories. arXiv:2406.11814, 2024.

  15. B. Fong, D. I. Spivak and R. Tuyéras. Backprop as functor: A compositional perspective on supervised learning. 34th Annual ACM/IEEE Symposium on Logic in Computer Science, 2019, 1–13.

  16. D. Pachauri, R. Kondor and V. Singh. Solving the multi-way matching problem by permutation synchronization. Advances in Neural Information Processing Systems 26, 2013.

  17. S. Ainsworth, J. Hayase and S. Srinivasa. Git Re-Basin: Merging models modulo permutation symmetries. International Conference on Learning Representations, 2023.

  18. H. Maron, H. Ben-Hamu, N. Shamir and Y. Lipman. Invariant and equivariant graph networks. International Conference on Learning Representations, 2019.

Complete flattened LaTeX source
\documentclass[11pt,letterpaper]{article}
\usepackage[margin=1.02in,top=.9in,bottom=.95in,headheight=15pt]{geometry}

\usepackage[T1]{fontenc}

\usepackage{lmodern,amsmath,amssymb,amsthm,mathtools,graphicx,booktabs,array,tabularx,xcolor,tikz,microtype,fancyhdr,titlesec,enumitem}

\usetikzlibrary{positioning,arrows.meta}
\definecolor{ink}{HTML}{174C59}
\definecolor{pale}{HTML}{EFF5F4}
\definecolor{grayink}{HTML}{475860}
\usepackage[unicode,colorlinks=true,linkcolor=ink,citecolor=ink,urlcolor=ink]{hyperref}

\hypersetup{pdftitle={What a Learner Can Distinguish},pdfauthor={Anonymous},pdfsubject={Definable observations, equivariant decisions, and optimization}}
\titleformat{\section}{\Large\sffamily\bfseries\color{ink}}{\thesection}{.55em}{}
\titleformat{\subsection}{\large\sffamily\bfseries}{\thesubsection}{.55em}{}
\titlespacing*{\section}{0pt}{2.2ex}{.9ex}
\titlespacing*{\subsection}{0pt}{1.7ex}{.7ex}
\pagestyle{fancy}\fancyhf{}
\fancyhead[L]{\small\sffamily\color{grayink}What a Learner Can Distinguish}
\fancyhead[R]{\small\sffamily\color{grayink}\thepage}
\renewcommand\headrulewidth{.25pt}
\setcounter{tocdepth}{1}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{definition}\newtheorem{example}[theorem]{Example}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{remark}[theorem]{Remark}
\setlength\emergencystretch{1.5em}\raggedbottom\frenchspacing
\begin{document}\thispagestyle{empty}
\noindent{\sffamily\small\color{ink} RESEARCH ARTICLE}\par\vspace{10pt}
{\noindent\bfseries\fontsize{29}{33}\selectfont What a Learner Can Distinguish\par}
\vspace{4pt}
{\noindent\Large Definable observations, equivariant decisions, and optimization\par}
\vspace{8pt}\noindent{\sffamily Anonymous}\par\vspace{10pt}
\noindent\textbf{Abstract.}
A representation partitions the inputs that a learner can observe; it also determines the symmetries that any equivariant output must respect. We derive a finite decision-risk decomposition that separates information lost by the observation map from the additional cost of requiring a deterministic equivariant decision. In a marked-triangle task these penalties are $0.60$ and $0.20$. We test the distinction on simple two-regular graphs: at six vertices every anonymous message-passing classifier with constant node features has error at least $1/7$ under the uniform labeled law. A short closed-walk test learned at six vertices classifies all cycle types through twelve vertices, while another training-optimal threshold fails. Two further experiments compute when pairwise channel alignments glue and when a ReLU optimization step descends to functionally equivalent parameterizations. All reported calculations are reproducible on a CPU.\par
\vspace{5pt}\noindent\textbf{Keywords.} Model theory, equivariance, graph neural networks, decision theory, weight-space symmetry.\par
\section{What information does the learner receive?}
Two labeled presentations of a graph can encode the same input. If the target is a class label, they should receive the same prediction. If the target is an edge, a permutation of the vertices must transport the answer. If no edge is fixed by every automorphism of the input, selecting one creates a further problem, even with perfect knowledge of the graph. A similar question arises inside a learner: two sets of weights can define the same function today and different functions after a gradient step tomorrow.

Our point of departure is the distinction in first-order model theory between satisfaction, realizations and their transport \cite{marker,companion}. An observation of finitely many formulas records a finite part of a complete type. Passing from a tuple to that record merges all tuples that give the same answers. Passing instead to the groupoid of presentations and isomorphisms keeps the automorphisms of a representative. These two constructions answer different questions for a learner. A cell of observations determines a conditional label law and hence a best achievable risk. An automorphism group constrains which structured outputs can be selected consistently. The paper uses ordinary sets, groupoids and finite probability for these tasks. The homotopy information used here is principally at the groupoid level, together with the compatibility of comparison maps around triangles.

\begin{center}
\small\renewcommand{\arraystretch}{1.12}
\begin{tabularx}{\linewidth}{@{}>{\raggedright\arraybackslash}p{.22\linewidth}>{\raggedright\arraybackslash}X>{\raggedright\arraybackslash}X@{}}
\toprule
\textbf{Application}&\textbf{Map or data}&\textbf{Measured obstruction}\\\midrule
Graph classification & graph to message-passing observations & mixed positive and negative labels within a single cell\\
Relational prediction & structured input to an admissible output & stabilizer moves every proposed deterministic witness\\
Matching model components & pairwise identifications of channels & nonzero parity on a triangle of identifications\\
Training dynamics & positive ReLU parameters to their path coefficient & equal initial functions take different gradient steps\\
\bottomrule
\end{tabularx}
\end{center}

The graph example specializes established expressivity bounds for message-passing networks \cite{xu,morris,grohe}. Learning from definable families connects to the equivalence between finite VC dimension and the absence of the independence property for a fixed formula \cite{ltm}. The constraint on a distribution-valued output is an instance of probabilistic equivariance \cite{bloem,cornish}. Rescaling and permutation symmetries in optimization are studied in \cite{pathsgd,scale,ainsworth}. Our contribution is the decision comparison, the explicit connection to definable observation maps, and experiments in which the predicted obstructions and their dependence on the task can be calculated exactly. A category of learning algorithms can describe composition of models and training maps \cite{fong}; here we examine whether the observation, decision, or update in a single problem passes to a specified quotient.


\section{Definable observations and the cost of discarding distinctions}
\label{sec:ml-observations}

Suppose a monitoring system records whether each of several thresholds was crossed but discards the original measurements. Two records with the same bit vector become interchangeable for every downstream decision that reads only those bits. One can ask a statistical question about this quotient: how much error is forced by the observations? One can also ask a model-theoretic question: which traces of a parameterized classifier are possible on a finite set of inputs? Both questions use restrictions of types, but the coordinates held fixed and the quantities to be computed are different.

\subsection{Finite restrictions of a type}

Let $M$ be a nonempty first-order structure, take $T=\operatorname{Th}(M)$ and choose parameters $A\subseteq M$. For a finite list $\Delta$ of formulas $\delta(x)$ with parameters from $A$, form the observation
\[
 e_\Delta:M^{|x|}\longrightarrow\{0,1\}^{\Delta},\qquad
 e_\Delta(a)(\delta)=\mathbf{1}_{M\models\delta(a)} .
\]
Call its image $Q_\Delta$. Each realized bit vector $q$ corresponds to the nonempty cell defined by the conjunction of the positive or negative instances that $q$ prescribes. Every map from $M^{|x|}$ to a set of decisions that is constant on these cells factors uniquely through $Q_\Delta$: assign to $q$ the common decision on its cell. For each output label its decision region is definable over $A$ by a finite disjunction of cell formulas. If the labels form a finite definable output sort with named elements, the decision function has a definable graph. This is a factorization of a specified decision. It supplies neither the decision itself nor a method to estimate it from data.

Extending $\Delta$ gives surjections from refined to coarser observations. The inverse limit over finite fragments of the complete collection of $A$-formulas is the Stone space $S_x(A)$ if each $Q_\Delta$ has the discrete topology and the limit its inverse-limit topology. In fact each complete type selects a consistent cell at every finite stage. Its finite conjunction is realized in $M$ since its existential closure lies in the complete theory of $(M,A)$. Conversely a compatible family decides each formula consistently and respects negation and conjunction, hence defines a complete type. The space can contain points omitted by $M$. Measurements of finitely many formulas always factor through one finite stage \cite{marker,companion}.

The group $\operatorname{Aut}(M/A)$ preserves every cell, so each orbit lies inside a cell. A cell can contain many inequivalent tuples. In $(\mathbb Q,<,0,1)$ consider the only observation $x>0$. The numbers $1$ and $2$ have identical observations, whereas every automorphism fixes the named point $1$. No such automorphism exchanges them. Even agreement on all formulas identifies orbits only with additional hypotheses, such as strong homogeneity over a small parameter set in a monster model. An observation quotient by itself specifies neither transports between representatives nor their stabilizers.

\subsection{Exact binary risk under refinement}

Let $(X,Y)$ have a joint probability law, where $X$ takes values among the input tuples and $Y\in\{0,1\}$. Assume the finitely many tests are measurable. For a cell $q$ put $p_{qy}=\Pr(e_\Delta(X)=q,Y=y)$ and $d_q=p_{q1}-p_{q0}$. Define $R_\Delta^*$ to be the least probability of error of any classifier that reads only $e_\Delta(X)$. Randomized decisions may use independent random bits.

\begin{theorem}[Exact gain from a refined observation]
\label{thm:ml-refine}
For any refinement $\Delta'\supseteq\Delta$, let $\rho:Q_{\Delta'}\to Q_\Delta$ forget the additional tests. Then
\begin{align*}
 R_\Delta^*&=\sum_q\min(p_{q0},p_{q1})
                  =\tfrac12\bigl(1-\textstyle\sum_q |d_q|\bigr),\\
 R_\Delta^*-R_{\Delta'}^*
   &=\tfrac12\sum_{q\in Q_\Delta}
       \left(\sum_{\rho(r)=q}|d_r|-
                   \left|\sum_{\rho(r)=q}d_r\right|\right).
\end{align*}
The improvement is strictly positive precisely when some coarse cell contains a refined cell with $d_r>0$ and another with $d_r<0$.
\end{theorem}

\begin{proof}
On $q$ the decision zero costs $p_{q1}$ and the decision one costs $p_{q0}$. A randomized rule makes a convex combination of these contributions, minimized by a majority choice. Sum the smaller contribution over cells and use $2\min(a,b)=a+b-|a-b|$. Refinement partitions each joint event by $r$, so $d_q=\sum_{\rho(r)=q}d_r$. Subtract the two risk identities. Equality in the triangle inequality for a finite list of real numbers holds exactly when its nonzero summands have one sign. Cells of mass zero have no effect.
\end{proof}

Consider three equally likely inputs $(-1,0),(1,0),(1,1)$ with labels $0,0,1$. Write each input as $(u,v)$ and observe first the single test $u>0$. The positive cell has one example of each label and the negative cell is pure. The least error is $1/3$. Adding the test $v>0$ makes every occupied cell pure, so the gain is $1/3$. If the same inputs instead have conditional positive-label probabilities $0,\,1/4,\,2/5$, the finer observation improves the estimates of those probabilities. It gives zero gain in optimal binary decision error, because both refined positive cells have negative imbalance. Thus an increase in predictive information need not change the optimal class decision.

The theorem is exact for the specified law, including an empirical law that gives mass $1/N$ to each of $N$ recorded observations. In the latter case the formula reports optimal training error of the cell lookup table. For a fixed observation with $k$ occupied-or-possible cells, there are at most $2^k$ binary lookup rules. If $N$ labeled observations are drawn independently from the same law, Hoeffding's inequality and a union bound give, with probability at least $1-\delta$, simultaneous empirical-to-population deviations at most $\sqrt{(k\log 2+\log(2/\delta))/(2N)}$. This calculation requires a fixed observation map and a bound on its possible cells independent of the sample; substituting only the number of empirically occupied cells requires a different argument. The distinction matters when the tests themselves have been selected using the training labels \cite{anthony,vc,hoeffding}.

For applications needing calibrated probabilities, keep the same partition but change the loss. For each positive-mass cell let $p_q=p_{q0}+p_{q1}$ and $\eta_q=p_{q1}/p_q$. The conditional Brier loss of a prediction $z\in[0,1]$ is
\[
 \eta_q(1-z)^2+(1-\eta_q)z^2
   =\eta_q(1-\eta_q)+(z-\eta_q)^2 .
\]
Its unique minimizing value is $\eta_q$. If $B_\Delta^*$ denotes the resulting population squared error, one obtains a second refinement identity,
\[
 B_\Delta^*-B_{\Delta'}^*
       =\sum_{r:p_r>0}p_r(\eta_r-\eta_{\rho(r)})^2 .
\]
Indeed a coarse optimal prediction reused on each fine cell pays precisely the fine-cell excess $(\eta_r-\eta_{\rho(r)})^2$ relative to its optimum. In the second three-input example this gain equals $3/800$: the positive coarse cell has mean $13/40$ and each of its two equally weighted input points deviates by $3/40$. Both criteria give the same direction of monotonicity, while squared error decreases for every refinement that changes a conditional probability on positive mass. A loss such as log loss would measure another discrepancy between the refined probability and its coarse average.

Occurrence counts and conditional label probabilities are extra probabilistic structure on the semantic quotient. If deployment changes the input distribution, the probability attached to a fixed definable cell changes as well. Even with exactly the same joint law of the observations and the label, a refined test's gain may be undetermined: a cell with equal label masses can have a new bit independent of the label or a new bit exactly equal to it. In the first case the finer cells remain tied; in the second their imbalances have opposite signs and pure labels. No algorithm seeing only the coarse table can distinguish these two refinements.

\subsection{Fixing inputs and varying the classifier}

Let $\varphi(x;\theta)$ define binary classifiers as the parameter tuple $\theta$ varies in $M$. Hold $m$ distinct inputs $a_1,\ldots,a_m$ fixed. Now the tests apply to a candidate \emph{parameter} rather than an input: write $\Delta_D=\{\varphi(a_i;\theta):1\leq i\leq m\}$ for the indexed tests. Their realized vectors form exactly the trace set
\[
  \bigl\{(\mathbf{1}_{M\models\varphi(a_i;b)})_{i=1}^m:
            b\in M^{|\theta|}\bigr\}.
\]
Consequently $D=\{a_1,\ldots,a_m\}$ is shattered precisely when the image has $2^m$ elements. This is a surjectivity test on a finite Boolean cube. It asks about the expressibility of hypothetical labels; the labels originally observed on the sample play no role. The VC dimension of this fixed formula is the supremum of the cardinalities of such shattered finite sets. For any fixed $m$, existence of such a set is a first-order sentence: quantify the $a_i$ and one parameter $b_E$ for each $E\subseteq\{1,\ldots,m\}$, and impose the corresponding literals. All models of $T$ therefore agree on whether such a set exists. Passing to arbitrarily large finite $m$ gives exactly the independence property for the formula, by compactness \cite{ltm}. NIP means the absence of this property; a theory is NIP when each fixed partitioned formula has a finite bound of its own.

The order property is weaker than the independence property for a formula. Indeed, if arbitrarily large finite sets are shattered, among the available labelings are all successive initial segments, producing arbitrarily long half-graphs. Consequently stability implies NIP \cite{simon}. For a converse test consider the threshold $\varphi(x;\theta)=(x<\theta)$ on a dense linear order without endpoints. On $m$ distinct sorted inputs it produces exactly $m+1$ initial segments. It has VC dimension one and has the order property, witnessed by interleaving arbitrarily long increasing sequences of inputs and thresholds. The ambient theory of dense linear orders is NIP: quantifier elimination reduces each fixed formula to a Boolean combination of comparisons, and a fixed-length parameter tuple has only polynomially many order and equality patterns relative to the coordinates of $m$ input tuples. The degree of this polynomial can depend on the arities. Thus a linearly ordered feature can have low classification capacity for a fixed threshold class while still supporting arbitrarily long ordered configurations.

These statements are indexed by a specified architecture or formula. Even in this ordered language the family of all unions of up to $k$ intervals can shatter $k$ prescribed points, by isolating any selected subset with pairwise disjoint intervals. Taking the union over unbounded $k$ removes every finite VC bound from this construction. To use model theory for an actual learner one must specify its language, parameter domain, readout and architecture; a proof about one fixed family does not bound an adaptive union of families.



\section{What a graph learner can observe}
\label{sec:ml-graphs}

Consider the binary task of detecting a triangle in a finite simple
undirected graph, given only its adjacency relation. A graph with a
single cycle on six vertices and a graph with two disjoint triangles
have the same order and degree sequence. We can nevertheless identify
their isomorphism classes exactly, compute how often a learner confuses
their labels under specified sampling distributions, and fit a classifier
whose new input distinguishes them. The same experiment on larger graphs
tests whether the fitted decision rule extends beyond its training order.

\subsection{Factorization through an observation}

Write $\mathcal G_2$ for the groupoid of finite simple $2$-regular
graphs and their isomorphisms. Sending a graph to its number $n$ of
vertices defines a functor to the discrete category of finite
cardinalities. An isomorphism-invariant binary label is a functor to the
discrete set $\{0,1\}$. For an observation $O$, fitting a readout
$h$ that is exactly correct means factoring the label as $hO$.
On underlying sets of isomorphism classes a necessary and sufficient
condition for such an unrestricted $h$ is that the label be constant
on each fiber of $O$. Whether the factor can then be learned from
training data is a second question.

An \emph{anonymous message-passing network} here has a constant
initial state $h_v^0=c$ at every vertex of every input. Its deterministic
layers apply shared maps $M_j$, a permutation-invariant multiset
aggregator $A_j$, and a shared update $U_j$. They have the form
\[
 h_v^{j+1}=U_j\bigl(h_v^j,\,
 A_j(\{\!\{M_j(h_v^j,h_u^j):u\sim v\}\!\})\bigr).
\]
The final readout is any function of the multiset of final vertex
states. The maps may depend on the layer, and there is no width
restriction. This definition omits vertex identities, positional
encodings, persistent ordered tuples and input features derived from
cycles. It is the neighbor-aggregation setting familiar from the
comparison with color refinement \cite{xu,morris}.

\begin{proposition}[Exact loss of information on cycles]
At every finite depth, the graph output of such a network on
$\mathcal G_2$ factors through $n$. The triangle label has no such
factorization.
\end{proposition}
\begin{proof}
If all vertex states at layer $j$ in all graphs under consideration
have the same value $c_j$, each input to $A_j$ is two copies of
$M_j(c_j,c_j)$. Thus every next state is the same value $c_{j+1}$.
The assertion starts at $c_0=c$ by hypothesis. At depth $d$ the readout
receives $n$ copies of $c_d$, so it can depend on $n$ alone. The
six-cycle $C_6$ and $C_3\sqcup C_3$ have equal $n$ and opposite
triangle labels. This also covers depths chosen as a function of $n$.
\end{proof}

In contrast the three-variable first-order sentence
\[
 \varphi_\triangle =
 \exists x\,\exists y\,\exists z\,
       (E(x,y)\wedge E(y,z)\wedge E(z,x))
\]
detects a triangle on every finite simple undirected graph. Simplicity
forces three distinct witnesses. One can regard the satisfying triples
as an invariant relation on the cube of the vertex set. Existential
projection gives a truth value. Retaining the number of ordered
witnesses yields $\operatorname{tr}(A^3)$ for adjacency matrix $A$.
To check the identity, expand the trace into
$\sum_{x,y,z}A_{xy}A_{yz}A_{zx}$. Every undirected triangle contributes
six summands. A triangle can therefore be detected by either logical
projection or a degree-three polynomial observation. The proposition
identifies the obstruction for ordinary vertex-state propagation; it
leaves open the design of efficient implementations of either richer
observation.

\subsection{Which distribution is being sampled?}

Every finite simple $2$-regular graph is a disjoint union of cycles of
length at least three. If the cycle multiplicities are $(m_j)_{j\ge3}$
and $\sum j m_j=n$, its automorphism group has order
\[
           a(m)=\prod_{j\ge3}(2j)^{m_j}m_j! .
\]
The dihedral symmetries of a $j$-cycle contribute $2j$ choices and
components of the same length can be permuted freely.
Consequently its isomorphism class has $n!/a(m)$ representatives on
the fixed vertex set $\{1,\ldots,n\}$. Equal mass on labelled
graphs induces mass proportional to reciprocal automorphism order on
components of $\mathcal G_2$ at that order, precisely the weighting
used in finite groupoid cardinality. Uniform weights on isomorphism
classes generally give a different prediction problem.

Write $p_n$ for the probability of a triangle in a specified fixed-order
population. Under zero--one loss any classifier constant at order $n$
has minimum attainable risk $\min(p_n,1-p_n)$, by choosing a majority
label. Randomizing independently of the input graph cannot improve this
minimum because the risk is affine in the probability of predicting the
positive class. This is the optimum across the specified architecture
class since a constant predictor is feasible. With equal total mass on
positive and negative graphs the risk is $1/2$ whenever both labels occur.
On six labelled vertices the stabilizer orders are $12$ for the six-cycle
and $72$ for two triangles. The respective orbit sizes are $60$ and $10$.
Thus uniform labelled sampling produces a minimum error of $1/7$, whereas
sampling each of the two isomorphism classes with equal probability
produces an error of $1/2$. A negative prediction on all inputs already
achieves $85.71\%$ accuracy under the first protocol.

\subsection{Exhaustive test and a learned walk statistic}

The supplied Python program first enumerates every six-edge subset of the
$15$ possible edges on six labelled vertices. The degree filter retains
all $70$ admissible graphs among $\binom{15}{6}=5005$ candidates. It
uses component search to assign a positive target when a component has
size three, independently evaluates the triangle sentence by testing
triples, and runs four rounds of color refinement with a shared palette
across graphs. It finds exactly one histogram of vertex colors. For
each order from seven through twelve the program enumerates integer
partitions into cycle lengths, evaluates one graph per isomorphism
class, and weights its result by $n!/a(m)$. All functions being
evaluated are invariant under relabelling. The program independently
checks the population totals by selecting the cycle of a distinguished
vertex. If $b_r(n)$ counts labelled graphs with every cycle of length
at least $r\ge3$, that choice gives
\[
 b_r(0)=1,\qquad
 b_r(n)=\sum_{j=r}^n\binom{n-1}{j-1}\frac{(j-1)!}{2}
                     b_r(n-j)\qquad(n>0).
\]
The triangle count in the population is $b_3(n)-b_4(n)$. This recurrence
checks the orbit computation without computing any automorphism groups.

\begin{table}[htbp]
\centering\small\setlength{\tabcolsep}{3pt}
\begin{tabular}{rrrrr}
\hline
$n$ & Classes & Labelled graphs & Positive & Error (\%) \\
\hline
6 & 2 & 70 & 10 & 14.29 \\
7 & 2 & 465 & 105 & 22.58 \\
8 & 3 & 3,507 & 672 & 19.16 \\
9 & 4 & 30,016 & 5,320 & 17.72 \\
10 & 5 & 286,884 & 49,500 & 17.25 \\
11 & 6 & 3,026,655 & 523,215 & 17.29 \\
12 & 9 & 34,944,085 & 6,002,920 & 17.18 \\
\hline
\end{tabular}
\caption{Exact fixed-order triangle task under uniform labelled sampling.
Error is the best possible for the anonymous network. The first-order
sentence and the fitted trace test with threshold zero both make zero
errors in every row.}
\label{tab:graph-census}
\end{table}

To measure supervised selection separately from architectural
expressivity, fit a finite family of candidate rules on the $70$
labelled training graphs at order six. A candidate predicts one iff
$\operatorname{tr}(A^j)>t$, with $1\le j\le5$ and a nonnegative
integer threshold. At each $j$ the largest training trace suffices
as the maximum threshold searched, since larger thresholds yield the
same constant negative predictions on training data. Candidates
are ordered lexicographically by training errors, walk length and
threshold. The code computes traces by propagating counts of walks
from each starting vertex back to that starting vertex. Retaining the
starting vertex supplies information unavailable to the anonymous
vertex-state model in the proposition.

This fit selects $j=3,t=0$. The first two traces are $0$ and $12$ on
every training graph. At length three the six-cycle has trace zero and
two triangles have trace $12$. Consequently $t=0,\ldots,11$ all give
zero training error. The smallest-threshold convention selects the
test equivalent to $\varphi_\triangle$. It correctly predicts all
$29$ held-out isomorphism classes at orders seven through twelve,
representing $38{,}291{,}612$ labelled graphs. The polynomial identity
above proves the same prediction is correct at every finite order,
including on graphs outside the regularity restriction. Training alone
leaves this extrapolation undetermined. Choosing the largest tied threshold
$t=11$ instead misses every graph with exactly one triangle. At order
seven this alternative misses all $105$ positives out of $465$ inputs.
The generator of candidates and the convention used among tied fits
are therefore part of the learning claim.

The computation is a finite check of population counts, class overlap
and one supervised search with a specified hypothesis class. The
architecture lower bound applies to arbitrary shared layer maps by
induction. The zero-risk predictor uses a richer observation whose
evaluation explicitly relates the two endpoints of a walk. No
optimization or timing comparison is needed to distinguish those two
sources of error.



\section{When can a relational learner choose a witness?}
\label{sec:ml-witness}

A graph can contain an edge even when its symmetries prevent a learner from singling out either endpoint. For a constrained predictor, this distinction affects both the output representation and the loss. A binary label can report that a feasible output exists. A solver returning an actual candidate must additionally specify how that candidate transforms when the vertices are renamed. The action-groupoid calculation in the companion manuscript \cite{companion} gives a criterion for the latter task.

\subsection{Two selection criteria}

Let $\mathcal C$ be a small groupoid of finite relational structures and isomorphisms, with any observed features included in the signature. One can restrict to structures on finite initial segments of the natural numbers to control size. Let $W:\mathcal C\to\mathrm{FinSet}$ assign the finite set of admissible outputs to each input, transporting an output along an isomorphism by relabeling. For example, $W(X)$ might be the set of tuples satisfying a fixed first-order formula in $X$, or the set of all global orientations satisfying specified constraints. The Boolean decision $e(X)=\mathbf{1}_{W(X)\ne\varnothing}$ is invariant under isomorphism. Restrict to the full subgroupoid of inputs where $e(X)=1$. A deterministic witness rule is a natural transformation $1\Rightarrow W$, where $1$ assigns a singleton to every input. In concrete terms,
\[
 w_Y=W(f)w_X\qquad(f:X\overset{\sim}{\longrightarrow}Y).
\]
The same equation defines an equivariant prediction when outputs are attached to the entities of the input.

\begin{proposition}[Stabilizer test for witness selection]
\label{prop:ml-witness}
Choose representatives $R$ of the isomorphism classes of feasible inputs and put $H_R=\operatorname{Aut}(R)$. Evaluation on representatives gives a bijection
\[
 \operatorname{Nat}(1,W)\cong\prod_{[R]} W(R)^{H_R}.
\]
In particular, subject to ordinary set-theoretic choice, a natural rule exists exactly when every representative has an admissible output fixed by its whole automorphism group.
\end{proposition}

\begin{proof}
Naturality for each automorphism forces $w_R$ to belong to the fixed set. Conversely, given one fixed element per representative, choose an isomorphism $f:R\to X$ and set $w_X=W(f)w_R$. If $f'$ is a second such isomorphism, $f^{-1}f'$ fixes $w_R$ and the two definitions agree. Composing $f$ with any isomorphism out of $X$ verifies naturality. These constructions are inverse.
\end{proof}

Existence in this result is semantic. Computing a rule efficiently or learning it from finitely many observations requires additional information about the input class and the training distribution.

For a finite set $D$, let $\Delta(D)$ denote its probability simplex, with pushforward on bijections. A randomized policy is a natural transformation $1\Rightarrow\Delta W$. Naturality states an equality of probability laws. For each $R$, decompose $W(R)$ into $H_R$-orbits. Invariance requires equal point probabilities within each orbit $O$. Writing $a_O$ for its total mass, we obtain the exact parameterization
\[
 p_R(w)=\frac{a_O}{|O|}\quad(w\in O),
 \qquad a_O\geq 0,\quad \sum_O a_O=1.
\]
Conversely these equations give an invariant measure, and transport defines the policy on all isomorphic inputs by the same proof as Proposition~\ref{prop:ml-witness}. The full policy space is the product over input classes of the simplices $\Delta(W(R)/H_R)$. In a single factor the extreme points are uniform laws on single orbits. For a deterministic natural policy each factor is an extreme point supported on an orbit of size one. All nonempty finite fibers admit a randomized policy, including the uniform law on the entire fiber. Probabilistic equivariance for learned functions has a broader representation theory \cite{bloem}.

\subsection{An oriented edge and a cyclic orientation}

Take an unmarked triangle $X=K_3$. Its automorphism group $S_3$ acts transitively on the six oriented edges $(i,j)$ with $i\ne j$. Existence of an oriented edge is invariant and true. No oriented edge is a natural deterministic output, and the only equivariant law is uniform on the six. For a permutation-equivariant network returning six edge logits, the equation for automorphisms forces all six logits to coincide on this input. An argmax routine which returns the first maximizer in storage order introduces a dependence on the serialization. Permutation-equivariant graph layers are concrete architectures in which the score constraint applies \cite{maron}.

Change the desired output to a cyclic orientation of the entire triangle, so each vertex must have exactly one incoming and one outgoing edge. There are two allowed orientations. A transposition exchanges them, while a three-cycle fixes each. The unique equivariant policy puts probability $1/2$ on each complete cycle. It can be sampled by first selecting a uniform oriented edge $(i,j)$, then taking the unique cyclic orientation containing $i\to j$. Each of the two cycles is obtained from three of the six choices. This construction couples all three edge decisions through one random choice. Each edge marginal is fair. Sampling the three orientations independently from those same fair marginals gives eight equiprobable orientations, of which only two are cycles. Its feasibility probability is $1/4$. Thus a relabeling-invariant joint distribution can still violate the constraints, even with all the edge marginals correct.

There is also a distinction between equivariance in law and consistent sampling across different presentations. To sample once and relabel that same realization, push the chosen oriented edge along the specified permutation and complete the cycle after transport. Two independent calls on isomorphic inputs have the correct marginal laws but need not return corresponding cycles. Requiring a deterministic rule at every value of a shared scalar seed that is held fixed under all relabelings would reintroduce Proposition~\ref{prop:ml-witness} at each seed. Coupled randomness on the vertices, with the random marks transported when the graph is relabeled, provides a different implementation. Independent continuous marks from the same distribution give a uniformly random ordering almost surely, whose first two vertices give the uniform oriented edge.

\subsection{What supervision identifies}

Training on random permutations can encourage equal scores on equivalent presentations. It cannot supply a fixed point of the stabilizer when the admissible output has none. Indeed augment a single triangle with a designated oriented edge by all six vertex permutations, transporting the target each time. Every augmented input has the same adjacency matrix, and all six distinct targets appear once. Under log loss on a categorical distribution the unique optimal prediction on this augmented sample is uniform, with mean loss $\log 6$ in natural units. The best deterministic single-edge guess on that balanced sample has accuracy $1/6$. If the declared task accepts any oriented edge, each sample from the uniform policy is feasible with probability one. Accuracy against a designated hidden edge and feasibility measure different tasks.

For a general finite example, suppose the target conditional law at an observed representative $R$ gives probabilities $q(w)$ to the admissible labels. If an equivariant classifier is evaluated by conditional log loss, minimizing over its orbit masses gives $a_O=\sum_{w\in O}q(w)$. Indeed the expected loss equals $-\sum_O q(O)\log a_O+\sum_O q(O)\log |O|$, and the second term is constant. This shows which information can survive equivariance during training: supervision determines the mass allocated to different orbits, while the predictor must average distinctions within each orbit. The formula concerns an ideal unrestricted conditional rule and makes no assumption about convergence of a particular network optimizer.

Observed information can change the stabilizer. A marked starting vertex leaves an automorphism swapping the two remaining vertices, so it still fails to select a unique outgoing edge there. A marked ordered pair of distinct vertices determines an oriented edge immediately. In a supervised application one should specify whether such marks are observed at inference, inferred from other observed relations, or confined to the labels. Asymmetric observed attributes can identify a designated output. Labels depending on unobserved variables may instead require modeling their conditional distribution. The groupoid criteria govern exactly the symmetries of the observed representation and impose no assumption that the real conditional distribution is symmetric when the data collection process favors particular labels or presentations.



\section{The price of a deterministic equivariant decision}
\label{sec:ml-risk}
The information loss from a representation and the symmetry constraint on an output can be measured in the same units. This matters when a baseline score reflects both. The following result permits multiclass labels on which the symmetry group acts. It allows any finite features, including definable tests closed under the action. Use zero-one loss throughout this section.

Let a finite group $G$ act on finite sets $X,Z,Y$. The random input, its observation and the label are denoted $\mathbf X$, $\mathbf Z=q(\mathbf X)$ and $\mathbf Y$. Suppose $q:X\to Z$ is equivariant and the joint law of $(\mathbf X,\mathbf Y)$ is invariant under the simultaneous action. Restrict attention to the support on the input and observation spaces. Write $p_z(y)=\Pr(\mathbf Y=y\mid\mathbf Z=z)$, $H_z=\{g:gz=z\}$, and let $m_{[z]}$ be the probability of the entire orbit of $z$. Use $R^*(V)$ for unrestricted optimal classification error given $V$. An equivariant randomized rule assigns a distribution on $Y$ to each observation, with randomization conditionally independent of the label. A deterministic equivariant rule assigns a single label.

\begin{theorem}[Information loss and deterministic selection]
\label{thm:ml-risk}
An equivariant randomized rule attains $R^*(Z)$. A deterministic equivariant rule on the support exists precisely when each $Y^{H_z}$ is nonempty. Under this condition, its optimal risk $R^*_{\rm det,eq}(Z)$ satisfies
\begin{align*}
 R^*_{\rm det,eq}(Z)-R^*(X)
 ={}& \bigl(R^*(Z)-R^*(X)\bigr)\\
 &+\sum_{[z]}m_{[z]}
  \left(\max_{y\in Y}p_z(y)-\max_{y\in Y^{H_z}}p_z(y)\right).
\end{align*}
Both summands are nonnegative. The second vanishes precisely when each observed orbit has a posterior maximizer fixed by its stabilizer.
\end{theorem}
\begin{proof}
Invariance and equivariance imply $p_{gz}(gy)=p_z(y)$, so the maximizers at $z$ form an $H_z$-invariant nonempty subset of $Y$. Their uniform law transports to all observations in the orbit and attains success probability $\max_y p_z(y)$. No conditional randomized rule can improve on that maximum, since its success is a convex combination of the $p_z(y)$. For a deterministic equivariant rule its value at $z$ must lie in $Y^{H_z}$; every such value extends uniquely to a rule on that orbit. Thus its best conditional success probability is the second maximum. Summing the difference of success probabilities over the orbits gives the correction term. Any decision obtainable from $Z$ is obtainable by first computing $q$ from $X$, proving $R^*(X)\le R^*(Z)$. Since orbit masses are positive, equality in the correction is exactly the stated condition.
\end{proof}

\begin{example}[A hidden mark and an observed abstention label]
Choose a marked vertex of a labeled triangle uniformly. The full input contains the mark. With probability $9/10$ the recorded target is the marked vertex, and with probability $1/10$ it is a fourth label $\bot$. Predicting $\bot$ is judged by the same zero-one loss as predicting a vertex. The observation $q$ erases the mark, so the resulting triangle has symmetry group $S_3$. This group permutes the three vertex labels and fixes $\bot$.

With the mark present, predicting it has error $1/10$. After erasure the three vertex labels each have probability $3/10$, so an equivariant policy that picks a uniform vertex has error $7/10$. A deterministic equivariant policy can output only $\bot$. Its error is $9/10$. The $8/10$ total excess splits into $6/10$ from erasing the input mark and $2/10$ from deterministic selection. The latter cost would disappear for a task scored solely on feasibility of an allowed action that included $\bot$. The target distribution and loss are therefore as important as the symmetry.
\end{example}

If the data law favors an external numbering that is absent from the declared structure, the conditional posterior need not be constant on stabilizer orbits. Then the uniform-on-maximizers step can fail. Predictions on a symmetrized training distribution answer a different decision problem, a distinction that can be checked directly by counting the transported labels. The theorem also does not equate a mathematical optimum with the test error of a fitted network. The graph experiment computes an optimum for an explicitly specified distribution and then separately tests an actual readout.



\section{Four models and a consistency check for pairwise channel matches}
\label{sec:ml-alignment}

Consider four local dictionaries, each with two channels. Suppose a separate matcher has reported a bijection for every pair. After choosing a temporary order for the channels in each dictionary, encode the matching by an edge bit $s_{ij}$: zero preserves the order and one swaps it. Pairwise comparisons may be the only available evidence when the original data cannot be pooled. Does there exist one common labeling compatible with all six reports? Multiway permutation synchronization studies this question with larger permutation groups \cite{pachauri}. Permuting hidden units and compensating in adjacent weight tensors is also the basis of weight-matching methods for neural networks \cite{ainsworth}. Here we resolve the finite consistency problem exactly, including which noisy observations leave an ambiguous reconstruction.

\subsection{Counting globally compatible matchings}

A candidate common labeling assigns $t_i\in\mathbb F_2$ to each vertex. The predicted match on edge $ij$ is $c_{ij}=t_j-t_i=t_j+t_i$. Complementing every label leaves those predictions unchanged. Conversely equal predictions force the difference of the label assignments to be constant, by connectedness. The map therefore has image a binary linear code $C$ of length six and size $2^4/2=8$. Without further measurements the global ordering of the two labels remains arbitrary. Reordering local dictionary $i$ changes the bits of all incident edges; transporting the candidate labels along that change gives the same intrinsic synchronization problem.

Each triangle gives a parity check
\[
       \sigma_{ijk}(s)=s_{ij}+s_{jk}+s_{ik}.
\]
If $s=c$ comes from vertex labels, each vertex occurs twice in this sum. Conversely, fix $t_0=0$, set $t_j=s_{0j}$, and use the triangles containing vertex $0$ to obtain $s_{ij}=t_i+t_j$ on every remaining edge. Therefore all triangles have even parity exactly when a global labeling exists. This is the same boundary equation as the independent triangle in the companion monograph \cite{companion}. Here the comparison maps are supplied by the channel matcher. No assumptions about first-order saturation or independence enter the proof. On a general graph a labeling exists exactly when the sum around every cycle vanishes: propagate from one base vertex in each connected component along a spanning tree and check the omitted edges. A square whose edges carry one swap passes every triangle test vacuously and fails its four-cycle test.

\subsection{Noise, correction and ties}

A nonconstant vertex labeling with $r$ ones gives a cut of size $r(4-r)$. For $r=1,2,3$ these weights are $3,4,3$, so the minimum Hamming distance between distinct codewords is three. A single flipped comparison has a unique nearest codeword. Indeed the true assignment is at distance one, and any competing assignment at distance at most one would be at most two away from the truth. Additional errors can move the received word closer to a different assignment, even when the nearest assignment is unique.

Write the syndrome as the four triangle parities in lexicographic order of their triples. Its total sum is zero, since each edge belongs to two triangles. One flipped edge toggles exactly the two checks belonging to those triangles; any pair of distinct triangles shares exactly one edge. The six syndromes with two nonzero checks therefore identify six possible single-edge corrections. The all-ones syndrome can be produced by flipping the edges of any perfect matching. Each of its four triangles then contains exactly one flipped edge. An adjacent edge pair would toggle their shared triangle twice, so only the three perfect matchings are minimum-weight corrections of that syndrome. Each syndrome is a coset of the eight-element kernel $C$. This reasoning gives an exhaustive table.
\begin{center}
\begin{tabular}{lrrr}
Triangle parities & Words & Nearest distance & Nearest codewords\\
\hline
All zero & 8 & 0 & 1\\
Exactly two nonzero & 48 & 1 & 1\\
All four nonzero & 8 & 2 & 3
\end{tabular}
\end{center}

Assume that each edge observation is independently flipped with the same probability $0<p<1/2$. For a candidate $c\in C$, the likelihood of a received word at distance $d$ is $p^d(1-p)^{6-d}$. It decreases with $d$, so maximum likelihood chooses a nearest codeword. With uniformly random tie breaking the probability of exact recovery for any fixed true codeword is
\[
   (1-p)^6+6p(1-p)^5+p^2(1-p)^4.
\]
The first two terms account for zero and one errors. Among the double errors, only the three perfect matchings leave the true word at minimum distance, and each such tie selects it with probability $1/3$. No larger error has minimum distance since the table gives covering radius two.

The accompanying Python experiment enumerates all sixteen vertex labelings and all sixty-four received words, computes the syndromes, and compares every received word against all eight compatible assignments. It confirms all forty-eight single-error corrections and the eight three-way ties. Summing the likelihoods over the finite experiment gives exact-recovery probability $0.892296$ at $p=0.1$, up to displayed rounding. This benchmark isolates a source of uncertainty in synchronizing channel names. A consistent set of matches still requires separate evidence that the channels correspond functionally and that a proposed parameter merge preserves predictive performance.



\section{When does an optimizer act on represented functions?}
\label{sec:ml-optimizer}

Consider a bias-free network with one hidden rectifier and one scalar output. Write $x_+=\max(0,x)$ and restrict the parameter space to $P=(0,\infty)^2$. The prediction is
\[
            f_{u,v}(x)=v(ux)_+=uv\,x_+ .
\]
The parameter group $G=(\mathbb R_{>0},\cdot)$ acts by $c(u,v)=(cu,v/c)$. Each orbit is a level set of $q(u,v)=uv$, and the coefficient can be read from $f(1)$. Thus the quotient $Q=(0,\infty)$ parameterizes all the represented functions in this chart. The action is free. The section $p\mapsto(\sqrt p,\sqrt p)$ exhibits $P$ as a trivial principal $G$-bundle over $Q$. This is a particularly simple case of the orbit constructions in the model-theoretic companion \cite{companion}. Here the comparison can be tested against an actual training operation. Positive rescaling of hidden units and its consequences for optimization are classical in the neural network literature \cite{pathsgd,scale}.

\subsection{A criterion for an update to descend}

Let $U$ be a deterministic one-step update on parameters. An induced update $\overline U$ on $Q$ would have to satisfy $qU=\overline Uq$ wherever training stays in the chart. Such an update exists precisely when $qU$ is constant along each orbit in the domain; the quotient map then defines $\overline U$ uniquely on its image. For a partial update to specify an intrinsic \emph{domain} of admissible steps on $Q$, its domain in $P$ must also be a union of entire orbits. A sufficient condition is equivariance on an invariant domain: $U(c\theta)=cU(\theta)$. Given equivariance, the update even determines an endofunctor on the action groupoid when it is everywhere defined. Send the arrow labeled $c$ on $\theta$ to the arrow with the same label on $U(\theta)$. This comparison retains the specific rescaling carrying one representation to the other.

For data $(x_i,y_i)_{i=1}^N$, write $a_i=(x_i)_+$ and use half the mean squared error. For $p=uv$ define
\[
 L(p)=\frac1{2N}\sum_i (pa_i-y_i)^2,\quad
 g(p)=L'(p)=Hp-b,
\]
where $H=N^{-1}\sum_i a_i^2$ and $b=N^{-1}\sum_i a_i y_i$. All representatives yield the same objective. The pullback of the differential $g(p)\,dp$ is $g(p)(v\,du+u\,dv)$. Turning this covector into a vector by the Euclidean metric on $P$ gives the usual simultaneous update
\[
 u'=u-\eta v g(p),\qquad v'=v-\eta u g(p).
\]
It induces the following product whenever the new parameters are positive:
\begin{equation}
\label{eq:ml-euclidean-product}
  u'v'=p-\eta(u^2+v^2)g(p)+\eta^2 p\, g(p)^2.
\end{equation}
The coefficient $u^2+v^2$ ranges from $2p$ to arbitrarily large values on the same orbit. At an interior point where $g(p)\ne0$, take two representatives with different such coefficients and choose $\eta>0$ small enough to keep both updates inside $P$. Their updated values at $x=1$ differ. Therefore no map on the represented functions computes these two steps. The discrepancy occurs at first order in the learning rate. Passing to a differential equation in time leaves it in the projected equation $\dot p=-(u^2+v^2)g(p)$.

One can also quantify the change in numerical conditioning at a least-squares minimizer $p_\star=b/H>0$, assuming $H>0$. There the parameter Hessian is $H(v,u)^{\mathsf T}(v,u)$ with eigenvalues $0$ and $H(u^2+v^2)$. The zero eigenvector is tangent to the orbit. The linearized parameter step has transverse multiplier $1-\eta H(u^2+v^2)$. Transverse perturbations decay to first order if $0<\eta H(u^2+v^2)<2$. Since the second factor can grow without bound, no fixed positive step satisfies this linear condition uniformly over all representatives of the optimum. The varying finite eigenvalue gives a more informative comparison in this example than a formal condition number of the singular Hessian.

\subsection{An equivariant lift of coefficient descent}

Equip the coefficient half-line with its Euclidean metric $dp^2$, and set $p'=p-\eta g(p)$. For $p'>0$, define
\begin{equation}
 \label{eq:ml-lift}
 U_\eta(u,v)=(su,sv),\qquad s=\sqrt{p'/p}.
\end{equation}
Its product is $s^2p=p'$, and its ratio $u/v$ is unchanged. The ratio chooses how the two factors divide the change in $\log p$: each undergoes the same log-increment. Both $p$ and $p'$ are constant along orbits, so the same multiplier is used on $c(u,v)$. Equation~\eqref{eq:ml-lift} commutes exactly with rescaling and descends to the requested coefficient update. This also explains how to implement it without first converting the weights of each network to a canonical representative. A different quotient coordinate or a different metric on $Q$ generally specifies a different step. The equivalence relation alone supplies no optimizer.

There is a metric construction behind this finite lift. Introduce the real coordinate $z=\tfrac12\log(u/v)$, so that $(u,v)=(\sqrt{p}\,e^z,\sqrt{p}\,e^{-z})$. A group element $c$ acts by translation $z\mapsto z+\log c$. The product metric $dp^2+dz^2$ is therefore invariant, and the negative gradient of $L$ in these coordinates is $(-g(p),0)$. Updating in $(p,z)$ and then converting back to the weights gives precisely~\eqref{eq:ml-lift}. The corresponding infinitesimal parameter velocities are $-g/(2v)$ and $-g/(2u)$. Applying an additive Euler step to these latter velocities also gives an equivariant rule on its positive domain, but its product contains the extra term $\eta^2g^2/(4p)$. The choice of coordinates for the finite step has a measurable effect even when both choices respect the symmetry. Our numeric experiment uses the exact lifted coefficient update.

For a stochastic variant, let $B$ be a random batch and substitute its gradient $g_B(p)$ for $g(p)$. Run two equivalent representatives with identical sampled batches. If both begin in the positive chart, their proposed coefficient and admissibility test agree at every step by induction. With a batch law independent of the representation, even separately sampled runs induce the same transition law on $Q$. Indeed, for a Borel set $D\subseteq Q$ the probability of the event $p-\eta g_B(p)\in D$ depends only on $p$. An exit can be recorded as a common absorbing outcome. This argument requires the batch law itself to depend only on data and quotient state. A scheduler choosing batches from the magnitude of the first-layer weight can break the condition even for an equivariant per-batch update.

In a quadratic problem with $H>0$ and $p_\star>0$, the coefficient recurrence is exact:
\[
 p_k=p_\star+(1-\eta H)^k(p_0-p_\star).
\]
In particular $0<\eta H\leq1$ keeps every iterate between $p_0$ and $p_\star$ and preserves positivity. The larger interval $0<\eta H<2$ ensures contraction on the full real line, but for a positive chart an overshoot can already invalidate the first lift. At a zero product the square-root ratio is undefined, and networks with zero input weight can also change their activation pattern. The construction is specific to a positive chart on which the coefficient identifies the represented function. A large network may have several paths sharing edges. Adjusting every path coefficient independently can violate the consistency constraints imposed by those edges. Path-normalized methods address rescaling of shared parameters in that setting \cite{pathsgd}.

\subsection{Six equivalent initializations}

Take the training inputs $(-2,-1,0,1,1,2)$, where the repeated $1$ is counted twice. Take the held-out inputs $(-4,-3,1/2,3/2,3)$ and set each label to $(3/2)x_+$. Then $H=1$, $p_\star=3/2$ for training, and the held-out mean of $x_+^2$ is $23/10$. Hence half the mean squared error on held-out inputs is $(23/20)(p-3/2)^2$. Distinct inputs test that the implemented networks continue to agree away from the training sample. Since all labels come from the same realizable one-parameter family, these two loss values are proportional; this construction measures dependence on parameterization, without sampling uncertainty.

Initialize at $(u_0,v_0)=(c,1/(2c))$ for six choices of $c$. All have $p_0=1/2$, training loss $1/2$ and held-out loss $23/20$. Apply sixteen full-batch updates of size $\eta=1/8$ and stop an individual run if a proposed pair first exits the chart. The first Euclidean product is exactly
\[
 \frac12+\frac18\left(c^2+\frac{1}{4c^2}\right)+\frac1{128}.
\]
In contrast the first lifted product is $5/8$ at every scale. The table reports the ordinary Euclidean results. A dash denotes a trajectory that had already exited. The held-out numbers are rounded.

\begin{center}
\begin{tabular}{r r r r}
\hline
$c$ & $p_1$ & $p_{16}$ & held-out loss, step 16\\
\hline
$1/2$ & $0.66406$ & $1.498411$ & $2.91\times10^{-6}$\\
$1$   & $0.66406$ & $1.498411$ & $2.91\times10^{-6}$\\
$2$   & $1.01563$ & $1.500000$ & $2.24\times10^{-13}$\\
$3$   & $1.63628$ & $1.500000$ & $8.74\times10^{-26}$\\
$4$   & $2.50977$ & $1.384847$ & $0.01525$\\
$8$   & $8.50830$ & --- & ---\\
\hline
\end{tabular}
\end{center}
The initializations $c=1/2$ and $c=1$ exchange the two scalar factors; Euclidean updates have the same exchange symmetry in this chart. Changing to $c=3$ gives an overshoot followed by rapid approach to the optimum. Increasing to $c=4$ makes the coefficient alternate between $2.50977$, $0.46511$, $2.47953$ and $0.55616$ in its first four steps. At $c=8$ the output weight becomes negative on the second step; the table consequently makes no step-sixteen claim for that row. The Euclidean runs at several scales attain a smaller held-out loss at step sixteen than the quotient update. A common trajectory under all representations and a faster trajectory at a single representation are separate objectives.

For the lifted update, $p_4=0.913818$, $p_8=1.156391$ and $p_{16}=1.381933$ to six decimal places. The final training and held-out losses are $0.006970$ and $0.016031$, respectively. The largest spread between the six computed coefficients at any of the seventeen recorded time indices was $4.45\times10^{-16}$ or less. Equation~\eqref{eq:ml-lift} proves that the corresponding exact spread is zero. The supplied standard-library Python program differentiates the network directly for the Euclidean step, calculates both losses on their input lists, checks the Euclidean first step against rational arithmetic, and checks every lifted iterate against the closed form. Its JSON output records every in-chart weight pair and the first rejected pair where applicable. A finite numerical test can expose failure of descent, while the equivariance identity establishes it for every positive representative and every admissible coefficient step.

\begin{figure}[ht]
\centering
\includegraphics[width=.98\linewidth]{ml-optimizer-figure.pdf}
\caption{Training on identical data after rescaling the same initial ReLU function. Left, selected Euclidean trajectories and the common quotient trajectory. Right, the first update across all six scales. The trajectory at $c=8$ leaves the positive chart on the second step.}
\label{fig:ml-optim}
\end{figure}



\section{Interpretation and reproducibility}
A classifier, a selector and an optimizer need different tests of invariance. To test a classifier, hold the observations fixed and change admissible labels: the conflicting conditional masses bound the best possible predictive accuracy. To test a selector, fix one observed object and find the permutations that preserve it: a deterministic answer must be fixed by every such permutation. To test an optimizer, take two parameter values already known to give the same function, run one step on identical data, and compare their next functions. One counterexample rules out descent of that update. For a collection of independently chosen channel matchings, agreement must also survive composition around loops. These checks use a specified group, observation language, data distribution and loss.

\paragraph{Scope of the evidence.}
The graph census includes only finite simple two-regular graphs and explicitly weights isomorphism classes to model uniformly labeled graphs. Unique identifiers, positional embeddings, higher-order message passing or subgraph features change the observation class. The held-out walk calculation checks the behavior of a fitted classifier across sizes in this family. The theorem about $\operatorname{tr}(A^3)$ explains the successful extension; a second empirically optimal rule quantifies the ambiguity left by the training set. The channel matching experiment starts from prescribed pairwise assignments. The ReLU experiment compares parameter dynamics within a single positive chart on one neuron. It provides an exact counterexample to descent and an equivariant alternative there. These computations give neither a natural-data accuracy estimate nor a speed comparison for large neural networks.

\paragraph{Reproducible artifacts.} The source archive contains the three experiment programs, their machine-readable outputs, an exact-rational check of Theorem~\ref{thm:ml-risk}'s example, and the program that plots the training trajectories. The three experiment programs and the risk check use the Python standard library. A supplied vector figure permits building the manuscript without plotting dependencies. The graph program enumerates labeled inputs at order six, then generates representatives and orbit weights for higher orders. The matching program exhausts all six-bit observations. The optimizer program records both parameter trajectories and held-out losses until chart exit. The mathematical claims beyond these enumerations follow from the proofs in the text.

\paragraph{Authorship.} Prepared anonymously at the commissioning researcher's request with OpenAI assistance in derivation, implementation, manuscript preparation and checking. The accompanying paper on first-order model theory supplies the background constructions; the definitions, risk calculations, experimental protocols and proofs needed here are included in this paper.


{\small
\begin{thebibliography}{99}\setlength{\itemsep}{2pt}\setlength{\parsep}{0pt}

\bibitem{companion}
Anonymous. \emph{Models and Their Symmetries: A Higher-Categorical
Development of First-Order Model Theory}. Unpublished companion manuscript,
under editorial review at \emph{Higher Categorical Semantics}, 2026.

\bibitem{marker}
D.~Marker.
\href{https://link.springer.com/book/10.1007/b98860}{\emph{Model Theory: An Introduction}}.
Graduate Texts in Mathematics 217, Springer, 2002.

\bibitem{anthony}
M.~Anthony and P.~L.~Bartlett.
\href{https://doi.org/10.1017/CBO9780511624216}{\emph{Neural Network Learning: Theoretical Foundations}}.
Cambridge University Press, 1999.

\bibitem{hoeffding}
W.~Hoeffding.
\href{https://doi.org/10.1080/01621459.1963.10500830}{Probability inequalities for sums of bounded random variables}.
\emph{Journal of the American Statistical Association} \textbf{58}
(1963), 13--30.

\bibitem{vc}
V.~N.~Vapnik and A.~Ya.~Chervonenkis.
\href{https://doi.org/10.1137/1116025}{On the uniform convergence of relative frequencies of events to their probabilities}.
\emph{Theory of Probability and Its Applications} \textbf{16}
(1971), 264--280.

\bibitem{ltm}
M.~C.~Laskowski.
\href{https://doi.org/10.1112/jlms/s2-45.2.377}{Vapnik--Chervonenkis classes of definable sets}.
\emph{Journal of the London Mathematical Society} (2) \textbf{45}
(1992), 377--384.

\bibitem{simon}
P.~Simon.
\href{https://www.cambridge.org/core/books/a-guide-to-nip-theories/C2105F093F7CE2CD0EB1C6E1BFBC76BF}{\emph{A Guide to NIP Theories}}.
Lecture Notes in Logic 44, Cambridge University Press, 2015.

\bibitem{xu}
K.~Xu, W.~Hu, J.~Leskovec and S.~Jegelka.
\href{https://openreview.net/pdf?id=ryGs6iA5Km}{How powerful are graph neural networks?}
\emph{International Conference on Learning Representations}, 2019.

\bibitem{morris}
C.~Morris, M.~Ritzert, M.~Fey, W.~L.~Hamilton, J.~E.~Lenssen,
G.~Rattan and M.~Grohe.
\href{https://ojs.aaai.org/index.php/AAAI/article/download/4384/4262}{Weisfeiler and Leman go neural: Higher-order graph neural networks}.
\emph{Proceedings of the AAAI Conference on Artificial Intelligence}
\textbf{33} (2019), 4602--4609.

\bibitem{grohe}
M.~Grohe.
\href{https://arxiv.org/abs/2104.14624}{The logic of graph neural networks}.
\emph{36th Annual ACM/IEEE Symposium on Logic in Computer Science},
2021, 1--17.

\bibitem{pathsgd}
B.~Neyshabur, R.~Salakhutdinov and N.~Srebro.
\href{https://proceedings.neurips.cc/paper/2015/hash/eaa32c96f620053cf442ad32258076b9-Abstract.html}{Path-SGD: Path-normalized optimization in deep neural networks}.
\emph{Advances in Neural Information Processing Systems} \textbf{28}, 2015.

\bibitem{scale}
L.~Dinh, R.~Pascanu, S.~Bengio and Y.~Bengio.
\href{https://proceedings.mlr.press/v70/dinh17b.html}{Sharp minima can generalize for deep nets}.
\emph{Proceedings of the 34th International Conference on Machine Learning},
PMLR \textbf{70} (2017), 1019--1028.

\bibitem{bloem}
B.~Bloem-Reddy and Y.~W.~Teh.
\href{https://www.jmlr.org/papers/v21/19-322.html}{Probabilistic symmetries and invariant neural networks}.
\emph{Journal of Machine Learning Research} \textbf{21}(90) (2020), 1--61.

\bibitem{cornish}
R.~Cornish.
\href{https://arxiv.org/abs/2406.11814}{Stochastic neural network symmetrisation in Markov categories}.
arXiv:2406.11814, 2024.

\bibitem{fong}
B.~Fong, D.~I.~Spivak and R.~Tuy\'eras.
\href{https://arxiv.org/abs/1711.10455}{Backprop as functor: A compositional perspective on supervised learning}.
\emph{34th Annual ACM/IEEE Symposium on Logic in Computer Science},
2019, 1--13.

\bibitem{pachauri}
D.~Pachauri, R.~Kondor and V.~Singh.
\href{https://proceedings.neurips.cc/paper_files/paper/2013/hash/3df1d4b96d8976ff5986393e8767f5b2-Abstract.html}{Solving the multi-way matching problem by permutation synchronization}.
\emph{Advances in Neural Information Processing Systems} \textbf{26}, 2013.

\bibitem{ainsworth}
S.~Ainsworth, J.~Hayase and S.~Srinivasa.
\href{https://openreview.net/pdf?id=CQsmMYmlP5T}{Git Re-Basin: Merging models modulo permutation symmetries}.
\emph{International Conference on Learning Representations}, 2023.

\bibitem{maron}
H.~Maron, H.~Ben-Hamu, N.~Shamir and Y.~Lipman.
\href{https://openreview.net/pdf?id=Syx72jC9tm}{Invariant and equivariant graph networks}.
\emph{International Conference on Learning Representations}, 2019.

\end{thebibliography}

}
\end{document}

End of manuscript · Back to top ↑