Locating the 2D Ising Critical Temperature with Phase Classifiers: Single-Size Crossings, Finite-Size Collapse, PCA and Learning by Confusion Curlew-31N Stemma seed corpus https://github.com/mihir-chauhan/research-harness-papers/tree/main/papers/2d-ising-monte-carlo-with-a-phase-classifier Abstract—We ask how accurately classifiers trained only conclusion from it. At matched samples × epochs (680 versus deep inside the ordered and disordered phases of the 2D Ising 700 optimizer steps), reducing the training set to 10 samples model recover the critical temperature, and whether a finite- per chain raises the MLP error by a factor of 2.78, whereas size-scaling (FSS) collapse of their output helps. On Swendsen– the CNN paired difference is −0.0001 (95% interval −0.0016 Wang samples for L = 16, 24, 32 at 40 temperatures (200 sam- to 0.0014, five seeds). This is a small CPU study with sizes up ples each, 4 independent chains) we compare reimplemented to L = 64 and reimplemented baselines. logistic regression (raw and Z2-gauge-fixed), an MLP, a small Index Terms—Ising model, phase classification, finite-size periodic CNN, PCA and learning by confusion, plus a non- scaling, learning by confusion, principal component analysis, ML susceptibility/Binder reference, over 10 seeds against the Monte Carlo Onsager value Tc = 2.269; the revision adds controls on grid placement, held-out noise, baseline convergence, collapse I. Introduction validation and larger sizes (L = 48, 64, five seeds). At L = 32 the 0.5 crossing of the CNN and the MLP is within 0.023 Supervised classifiers trained on Monte Carlo configura- and 0.020 of Tc on average, better than the PCA peak tions from deep inside two phases and then applied across (0.056; paired Wilcoxon p = 0.004 for the CNN), than a the transition have become a standard demonstration of 0.5 threshold of the normalised PCA amplitude (0.052) and than the Binder-cumulant crossing of PC1 (0.143); the Binder- machine learning for statistical physics. In the 2D Ising cumulant crossing of the non-learned reference (0.026) is not model, Carrasquilla and Melko [1] trained a feed-forward distinguishable from the CNN. This advantage over PCA holds network on Ising configurations labelled as ordered or on a grid offset by half a spacing (p = 0.002), on a fine grid disordered by the known critical temperature, and located (p = 0.010) and with the training window centred ±0.1 away the critical point from the crossing of the network output from Tc . Learning by confusion is not distinguishable from the CNN and the MLP at L = 32 on the default grid (0.015; at several lattice sizes, together with a finite-size-scaling p = 0.11 and 0.38); its read-out was revised after a first full collapse for Tc and the correlation-length exponent. Alter- set of runs (error 0.024 before the revision), and its place natives need no phase labels at all: principal component among the systems changes with the grid, so we do not rank analysis (PCA) of the configurations yields a leading it. The temperature grid spacing is 0.051. Logistic regression component that tracks the magnetisation [2], [3], and on raw spins is at chance (held-out accuracy 0.51) because of the spin-flip symmetry. The gauge-fixed logistic regression learning by confusion [4] sweeps a trial critical point trained for 20 Adam epochs reaches only 0.72, but this was and looks for a W-shaped accuracy curve whose middle an optimisation shortfall: a converged solver reaches 0.995, peak marks the transition. The √ exact answer is known and a logistic regression on |m| alone has an L = 32 error (Onsager [5]), Tc = 2/ ln(1 + 2), so the 2D Ising model of 0.047. The FSS collapse did not improve on the single-size is a convenient place to ask a controlled question: how crossing for the CNN (collapse error 0.034, p = 0.08) or the MLP (0.021); on a fixed common x-overlap the collapse errors large is the error of each read-out, on identical data, and are larger still (0.063, 0.060). The CNN collapse exponent is what drives it? high under both measures (ν̂ = 1.70 and 1.93 versus the exact In this study we want to separate several things that a 1), while on synthetic scaling curves with known (Tc , ν) and single demonstration leaves entangled: the finite-size shift matched noise the original cost returns 1.26 for νtrue = 1 at of a crossing; the choice of classifier, where a linear model the CNN noise level, a smaller bias than the CNN’s; training the CNN three times as long lowers its exponent error. The on raw spins cannot see the order parameter because collapse of learning-by-confusion curves is not a test of that the Hamiltonian is symmetric under a global spin flip; method: W (T ′ ) is not a scaling function, and we draw no the choice of training window; the number of training samples; and the extra step of an FSS collapse. Related Curlew-31N is the codename of an autonomous study, not a person. studies examine what trained networks learn [6] and when Produced by the Stemma autonomous AI research pipeline; the topic unsupervised methods work [3], but we are not aware of was chosen to cover the field. Every reported result is traced to logged runs in the linked repository and every reference was checked against a side-by-side comparison of all of these read-outs under arXiv, Crossref, DataCite or OpenAlex. one protocol and one metric. What we do.: We generate Ising samples with a should be judged. Other uses of learning in the same batched cluster sampler (Sec. IV), reimplement the su- area include Boltzmann machines [13] and learned Monte pervised classifiers, PCA and learning by confusion, add Carlo proposals [14]; they are not part of this study. a non-learned susceptibility/Binder-cumulant reference, Positioning.: Our contribution is not a new method and measure the absolute error of the estimated critical but a controlled comparison under one metric, with a temperature against the Onsager value for L = 16, 24, 32 physical reference, a collapse read-out, per-size biases and and after an FSS collapse, over 10 seeds with data sensitivity studies, and with the negative outcomes written regenerated for each seed. We register six hypotheses down. before the main runs (Sec. III) and report each verdict, including the failures. III. Method Findings, in brief.: (i) The nonlinear classifiers give A. Model, observables and read-outs single-size crossings within roughly half a temperature- ∑ We study H = − ⟨ij⟩ si sj on an L × L periodic square grid step of Tc at L = 32, better than PCA (peak, √ lattice with si = ±1 (J = kB∑= 1) and Tc = 2/ ln(1 + 2). threshold and Binder-crossing read-outs; default, offset Per configuration m = L−2 i si . For each system below and fine grids) and not distinguishable from confusion an output curve yL (T ) is evaluated on held-out chains, at L = 32, whose read-out was revised after a first set and each system has a registered Tc read-out; the error is of runs. (ii) Logistic regression on raw spins fails for a |T̂c − Tc |. symmetry reason that our gauge-fixing control isolates; Supervised classifiers (LogReg, MLP, CNN). Configura- the gauge-fixed regression recovers the order when solved tions with T ≤ Tcref − δ are labelled ordered (c = 1), those to convergence. (iii) The FSS collapse does not help the with T ≥ Tcref + δ disordered (c = 0), with Tcref = 2.27 CNN and MLP under either of two collapse measures, and a rounded prior value only used to place the window, the collapse exponent of the CNN is high; the confusion and δ = 0.3 by default (windows T ≤ 1.970, T ≥ 2.570). collapse is not a valid test. (iv) The MLP error depends The model fθ (s) ∈ R is trained with class-balanced cross on the training-set size more than on the width of the entropy excluded window around Tc ; for the CNN the apparent ∑ [ ] dependence is an optimisation-budget effect at matched L = N1 wcn log(1 + efθ (sn ) ) − cn fθ (sn ) , wc = 2 1πc , samples × epochs. This is a small CPU study; Sec. VIII n lists what it cannot say. (1) with πc the class fraction. LogReg is f = w⊤ s + b; the Z2- II. Related Work fixed variant uses s → sgn(m) s (with sgn(0) = 1). The Supervised phase classification.: Carrasquilla and MLP is f = v ⊤ ReLU(W s + b) + b′ with 64 hidden units. Melko [1] trained a feed-forward network on Ising config- The CNN applies two 3×3 circular-padded convolutions urations labelled by the known Tc , evaluated it across the with 8 channels and ReLU, a global spatial mean, and a transition, and extracted Tc and critical exponents from linear layer. The output curve is pL (T ) = ⟨σ(fθ (s))⟩T over the output crossing and a finite-size-scaling collapse; they held-out samples at temperature T , and the read-out is used convolutional networks for the topological phases of the first downward crossing of 0.5 scanning from low T , a gauge model. Our variant, in which the training set pi − 12 excludes a window around Tc so that the network never T̂c = Ti + (Ti+1 − Ti ), pi ≥ 12 > pi+1 , (2) pi − pi+1 sees the transition region, is a choice of this study. Ch’ng et al. [7] applied convolutional networks to the (quantum) by linear interpolation (grid edge if no crossing exists; this Hubbard model. Suchsland and Wessel [6] study what never occurred). trained networks encode as a function of their parameters. PCA (reimplemented after [2]). Let C be the covariance Mehta et al. [8] provide a tutorial with an Ising notebook of the training configurations pooled over all temperatures that serves as a common benchmark. and v1 its leading eigenvector, z = v1⊤ (s− s̄). The read-out Label-free read-outs.: Wang [2] used PCA to show is the peak (3-point parabola) of the fluctuation VarT |z| that the leading components of Ising configurations carry over T ∈ [1.9, 3.1], a susceptibility analogue. The collapse the order parameter; Hu et al. [3] examined where such curve is ⟨|z|⟩T / maxT ⟨|z|⟩T . unsupervised read-outs work or break down. van Nieuwen- Learning by confusion (reimplemented after [4]). For burg et al. [4] proposed learning by confusion, in which each trial boundary T ′ on the grid between 1.7 and 3.3 the transition is the trial boundary at which a classifier (placed midway between grid points; W is plotted and trained on deliberately assigned labels is most accurate. read out at the boundary T ′ itself), an MLP is trained Sampling and scaling.: Cluster algorithms to predict the label ⊮[T < T ′ ] on all training chains at (Swendsen–Wang [9], Wolff [10]) remove most of all temperatures; W (T ′ ) is its accuracy on the held-out the critical slowing down of local updates. Finite-size chain. T̂c is the parabola-refined maximum of W over T ′ ∈ scaling [11] and the Binder cumulant [12] give the [1.9, 3.1] (the central peak of the W shape). The collapse physical reference read-outs against which a learned Tc curve is W itself. Reference (non-learned). Per-size susceptibility χ = is the bootstrap standard error. Independently, the trained L2 (⟨|m|2 ⟩ − ⟨|m|⟩2 )/T with its peak as T̂c (search in models are applied to an enlarged held-out set of 16 [1.9, 3.1]); the collapse curve is the Binder cumulant further chains per temperature (800 configurations per U4 = 1 − ⟨m4 ⟩/(3⟨m2 ⟩2 ) [12]. These use all four chains temperature instead of 50) and the read-out is repeated. since nothing is trained. The susceptibility and Binder reference uses all four chains of the main group, and for the enlarged set the 16 new B. Finite-size-scaling collapse chains alone. Following [1], [11], curves from the three sizes are PCA read-outs and scaling forms.: Besides the peak assumed to depend on x = (T − Tc )L1/ν only. For a of Var|z| we read out PCA with (i) the first downward candidate (Tc , ν) we linearly interpolate each yL onto 30 crossing of 0.5 of the normalised curve ⟨|z|⟩/ maxT ⟨|z|⟩ common points in |x| ≤ minL wL1/ν (window w = 0.6 in (the same interpolation as for the classifiers) and (ii) the |T − Tc |) and compute crossing between sizes of the Binder cumulant of the first 1 ∑ component, U4 (z) = 1 − ⟨z 4 ⟩/(3⟨z 2 ⟩2 ), within [1.9, 3.1]; VarL [yL (xk )] C(Tc , ν) = 30 k . (3) the non-learned reference also gets the size crossing of VarL,k [yL (xk )] U4 (m). For the collapse of PCA we use two scaling The minimum over the grid Tc ∈ [2.0, 2.6] (step 0.005), forms that are functions of x = (T − Tc )L1/ν alone: ν ∈ [0.5, 2.0] (step 0.025) gives (T̂cfss , ν̂); the grid resolution the order-parameter-like curve multiplied by its finite-size therefore floors the error at 0.0008 near Tc . We also report amplitude, Lβ/ν ⟨|z|⟩/ maxT ⟨|z|⟩ with the exact β = 0.125, the collapse with ν = 1 fixed and with two narrower and U4 (z). windows. Collapse measure on a fixed overlap, and its valida- tion.: In addition to the cost C above we use a second C. Registered hypotheses measure on a fixed common overlap: only grid nodes with Fixed in BRIEF.md before the main runs, tests over |x| ≤ 6 are used (no interpolation of the curve being seeds: H1 MLP and CNN have lower single-size error at scored), a candidate (Tc , ν) is feasible only if every size L = 32 than PCA (paired Wilcoxon, plus the paired t-test has at least 5 nodes in the overlap, each node of size L is of rh compare); H2 the collapse lowers the error relative to compared with the linear interpolation of the pooled nodes the L = 32 crossing (paired Wilcoxon); H3 raw LogReg has of the other sizes (leave-one-size-out, in the spirit of [15], held-out far-from-Tc accuracy < 0.6, gauge-fixed > 0.6; H4 [16]), and the mean squared residual is divided by the PCA and confusion do not beat the CNN on the collapse variance of all nodes in the overlap; the same (Tc , ν) grid error (paired Wilcoxon); H5 mean |ν̂ − 1| < 0.25 for the is searched. Both measures are applied to synthetic curves CNN and MLP; H6 the error at L = 32 is within a factor yL (T ) = f ((T − Tc )L1/νtrue ) with f (x) = 1/(1 + ex/2 ), the two of the default for margins 0.15–0.6 and for 10–50 exact Tc , the sizes and temperature grid of the main group, training samples per chain. 30 noisy copies per setting, and Gaussian noise whose standard deviation is zero or the seed-to-seed standard D. Controls added in the revision deviation of the real MLP or CNN output curves within All controls below use the data, seeds, training code |T − Tc | ≤ 0.3 in the main group. and read-outs of the main group (the extended entry Baseline controls.: (i) The Z2-fixed logistic regression point reproduces the main-group single-size errors of every is also solved to convergence with full-batch L-BFGS system to machine precision; 0.0 maximal difference), on the same objective (class-balanced cross entropy plus changing one thing at a time. weight decay; at most 2000 iterations; final gradient norm Grids and window centres.: The offset grid has the recorded). (ii) Simple classifiers on global features, trained same 40 points and spacing as the main grid, shifted by with the same windows, the same loss and the same half a spacing (0.0256), so that Tc lies midway between the ∑ regression on |m|, on the energy per site solver: logistic nodes 2.2436 and 2.2949. The fine grid has spacing 0.01 e = − L12 ⟨ij⟩ si sj , and on (|m|, e). (iii) Learning by in [2.1, 2.5] and spacing 0.05 outside (73 temperatures). confusion and the supervised MLP get the same grid of The training-window centre Tcref is moved from 2.27 to hidden widths and epochs (16, 32, 64 units; 8, 20 epochs; 2.17 and 2.37 (±0.1; margin δ = 0.3 unchanged) on the seeds 0–5, so 5 seeds), none selected; in addition the default and on the offset grid. PCA, confusion and the confusion networks are run with the settings of the reference do not use training windows, so for them only supervised MLP (64 units, 20 epochs, all 10 seeds). the grid changes. Data are regenerated for each grid with Larger sizes and extrapolation.: All systems are also the same seeds. run at L = 48 and L = 64 (seeds 0–4; training windows, Held-out uncertainty.: For every read-out the held- epochs and read-outs unchanged). The per-size estimates out configurations of each temperature are resampled of L = 16, . . . , 64 are fitted by T (L) = T∞ + aL−1/ν by with replacement (200 resamples, each temperature in- least squares, with ν = 1 fixed (sizes 16–32, 16–64, 32–64) dependently, the read-out recomputed, trained models and with ν free on the collapse grid (sizes 16–64); the fixed); the standard deviation of the resampled estimates error is |T∞ − Tc | per seed. TABLE I Hyperparameters and tuning.: Adam, learning rate Sampler check, L = 24: energy per site from Swendsen–Wang, 0.001, weight decay 10−4 , batch 128, 20 epochs for checkerboard Metropolis, and the exact infinite-lattice value (finite-size and statistical differences are of order 10−3 ). supervised models; 32 hidden units and 8 epochs for each confusion network. These were fixed a priori and T e Swendsen–Wang e Metropolis e Onsager not tuned on any Tc quantity (a pilot on an unreported 1.8 −1.8597 −1.8594 −1.8593 seed was used only to check run time and that training 2.0 −1.7458 −1.7454 −1.7456 converged); the supervised models see no label information 3.0 −0.8171 −0.8181 −0.8173 from the transition region, and the windows are placed 3.5 −0.6587 −0.6599 −0.6601 using the rounded prior Tcref . Baselines were therefore not tuned either: that is a limitation (Sec. VIII). Learning-by- confusion networks are smaller than the supervised ones Revision of the confusion read-out.: The first full set by design, because ≈32 of them are trained per size. of main-group confusion runs plotted and read out W Metrics.: Absolute error |T̂c − Tc | per size at the grid node below the trial boundary T ′ used for (tc_error_l16/24/32) and after the collapse the labels, half a grid step lower than the boundary; the (tc_error_fss); the signed bias; |ν̂ − 1|; and for the reported runs read it out at T ′ (commit a79ba2e, the first supervised models the held-out accuracy in the training runs are in results/superseded_runs.jsonl). Both versions windows (acc_far). All systems share the same data, are compared in Sec. VI. temperature grid, held-out chain and metric definitions. Mechanism controls.: To ask why the CNN cross- Hardware: CPU only, two threads per process, at most ing hardly depends on L, we (i) compute, within each two processes at a time; every run completed well inside temperature with |T − Tc | ≤ 0.25 and then averaged, the 6-minute limit. Analyses of saved curves (collapse the Spearman rank correlation of the held-out output variants) and the paired tests are logged runs too. of each classifier with |m| and with e; (ii) compare the output curves with those of the energy-only and |m|-only V. Results classifiers; (iii) append the global feature |m| to the pooled A. H1: nonlinear classifiers versus PCA at a single size — CNN features (one intervention on the architecture); and supported (iv) train the CNN three times as long (optimisation At L = 32 the CNN error is 0.023 and the MLP error control). 0.020, versus 0.056 for PCA and 0.066 for the susceptibility peak (Table II). The paired Wilcoxon tests give p = 0.004 IV. Experimental Setup (CNN) and p = 0.002 (MLP), with the CNN lower on 9 Data.: Spin configurations are generated with of 10 seeds and the MLP on 10; the paired t-test of rh a batched Swendsen–Wang cluster sampler [9] in compare agrees for the CNN (p = 0.0002). The advantage NumPy/SciPy (bonds between equal neighbours are ac- is largest at the small sizes (Table II). The result does tivated with probability 1 − e−2/T , clusters found by not extend to confusion: its L = 32 error (0.015) has the connected components over the whole batch, each flipped lowest mean of all systems on the default grid, but is not with probability 1/2). We chose it over Wolff [10] because distinguishable from the CNN (Wilcoxon p = 0.11) or the one call advances every temperature and chain at once; MLP (p = 0.38). At L = 24 its mean is also lower than a checkerboard Metropolis sampler is also implemented theirs (0.017; p = 0.16 against the CNN and 0.049 against and used only as a cross-check. For each lattice size there the MLP, uncorrected for the six comparisons made at the are 40 temperatures, linearly spaced in [1.5, 3.5], and 4 three sizes), and its seed spread at L = 16 (std 0.052) is independent chains per temperature, each started from larger than that of the CNN (0.018) and the MLP (0.015) a random configuration, thermalised for 100 sweeps and but smaller than that of the raw logistic regression (0.240), sampled 50 times at a gap of 10 sweeps, i.e. 200 samples the gauge-fixed logistic regression (0.059) and PCA (0.075) per temperature. Table I compares the mean energy per (Table II). The errors of the good systems are below the site of the sampler, of checkerboard Metropolis (cold start) grid spacing of 0.051; the offset and fine grids of Sec. VI and of Onsager’s exact infinite-lattice value on L = 24 show that they do not depend on the node at Tc and (64 chains per temperature for this check); the lag-1 are not reduced by a spacing of 0.01. The L = 32 error autocorrelation of |m| between stored samples at L = 32 difference between CNN and MLP is not significant (p = near Tc is 0.04. A first, smaller check with fewer chains is 0.23). also in the run registry (Sampler check). Finite-size bias. Table III shows that the single-size Splits and seeds.: Chains 0–2 (50 samples each) train read-outs are biased upward and the bias shrinks with or fit; chain 3 is held out, so every output curve is L for the MLP (0.051, 0.029, 0.020 at L = 16, 24, 32), evaluated on a chain no model has seen, including at PCA and the susceptibility peak, as expected from the the temperatures inside the training windows. Seeds 0– shift of pseudo-critical points with L [11]. The CNN is the 9 regenerate the data (seed 1000 seed + L) and the model exception: its bias is small already at L = 16 (0.013) and initialisation; the main group has 10 seeds × 7 systems. nearly constant afterwards. The CNN output curves are TABLE II Main results: |T̂c − Tc | (mean ± std over 10 seeds) from the single-size read-out at each L and after the FSS collapse, collapse exponent, and held-out far-from-Tc accuracy. Bold best, underline second best (generated). Method tc_error_l16 ↓ tc_error_l24 ↓ tc_error_l32 ↓ tc_error_fss ↓ nu_error_fss ↓ acc_far ↑ n Binder/chi (reference) 0.109 ± 0.018 0.088 ± 0.009 0.066 ± 0.007 0.035 ± 0.036 0.250 ± 0.223 – 10 MLP 0.051 ± 0.015 0.029 ± 0.010 0.020 ± 0.008 0.021 ± 0.019 0.168 ± 0.134 0.997 ± 0.001 10 LogReg (Z2-fixed) 0.504 ± 0.059 0.367 ± 0.054 0.287 ± 0.052 0.083 ± 0.030 0.143 ± 0.139 0.723 ± 0.011 10 Confusion (MLP) 0.056 ± 0.052 0.017 ± 0.017 0.015 ± 0.016 0.331 ± 0.000 1.000 ± 0.000 – 10 PCA 0.163 ± 0.075 0.101 ± 0.047 0.056 ± 0.017 0.122 ± 0.037 0.480 ± 0.265 – 10 LogReg (raw) 0.409 ± 0.240 0.341 ± 0.196 0.220 ± 0.218 0.155 ± 0.114 0.473 ± 0.198 0.513 ± 0.011 10 CNN 0.032 ± 0.018 0.023 ± 0.009 0.023 ± 0.006 0.034 ± 0.018 0.698 ± 0.299 0.999 ± 0.001 10 LogReg (raw) LogReg (Z2-fixed) MLP CNN 1.0 L=16 mean P(ordered) L=24 L=32 0.5 0.0 2 3 2 3 2 3 2 3 T T T T Fig. 1. Mean held-out output P (ordered) versus T (band: std over seeds; dotted: exact Tc ). The raw logistic regression is flat at 1/2. TABLE III TABLE IV Signed bias T̂c − Tc (mean ± std over seeds). Paired Wilcoxon tests over seeds (second column: first minus second; “seeds first lower” counts out of ten). System L=16 L=24 L=32 collapse CNN 0.013 ± 0.035 0.005 ± 0.025 0.004 ± 0.024 −0.013 ± 0.038 Hyp. comparison (first minus second) mean diff. Wilcoxon p seeds first lower MLP 0.051 ± 0.015 0.029 ± 0.010 0.020 ± 0.008 −0.020 ± 0.020 H1 CNN vs PCA, L=32 −0.033 0.004 9 Confusion (MLP) 0.051 ± 0.058 0.010 ± 0.022 0.008 ± 0.021 0.331 ± 0.000 H1 MLP vs PCA, L=32 −0.036 0.002 10 PCA 0.163 ± 0.075 0.101 ± 0.047 0.056 ± 0.017 −0.122 ± 0.037 H2 CNN: collapse vs L=32 0.011 0.084 2 Binder/χ (ref.) 0.109 ± 0.018 0.088 ± 0.009 0.066 ± 0.007 −0.017 ± 0.048 LogReg (Z2-fixed) 0.504 ± 0.059 0.367 ± 0.054 0.287 ± 0.052 0.083 ± 0.030 H2 MLP: collapse vs L=32 0.001 1.000 5 LogReg (raw) −0.316 ± 0.363 0.035 ± 0.407 0.208 ± 0.231 0.124 ± 0.150 H4 PCA vs CNN (collapse) 0.088 0.002 0 H4 Confusion vs CNN (collapse) 0.297 0.002 0 – Confusion vs CNN, L=32 −0.008 0.105 8 – Confusion vs MLP, L=32 −0.005 0.375 8 – CNN: ν=1 vs free (collapse) −0.016 0.023 9 – MLP: ν=1 vs free (collapse) −0.007 0.125 4 nearly identical for the three sizes (Fig. 1); the mechanism – MLP vs CNN (collapse) −0.013 0.230 7 – Binder/χ vs CNN (collapse) 0.001 0.557 6 controls of Sec. VI are consistent with a read-out that follows the energy density, but only the correlational part of that explanation is established. in position only: the susceptibility reference improves The CNN is not the best system. The platform’s verdict from 0.066 to 0.035 with Binder collapse (p = 0.064, on the primary metric (collapse error) ranks the MLP first which is not below 0.05), whereas PCA worsens (0.056 by mean (0.021 versus 0.034), but the difference is not to 0.122, p = 0.002). Statistically, with only ten seeds significant (Table IV); the CNN has the lowest mean only the smallest attainable two-sided Wilcoxon p is 0.002, so at L = 16 and learning by confusion at L = 24 and L = 32 “not supported” means no detectable improvement, not on the default grid (not on the fine grid, Table V), and no proof of none. On a fixed common overlap (Sec. VI) the learned system is clearly distinguishable from the others collapse error of the CNN and the MLP is larger than their at L = 32. L = 32 error (paired p = 0.004 and 0.010), while for the B. H2: collapse versus single-size crossing — not sup- susceptibility/Binder reference it is smaller (p = 0.002); ported the statement that the collapse does not help therefore holds for the classifier curves under both measures. The collapse does not reduce the error (Table IV). For the CNN the collapse error (0.034) is larger than at L = 32 C. H3: logistic regression and the spin-flip symmetry — (mean difference 0.011, p = 0.084, lower on only 2 seeds); supported for the MLP there is no difference (p = 1.00). The collapse The raw logistic regression gives held-out accuracy 0.51 helps where the single-size bias is large and curves differ inside the training windows (chance level for the class- balanced task), a flat output (Fig. 1), and a crossing confusion W PCA that is noise: its error is 0.22 at L = 32 with std 0.22, and a bias with either sign. A linear function of s has 0.95 L=16 1.00 held-out accuracy L=24 mean|z1| / max zero average over a symmetric ensemble, so it cannot 0.90 L=32 0.75 separate the phases. Multiplying each configuration by the sign of its magnetisation, the only change in that system, 0.85 0.50 raises the held-out accuracy to 0.72 (> 0.6, the registered 0.80 0.25 threshold), which isolates the symmetry as the cause. The recovery in the main group is partial: the crossing 0.75 is badly biased (0.29 at L = 32, 0.50 at L = 16). The 2 3 2 3 convergence control (Table XI) shows that this was mostly T T an optimisation shortfall of 20 Adam epochs, not a limit of linear capacity: the same objective solved with L-BFGS Fig. 2. Left: learning-by-confusion accuracy W (T ′ ) (mean over (final gradient norm 0.0) reaches a held-out accuracy of seeds). Right: PCA order-parameter proxy. Dotted: exact Tc . 0.995 and an L = 32 error of 0.066 (paired p = 0.002). The earlier explanation that a linear function of the aligned spins separates the phases poorly is therefore not E. H5: collapse exponent — mixed supported. The H3 verdict (raw < 0.6, gauge-fixed > 0.6) The MLP collapse exponent is ν̂ = 1.10 (|ν̂ − 1| = 0.17, is unchanged. below the registered 0.25), but for the CNN ν̂ = 1.70 with |ν̂ − 1| = 0.70 and the search reaches the upper grid edge (maximum over seeds 2.00); the verdict is supported for D. H4: label-free methods versus the CNN — supported the MLP and refuted for the CNN. Raw logistic regression for PCA with the registered curve only; not assessed for has |ν̂−1| = 0.47 with a collapse cost far larger (0.61 versus confusion 0.0018), so its exponent should be read as noise. Fig. 3 shows seed-0 collapses; the CNN curves are nearly size- On the collapse error PCA (0.122) and confusion (0.331) independent, which makes ν poorly determined. Fixing are both worse than the CNN (0.034), p = 0.002 and ν = 1 changes the CNN error to 0.018 (Table XVI). p = 0.002, with the CNN lower on every seed (Table IV). Whether the exponent bias is an artefact of the cost was The confusion value comes from a recipe that is not valid tested (Sec. VI): on synthetic curves with known ν and for that quantity: for every seed the collapse returns the matched noise the original cost has an upward bias that same grid-boundary value, Tc = 2.6 with ν = 2 (std is smaller than the CNN’s exponent error (Table IX), 0.000). The W-shaped accuracy W (T ′ ) has a V-shaped and with the fixed-overlap measure the CNN exponent is background from label imbalance and is not a function of 1.93 (at the upper edge on 8 of ten seeds, against 4 with (T − Tc )L1/ν alone, so this collapse tests a scaling form the original cost). The exponent finding for the CNN is that is not expected to hold; it is not evidence about therefore kept as a statement about the CNN curves under learning by confusion, and we draw no H4 conclusion for both measures, which the synthetic test does not trace to it. We did not collapse a quantity that is expected to the cost alone; the exponent of the MLP is also high with scale for confusion. Its single-size read-out (central peak) the fixed overlap (1.87), so the registered H5 verdict for is reported in Table II. MLP and the Binder/susceptibility the MLP does not hold under that measure. reference are not distinguishable from the CNN on the collapse error (p = 0.23 and 0.56). PCA with the registered VI. Controls added in the revision curve ⟨|z|⟩/ max is not a function of x alone either, All numbers in this section come from runs of groups since the order-parameter-like amplitude carries L−β/ν . heldout, grid_offset, grid_fine, win_c217, win_c237, of- With the amplitude factor (exact β) or with the Binder fwin_c217, offwin_c237, large_L, ctrl_base, conf_parity, cumulant of PC1 the PCA collapse errors are given in budget_*, mech_*, synth_collapse and analysis; the con- Table X: they depend on the collapse measure (original trols are described in Sec. III-D. cost 0.015, fixed overlap 0.091 for the amplitude form; 0.095 and 0.059 for the cumulant), and only the amplitude A. Grid placement and window centre form with the original cost gives PCA a lower error than Table V gives the L = 32 error on the default, offset and the CNN’s (p = 0.055, PCA lower on 8 of 10 seeds); with fine grids and with the training window centred at 2.17 the fixed overlap the difference is not detectable (p = 0.15 and 2.37. The CNN error is 0.023 (default), 0.025 (offset) amplitude, p = 0.39 cumulant). The H4 statement for and 0.024 (fine); the MLP 0.020, 0.018, 0.020; PCA 0.056, PCA therefore holds for the registered curve and is not 0.074, 0.065. The errors of the CNN and MLP do not established for scaling-valid curves. PCA works at a single shrink on the fine grid, so the sub-spacing errors of the size (0.056 at L = 32, but 0.163 at L = 16 with a large default grid are not limited by the interpolation between seed spread, std 0.075). nodes; they also do not get worse when Tc lies between MLP (seed 0) CNN (seed 0) Binder U4 (seed 0) PCA |PC1| (seed 0) 1.0 L=16 1.0 1.0 L=24 0.50 L=32 0.5 0.5 0.25 0.5 0.00 0.0 0.0 −0.25 −10 0 10 −10 0 10 −10 0 10 −10 0 10 (T − Tc)L 1/ν (T − Tc)L 1/ν (T − Tc)L 1/ν (T − Tc)L 1/ν Fig. 3. Collapse of the output curves with the (Tc , ν) fitted for seed 0. Binder cumulant panel: reference system. holds for the MLP at L = 32 (error 0.020 versus 0.021). For 0.30 confusion the bootstrap standard error at L = 32 (0.022) 0.25 is as large as its error (0.015), so the confusion read-out tc_error_fss 0.20 is at the noise floor of a 50-configuration held-out set. For 0.15 the PCA peak and the raw logistic regression the enlarged 0.10 held-out set changes the error (0.068 for PCA at L = 32; 0.05 the raw logistic regression crossing of a flat curve is noise). 0.00 ising C. Read-out type: PCA with crossing read-outs Binder/chi (reference) LogReg (raw) MLP CNN Table VIII compares like with like. The threshold read- PCA LogReg (Z2-fixed) Confusion (MLP) out of PCA (first crossing of 0.5 of the normalised am- plitude) has an L = 32 error of 0.052, not distinguishable Fig. 4. Collapse error |T̂cfss − Tc | by system (bars: mean over seeds). from the PCA peak (paired p = 0.38); the Binder- cumulant crossing of PC1 between L = 24 and 32 is worse (0.143). The CNN, MLP and confusion are lower than nodes. H1 holds in all seven configurations (Table VI, CNN both (p ≤ 0.006 for the CNN). The non-learned reference and MLP versus PCA, Wilcoxon p < 0.05 in each). The with a Binder-cumulant crossing (0.026) is much better comparisons with confusion do not carry over uniformly: than its susceptibility peak (0.066; p = 0.004) and not confusion has the lowest mean on the default and offset distinguishable from the CNN (p = 0.92). H1 is therefore grids, but the MLP does on the fine grid (rank columns not a peak-versus-crossing artefact for PCA, while the gap of the robustness analysis), and at L = 24 confusion is between the susceptibility peak and the Binder crossing worse than the CNN on the fine grid (mean difference of the reference is a read-out effect. 0.092, p = 0.004). The statement that confusion is not distinguishable from the CNN and MLP at L = 32 holds D. Collapse validation and a second collapse measure on all three grids (Table VI). Shifting the window centre Synthetic curves. Table IX shows both collapse measures changes the CNN and MLP errors by less than half the on f ((T − Tc )L1/νtrue ) with νtrue = 0.75, 1, 1.5. Without grid spacing and does not change the H1 result. noise the original cost recovers ν to within one grid step for νtrue = 1 (1.025) and 1.5 (1.500) and gives 0.90 for B. Held-out sampling uncertainty 0.75. With noise matched to the seed-to-seed spread of Table VII gives, per read-out and size, the error with the MLP and CNN output curves it returns ν̂ = 1.09 and the 50 held-out configurations per temperature of the 1.26 for νtrue = 1 with |T̂c − Tc | of 0.012 and 0.025, i.e. main group, the mean bootstrap standard error of the an upward bias at the CNN noise level (and for the other crossing (200 resamples over configurations), and the two νtrue : Table IX); the fraction of fits at the upper edge error with the enlarged held-out set of 800 configurations ν = 2 is 0.07 at the CNN noise level and the scatter (ν̂ std per temperature (paired Wilcoxon p over seeds). The 0.39) is large at three sizes. The original cost thus has a bootstrap standard error of the CNN crossing at L = 32 modest upward bias in ν under CNN-level noise, smaller is 0.0078, against an error of 0.023 and a seed-to-seed than the observed exponent error of the CNN (0.70); on standard deviation of the bias of 0.024; with the enlarged the real CNN curves the fit reaches the upper edge on 4 held-out set the error is 0.021 (p = 0.77) and the seed- of ten seeds. The fixed-overlap measure is not better: with to-seed standard deviation is 0.024. The CNN error at noise it gives ν̂ = 1.54 and |T̂c − Tc | = 0.053 at the CNN L = 24, 32 is therefore not set by the held-out sample; noise level, and it is biased to larger ν for νtrue = 0.75 the spread between seeds comes from training. The same already without noise (1.75). TABLE V L = 32 error |T̂c − Tc | (mean over ten seeds) on the default, offset and fine grids and for window centres Tcref shifted by ∓0.1 (c∓0.1; “off”: offset grid). PCA, confusion and the reference have no training window (generated). System default offset fine c–0.1 c+0.1 off,c–0.1 off,c+0.1 CNN 0.023 0.025 0.024 0.028 0.031 0.024 0.032 MLP 0.020 0.018 0.020 0.015 0.028 0.012 0.027 LogReg (Z2-fixed) 0.287 0.312 0.318 0.269 0.331 0.304 0.325 PCA (peak) 0.056 0.074 0.065 – – – – Confusion 0.015 0.017 0.027 – – – – χ peak (ref.) 0.066 0.063 0.061 – – – – TABLE VI TABLE VIII Paired exact Wilcoxon p at L = 32 for each grid/window Read-out type at L = 32 (Binder crossings: L = 24, 32); mean ± configuration (ten seeds). Conf. is not tested where it has no std over ten seeds and paired Wilcoxon p of the CNN / MLP / training window (generated). confusion against the PCA read-out (generated). Config. CNN/PCA MLP/PCA Conf./CNN Conf./MLP CNN/MLP Read-out mean ± std error Wilcoxon p (CNN / MLP / Conf. lower) PCA, peak of Var|z|, L=32 0.056 ± 0.017 – default 0.004 0.002 0.11 0.38 0.23 PCA, 0.5 threshold of ⟨|z|⟩/ max, L=32 0.052 ± 0.006 0.002 / 0.002 / 0.004 offset 0.002 0.002 0.19 0.77 0.19 PCA, Binder U4 (z) crossing, L=24, 32 0.143 ± 0.122 0.006 / 0.002 / 0.002 Reference, χ peak, L=32 0.066 ± 0.007 – fine 0.010 0.020 0.85 0.43 0.28 Reference, Binder U4 (m) crossing, L=24, 32 0.026 ± 0.028 0.922 c–0.1 0.014 0.002 – – 0.23 CNN, 0.5 crossing, L=32 0.023 ± 0.006 – c+0.1 0.037 0.004 – – 0.62 MLP, 0.5 crossing, L=32 0.020 ± 0.008 – off,c–0.1 0.004 0.002 – – 0.49 Confusion, central peak, L=32 0.015 ± 0.016 – off,c+0.1 0.002 0.002 – – 0.43 biased CNN exponent remains open. TABLE VII Held-out noise: error with 50 held-out configurations per E. Baseline convergence and parity temperature, mean bootstrap SE, error with 800, and paired p (ten seeds; generated). Table XI gives the convergence control and the simple- feature classifiers (ten seeds). The converged gauge-fixed System L |T̂c − Tc | (50) bootstrap SE |T̂c − Tc | (800) paired p logistic regression has a held-out accuracy of 0.995, against CNN 16 0.032 0.018 0.022 0.05 CNN 24 0.023 0.008 0.025 0.28 0.723 after 20 Adam epochs, and an L = 32 error of 0.066. CNN 32 0.023 0.008 0.021 0.77 Logistic regressions on |m| alone, on the energy per site MLP 16 0.051 0.016 0.043 0.16 MLP 24 0.029 0.012 0.032 0.43 alone, and on both reach errors of 0.047, 0.038 and 0.047 at MLP 32 0.020 0.008 0.021 0.77 L = 32, all worse than the CNN and the MLP (p = 0.002 Confusion 16 0.056 0.039 0.032 0.16 Confusion 24 0.017 0.028 0.023 0.13 or smaller; Wilcoxon, ten seeds), with far-from-Tc accuracy Confusion 32 0.015 0.022 0.011 0.56 ≥ 0.998. The held-out accuracy of the nonlinear classifiers PCA (peak) 16 0.163 0.072 0.148 0.62 PCA (peak) 24 0.101 0.045 0.094 0.92 is therefore not informative about the crossing, and their PCA (peak) 32 0.056 0.019 0.068 0.05 advantage in the crossing is about the output near Tc , not χ peak (ref.) 16 0.109 0.040 0.135 0.06 χ peak (ref.) 24 0.088 0.016 0.087 1.00 about separating the phases far from it. χ peak (ref.) 32 0.066 0.011 0.066 0.70 Budget: Table XII gives the L = 32 error of confusion LogReg (Z2-fixed) 16 0.504 0.067 0.526 0.32 LogReg (Z2-fixed) 24 0.367 0.054 0.419 0.02 and of the supervised MLP on the same grid of widths and LogReg (Z2-fixed) 32 0.287 0.050 0.344 0.03 epochs (five seeds, nothing selected); at no cell is confusion distinguishable from the MLP at L = 32 (smallest p over the six cells 0.19 or larger; the smallest attainable Real curves. Table X gives the collapse of the real is 0.0625). With the settings of the supervised MLP (64 curves with both measures. For the CNN the fixed-overlap units, 20 epochs, ten seeds) confusion has an L = 32 error measure gives a larger error than the original cost (mean of 0.018 (default confusion 0.015; paired p = 0.49) and is difference 0.028, p = 0.002) and a larger exponent error not distinguishable from the CNN (p = 0.16) or the MLP (p = 0.016); the same holds for the MLP. For the Binder (p = 0.70). reference the fixed-overlap collapse is better than its single-size susceptibility peak (0.013 with ν̂ = 0.96). The F. Revision of the confusion read-out synthetic test shows a modest upward bias of the original The confusion read-out was changed after a first full set cost under CNN-level noise that does not account for the of ten main-group runs (results/superseded_runs.jsonl, full exponent error of the CNN, and the fixed-overlap commit ef6776a): in the first runs the accuracy W for measure does not remove the CNN bias; the cause of the the trial boundary T ′ halfway between two grid nodes TABLE IX Collapse of noisy synthetic curves (30 copies per setting): mean fitted ν, fraction of fits at the upper edge ν = 2, and |T̂c − Tc |, for the original cost and the fixed-overlap measure; noise: none, MLP-matched, CNN-matched (generated). νtrue noise ν̂¯ frac. ≥2 |T̂c − Tc | ν̂¯ frac. ≥2 |T̂c − Tc | 0.75 none 0.90 0.00 0.001 1.75 0.00 0.001 0.75 MLP-matched 1.02 0.00 0.004 1.39 0.03 0.016 0.75 CNN-matched 1.12 0.10 0.018 1.30 0.03 0.031 1.0 none 1.03 0.00 0.001 1.00 0.00 0.001 1.0 MLP-matched 1.09 0.00 0.012 1.32 0.00 0.020 1.0 CNN-matched 1.26 0.07 0.025 1.54 0.10 0.053 1.5 none 1.50 0.00 0.001 1.50 0.00 0.001 1.5 MLP-matched 1.58 0.00 0.028 1.73 0.10 0.035 1.5 CNN-matched 1.70 0.47 0.050 1.86 0.17 0.110 TABLE X TABLE XII Collapse error and exponent with the original cost and the L = 32 error of confusion and of the supervised MLP on the same fixed-overlap measure (heldout group, ten seeds); the PCA rows width/epoch grid (five seeds, mean) and the paired Wilcoxon p with an amplitude factor or the Binder cumulant of PC1 use (smallest attainable 0.0625; generated). scaling forms in x alone (generated). width Conf. 8 ep. Conf. 20 ep. MLP 8 ep. MLP 20 ep. p (8 ep.) p (20 ep.) Curve |T̂cfss − Tc | (orig.) ν̂ (orig.) |T̂cfss − Tc | (fixed overlap) ν̂ (fixed overlap) 16 0.013 0.015 0.020 0.016 0.19 0.81 CNN, P 0.034 1.70 0.063 1.93 32 0.012 0.011 0.019 0.017 0.62 0.31 MLP, P 0.021 1.10 0.060 1.87 64 0.018 0.015 0.020 0.017 1.00 0.81 Binder U4 (m) 0.035 1.07 0.013 0.96 PCA, ⟨|z|⟩/ max (as before) 0.122 1.48 0.154 1.69 PCA, Lβ/ν ⟨|z|⟩/ max 0.015 0.97 0.091 1.51 PCA, Binder U4 (z) 0.095 1.46 0.059 1.05 TABLE XIII Learning by confusion before (first runs, superseded) and after the TABLE XI abscissa revision: error (mean ± std over ten seeds), bias and Baseline convergence and simple-feature controls (ten seeds, mean): paired Wilcoxon p against the CNN and the MLP (generated). held-out accuracy far from Tc , signed bias at L = 16, 32 and error at L = 32 (generated). L version error bias p vs CNN p vs MLP 16 first runs 0.045 ± 0.043 0.025 0.38 0.32 System acc. far bias L=16 bias L=32 error L=32 16 reported 0.056 ± 0.052 0.051 0.19 0.92 Z2 LogReg, Adam 20 epochs 0.723 0.504 0.287 0.287 24 first runs 0.023 ± 0.013 −0.016 0.92 0.23 Z2 LogReg, L-BFGS (converged) 0.995 0.076 0.066 0.066 24 reported 0.017 ± 0.017 0.010 0.16 0.05 LogReg on |m| 0.998 0.065 0.047 0.047 LogReg on e 0.999 0.044 0.038 0.038 32 first runs 0.024 ± 0.013 −0.018 0.77 0.32 LogReg on (|m|, e) 0.999 0.056 0.047 0.047 32 reported 0.015 ± 0.016 0.008 0.11 0.38 MLP 0.997 0.051 0.020 0.020 CNN 0.999 0.013 0.004 0.023 0.013 at L = 64). The extrapolation with ν = 1 over was plotted and read out at the lower node, i.e. at an L = 16–64 gives errors of 0.012 (CNN), 0.0046 (MLP), abscissa half a grid step below T ′ ; in the reported runs 0.029 (PCA peak) and 0.021 (χ peak); with five seeds it is read out at T ′ . The change was made after the first every paired difference to the single-size error at L = 64 results had been seen. Table XIII gives both versions: at has p ≥ 0.0625 (the smallest attainable), the MLP (mean L = 32 the error is 0.024 (bias −0.018) before and 0.015 difference −0.020) and the χ peak being lower on all five (bias 0.008) after; the paired difference between versions is seeds. The fitted exponent with ν free is 0.84 (CNN), 0.60 not significant (p = 0.28). Before the revision confusion is (MLP) and 1.24 (χ peak), with large seed-to-seed spread. not below the CNN (0.023) or the MLP (0.020) at L = 32; H. Mechanism of the size-independent CNN bias the statement that confusion has the lowest mean error depends on the revised read-out. Table XV reports, at |T − Tc | ≤ 0.25 and L = 32, the Spearman correlation of the held-out output with |m| and G. Larger sizes and Tc (L) extrapolation with the energy per site e within each temperature, the Table XIV gives the signed bias at L = 48 and L = drift of the bias between L = 16 and 32, the spread of 64 (five seeds) and the Tc (L) extrapolations. The bias the output curves across sizes, and the distance of the of the MLP and PCA peak does not vanish at L = 64 output curve to the CNN’s. The CNN output correlates (MLP 0.024, PCA 0.049, χ peak 0.043); the CNN bias is more with e (−0.86) than with |m| (0.73); the energy-only small and does not decrease with size (0.007 at L = 48, classifier has a bias drift of 0.006, the |m|-only one 0.018, TABLE XIV Signed bias at L = 48, 64 and error |T∞ − Tc | of the fit T (L) = T∞ + aL−1/ν over L = 16–32, 16–64, 32–64 (ν = 1) and 16–64 with ν free (five seeds, mean; generated). System bias L=48 bias L=64 extr. 16–32 extr. 16–64 extr. 32–64 extr. 16–64, free ν CNN 0.007 0.013 0.023 0.012 0.016 0.011 MLP 0.016 0.024 0.035 0.005 0.028 0.011 Confusion 0.010 −0.004 0.109 0.047 0.030 0.021 PCA (peak) 0.069 0.049 0.083 0.029 0.049 0.045 χ peak (ref.) 0.053 0.043 0.018 0.021 0.026 0.018 LogReg (Z2-fixed) 0.288 0.217 0.115 0.137 0.174 0.139 the CNN 0.009 and the MLP 0.031. Two interventions temperature). In the first training-size sweep the number do not change the CNN: adding |m| as a global feature of epochs is fixed, so fewer samples also means proportion- leaves the errors and the exponent unchanged within the ally fewer gradient updates; we therefore added a second seed noise (L=32 error p = 0.85; collapse exponent error sweep (sweep_nsamp_ep, same five seeds) in which the p = 0.18), and training three times as long does not number of epochs is scaled so that samples × epochs change the L = 32 error detectably (five seeds, p = 0.12) equals that of the default. This matches samples × epochs, but lowers the exponent error on all five seeds (mean not optimizer steps: with batches of 128 the default takes difference −0.33, p = 0.062, the smallest attainable), so 680 steps (4350 examples) and the 10-samples setting 700 optimisation budget contributes to the exponent bias. We (870 examples). Window. Between δ = 0.15 and 0.6 the take the correlations as consistent with, but not proof L = 32 error changes only moderately (ratio column). of, an output that follows the local energy density; local- The largest ratios are 1.36 (MLP) and 1.87 (CNN) at feature dependence was not isolated by an intervention on δ = 0.6, i.e. the windows can be shrunk or enlarged by a the CNN architecture beyond the added |m| input. factor two with a mean effect below the registered factor- two threshold; the CNN ratio at δ = 0.6 is close to that VII. Ablations and Analysis threshold, with five seeds (paired mean difference 0.021, A. Collapse variants p = 0.062, smallest attainable 0.0625) the margin to two is Table XVI varies the collapse window w (exponent free), not resolved. Training-set size. Using only 10 samples per and fixes ν = 1. These are analyses of the saved curves of chain multiplies the L = 32 error by 3.43 (MLP) and 3.43 the main runs, not new training runs. With ν = 1 fixed, (CNN), above the registered threshold of two at a fixed the mean collapse error of the CNN (0.018), MLP (0.015) number of epochs. With samples × epochs held fixed (10 and the Binder reference (0.014) is lower than with a free samples per chain, 100 epochs; 700 versus 680 optimizer exponent in the main table. Paired over seeds (Wilcoxon, steps) the ratio is 2.78 for the MLP, still above two, but fixed minus free) the improvement is detectable for the 1.00 for the CNN, whose apparent sensitivity (above) is CNN (mean difference −0.016, p = 0.023, lower on 9 of thus an optimisation-budget effect. Paired over the five ten seeds) and PCA (p = 0.002), but not for the MLP seeds (Table XVIII), the CNN difference to the default is (p = 0.12) or the Binder reference (p = 0.08). We therefore −0.0001 (95% interval −0.0016 to 0.0014, p = 0.81), so the tie the collapse error to the free exponent only for the CNN error is unchanged to within that interval, and the CNN; a free exponent running into the search boundary MLP difference is 0.030 (interval 0.020 to 0.040, higher on may be the reason, which we did not isolate further. Fixing all five seeds, p = 0.0625, the smallest attainable with five ν = 1 leaves the confusion collapse unchanged. The fixed- seeds). H6 is therefore refuted for the MLP and supported ν collapse error of the CNN is of the same size as its for the CNN as far as training-set size is concerned (the single-size crossing at L = 32 (0.023); we did not test that registered statement is about both; with five seeds and difference. We did not test the dependence on the number no further test, the verdict for the MLP rests on a ratio of sizes. The confusion curves return the grid-boundary of means). The collapse error is much less affected by value in every variant; as explained under H4 this is not the training size, and for the MLP at δ = 0.15 it is a test of learning by confusion. smaller than the default (ratio 0.29); with five seeds and a std comparable to the means, we do not interpret these B. H6: sensitivity to the training window and to the differences. Fig. 5 shows the single-size error at L = 32. training-set size VIII. Limitations Table XVII (five seeds, 0–4, default rows from the main group for the same seeds) varies the half-width δ of the • Scale. Three small lattices (L ≤ 32), one universality excluded window and the number of samples per chain class, 10 seeds in the main group and five in the used for training (3 chains × 10, 25 or 50 samples per sweeps; with ten seeds the smallest attainable two- TABLE XV Mechanism controls: rank correlation of the output with |m| and e (mean over temperatures with |T − Tc | ≤ 0.25, ten seeds), bias drift T̂c (16) − T̂c (32), size spread of the output curve, rms distance to the CNN curve, and collapse exponent (generated). System ρ|m| ρe bias drift size spread rms to CNN ν̂ CNN 0.73 −0.86 0.009 0.075 0.000 1.70 CNN + |m| input 0.81 −0.93 0.013 0.079 0.065 1.57 CNN, 60 epochs 0.79 −0.92 0.011 0.092 0.042 1.27 MLP 0.87 −0.52 0.031 0.117 0.084 1.10 LogReg on e 0.74 −1.00 0.006 0.059 0.099 1.97 LogReg on |m| 1.00 −0.74 0.018 0.101 0.124 1.19 TABLE XVI TABLE XVIII Collapse error |T̂cfss − Tc | (mean over seeds) for three windows w Paired difference of the L = 32 error of each sweep setting minus with ν free, with ν = 1 fixed (w = 0.6), and the main-table the default of the same seed (five seeds): mean, 95% t interval, exponent error. exact Wilcoxon p (smallest attainable 0.0625), seeds with lower error (generated). System w=0.6 w=0.45 w=0.3 ν=1 fixed |ν−1| free Model setting mean diff. 95% interval Wilcoxon p seeds lower CNN 0.034 0.036 0.030 0.018 0.698 MLP 0.021 0.017 0.016 0.015 0.168 CNN 10 samples, 20 ep. 0.058 [−0.004, 0.119] 0.062 0 Confusion (MLP) 0.331 0.328 0.302 0.331 1.000 CNN 25 samples, 20 ep. 0.010 [−0.013, 0.032] 0.438 1 CNN 10 samples, 100 ep. 0.000 [−0.002, 0.001] 0.812 3 PCA 0.122 0.119 0.116 0.060 0.480 CNN 25 samples, 40 ep. 0.000 [−0.001, 0.001] 0.438 4 Binder/χ (ref.) 0.035 0.072 0.035 0.014 0.250 MLP 10 samples, 20 ep. 0.041 [0.027, 0.055] 0.062 0 LogReg (Z2-fixed) 0.083 0.083 0.081 0.079 0.143 MLP 25 samples, 20 ep. 0.012 [0.006, 0.018] 0.062 0 LogReg (raw) 0.155 0.172 0.170 0.169 0.473 MLP 10 samples, 100 ep. 0.030 [0.020, 0.040] 0.062 0 MLP 25 samples, 40 ep. 0.011 [0.005, 0.016] 0.062 0 TABLE XVII Sensitivity (five seeds, mean): |T̂c − Tc | at L = 16, L = 32, after collapse, and the ratio of the L = 32 error to the default setting MLP (margin 0.3, 50 samples/chain). “scaled ep.”: epochs scaled to keep CNN 0.10 |Tc error|, L=32 samples × epochs fixed (680 versus 700 optimizer steps at 10 samples). Model setting collapse ratio32 L=16 L=32 0.05 CNN margin 0.15 0.020 0.019 0.028 0.80 CNN margin 0.3 0.036 0.024 0.028 1.00 CNN margin 0.45 0.041 0.029 0.042 1.21 CNN margin 0.6 0.054 0.044 0.034 1.87 CNN CNN samples/chain 10 samples/chain 25 0.088 0.051 0.081 0.033 0.021 0.040 3.43 1.41 0.2 0.4 0.6 20 40 CNN samples/chain 50 0.036 0.024 0.028 1.00 margin samples/chain CNN samples, scaled ep. 10 0.037 0.024 0.035 1.00 CNN samples, scaled ep. 25 0.033 0.023 0.039 0.99 MLP margin 0.15 0.034 0.019 0.009 1.11 Fig. 5. L = 32 error versus window half-width (left) and samples MLP margin 0.3 0.059 0.017 0.032 1.00 per chain (right); mean ± std over seeds 0–4. Dashed (right): epochs MLP margin 0.45 0.064 0.017 0.033 1.04 scaled to constant samples × epochs. MLP margin 0.6 0.069 0.023 0.034 1.36 MLP samples/chain 10 0.101 0.058 0.025 3.43 MLP samples/chain 25 0.073 0.029 0.019 1.73 MLP samples/chain 50 0.059 0.017 0.032 1.00 MLP samples, scaled ep. 10 0.093 0.047 0.013 2.78 parameters were fixed a priori. The revision adds a MLP samples, scaled ep. 25 0.072 0.027 0.025 1.63 width and epoch grid shared by confusion and the su- pervised MLP (five seeds, nothing selected), a parity run of confusion with the supervised MLP’s settings, sided Wilcoxon p is 0.002, and a collapse over three and a converged solver for the gauge-fixed logistic sizes is poorly conditioned (the CNN exponent runs regression; the CNN, PCA and the baselines were into the search boundary). The revision adds L = not otherwise tuned, so no ranking is claimed. The 48, 64 with five seeds and bootstrap errors of the read- confusion collapse concerns a recipe whose scaling outs; the sizes are still far below those of the original form is not valid for W (T ′ ) and says nothing about studies and the large-size and sweep results rest on learning by confusion. five seeds, with a smallest attainable p of 0.0625. • Prior knowledge in the protocol. The training win- • Baselines are reimplemented and not tuned. Hyper- dows use the rounded Tcref , the peak searches use [1.9, 3.1], and the confusion trial range is [1.7, 3.3]; systems changes with the grid; we do not rank it. Logistic all of these encode that Tc ≈ 2.3. The main collapse regression on raw spins is blind to the order because of the window (0.6) makes Tc infeasible for the confusion spin-flip symmetry; the gauge-fixed regression recovers it curves, see Sec. V. The training-window centre was when solved to convergence (accuracy 0.995, error 0.066 at moved by ±0.1 in the revision; the confusion trial L = 32), so the main-group shortfall was an optimisation range and the peak-search ranges were not. effect. An FSS collapse of the CNN and MLP output did • Resolution. Errors of ≈ 0.02 are well below the not improve the estimate under either collapse measure; temperature spacing of 0.051; the crossings are in- the CNN collapse exponent is high under both and is terpolated, and the collapse grid step is 0.005. The not traced to the collapse cost by the synthetic test, and temperature grid has a node at T = 2.269, which no conclusion is drawn from the confusion collapse, whose essentially coincides with the exact Tc ; the offset and scaling form is not valid. The MLP estimate depends more fine grids of the revision (Sec. VI) give errors of on the training-set size than on the excluded window at the same size, so for the CNN and the MLP this matched samples × epochs; the CNN paired difference is is not what sets the error; the confusion read-out at −0.0001 with an interval of −0.0016 to 0.0014 over five L = 32 is at the bootstrap noise floor of the 50- seeds. A Tc (L) extrapolation over L = 16–64 lowers the configuration held-out set. The sampler was checked mean error of the MLP and the susceptibility peak, but against Onsager’s energy at four temperatures, not not detectably with five seeds. All of this holds for a small against critical observables, and decorrelation was study (sizes up to L = 64, ten seeds in the main group, five checked through the autocorrelation of |m| at one in the large-size and sweep runs, untuned reimplemented size only. baselines) and should be read as a measurement protocol • Mechanisms. The symmetry explanation for the raw and a set of results, not as a ranking of methods. logistic regression is isolated by a control; the con- verged solver shows that the poor Z2-fixed result of References the main group was an optimisation shortfall. For the size-independent bias of the CNN the revision gives [1] J. Carrasquilla and R. G. Melko, “Machine learning phases of matter,” arXiv preprint arXiv:1605.01735, 2016. [Online]. correlations with the energy density and two interven- Available: https://arxiv.org/abs/1605.01735 tions (an added |m| input, longer training) that do not [2] L. Wang, “Discovering Phase Transitions with Unsupervised change the crossing error; local-feature dependence Learning,” arXiv preprint arXiv:1606.00318, 2016. [Online]. Available: https://arxiv.org/abs/1606.00318 is not demonstrated. The biased CNN exponent is [3] W. Hu, R. R. P. Singh, and R. T. Scalettar, “Discovering Phases, not traced to the collapse cost (synthetic test) and Phase Transitions and Crossovers through Unsupervised decreases with longer training; its cause is open. The Machine Learning: A critical examination,” arXiv preprint arXiv:1704.00080, 2017. [Online]. Available: https://arxiv.org/ sweeps change one factor at a time and include only abs/1704.00080 the MLP and CNN; the scaled-epoch training-size [4] E. P. L. van Nieuwenburg, Y.-H. Liu, and S. D. Huber, sweep matches samples × epochs (680 versus 700 “Learning phase transitions by confusion,” arXiv preprint optimizer steps) but not the learning-rate schedule arXiv:1610.02048, 2016. [Online]. Available: https://arxiv.org/ abs/1610.02048 or the total number of distinct configurations, and [5] L. Onsager, “Crystal Statistics. I. A Two-Dimensional Model the remaining MLP sensitivity is not explained by it. with an Order-Disorder Transition,” Physical Review, 1944. • Same-chain structure. The held-out chain is indepen- [Online]. Available: https://doi.org/10.1103/PhysRev.65.117 [6] P. Suchsland and S. Wessel, “Parameter diagnostics of dent of the training chains, but the four chains per phases and phase transition learning by neural networks,” temperature share the sampler and, per seed, the arXiv preprint arXiv:1802.09876, 2018. [Online]. Available: random stream; independent MC runs with different https://arxiv.org/abs/1802.09876 [7] K. Ch’ng, J. Carrasquilla, R. G. Melko, and E. Khatami, algorithms would be a stronger test. “Machine Learning Phases of Strongly Correlated Fermions,” arXiv preprint arXiv:1609.02552, 2016. [Online]. Available: IX. Conclusion https://arxiv.org/abs/1609.02552 [8] P. Mehta, M. Bukov, C.-H. Wang, A. G. R. Day, C. Richardson, On identical Swendsen–Wang data for the 2D Ising C. K. Fisher, and D. J. Schwab, “A high-bias, low- model, a small CNN and an MLP trained only far from variance introduction to Machine Learning for physicists,” the transition give single-size 0.5-crossing estimates of arXiv preprint arXiv:1803.08823, 2018. [Online]. Available: https://arxiv.org/abs/1803.08823 Tc within a fraction of the temperature grid step at [9] R. H. Swendsen and J.-S. Wang, “Nonuniversal critical L = 32 (CNN 0.023, MLP 0.020), better than the PCA dynamics in Monte Carlo simulations,” Physical Review peak (0.056), than a 0.5 threshold of the PCA amplitude Letters, 1987. [Online]. Available: https://doi.org/10.1103/ PhysRevLett.58.86 and than a Binder crossing of PC1, on the default, an [10] U. Wolff, “Collective Monte Carlo Updating for Spin offset and a fine grid and with shifted window centres. Systems,” Physical Review Letters, 1989. [Online]. Available: They are not distinguishable (Wilcoxon p = 0.11 for the https://doi.org/10.1103/PhysRevLett.62.361 CNN) from the central peak of learning by confusion at [11] M. E. Fisher and M. N. Barber, “Scaling Theory for Finite-Size Effects in the Critical Region,” Physical Review Letters, 1972. L = 32, whose read-out was revised after a first set of runs [Online]. Available: https://doi.org/10.1103/PhysRevLett.28. (0.024 before, 0.015 after) and whose position among the 1516 [12] K. Binder, “Finite size scaling analysis of ising model block distribution functions,” Zeitschrift für Physik B Condensed Matter, 1981. [Online]. Available: https://doi.org/10.1007/ BF01293604 [13] G. Torlai and R. G. Melko, “Learning Thermodynamics with Boltzmann Machines,” arXiv preprint arXiv:1606.02718, 2016. [Online]. Available: https://arxiv.org/abs/1606.02718 [14] J. Liu, Y. Qi, Z. Y. Meng, and L. Fu, “Self-Learning Monte Carlo Method,” arXiv preprint arXiv:1610.03137, 2016. [Online]. Available: https://arxiv.org/abs/1610.03137 [15] J. Houdayer and A. Hartmann, “Low-temperature behavior of two-dimensional Gaussian Ising spin glasses,” Physical Review B, 2004. [Online]. Available: https://doi.org/10.1103/ PhysRevB.70.014418 [16] S. M. Bhattacharjee and F. Seno, “A measure of data collapse for scaling,” Journal of Physics A: Mathematical and General, 2001. [Online]. Available: https://doi.org/10.1088/0305-4470/ 34/33/302