Arithmetic-cone regularization for periodic neural flows
Implementation & benchmark of arXiv:2607.13102 — A technical note on the arithmetic cone of smooth periodic vector fields
Source paper: A technical note on the arithmetic cone of smooth periodic vector fields arXiv:2607.13102 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Build a periodic neural vector field \(f_\theta(x)\) whose Fourier coefficients are explicitly estimated, then penalize Fourier energy at modes nearly orthogonal to a desired drift direction \(\rho\). The penalty controls the small-denominator quantity used by the paper's contraction argument, producing a certificate that trajectories remain within bounded distance of \(\rho t\) over arbitrarily long horizons when the contraction margin is satisfied.
Formulas
Mathematical statement
Let \(f_\theta(x)=\sum_{p\in\mathbb{Z}^n}\hat f_\theta(p)e^{i\langle p,x\rangle}\) be a periodic vector field, let \(r_k\in\mathbb{Q}^n\) converge to a target direction \(\rho\), and define the spectral resonance sum \(S(f_\theta,r_k)=\sum_{p:\langle r_k,p\rangle\neq 0}\|\hat f_\theta(p)\|/|\langle r_k,p\rangle|\). The arithmetic cone is \(\mathfrak C(f_\theta)=\{\rho:\exists r_k\to\rho,\sup_k S(f_\theta,r_k)<\infty\}\). The paper's contraction construction is applicable when this sum is uniformly bounded and the associated contraction factor is below one; in an implementation use \(\kappa S(f_\theta,r_k)<1\), where \(\kappa\) is the norm-dependent Lipschitz or inverse-derivative constant of the periodic correction operator. Under this condition, a trajectory satisfies \(\sup_t\|x(t)-\rho t\|<\infty\).
Implementation notes
Use a periodic neural ODE or recurrent block with state \(x\in[-\pi,\pi]^n\), represented by a truncated Fourier neural operator, sinusoidal MLP, or periodically wrapped MLP. Select a desired drift direction \(\rho\), generate rational approximants \(r_k\to\rho\), and add \(\lambda_{\mathrm{arith}}\mathcal L_{\mathrm{arith}}\) to the task loss. At each training step, evaluate \(f_\theta\) on a uniform torus grid, compute FFT coefficients \(\hat f(p)\) for modes \(\|p\|\le M\), calculate \(S_M(f,r_k)=\sum_p\|\hat f(p)\|/(|\langle r_k,p\rangle|+\varepsilon)\), and optimize \(L=L_{task}+\lambda[\max_k\kappa S_M(f,r_k)-\gamma]_+^2\). At inference, integrate with a high-order solver and monitor \(D(T)=\max_{|t|\le T}\|x(t)-\rho t\|\). The paper supplies the inverse-frequency weighting, rational-approximation condition, and bounded-deviation conclusion. Estimate Fourier coefficients, \(\kappa\), truncation error, and the safety margin \(\gamma<1\) empirically; estimate \(\kappa\) by measuring the contraction ratio of successive correction-map iterations. First test a two-dimensional periodic neural ODE on synthetic trajectory prediction over 100 to 1000 periods, comparing ordinary weight decay with arithmetic regularization. Sweep the amplitude of a resonant Fourier mode. The predicted signature is a sharp degradation when \(\max_k\kappa S_M\) approaches one: below the boundary, correction residuals decay geometrically and \(D(T)\) saturates as \(T\) grows; above it, residuals and long-horizon error grow geometrically. Increasing \(M\) should shift the boundary only if omitted high-frequency resonances matter.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Confirmed ✓
Stage 2 · Practical benchmark result: Significantly worse ✗
Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works
Stage 1 — Mechanism check agent confidence 8/10
Built a reproducible NumPy MVP for arithmetic-cone spectral regularization and verified the core math numerically. The correction-map sweep matched the predicted contraction threshold q=κS=1 exactly at amplitude 5.0, with observed residual ratios equal to q; the trajectory sweep matched the predicted 2A/|<p,ρ>| plateau to numerical precision, while exact resonance showed linear growth (D200/D100=2). The regularized proxy also reduced q from 0.7619 to 0.5446 versus weight decay. The mechanism manifested clearly in the toy setting, but this is not evidence of a neural-training win.
- Agent confidence
- 8/10
- Baseline
- Weight-decay proxy amplitude=0.95238, q=0.761904; FFT relative coefficient error=2.12e-16.
- Idea
- Arithmetic penalty proxy amplitude=0.680715, q=0.544572; contraction residual ratios matched q across q=0.2, 0.6, 0.8, 0.96, 1.04, 1.2, 1.6; plateau scaling and resonance growth matched predictions.
Limitations: No neural network was trained, no learned Fourier coefficients or task trajectory-prediction benchmark was tested, and no high-dimensional or long-horizon neural ODE comparison against a standard baseline was performed. The contraction-map and trajectory checks are deliberately analytically controlled toy experiments.
How to run: python3 arithmetic_cone_experiment.py && /home/maxwelhelp/main/bin/python3 verify_results.py
Stage 2 — Benchmark vs. tuned baseline (arXiv:2607.13102)
Significantly WORSE than the tuned baseline (+249.3%, p=0.0081, wins 0 / 8 paired seeds).
- Benchmark
- Periodic_cone_flow
- Model
- periodic_mlp
- Paired seeds
- 8
- Baseline mean
- 0.0205
- Idea mean
- 0.0716
- Effect (Δ)
- 0.0511 (+249.3%; negative = idea better)
- Wins
- 0 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±33.5%
- Mechanism
- Confirmed ✓
- Practical effect
- Hurts
- Baseline tuning
- swept over 3 configs
Only the custom 2D periodic vector-field regression track was tested, with 400 training and 400 test examples, a 2-layer 64-unit periodic MLP, 24 epochs, and three learning rates. Long-horizon trajectory deviation, alternative penalty strengths/margins, larger Fourier cutoffs, and built-in dynamics comparison were not tested; the custom track is registered in the report but was not written into the read-only shared bench.
How to run: python3 periodic_cone_bench.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Stage 2 — Benchmark latest Failed ✗
Agent confidence: 10/10
Implemented a structurally matched custom periodic-flow dynamics track and trained identical wrapped MLP systems, differing only by the FFT-based arithmetic-cone penalty. The trained-model mechanism signature was confirmed: resonance q decreased from 0.5796 to 0.0332. However, standard test MSE became significantly worse with regularization (0.07161 vs 0.02050, paired delta +0.05111, permutation p=0.0081), so the idea did not transfer as a benchmark training win.
- Baseline
- 8-seed test MSE mean 0.0205033 ± 0.0108036; best sweep lr=0.01, epochs=24.
- Idea
- 8-seed test MSE mean 0.0716100 ± 0.0072921; best idea sweep lr=0.01, epochs=24. Paired delta +0.0511066, p=0.0081, 0/8 wins. Mechanism q: baseline 0.57956, idea 0.03318, reduction 0.54638, confirmed=true.
Benchmark result
Significantly WORSE than the tuned baseline (+249.3%, p=0.0081, wins 0 / 8 paired seeds).
- Benchmark
- Periodic_cone_flow
- Model
- periodic_mlp
- Paired seeds
- 8
- Baseline mean
- 0.0205
- Idea mean
- 0.0716
- Effect (Δ)
- 0.0511 (+249.3%; negative = idea better)
- Wins
- 0 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±33.5%
- Mechanism
- Confirmed ✓
- Practical effect
- Hurts
- Baseline tuning
- swept over 3 configs
Only the custom 2D periodic vector-field regression track was tested, with 400 training and 400 test examples, a 2-layer 64-unit periodic MLP, 24 epochs, and three learning rates. Long-horizon trajectory deviation, alternative penalty strengths/margins, larger Fourier cutoffs, and built-in dynamics comparison were not tested; the custom track is registered in the report but was not written into the read-only shared bench.
How to run: python3 periodic_cone_bench.py
Artifacts
- arithmetic_cone_experiment.py 4.7 KB View Raw
- bench_report.json 3.6 KB View Raw
- periodic_cone_bench.py 5.5 KB View Raw
- report.md 1.6 KB View
- report_bench_2026-08-31T015224.md 5.6 KB View
- results.json 3.7 KB View Raw
- verify_results.py 1.0 KB View Raw