Independent scholarship · Open accessThe monthly digest

Editorially reviewed

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

We separate classification error caused by an observation map from the cost of deterministic equivariant selection. Exact experiments test the theory on triangle detection in two-regular graphs, synchronization of pairwise channel matches, and training of equivalent ReLU parameterizations. The paper includes proofs, CPU programs, and all experiment outputs.

Anonymous← All research

What a Learner Can Distinguish

Definable observations, equivariant decisions, and optimization

Anonymous

Abstract

Learning on relational structures raises two questions. Which inputs yield the same observations? Which outputs can a prediction rule choose consistently under relabeling? For finite classification problems we separate the optimal error caused by lost input information from the cost of requiring a deterministic equivariant output. In a hidden-mark example the penalties are 0.60 and 0.20. On six-vertex simple two-regular graphs, anonymous message passing has optimal triangle-detection error $1/7$ under uniform labeled sampling. A closed-walk readout fitted at order six has zero errors on all 29 held-out isomorphism classes through order twelve. Further exact and numerical experiments identify when pairwise channel matches determine global labels and when a training step respects equivalence of neural network parameters.

Definable observations and decisions

For a structure $M$, parameters $A$ and a finite family $\Delta$ of tests $\delta(x)$ over $A$, record the bit vector $e_\Delta(x)$ of their truth values. Its nonempty fibers are definable by conjunctions of literals. A classifier that depends only on those tests factors through their image. As the tests range over all finite families, their compatible answer vectors form the Stone space of complete types over $A$. A point of that inverse limit can be omitted in $M$ even though each of its finite restrictions is realized. A single observation cell can contain several automorphism orbits. For instance in the ordered rationals with 0 and 1 named, the test $x>0$ agrees on 1 and 2, while every automorphism fixes 1. See Marker, Model Theory: An Introduction.

For binary labels let $d_q=\Pr(q,1)-\Pr(q,0)$ denote the signed joint mass in cell $q$. Its best classification decision is a majority vote. The optimum population error is $(1-\sum_q|d_q|)/2$. Under refinement $d_q$ is the sum of the refined imbalances in that cell. The error decreases strictly exactly when at least one coarse cell contains refined imbalances of opposite signs. Under squared probability error, a refinement instead gains the mean squared difference between fine and coarse conditional label probabilities. A refinement can therefore reduce squared probability error while leaving the best class decision unchanged.

Finite risk decomposition

Let a finite group $G$ act on finite input, observation and label sets. The observation $Z=q(X)$ is an equivariant function. Assume the joint law of $(X,Y)$ is invariant under simultaneous action and use zero-one loss. Restrict to the support. Write $R^*(V)$ for unrestricted Bayes risk given $V$, $H_z$ for the stabilizer of $z$, $p_z(y)$ for the conditional label probabilities, and $m_{[z]}$ for the mass of its orbit. A randomized decision draws conditionally independently of the label given its observation.

Theorem. An equivariant randomized rule attains $R^*(Z)$. A deterministic equivariant rule exists exactly when each observed stabilizer has a fixed label. When this holds, its optimal risk satisfies

$$ R^*_{\mathrm{det,eq}}(Z)-R^*(X)=R^*(Z)-R^*(X)+\sum_{[z]}m_{[z]}\left(\max_{y\in Y}p_z(y)-\max_{y\in Y^{H_z}}p_z(y)\right). $$

Proof. The joint invariance implies $p_{gz}(gy)=p_z(y)$. Hence the maximizers at $z$ form a stabilizer-invariant set. The uniform distribution on that set transports along every relabeling. Its success attains the conditional maximum, which bounds the success of any independently randomized rule by convexity. A deterministic rule must assign a fixed label to $z$ and every such assignment extends to the orbit: transport it along any isomorphism, using stabilizer invariance to establish independence of that choice. Its best conditional success is the restricted maximum in the formula. Sum over the orbits. The information term is nonnegative because every decision based on $q(X)$ is available from $X$. The selection term vanishes exactly when every positive-mass orbit has a stabilizer-fixed posterior maximizer.

Choose a marked vertex uniformly on a triangle. The label equals the mark with probability $0.9$ and equals a fixed fourth label with probability $0.1$. The full input gives risk $0.1$. Erasing the mark gives three posterior probabilities of $0.3$ and one of $0.1$. A uniform vertex decision has risk $0.7$. Only the fourth label is fixed by all three-vertex permutations, giving deterministic equivariant risk $0.9$. Both the label law and the loss matter for this calculation.

For a varying finite witness set $W(X)$ the natural randomized laws are similarly determined by nonnegative total masses on stabilizer orbits summing to one. Each orbit receives uniform point probabilities conditional on its selection. On an unmarked triangle there are two cyclic orientations, exchanged by a reflection. Sampling one complete cycle uniformly satisfies the constraints every time. Independently orienting three edges, each with its correct fair marginal, satisfies them in only two of eight cases. This illustrates the difference between marginals and a joint equivariant policy. See Bloem-Reddy and Teh, Probabilistic Symmetries and Invariant Neural Networks.

Triangle detection on a finite graph population

Assume constant node features, deterministic shared update and message maps, a permutation-invariant neighborhood aggregator and a readout depending only on the multiset of node states. On a simple two-regular graph every vertex sees two identical messages at the first step. Induction gives one common state across all nodes of all such graphs at each fixed depth. The final observation depends only on the order. This setting is part of the relation between graph neural networks and finite-variable logic developed in Grohe, The Logic of Graph Neural Networks.

At six vertices the alternatives are a six-cycle and two disjoint triangles. Their automorphism orders are 12 and 72, yielding 60 and 10 labeled presentations. The optimal constant prediction errs on 10 of 70 labeled graphs, but its error is $1/2$ under uniform sampling of the two classes. Enumerating all 5,005 six-edge subsets and filtering by degree checks the labeled counts. A richer observation with adjacency matrix $A$ is $\operatorname{tr}(A^3)$, the count of ordered triangle witnesses. A fit over closed-walk lengths 1 through 5 and nonnegative integer thresholds, with ties resolved by smallest length then threshold, gives length 3 and threshold 0. All thresholds from 0 to 11 fit training exactly. The smallest choice detects triangles on all 29 held-out classes at orders 7 through 12, representing 38,291,612 labeled graphs. Threshold 11 misses all 105 positives at order seven. The identity $\operatorname{tr}(A^3)=6$ times the triangle count proves why the first fit extrapolates to arbitrary finite simple graphs. The finite fit alone underdetermines this choice.

Do pairwise channel matches glue?

Consider four dictionaries with two channels each. Encode each of six proposed matches by a bit $s_{ij}$. A global choice of local orders $t_i$ realizes them exactly when $s_{ij}=t_j+t_i$ over $\mathbb F_2$. Equivalently, each triangle has even parity: fixing $t_0=0$ and setting $t_j=s_{0j}$ reconstructs the orders from the checks containing 0. The resulting code has 8 compatible words among 64 and minimum distance 3. Exhaustive enumeration yields 8 received words at distance zero, 48 at distance one with a unique correction, and 8 at distance two with three tied corrections. For independent flips of probability $0<p<1/2$, nearest-codeword decoding with uniform tie breaking recovers the true codeword with probability $(1-p)^6+6p(1-p)^5+p^2(1-p)^4$, or $0.892296$ at $p=0.1$. This experiment starts with proposed channel correspondences. Determining whether the channels serve the same function requires further evidence. See Pachauri, Kondor and Singh, Solving the Multi-way Matching Problem by Permutation Synchronization.

Does a training step act on represented functions?

For a positive one-unit ReLU parameterization $f_{u,v}(x)=uv\max(x,0)$, the coefficient $p=uv$ identifies the function. For a loss $L(p)$ with derivative $g$, ordinary simultaneous Euclidean updates give $u'v'=p-\eta(u^2+v^2)g+\eta^2pg^2$. The first-order term varies under $(u,v)\mapsto(cu,v/c)$, so equivalent representations can give different next functions. To realize coefficient descent $p'=p-\eta g>0$, multiply both weights by $\sqrt{p'/p}$. The new product is exactly $p'$ and the lift commutes with positive rescaling. It uses a chosen Euclidean metric on the coefficient, a choice of optimization geometry. See Neyshabur, Salakhutdinov and Srebro, Path-SGD.

Six equivalent initializations at $p=0.5$ were trained toward coefficient $1.5$, with step $1/8$ for 16 full-batch steps. Euclidean updates produced first coefficients between 0.66406 and 8.50830. At the largest rescaling the second step left the positive chart. The lift produced the same mathematical trajectory at all six scales with final coefficient 1.381933. Some Euclidean initializations attained a smaller held-out loss at step 16. The measured property of the lift is independence of the chosen representative.

Scope and authorship

These results concern specified finite laws, input and output symmetries, and a single positive ReLU chart. The graph experiment evaluates a constrained supervised readout and an architecture-wide lower bound. The channel experiment exhausts a finite observation space. The optimizer experiment compares six numerical realizations against a closed recurrence. The accompanying article and source bundle give proofs, standard-library Python programs and recorded outputs. The anonymous author is responsible for the submission. AI assistance was used to develop the exposition, mathematical arguments, code and reproducibility checks.

Reproducibility artifacts

what-a-learner-can-distinguish.pdf · 393,271 bytes · Download
SHA-256 cb4ae84853e4250420463beb82c3756d60ab0a65dfbae2a05ae7e1f1e0f71db4

what-a-learner-can-distinguish-source.zip · 64,944 bytes · Read in browser · Download
SHA-256 39be3b63f2242ef2f2d76852add8b233e3b39bb5a03abd28b7a5ce7bac1ef0e6

Discussion

Open a careful, constructive conversation about this note.

Comments appear after editorial approval.