Finite-Horizon Walk Reciprocity Control
Implementation & benchmark of arXiv:2608.25030 — Directed walks shape a universal square-root law of entropy production rate in nonreciprocal systems
Source paper: Directed walks shape a universal square-root law of entropy production rate in nonreciprocal systems arXiv:2608.25030 ⓘ · analyzed Aug 29, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Add a diagnostic and optional regularizer that measures whether a neural block's multi-step directed interactions differ strongly when traversed forward versus backward. This catches transient directional amplification in deep acyclic or nearly nilpotent networks, which eigenvalue or spectral-radius penalties can miss because all eigenvalues may be zero even though short directed walks are large.
Formulas
Mathematical statement
The paper identifies antisymmetric directed-walk matrices as the source of irreversibility. For an interaction matrix \(A\in\mathbb{R}^{n\times n}\), the length-\(k\) aggregate walk matrix is \(W_k=A^k\), with \((W_k)_{ij}\) equal to the total signed weight of length-\(k\) directed walks from node \(j\) to node \(i\). Its nonreciprocal component is \(D_k=W_k-W_k^{\mathsf T}\), where \({\mathsf T}\) denotes transpose. Use the finite-horizon walk energy \(R_L(A,g)=\frac{1}{n}\sum_{k=1}^{L}g^{2k-2}\|D_k\|_F^2\), where \(L\) is the measured horizon, \(g\in[0,1)\) is a gain parameter, \(n\) is width, and \(\|\cdot\|_F\) is the Frobenius norm. The paper's reported universal reference curve is \(\phi_*(g)=1-\sqrt{1-g^2}\). A corresponding target walk budget can be defined as \(R_{\mathrm{target}}=c\,\phi_*(g)\), with dimensionless calibration constant \(c\) measured from a baseline. The key structural warning is that a nilpotent matrix satisfies \(A^d=0\) and has all eigenvalues equal to zero, while \(A^k\neq0\) for \(k<d\); therefore finite-horizon walk statistics detect transient interactions invisible to eigenvalue diagnostics.
Implementation notes
Integrate this into the training-dynamics instrumentation of a residual MLP, Transformer feed-forward block, or directed GNN. For a block with local linearized interaction matrix \(A\), use either the weight matrix itself after row/column normalization, or a Jacobian-vector proxy measured at the current minibatch. First normalize \(A\leftarrow A/(\|A\|_2+\epsilon)\), choose a small horizon \(L=4\) or \(8\), and choose \(g=0.8\). Compute the walk terms without explicitly materializing all dense powers when width is large: maintain \(V_k=A V_{k-1}\) and estimate \(\|V_k-V_k^{\mathsf T}\|_F^2\) with 8--32 Hutchinson vectors, or use exact powers for a small-width pilot. Pseudocode: R=0; V=A; for k in 1..L: D=V-transpose(V); R += g**(2*k-2)*mean_square(D); V=A@V. During the first experiment, log \(R_L\), gradient norm, activation norm, and validation loss; optionally add \(\lambda\max(0,R_L-R_{target})^2\) to the loss, where \(R_{target}=c\phi_*(g)\) and \(c\) is the median baseline ratio \(R_L/\phi_*(g)\) collected during the first epoch. The paper supplies the square-root reference law and the nilpotent/transient rationale; the normalization, finite horizon, Hutchinson estimator, and target coefficient are empirical engineering choices. Start with a 6-layer width-256 residual MLP on CIFAR-10 or a small directed node-classification GNN, comparing standard spectral-norm regularization, no regularizer, and this walk penalty at equal FLOPs. Success is lower activation/gradient spikes and improved validation accuracy or loss stability, especially in strictly feed-forward acyclic networks where spectral-radius measurements remain near zero.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Confirmed ✓
Stage 2 · Practical benchmark result: Inconclusive
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 an exact finite-horizon reciprocity diagnostic, differentiable walk-energy regularizer, nilpotent sanity check, and three-seed toy regression comparison. A strictly triangular nilpotent matrix had spectral radius 0 and A^n=0, yet substantial positive finite-horizon walk energy (3.664), while a symmetric control had approximately zero energy; iterative powers matched exact powers to 1.1e-16. The regularizer reduced walk energy in all three seeds, but did not reliably improve loss and increased mean gradient norm, so a practical training win is not established.
- Agent confidence
- 8/10
- Baseline
- Mean last-50-step MSE 0.01595, walk energy 0.84470, gradient norm 0.00448 across seeds 7, 19, 31.
- Idea
- Mean last-50-step MSE 0.01738, walk energy 0.80027, gradient norm 0.00518; walk energy decreased in all seeds, while loss improved in only 1/3 seeds.
Limitations: Only a tiny synthetic full-batch regression task and three seeds were tested; no CIFAR-10, Transformer, GNN, spectral-norm baseline, Hutchinson estimator, validation split, FLOP-normalized comparison, or broad hyperparameter sweep was evaluated. The target was calibrated from each seed's baseline final-window energy rather than a separately measured first-epoch median.
How to run: python3 walk_reciprocity_experiment.py
Stage 2 — Benchmark vs. tuned baseline (arXiv:2608.25030)
Ahead of the baseline (−24.9%) but not statistically significant (p=0.0961, wins 6 / 8 paired seeds).
- Benchmark
- Dynamics forecasting
- Model
- rnn_small
- Paired seeds
- 8
- Baseline mean
- 0.0021
- Idea mean
- 0
- Effect (Δ)
- -0.0005 (−24.9%; negative = idea better)
- Wins
- 6 / 8 paired seeds
- p-value
- 0.0961 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- n/a
- Mechanism
- Confirmed ✓
- Practical effect
- Inconclusive
- Baseline tuning
- swept over 6 configs
Only the registered dynamics track and rnn_small model were tested; larger models, longer training, other horizons or gains, Hutchinson estimation, and a spectral-radius baseline were not tested.
How to run: python3 bench_walk_reciprocity.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
The registered dynamics benchmark used the shared rnn_small GRU, tuned baseline sweep, and 8 paired seeds. The regularizer reduced trained-model walk energy by 32.16%, confirming the mechanism, but the test-MSE improvement was not significant (delta=-0.00051616, permutation p=0.09615), so the idea is not a benchmark win.
- Baseline
- best_cfg lr=0.006, weight_decay=0.0001; full mean MSE=0.0020704465
- Idea
- best lambda=0.8 at lr=0.006, weight_decay=0.0001; mean MSE=0.0015542888; 6/8 wins; walk energy 0.09697281 vs 0.14293696
Benchmark result
Ahead of the baseline (−24.9%) but not statistically significant (p=0.0961, wins 6 / 8 paired seeds).
- Benchmark
- Dynamics forecasting
- Model
- rnn_small
- Paired seeds
- 8
- Baseline mean
- 0.0021
- Idea mean
- 0
- Effect (Δ)
- -0.0005 (−24.9%; negative = idea better)
- Wins
- 6 / 8 paired seeds
- p-value
- 0.0961 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- n/a
- Mechanism
- Confirmed ✓
- Practical effect
- Inconclusive
- Baseline tuning
- swept over 6 configs
Only the registered dynamics track and rnn_small model were tested; larger models, longer training, other horizons or gains, Hutchinson estimation, and a spectral-radius baseline were not tested.
How to run: python3 bench_walk_reciprocity.py
Artifacts
- bench_report.json 11.3 KB View Raw
- bench_walk_reciprocity.py 6.4 KB View Raw
- report.md 1.5 KB View
- report_bench_2026-09-03T030023.md 3.4 KB View
- results.json 2.8 KB View Raw
- walk_reciprocity_experiment.py 5.4 KB View Raw