Mpemba Mode-Filtered Training
Implementation & benchmark of arXiv:2607.21226 — Entanglement asymmetry and quantum Mpemba effect for Kramers-Wannier duality
Source paper: Entanglement asymmetry and quantum Mpemba effect for Kramers-Wannier duality arXiv:2607.21226 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Track a symmetry-asymmetry functional of network outputs or hidden states under a chosen transformation or channel and estimate which relaxation modes control its late-time decay. Use a short warm-up trajectory to suppress the slow asymmetry mode while allowing larger initial asymmetry in faster modes, producing a training trajectory that can overtake a nominally better-initialized trajectory. This transfers the paper's quantum Mpemba effect as a mode-overlap principle rather than requiring an exact Kramers-Wannier duality.
Formulas
Mathematical statement
Let T be a stochastic or linear symmetry channel acting on predictions or representations, with invariant states satisfying T p=p. For a model state p_t, define asymmetry A(p_t)=D_KL(p_t||T p_t), or use the squared Euclidean version A_2(p_t)=1/2||p_t-Tp_t||_2^2 when probabilities are unavailable. Near an invariant state, let the training or inference dynamics be dz/dt=-Lz, where z is the symmetry-breaking component, L v_k=lambda_k v_k, and 0<lambda_1<=lambda_2<=... . If z(0)=sum_k c_k v_k, then A_2(t)=1/2 sum_k c_k^2 exp(-2 lambda_k t) for an orthonormal eigenbasis. A Mpemba crossing between trajectories a and b occurs when A_a(0)>A_b(0) but |c_a1|<|c_b1|. In a two-mode approximation, the crossing time is t_*=[2(lambda_2-lambda_1)]^{-1} log[(c_a2^2-c_b2^2)/(c_b1^2-c_a1^2)], provided the logarithm argument is positive. The late-time slope is d log A_2/dt -> -2 lambda_j, where j is the smallest index with c_j nonzero.
Implementation notes
Integrate this at the end of each training step or at selected checkpoints. Choose a transformation T that should leave the task invariant: for images use a reflection or rotation with class-preserving labels; for a transformer use token renaming or sequence reversal when semantically valid; for a graph network use node relabeling. Run the model on an input batch and its transformed batch, then form the symmetry-breaking vector z=(q_theta(x)-Tq_theta(x))/sqrt(B), where q_theta is the logits or pooled hidden representation and T acts on output coordinates. Compute A_2=0.5||z||^2 and record it without backpropagation. During a 50-200 step probe, estimate a low-rank relaxation operator by fitting z_{t+1}=M z_t with ridge regression, then compute lambda_k=-log|eig_k(M)|/Delta t. Verify the fitted modes by comparing projected amplitudes c_k=v_k^T z_t with observed trajectories. Construct a mode-filtered update by adding a temporary control term -gamma v_1 v_1^T z to the representation or logit update, or by projecting the symmetry-breaking gradient with I-v_1v_1^T. Remove this control after the probe. The paper supplies the mechanism that restoration depends on slow-mode overlap; the spectrum and coefficients are estimated empirically. First experiment: train a small MLP on MNIST with reflection-invariant labels, comparing standard Adam, an A_2 penalty, and mode filtering. Use equal final compute and deliberately create pairs where the filtered run has larger initial A_2. The predicted signature is a crossing only when the larger-asymmetry run has smaller estimated |c_1|; measured crossing time should match the two-mode formula within about 30%, and its late log-asymmetry slope should approach -2 lambda_2 rather than -2 lambda_1. For discrete control updates z_{n+1}=(I-eta L-gamma v_1v_1^T)z_n, stability requires |1-eta lambda_k-gamma delta_{k1}|<1 for every retained mode.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Confirmed ✓
Stage 2 · Practical benchmark result: No measurable effect
Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works
Stage 1 — Mechanism check agent confidence 9/10
Built a reproducible two-mode Mpemba mode-filtering experiment in mpemba_experiment.py. The mechanism manifested: discrete crossing-time predictions matched observed crossings within 0.07–0.67%, the stability boundary was predicted at gamma=1.8 and divergence began above it, and suppressing the slow mode changed the late log-A2 slope from -0.1026 to -0.2671 as predicted. The filtered quadratic-training trajectory started with larger A2 (0.52 vs 0.20) yet crossed below baseline at step 2 and ended much lower, although no real MLP/MNIST experiment was run, so this is not evidence of a practical neural-network win.
- Agent confidence
- 9/10
- Baseline
- Quadratic analogue: initial A2=0.20, final A2=8.59e-09; late slope=-0.10259; slow factor=0.95
- Idea
- Mode-filtered quadratic analogue: initial A2=0.52, crossing below baseline at step 2, final A2=8.22e-26; filtered late slope=-0.26706, matching fast-mode prediction -0.26706; crossing formula relative error 0.02%-0.67%; stability edge predicted gamma=1.8 and observed divergence above 1.8
Limitations: Only an exactly solvable two-mode linear/quadratic toy system was tested. No MNIST, neural-network optimizer, learned mode estimation, reflection transformation, generalization metric, wall-clock comparison, or robustness to noise/nonlinear training was evaluated.
How to run: python3 mpemba_experiment.py
Stage 2 — Benchmark vs. tuned baseline (arXiv:2607.21226)
No significant difference vs. the tuned baseline (+0.2%, p=0.7972, wins 4 / 8 paired seeds).
- Benchmark
- Dynamics forecasting
- Model
- rnn_small
- Paired seeds
- 8
- Baseline mean
- 0.0008
- Idea mean
- 0.0008
- Effect (Δ)
- 0 (+0.2%; negative = idea better)
- Wins
- 4 / 8 paired seeds
- p-value
- 0.7972 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- n/a
- Mechanism
- Confirmed ✓
- Practical effect
- No effect
- Baseline tuning
- swept over 0 configs
Only the built-in dynamics track and rnn_small model were tested. The mechanism signature measured asymmetry decay but did not establish a quantitative eigenmode relaxation-rate or crossing-time prediction at neural-network scale; no vision, sequence, or custom-track robustness study was run.
How to run: python3 mpemba_bench.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Stage 2 — Benchmark latest Failed ✗
Agent confidence: 9/10
Implemented Mpemba mode-filtered training as a post-probe symmetry-channel penalty on the matched dynamics track using the shared rnn_small architecture and equal Adam budgets. The trained-model mechanism signature was confirmed: the idea's asymmetry proxy decayed to 0.162 of its probe value on average. However, task MSE was slightly worse than the tuned baseline (0.0007728744 vs 0.0007712391; paired delta +1.6354e-06, permutation p=0.79715), so there is no benchmark win.
- Baseline
- dynamics/rnn_small; best lr=0.006, weight_decay=0.0001; 8-seed test MSE mean=0.0007712390506640077
- Comparison
- paired delta idea-baseline=+1.6353733371943235e-06; idea wins 4/8; permutation p=0.79715
- Idea
- post-probe symmetry penalty; best lr=0.006, weight_decay=0.0001, gamma=0.01; 8-seed test MSE mean=0.000772874424001202
- Mechanism
- mean late-to-probe asymmetry ratio=0.16168932957134385; confirmed=true
Benchmark result
No significant difference vs. the tuned baseline (+0.2%, p=0.7972, wins 4 / 8 paired seeds).
- Benchmark
- Dynamics forecasting
- Model
- rnn_small
- Paired seeds
- 8
- Baseline mean
- 0.0008
- Idea mean
- 0.0008
- Effect (Δ)
- 0 (+0.2%; negative = idea better)
- Wins
- 4 / 8 paired seeds
- p-value
- 0.7972 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- n/a
- Mechanism
- Confirmed ✓
- Practical effect
- No effect
- Baseline tuning
- swept over 0 configs
Only the built-in dynamics track and rnn_small model were tested. The mechanism signature measured asymmetry decay but did not establish a quantitative eigenmode relaxation-rate or crossing-time prediction at neural-network scale; no vision, sequence, or custom-track robustness study was run.
How to run: python3 mpemba_bench.py
Artifacts
- bench_report.json 8.4 KB View Raw
- mpemba_bench.py 6.4 KB View Raw
- mpemba_experiment.py 5.6 KB View Raw
- report.md 1.6 KB View
- report_bench_2026-08-31T155426.md 3.6 KB View
- results.json 5.8 KB View Raw