Differentially Passive Neural Blocks
Implementation & benchmark of arXiv:2609.00497 — Decentralized and Equilibrium-Set-Oriented Stability Analysis and Control for Power Systems
Source paper: Decentralized and Equilibrium-Set-Oriented Stability Analysis and Control for Power Systems arXiv:2609.00497 ⓘ · analyzed Sep 2, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Replace selected residual, recurrent, or state-space blocks by modules whose input-output Jacobians satisfy an IODP inequality throughout a prescribed activation domain. The constraint controls incremental amplification between two trajectories without requiring either trajectory to remain near one fixed equilibrium, so it should improve robustness to changing contexts and prevent exploding long-horizon sensitivities.
Formulas
Mathematical statement
For a static neural map y=h(u) with Jacobian J(u)=∂h/∂u, the paper's IODP condition with indices (σ,ρ) is -σI+(J+Jᵀ)/2-ρJᵀJ⪰0 for every u in the certified domain. Here I is the input-dimension identity, σ is the passivity index, and ρ is the output-differential index. For a dynamic neural block ẋ=f(x,u), y=h(x,u), let A=∂f/∂x, B=∂f/∂u, C=∂h/∂x, and D=∂h/∂u. A positive-definite matrix P=Pᵀ≻0 and ε>0 certify the local differential storage V=δxᵀPδx/2 when the paper's LMI holds: [PA+AᵀP+εI, PB; BᵀP, 0] - [0,I; C,D]ᵀ[-σI,I/2; I/2,-ρI][0,I; C,D]⪯0. The first term supplies differential decay through ε; the second supplies incremental input-output dissipation. For a discrete residual block zₖ₊₁=zₖ+ηrθ(zₖ,uₖ), use its sampled Jacobian M=∂zₖ₊₁/∂zₖ and require MᵀPM-P⪯-αP with P≻0 and α>0; this predicts trajectory-distance decay by at least (1-α)ᵏ for identical inputs.
Implementation notes
Integration point: begin with an MLP residual block or a small recurrent cell, because its input and state Jacobians can be computed with automatic differentiation. Parameterize P=LLᵀ+δI, where L is learned and δ=10⁻⁴, and choose target indices σ,ρ and margin α>0. For each minibatch, sample actual activations plus perturbed points within the intended domain, compute J by Jacobian-vector products, and form the symmetric violation matrix S=-σI+(J+Jᵀ)/2-ρJᵀJ. Penalize positive eigenvalues using L_IODP=softplus(λmax(-S)+m)², where m is a safety margin. For a residual block, compute the exact Jacobian M of the implemented update, or use M=I+η∂rθ/∂z, then add softplus(λmax(P⁻¹ᐟ²(MᵀPM-P+αP)P⁻¹ᐟ²))². Pseudocode is: sample (z,u); compute J or M; estimate the largest eigenvalue with 5 to 10 power iterations; add the violation penalty to task loss; backpropagate; periodically evaluate dense-domain violations and empirical trajectory-distance ratios. The paper supplies the local matrix inequality and compositional interpretation; the neural implementation estimates worst-case violations from minibatch and adversarially perturbed samples, so certification is empirical unless interval or spectral bounds are added. First cheap experiment: train a 2-layer residual MLP on MNIST classification at depths 10, 50, and 100, comparing unconstrained training with IODP-constrained training. Run identical-input trajectory tests from pairs of perturbed hidden states while sweeping η. The predicted signature is that constrained hidden-distance ratios remain below (1-α)¹ᐟ² per step, while the unconstrained model crosses ratio one when the largest generalized eigenvalue of MᵀPM-P reaches zero. The observed divergence boundary in η should track the LMI boundary within approximately 20 percent; increasing α should lower the stable η ceiling but produce exponential perturbation decay.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Not reproduced ✗
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 and numerically verified the discrete residual contraction condition MᵀM−(1−α)I⪯0, including a direct contractive-versus-expansive sanity check. In the controlled experiment, the constrained block had no sampled violations (maximum −0.048), trajectory ratios around 0.847, and 20-step distance ratio 0.036, while the baseline had maximum violation 0.548, mean trajectory ratio 1.088, and distance growth to 5.34. The robustness effect is real in this toy setting, but it incurred a substantial task-MSE cost (0.0345 versus 0.000109), so this is evidence for stability rather than an overall accuracy win.
- Agent confidence
- 8/10
- Baseline
- task MSE 0.000109; max sampled LMI violation 0.548; mean trajectory ratio 1.088; 20-step distance ratio 5.338
- Idea
- task MSE 0.0345; max sampled LMI violation −0.048; mean trajectory ratio 0.847; 20-step distance ratio 0.0364
Limitations: Only a tiny 2D residual regression block was tested, not MNIST or depths 10/50/100. The certification is structural/empirical over sampled inputs rather than a formal dense-domain or interval certificate; the dynamic continuous-time LMI and general learned P parameterization were not tested.
How to run: python3 safe_experiment.py
Stage 2 — Benchmark vs. tuned baseline (arXiv:2609.00497)
Ahead of the baseline (−47.2%) but not statistically significant (p=0.1422, wins 6 / 8 paired seeds).
- Benchmark
- Dynamics forecasting
- Model
- rnn_small
- Paired seeds
- 8
- Baseline mean
- 0.0042
- Idea mean
- 0.0022
- Effect (Δ)
- -0.002 (−47.2%; negative = idea better)
- Wins
- 6 / 8 paired seeds
- p-value
- 0.1422 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±62.3%
- Mechanism
- Not confirmed ✗
- Practical effect
- Inconclusive
- Baseline tuning
- swept over 3 configs
The benchmark used 8 epochs and 400 train/400 test samples to fit the 40-minute budget rather than the README's larger default workload. The intervention used sampled hidden states rather than a formal all-domain certificate; the P=LLᵀ parameterization and continuous-time LMI were not tested. The trained-model mechanism signature failed under a cuDNN host-allocation error and is marked confirmed=false. The idea's lower mean MSE is therefore suggestive but not statistically validated under the required permutation test.
How to run: python3 bench_experiment.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 Differentially Passive Neural Blocks as a local sampled GRU Jacobian-contraction penalty on the structurally matched dynamics track, using the benchmark's rnn_small architecture and paired-seed protocol. The idea achieved lower mean MSE than the tuned baseline (0.002211 versus 0.004185; delta -0.001974; 6/8 wins), but the permutation p-value was 0.14225, so there was no significant win and the harness verdict is "no significant win." The mechanism signature was not confirmed because its diagnostic run hit a cuDNN host-allocation error, so no robustness claim is made from that signature.
- Baseline
- dynamics/rnn_small, tuned lr=0.01; full 8-seed test MSE mean 0.00418536, std 0.00262483
- Idea
- sampled GRU contraction penalty, lr=0.01; full 8-seed test MSE mean 0.00221110, std 0.00158126; paired delta -0.00197427; p=0.14225; 6/8 wins; verdict no significant win
Benchmark result
Ahead of the baseline (−47.2%) but not statistically significant (p=0.1422, wins 6 / 8 paired seeds).
- Benchmark
- Dynamics forecasting
- Model
- rnn_small
- Paired seeds
- 8
- Baseline mean
- 0.0042
- Idea mean
- 0.0022
- Effect (Δ)
- -0.002 (−47.2%; negative = idea better)
- Wins
- 6 / 8 paired seeds
- p-value
- 0.1422 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±62.3%
- Mechanism
- Not confirmed ✗
- Practical effect
- Inconclusive
- Baseline tuning
- swept over 3 configs
The benchmark used 8 epochs and 400 train/400 test samples to fit the 40-minute budget rather than the README's larger default workload. The intervention used sampled hidden states rather than a formal all-domain certificate; the P=LLᵀ parameterization and continuous-time LMI were not tested. The trained-model mechanism signature failed under a cuDNN host-allocation error and is marked confirmed=false. The idea's lower mean MSE is therefore suggestive but not statistically validated under the required permutation test.
How to run: python3 bench_experiment.py
Artifacts
- bench_experiment.py 6.8 KB View Raw
- bench_report.json 3.6 KB View Raw
- experiment.py 5.5 KB View Raw
- report.md 1.5 KB View
- report_bench_2026-09-02T165928.md 4.4 KB View
- results.json 2.1 KB View Raw
- safe_experiment.py 4.0 KB View Raw
- safe_results.json 1.9 KB View Raw