Learning from Distances and Configurations: An Exact Classification Benchmark for Geometric Representations
Continuous, single-column reading. Equations, tables, proofs, references and appendices stay in document order.
Contents · 9 sections
RESEARCH NOTENovember 2026
Learning from distances
and configurations
An exact classification benchmark for geometric representations
Anonymous
Abstract. How much accuracy can a learner recover after an encoder discards the endpoints of a distance? For a pair of six-point distributions, independently sampled pair distances have identical class laws. The experiment of observing one sorted triangle is equivalent to a binary erasure channel with erasure probability 23/36. On six independent triangles, a trained permutation-invariant neural classifier reached 96.625% accuracy on 20,000 held-out bags, against the exact optimum of 96.600%. The same learner family supplied one distance per block reached 49.705%. Reusing points changes the experiment: four bins of the empirical all-pairs histogram already give a consistent classifier although the two population histograms coincide. We prove the consistency result, compute exact finite-sample accuracies, and use 384,000 noisy clouds to compare a rounded triangle decoder with a bias-corrected bispectral statistic. All experiments are CPU-reproducible.
One geometry, several observation protocols
Bloom’s homometric sets [1] are A={0,1,4,10,12,17} and B={0,1,8,11,13,17}. A label Y selects A or B with equal probability. Conditional on Y, sampled coordinates are independent uniform draws with replacement from the selected set. An unknown translation, reflection, or permutation does not change the clean geometric features. Each set has one unordered pair at each of the gaps 1,…,13,16,17 and no other positive gaps. The population law of one distance agrees exactly. The reconstruction and persistence examples in the companion manuscript Fourier Observables in Families, Sections 8–9, motivated the following test.
The three distances in the bracketed configuration occur jointly in A. They each occur in B, but no triple of B has all three. A pair histogram on either complete six-point set gives identical entries in all bins. A sampled cloud has random multiplicities at the six locations; reusing the same draw in several edges can make their empirical histogram informative. We therefore distinguish experiments by how the points were drawn and by what the model actually sees.
The classification limit for independent blocks
In one block, draw (X1,X2,X3) conditional on a common label. The pair encoder reports ∣X1−X2∣. The triangle encoder reports the sorted multiset of the three distances. With m blocks each uses fresh draws, and every block has the same underlying class label. We can regard each encoder as a Markov kernel from the two-point parameter set to its feature space. A downstream classifier is another such kernel, composed with the observation. This makes precise which information a neural architecture can exploit after pooling.
Theorem 1 (The triangle experiment is an erasure channel). Either set produces 36 possible triangle signatures, uniformly. Exactly 23 signatures occur in both classes. The observation of m independent triangle signatures is equivalent, by class-independent randomizations in both directions, to a binary channel that discloses the label with probability 1−(23/36)m and otherwise emits an erasure. Its optimal accuracy and mutual information for an equiprobable label are 1−21(23/36)m,1−(23/36)mbits. The corresponding pair experiment has optimal accuracy 1/2 for every m.
Proof. There are 216 ordered triples. The all-zero signature comes from six triples. For each of the fifteen nonzero gaps, triples using its two endpoints and repeating one of them have six orderings in total. The twenty three-element subsets each give six orders. Two distinct three-element subsets cannot give the same signature within a class because every positive gap identifies its unique edge and all three such edges fix the subset. Among the two lists of twenty, the following seven nondegenerate signatures coincide: (1,16,17),(2,10,12),(3,6,9),(3,8,11),(4,13,17),(5,8,13),(7,9,16). These can be checked by enumerating each sorted three-element subset (x,y,z) and recording the sorted gaps (y−x,z−y,z−x). Thus the 1+15+7 common outcomes have mass 23/36 in each class. A class-exclusive observation reveals the label; the law on common observations is the same in either class. Conversely, given an erasure, draw uniformly from the common outcomes; given a disclosed class, draw uniformly from its exclusive outcomes. This inverse randomization recovers the original one-block law exactly. For several blocks use the same argument, with reverse simulation from the conditional bag law given disclosure or erasure. An erasure leaves the posterior equal to the prior. Finally, the pair marginal is identical under A and B, a property preserved by conditional independent products. ◻
In Blackwell’s comparison of experiments [2], the erasure channel and the triangle observation provide equal attainable risk for every decision problem on this binary parameter. The pair observation can be simulated by choosing a uniformly random edge of a triangle. The triangle experiment strictly improves the binary classification risk, so no kernel can simulate the triangle experiment from a single fresh pair in both classes. This is a concrete failure of invertibility under forgetting a vertex. Since the likelihood ratio is constant on the shared region, choosing different labels on that region can change measured test accuracy without changing optimal population risk.
Supervised training and comparison with the optimum
The neural model encodes each observed token by a trained 12-dimensional embedding, pools the embeddings by their mean over the bag, and applies a 12-unit fully connected tanh layer and a scalar logistic readout. Sorting the three distances makes a triangle independent of the ordering of its vertices. Mean pooling is invariant under permutations of blocks, as in Deep Sets [3]. Token vocabularies are fitted on training data with an out-of-vocabulary bin; every held-out token in this experiment was present in training. For each input type and bag size, the fit used 4,096 training bags per class, binary cross-entropy, Adam with step size 0.008, batch size 256, and 32 epochs. Class labels were balanced exactly. The two encoders see the same test draws for a given m. There are 10,000 independent held-out bags per class in each evaluation.
Blocks
Input to trained network
Correct / 20,000
Test accuracy
Exact optimum
1
One distance per block
9,938
49.690%
50.000%
1
Sorted triangle
13,589
67.945%
68.056%
6
One distance per block
9,941
49.705%
50.000%
6
Sorted triangle
19,325
96.625%
96.600%
The six-triangle network classified all 18,616 held-out bags containing an exclusive signature correctly. Among 1,384 all-common bags it correctly classified 709. The approximate stratified 95% intervals for six-block accuracy were [96.37,96.88]% for triangles and [49.01,50.40]% for pairs. They measure test-set variability conditional on the trained weights. The exact optimum is a population quantity, so an observed accuracy can exceed it on one finite test set.
An exhaustive evaluation additionally weighted all (641)=4,496,388 six-triangle token multisets per class by their multinomial counts. The archived fitted network made zero errors on diagnostic bags anywhere in this finite population. For the saved float64 network this gives exact weighted accuracy 4,205,528,783/4,353,564,672, equal to the population optimum. The full enumeration placed each diagnostic logit at least 4.00 from the decision boundary. This is stronger evidence about this particular training run than an isolated held-out score.
A second learner estimated separate class-conditional token frequencies from 50,000 labeled one-block draws per class, adding a symmetric half-count per bin. It sums the resulting log likelihood ratios over a bag. On 65,536 held-out bags of length six, it achieved 96.556% on triangles and 49.818% on individual distances. Its fitted triangle table has a certificate: the smallest correct signed score on an exclusive triangle exceeds 7.854, whereas the largest absolute score on a common triangle is below 0.097. Even eleven common triangles cannot overturn a single exclusive one in a legitimate bag from one class. This proves that this particular trained table attains the exact population optimum for each m≤12. The archive provides its numerical margins.
Figure 1. In panel A the curves use the exact channel laws. Symbols show trained classifiers on held-out data. Panel B uses all distances from one sample of reused points. Its horizontal axis counts sampled points, whereas panel A counts independent observation blocks.
The full-cloud control
In a separate supervised task, each input contains all six template points exactly once. We drew 128 training and 512 test configurations per class with independent permutations, translations, and reflections. Training-only feature standardization and ridge-logistic readouts gave exactly 50% for the full pair histogram and a 17-frequency Fourier-power grid, and 100% for the triangle histogram and one real bispectral feature (Section 5). We computed the power grid as a deterministic cosine transform of the integer difference counts, so floating-point errors associated with a particular translation could not fake a signal. These test inputs are new presentations of two known shapes. They test isometry invariance and information retention; performance on unseen shape classes is an independent question.
Why reusing sampled points changes the answer
For a new experiment, draw N points with replacement from a single class and form Hd=1≤i<j≤N∑1{∣Xi−Xj∣=d}. The model observes the histogram (Hd) without vertex identifiers. For either class, EHd=(2N)pd, where pd is the common distance law. But each input point contributes to N−1 pairs. Their dependence conveys information about the incidence of distances that the population mean omits.
Proposition 2 (Four histogram bins suffice for consistency). Let D=H1H2−H10H11. Choose B if D=0, and A otherwise. The equal-prior error of this rule is asymptotic to 212πN3. Thus the Bayes accuracy of the full empirical histogram tends to one. The normalized histogram itself converges almost surely to the same vector in both classes.
Proof. Let nx be the number of draws at site x. For each positive gap d its unique endpoints u,v give Hd=nunv. For A, gaps 1,2,10,11 give edges (0,1),(10,12),(0,10),(1,12). Hence H1H2=H10H11 for every sample. For B the respective edges are (0,1),(11,13),(1,11),(0,11), so D=n0n1n11(n13−n11). Under B the probability of D=0 differs from P(n13=n11) by at most 3(5/6)N. The integer difference is a sum of independent increments taking −1,0,1 with probabilities 1/6,2/3,1/6. Fourier inversion on the integers gives P(n13=n11)=(2π)−1∫−ππ(32+31cost)Ndt. At t=0 the factor equals 1−t2/6+O(t4). The inequality 1−cost≥2t2/π2 bounds its Nth power by exp[−2Nt2/(3π2)]. Substitute t=u/N and apply dominated convergence to obtain 3/(2πN) as the leading term. Half of that probability contributes to the equal-prior error. Finally nx/N→1/6 at each site. Each occupied positive-gap bin Hd/(2N) therefore converges to 1/18, and the zero bin to 1/6, in either template. ◻
Number of sampled points
2
3
4
6
8
12
Optimal full-histogram accuracy (%)
50.00
68.06
81.94
94.17
98.68
99.74
Four-bin rule accuracy (%)
50.00
51.39
53.24
58.42
64.86
76.67
For the optimum, enumerate all six-site occupancies n1+⋯+n6=N, assign their multinomial probabilities, and sum the mass of each distinct histogram per class. Optimal balanced accuracy is half the sum over histograms of the larger class mass. For the four-bin rule independent enumeration and a counting formula agree through N=12. The latter gives 94.99% at N=48 and 97.51% at N=192.
The assertion uses exact counts or equivalent precision. In B, D/N4 is OP(N−1/2) despite being nonzero with increasing probability. Rounding normalized products to a fixed coarse precision can destroy this classifier. Also distinguish the full-cloud control from drawing six points: one visit per site is prescribed in the former, while repeated visits and missing sites are typical in the latter.
One real Fourier feature and its sampling cost
For a probability μ, write ϕ(t)=Eμe−2πitX. Its signed pair-difference law has transform ∣ϕ(t)∣2. Consider the real part of one bispectral coefficient [4], z(μ)=ℜ{ϕ(f)2ϕ(2f)},f=1/8. Translating all points cancels the phases, and reflecting the line conjugates the product while preserving its real part. Summing six roots of unity for each template gives z(A)=541−22<0,z(B)=541+22>0. The sign of the exact population statistic classifies perfectly. This frequency was chosen for these known templates. Learning a filter bank on a broader collection would pose a different estimation problem.
For N i.i.d. coordinates, set uj=e−2πifXj, S=∑juj and T=∑juj2. Replacing ϕ by the empirical characteristic function gives zplug=ℜ(S2T)/N3. At small N there is appreciable bias. An unbiased alternative at the same asymptotic computational cost is the order-three U-statistic zU=N(N−1)(N−2)ℜ(S2T)−∣T∣2−2∣S∣2+2N. Indeed z is the expectation of ℜ(uiujuk2) at three distinct sample indices. Inclusion–exclusion deletes i=j, i=k, and j=k from the full triple sum, adding 2N for the diagonal counted too many times. The two complex sums suffice, giving O(N) operations. Counting index collisions also yields Ezplug=N3(N)3z+N2N−1(∣ϕ(2f)∣2+2∣ϕ(f)∣2)+N21, with (N)3=N(N−1)(N−2). Without noise the positive additive terms sum to (5N+4)/(9N2) in either class. At N=6, this shifts even the negative class to a positive mean. Unbiasedness concerns the mean; the optimal finite-sample decision threshold is a separate question.
A noise test on randomly moved point clouds
We added independent coordinate jitter uniform on [−h,h], then applied a common random reflection and translation to each cloud. We evaluated N=6,18,48,128 and h=0,0.1,0.3,0.7, with 12,000 independent clouds per class in every cell. All three rules in a cell use the same points. For triangles we form ⌊N/3⌋ disjoint triples, round their three sorted side lengths to the nearest grid integer, and vote using the clean class-exclusive signatures. Unrecognized and shared signatures abstain. Ties use a fair coin. The two spectral rules threshold their estimated real part at zero. These are fixed decoders.
At h<1/4, every distance changes by at most 2h<1/2, so rounding recovers the clean triangle. Moreover a clean one-dimensional triangle signature fixes the underlying triple up to translation, reflection and permutation. The symmetric independent noise respects these operations, so a noisy signature can be simulated from the clean signature by a class-independent kernel. In this regime the clean and noisy triangle experiments are equivalent. At greater noise the rounding argument no longer controls performance. For the bispectrum the population means are the clean z times sinc(h/4)2sinc(h/2), where sinc(u)=sin(πu)/(πu). This factor stays positive over the tested range.
Points
Jitter h
Rounded triangles
Unbiased bispectrum
Plug-in bispectrum
6
0
79.58%
66.10%
59.57%
18
0
96.42%
76.67%
75.33%
18
0.7
63.61%
76.52%
73.77%
128
0.7
83.03%
94.65%
93.05%
Figure 2. Balanced test accuracy on 18 points per cloud. Whiskers show approximate stratified 95% intervals. The dotted line marks the limit of the strict rounding guarantee. Connected markers locate the four tested noise levels; intermediate accuracies were not measured.
At h=0.7, N=18, the intervals are [63.00,64.21]% for triangle voting and [75.98,77.05]% for the unbiased spectral rule. The reversal is a property of these decoders. It leaves open how a triangle classifier trained on continuous noisy distances would fare, especially because the spectral statistic also uses all N points jointly. Across 64 class-conditional mean checks (two spectral estimators, two classes, sixteen settings), observed means were within 2.14 estimated Monte Carlo standard errors of their analytic expectations.
Interpretation and reproducibility
The benchmark diagnoses three distinct sources of low accuracy. Independent distances give zero information about this label. A bag of six triangles has enough information for 96.600% accuracy; some test errors remain unavoidable even with perfect training. Exact population phase information permits perfect accuracy, yet estimating one such coefficient from eighteen points can yield considerably lower accuracy than observing six exact triangles. Information lost in an encoder, irreducible sample ambiguity, and estimator error call for different changes to a learning system.
The task involves two known isometry classes, a fixed scale and equiprobable labels. It tests invariant pooling and sampling protocols. Generalization to other geometric classes requires new evidence. Even three-body descriptors have known degeneracies on other geometric families [5]. Modeling the input as a family of sampling experiments identifies the precise improvement certified here, including the strict improvement in Blackwell order from fresh pairs to fresh triangles.
Reproduction. The archive contains Python programs, model weights, result tables, seeds, figure sources and the LaTeX for this note. Its notebook recomputes the exact channel and demonstrates the fitted network. An independent Monte Carlo run used 50,000 bags per feature and block count with random labels. Its 95% pointwise intervals covered nine of ten analytic probabilities; the m=2 triangle run gave 80.082% against 79.591%. The learned table, the networks, and the noise experiment use separate seeds. Repeated simulated clouds quantify performance on the specified two laws. The study and write-up were prepared with AI assistance.
References
G. S. Bloom, A counterexample to a theorem of S. Piccard, J. Combin. Theory Ser. A 22 (1977), 378–379. Publisher’s record.
D. Blackwell, Equivalent comparisons of experiments, Ann. Math. Statist. 24 (1953), 265–272. doi:10.1214/aoms/1177729032.
M. Zaheer et al., Deep Sets, NeurIPS 30 (2017). Author’s version.
T. Bendory et al., Bispectrum inversion with application to multireference alignment, IEEE Trans. Signal Process. 66 (2018), 1037–1050. doi:10.1109/TSP.2017.2775591.
S. N. Pozdnyakov et al., Incompleteness of atomic structure representations, Phys. Rev. Lett. 125 (2020), 166001. doi:10.1103/PhysRevLett.125.166001.
Complete flattened LaTeX source
\documentclass[11pt]{article}
\usepackage[letterpaper,margin=.93in,headheight=14pt,headsep=17pt]{geometry}
\usepackage[T1]{fontenc}
\usepackage{lmodern,amsmath,amssymb,amsthm,booktabs,array,graphicx,xcolor,fancyhdr,titlesec}
\definecolor{teal}{HTML}{126862}
\definecolor{ink}{HTML}{23373F}
\definecolor{orange}{HTML}{A64E27}
\usepackage[colorlinks=true,linkcolor=teal,urlcolor=teal,citecolor=teal,pdftitle={Learning from distances and configurations},pdfauthor={Anonymous}]{hyperref}
\newtheorem{theorem}{Theorem}
\newtheorem{proposition}[theorem]{Proposition}
\newcommand{\PP}{\mathbb P}
\newcommand{\EE}{\mathbb E}
\newcommand{\R}{\mathbb R}
\titleformat{\section}{\large\bfseries\color{teal}}{\thesection}{.65em}{}
\titleformat{\subsection}{\normalsize\bfseries}{\thesubsection}{.65em}{}
\titlespacing*{\section}{0pt}{13pt}{6pt}
\titlespacing*{\subsection}{0pt}{9pt}{4pt}
\pagestyle{fancy}\fancyhf{}
\lhead{\sffamily\small\color{ink}Learning from distances and configurations}
\rhead{\sffamily\small\color{ink}\thepage}
\renewcommand{\headrulewidth}{.35pt}
\setlength{\parindent}{1em}
\setlength{\emergencystretch}{2.5em}
\raggedbottom
\begin{document}
\thispagestyle{empty}
\noindent{\color{teal}\rule{\linewidth}{1.2pt}}
\par\noindent\textcolor{orange}{\sffamily\small\bfseries RESEARCH NOTE}\hfill{\sffamily\small November 2026}\par\medskip
\noindent{\fontsize{26}{30}\selectfont\bfseries Learning from distances\\and configurations}\par\medskip
\noindent{\large\color{teal}An exact classification benchmark for geometric representations}\par\medskip
\noindent\textsc{Anonymous}\par\bigskip
\noindent\textbf{Abstract.} How much accuracy can a learner recover after an encoder discards the endpoints of a distance? For a pair of six-point distributions, independently sampled pair distances have identical class laws. The experiment of observing one sorted triangle is equivalent to a binary erasure channel with erasure probability $23/36$. On six independent triangles, a trained permutation-invariant neural classifier reached 96.625\% accuracy on 20,000 held-out bags, against the exact optimum of 96.600\%. The same learner family supplied one distance per block reached 49.705\%. Reusing points changes the experiment: four bins of the empirical all-pairs histogram already give a consistent classifier although the two population histograms coincide. We prove the consistency result, compute exact finite-sample accuracies, and use 384,000 noisy clouds to compare a rounded triangle decoder with a bias-corrected bispectral statistic. All experiments are CPU-reproducible.
\section{One geometry, several observation protocols}
Bloom's homometric sets \cite{bloom} are $A=\{0,1,4,10,12,17\}$ and $B=\{0,1,8,11,13,17\}$. A label $Y$ selects $A$ or $B$ with equal probability. Conditional on $Y$, sampled coordinates are independent uniform draws \emph{with replacement} from the selected set. An unknown translation, reflection, or permutation does not change the clean geometric features. Each set has one unordered pair at each of the gaps $1,\ldots,13,16,17$ and no other positive gaps. The population law of one distance agrees exactly. The reconstruction and persistence examples in the companion manuscript \emph{Fourier Observables in Families}, Sections 8--9, motivated the following test.
\begin{center}
\includegraphics[width=.82\linewidth]{../figures/templates.pdf}
\end{center}
\noindent The three distances in the bracketed configuration occur jointly in $A$. They each occur in $B$, but no triple of $B$ has all three. A pair histogram on either complete six-point set gives identical entries in all bins. A sampled cloud has random multiplicities at the six locations; reusing the same draw in several edges can make their empirical histogram informative. We therefore distinguish experiments by how the points were drawn and by what the model actually sees.
\section{The classification limit for independent blocks}\label{sec:blocks}
In one block, draw $(X_1,X_2,X_3)$ conditional on a common label. The pair encoder reports $|X_1-X_2|$. The triangle encoder reports the sorted multiset of the three distances. With $m$ blocks each uses fresh draws, and every block has the same underlying class label. We can regard each encoder as a Markov kernel from the two-point parameter set to its feature space. A downstream classifier is another such kernel, composed with the observation. This makes precise which information a neural architecture can exploit after pooling.
\begin{theorem}[The triangle experiment is an erasure channel]\label{thm:erasure}
Either set produces 36 possible triangle signatures, uniformly. Exactly 23 signatures occur in both classes. The observation of $m$ independent triangle signatures is equivalent, by class-independent randomizations in both directions, to a binary channel that discloses the label with probability $1-(23/36)^m$ and otherwise emits an erasure. Its optimal accuracy and mutual information for an equiprobable label are
\[
1-\tfrac12(23/36)^m,\qquad 1-(23/36)^m\ \text{bits}.
\]
The corresponding pair experiment has optimal accuracy $1/2$ for every $m$.
\end{theorem}
\begin{proof}
There are 216 ordered triples. The all-zero signature comes from six triples. For each of the fifteen nonzero gaps, triples using its two endpoints and repeating one of them have six orderings in total. The twenty three-element subsets each give six orders. Two distinct three-element subsets cannot give the same signature within a class because every positive gap identifies its unique edge and all three such edges fix the subset. Among the two lists of twenty, the following seven nondegenerate signatures coincide:
\[
\begin{gathered}
(1,16,17),\ (2,10,12),\ (3,6,9),\ (3,8,11),\\[-1pt]
(4,13,17),\ (5,8,13),\ (7,9,16).
\end{gathered}
\]
These can be checked by enumerating each sorted three-element subset $(x,y,z)$ and recording the sorted gaps $(y-x,z-y,z-x)$. Thus the $1+15+7$ common outcomes have mass $23/36$ in each class. A class-exclusive observation reveals the label; the law on common observations is the same in either class. Conversely, given an erasure, draw uniformly from the common outcomes; given a disclosed class, draw uniformly from its exclusive outcomes. This inverse randomization recovers the original one-block law exactly. For several blocks use the same argument, with reverse simulation from the conditional bag law given disclosure or erasure. An erasure leaves the posterior equal to the prior. Finally, the pair marginal is identical under $A$ and $B$, a property preserved by conditional independent products.
\end{proof}
In Blackwell's comparison of experiments \cite{blackwell}, the erasure channel and the triangle observation provide equal attainable risk for \emph{every} decision problem on this binary parameter. The pair observation can be simulated by choosing a uniformly random edge of a triangle. The triangle experiment strictly improves the binary classification risk, so no kernel can simulate the triangle experiment from a single fresh pair in both classes. This is a concrete failure of invertibility under forgetting a vertex. Since the likelihood ratio is constant on the shared region, choosing different labels on that region can change measured test accuracy without changing optimal population risk.
\section{Supervised training and comparison with the optimum}\label{sec:training}
The neural model encodes each observed token by a trained 12-dimensional embedding, pools the embeddings by their mean over the bag, and applies a 12-unit fully connected $\tanh$ layer and a scalar logistic readout. Sorting the three distances makes a triangle independent of the ordering of its vertices. Mean pooling is invariant under permutations of blocks, as in Deep Sets \cite{deepsets}. Token vocabularies are fitted on training data with an out-of-vocabulary bin; every held-out token in this experiment was present in training. For each input type and bag size, the fit used 4,096 training bags per class, binary cross-entropy, Adam with step size $0.008$, batch size 256, and 32 epochs. Class labels were balanced exactly. The two encoders see the same test draws for a given $m$. There are 10,000 independent held-out bags per class in each evaluation.
\begin{center}
\small\setlength{\tabcolsep}{7pt}
\begin{tabular}{llrrr}\toprule
Blocks & Input to trained network & Correct / 20,000 & Test accuracy & Exact optimum\\\midrule
1 & One distance per block & 9,938 & 49.690\% & 50.000\%\\
1 & Sorted triangle & 13,589 & 67.945\% & 68.056\%\\
6 & One distance per block & 9,941 & 49.705\% & 50.000\%\\
6 & Sorted triangle & 19,325 & 96.625\% & 96.600\%\\\bottomrule
\end{tabular}
\end{center}
The six-triangle network classified all 18,616 held-out bags containing an exclusive signature correctly. Among 1,384 all-common bags it correctly classified 709. The approximate stratified 95\% intervals for six-block accuracy were $[96.37,96.88]\%$ for triangles and $[49.01,50.40]\%$ for pairs. They measure test-set variability conditional on the trained weights. The exact optimum is a population quantity, so an observed accuracy can exceed it on one finite test set.
An exhaustive evaluation additionally weighted all $\binom{41}{6}=4{,}496{,}388$ six-triangle token multisets per class by their multinomial counts. The archived fitted network made zero errors on diagnostic bags anywhere in this finite population. For the saved float64 network this gives exact weighted accuracy $4{,}205{,}528{,}783/4{,}353{,}564{,}672$, equal to the population optimum. The full enumeration placed each diagnostic logit at least $4.00$ from the decision boundary. This is stronger evidence about this particular training run than an isolated held-out score.
A second learner estimated separate class-conditional token frequencies from 50,000 labeled one-block draws per class, adding a symmetric half-count per bin. It sums the resulting log likelihood ratios over a bag. On 65,536 held-out bags of length six, it achieved 96.556\% on triangles and 49.818\% on individual distances. Its fitted triangle table has a certificate: the smallest correct signed score on an exclusive triangle exceeds 7.854, whereas the largest absolute score on a common triangle is below 0.097. Even eleven common triangles cannot overturn a single exclusive one in a legitimate bag from one class. This proves that this particular trained table attains the exact population optimum for each $m\le12$. The archive provides its numerical margins.
\begin{center}\includegraphics[width=.92\linewidth]{../figures/protocols.pdf}\end{center}
\noindent\textbf{Figure 1.} In panel A the curves use the exact channel laws. Symbols show trained classifiers on held-out data. Panel B uses all distances from one sample of reused points. Its horizontal axis counts sampled points, whereas panel A counts independent observation blocks.
\subsection{The full-cloud control}
In a separate supervised task, each input contains all six template points exactly once. We drew 128 training and 512 test configurations per class with independent permutations, translations, and reflections. Training-only feature standardization and ridge-logistic readouts gave exactly 50\% for the full pair histogram and a 17-frequency Fourier-power grid, and 100\% for the triangle histogram and one real bispectral feature (Section~\ref{sec:freq}). We computed the power grid as a deterministic cosine transform of the integer difference counts, so floating-point errors associated with a particular translation could not fake a signal. These test inputs are new presentations of two known shapes. They test isometry invariance and information retention; performance on unseen shape classes is an independent question.
\section{Why reusing sampled points changes the answer}\label{sec:reuse}
For a new experiment, draw $N$ points with replacement from a single class and form
\[
H_d=\sum_{1\le i<j\le N}\mathbf 1_{\{|X_i-X_j|=d\}} .
\]
The model observes the histogram $(H_d)$ without vertex identifiers. For either class, $\EE H_d=\binom N2p_d$, where $p_d$ is the common distance law. But each input point contributes to $N-1$ pairs. Their dependence conveys information about the incidence of distances that the population mean omits.
\begin{proposition}[Four histogram bins suffice for consistency]\label{prop:four}
Let $D=H_1H_2-H_{10}H_{11}$. Choose $B$ if $D\ne0$, and $A$ otherwise. The equal-prior error of this rule is asymptotic to
\[
\tfrac12\sqrt{\frac{3}{2\pi N}}.
\]
Thus the Bayes accuracy of the full empirical histogram tends to one. The normalized histogram itself converges almost surely to the same vector in both classes.
\end{proposition}
\begin{proof}
Let $n_x$ be the number of draws at site $x$. For each positive gap $d$ its unique endpoints $u,v$ give $H_d=n_un_v$. For $A$, gaps $1,2,10,11$ give edges $(0,1),(10,12),(0,10),(1,12)$. Hence $H_1H_2=H_{10}H_{11}$ for every sample. For $B$ the respective edges are $(0,1),(11,13),(1,11),(0,11)$, so
\[
D=n_0n_1n_{11}(n_{13}-n_{11}).
\]
Under $B$ the probability of $D=0$ differs from $\PP(n_{13}=n_{11})$ by at most $3(5/6)^N$. The integer difference is a sum of independent increments taking $-1,0,1$ with probabilities $1/6,2/3,1/6$. Fourier inversion on the integers gives
\[
\PP(n_{13}=n_{11})=(2\pi)^{-1}\int_{-\pi}^{\pi}
\bigl(\tfrac23+\tfrac13\cos t\bigr)^N\,dt .
\]
At $t=0$ the factor equals $1-t^2/6+O(t^4)$. The inequality $1-\cos t\ge 2t^2/\pi^2$ bounds its $N$th power by $\exp[-2Nt^2/(3\pi^2)]$. Substitute $t=u/\sqrt N$ and apply dominated convergence to obtain $\sqrt{3/(2\pi N)}$ as the leading term. Half of that probability contributes to the equal-prior error. Finally $n_x/N\to1/6$ at each site. Each occupied positive-gap bin $H_d/\binom N2$ therefore converges to $1/18$, and the zero bin to $1/6$, in either template.
\end{proof}
\begin{center}\small
\begin{tabular}{lrrrrrr}\toprule
Number of sampled points & 2 & 3 & 4 & 6 & 8 & 12\\\midrule
Optimal full-histogram accuracy (\%) & 50.00 & 68.06 & 81.94 & 94.17 & 98.68 & 99.74\\
Four-bin rule accuracy (\%) & 50.00 & 51.39 & 53.24 & 58.42 & 64.86 & 76.67\\\bottomrule
\end{tabular}
\end{center}
For the optimum, enumerate all six-site occupancies $n_1+\cdots+n_6=N$, assign their multinomial probabilities, and sum the mass of each distinct histogram per class. Optimal balanced accuracy is half the sum over histograms of the larger class mass. For the four-bin rule independent enumeration and a counting formula agree through $N=12$. The latter gives 94.99\% at $N=48$ and 97.51\% at $N=192$.
The assertion uses exact counts or equivalent precision. In $B$, $D/N^4$ is $O_{\PP}(N^{-1/2})$ despite being nonzero with increasing probability. Rounding normalized products to a fixed coarse precision can destroy this classifier. Also distinguish the full-cloud control from drawing six points: one visit per site is prescribed in the former, while repeated visits and missing sites are typical in the latter.
\section{One real Fourier feature and its sampling cost}\label{sec:freq}
For a probability $\mu$, write $\phi(t)=\EE_\mu e^{-2\pi itX}$. Its signed pair-difference law has transform $|\phi(t)|^2$. Consider the real part of one bispectral coefficient \cite{bendory},
\[
z(\mu)=\Re\big\{\phi(f)^2\overline{\phi(2f)}\big\},\qquad f=1/8 .
\]
Translating all points cancels the phases, and reflecting the line conjugates the product while preserving its real part. Summing six roots of unity for each template gives
\[
z(A)=\frac{1-2\sqrt2}{54}<0,\qquad
z(B)=\frac{1+2\sqrt2}{54}>0 .
\]
The sign of the exact population statistic classifies perfectly. This frequency was chosen for these known templates. Learning a filter bank on a broader collection would pose a different estimation problem.
For $N$ i.i.d.\ coordinates, set $u_j=e^{-2\pi ifX_j}$, $S=\sum_j u_j$ and $T=\sum_j u_j^2$. Replacing $\phi$ by the empirical characteristic function gives $\widehat z_{\rm plug}=\Re(S^2\overline T)/N^3$. At small $N$ there is appreciable bias. An unbiased alternative at the same asymptotic computational cost is the order-three U-statistic
\[
\widehat z_{U}=
\frac{\Re(S^2\overline T)-|T|^2-2|S|^2+2N}{N(N-1)(N-2)}.
\]
Indeed $z$ is the expectation of $\Re(u_i u_j\overline{u_k}^2)$ at three distinct sample indices. Inclusion--exclusion deletes $i=j$, $i=k$, and $j=k$ from the full triple sum, adding $2N$ for the diagonal counted too many times. The two complex sums suffice, giving $O(N)$ operations. Counting index collisions also yields
\[
\EE\widehat z_{\rm plug}
=\frac{(N)_3}{N^3}z+
\frac{N-1}{N^2}\bigl(|\phi(2f)|^2+2|\phi(f)|^2\bigr)+\frac{1}{N^2},
\]
with $(N)_3=N(N-1)(N-2)$. Without noise the positive additive terms sum to $(5N+4)/(9N^2)$ in either class. At $N=6$, this shifts even the negative class to a positive mean. Unbiasedness concerns the mean; the optimal finite-sample decision threshold is a separate question.
\section{A noise test on randomly moved point clouds}
We added independent coordinate jitter uniform on $[-h,h]$, then applied a common random reflection and translation to each cloud. We evaluated $N=6,18,48,128$ and $h=0,0.1,0.3,0.7$, with 12,000 independent clouds per class in every cell. All three rules in a cell use the same points. For triangles we form $\lfloor N/3\rfloor$ disjoint triples, round their three sorted side lengths to the nearest grid integer, and vote using the clean class-exclusive signatures. Unrecognized and shared signatures abstain. Ties use a fair coin. The two spectral rules threshold their estimated real part at zero. These are fixed decoders.
At $h<1/4$, every distance changes by at most $2h<1/2$, so rounding recovers the clean triangle. Moreover a clean one-dimensional triangle signature fixes the underlying triple up to translation, reflection and permutation. The symmetric independent noise respects these operations, so a noisy signature can be simulated from the clean signature by a class-independent kernel. In this regime the clean and noisy triangle experiments are equivalent. At greater noise the rounding argument no longer controls performance. For the bispectrum the population means are the clean $z$ times $\operatorname{sinc}(h/4)^2\operatorname{sinc}(h/2)$, where $\operatorname{sinc}(u)=\sin(\pi u)/(\pi u)$. This factor stays positive over the tested range.
\begin{center}\small\setlength{\tabcolsep}{6pt}
\begin{tabular}{rr rrr}\toprule
Points & Jitter $h$ & Rounded triangles & Unbiased bispectrum & Plug-in bispectrum\\\midrule
6 & 0 & 79.58\% & 66.10\% & 59.57\%\\
18 & 0 & 96.42\% & 76.67\% & 75.33\%\\
18 & 0.7 & 63.61\% & 76.52\% & 73.77\%\\
128 & 0.7 & 83.03\% & 94.65\% & 93.05\%\\\bottomrule
\end{tabular}
\end{center}
\begin{center}\includegraphics[width=.82\linewidth]{../figures/jitter.pdf}\end{center}
\noindent\textbf{Figure 2.} Balanced test accuracy on 18 points per cloud. Whiskers show approximate stratified 95\% intervals. The dotted line marks the limit of the strict rounding guarantee. Connected markers locate the four tested noise levels; intermediate accuracies were not measured.
At $h=0.7$, $N=18$, the intervals are $[63.00,64.21]\%$ for triangle voting and $[75.98,77.05]\%$ for the unbiased spectral rule. The reversal is a property of these decoders. It leaves open how a triangle classifier trained on continuous noisy distances would fare, especially because the spectral statistic also uses all $N$ points jointly. Across 64 class-conditional mean checks (two spectral estimators, two classes, sixteen settings), observed means were within 2.14 estimated Monte Carlo standard errors of their analytic expectations.
\section{Interpretation and reproducibility}
The benchmark diagnoses three distinct sources of low accuracy. Independent distances give zero information about this label. A bag of six triangles has enough information for 96.600\% accuracy; some test errors remain unavoidable even with perfect training. Exact population phase information permits perfect accuracy, yet estimating one such coefficient from eighteen points can yield considerably lower accuracy than observing six exact triangles. Information lost in an encoder, irreducible sample ambiguity, and estimator error call for different changes to a learning system.
The task involves two known isometry classes, a fixed scale and equiprobable labels. It tests invariant pooling and sampling protocols. Generalization to other geometric classes requires new evidence. Even three-body descriptors have known degeneracies on other geometric families \cite{atomic}. Modeling the input as a family of sampling experiments identifies the precise improvement certified here, including the strict improvement in Blackwell order from fresh pairs to fresh triangles.
\noindent\textbf{Reproduction.} The archive contains Python programs, model weights, result tables, seeds, figure sources and the LaTeX for this note. Its notebook recomputes the exact channel and demonstrates the fitted network. An independent Monte Carlo run used 50,000 bags per feature and block count with random labels. Its 95\% pointwise intervals covered nine of ten analytic probabilities; the $m=2$ triangle run gave 80.082\% against 79.591\%. The learned table, the networks, and the noise experiment use separate seeds. Repeated simulated clouds quantify performance on the specified two laws. The study and write-up were prepared with AI assistance.
\begingroup\small\raggedright
\begin{thebibliography}{9}\setlength{\itemsep}{1pt}
\bibitem{bloom} G. S. Bloom, A counterexample to a theorem of S. Piccard, \emph{J. Combin. Theory Ser. A} 22 (1977), 378--379. \href{https://doi.org/10.1016/0097-3165(77)90013-9}{Publisher's record}.
\bibitem{blackwell} D. Blackwell, Equivalent comparisons of experiments, \emph{Ann. Math. Statist.} 24 (1953), 265--272. \href{https://doi.org/10.1214/aoms/1177729032}{doi:10.1214/aoms/1177729032}.
\bibitem{deepsets} M. Zaheer et al., Deep Sets, \emph{NeurIPS} 30 (2017). \href{https://arxiv.org/abs/1703.06114}{Author's version}.
\bibitem{bendory} T. Bendory et al., Bispectrum inversion with application to multireference alignment, \emph{IEEE Trans. Signal Process.} 66 (2018), 1037--1050. \href{https://doi.org/10.1109/TSP.2017.2775591}{doi:10.1109/TSP.2017.2775591}.
\bibitem{atomic} S. N. Pozdnyakov et al., Incompleteness of atomic structure representations, \emph{Phys. Rev. Lett.} 125 (2020), 166001. \href{https://doi.org/10.1103/PhysRevLett.125.166001}{doi:10.1103/PhysRevLett.125.166001}.
\end{thebibliography}\endgroup
\end{document}