Adaptive reset neural ODE
Implementation & benchmark of arXiv:2608.10738 — Long-Time Trajectory Approximation via SA-NODEs: Model Predictive and Floquet Strategies
Source paper: Long-Time Trajectory Approximation via SA-NODEs: Model Predictive and Floquet Strategies arXiv:2608.10738 ⓘ · analyzed Sep 1, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Replace one neural ODE trained over the entire rollout with a sequence of locally trained vector fields, and reset each window from the observed or teacher state during training. Choose the next window boundary at the first time the current model's supervised flow error exceeds a tolerance, so difficult portions receive shorter windows and more parameters while easy portions use longer windows.
Formulas
Mathematical statement
The paper defines the learned flow \(\widehat{\Phi}_{\boldsymbol{\Theta}_k}(s;z)\) for window \(I_k=[\tau_k,\tau_{k+1}]\), where \(\boldsymbol{\Theta}_k\) are the parameters for that window, \(z\in\mathbb{R}^d\) is the reset state, and \(\Phi(t;x_0)\) is the target flow from initial condition \(x_0\). The adaptive boundary is \(\tau_{k+1}=\inf\{t\in(\tau_k,T]:\sup_{x_0\in\mathcal K}\|\Phi(t;x_0)-\widehat{\Phi}_{\boldsymbol{\Theta}_k}(t-\tau_k;\Phi(\tau_k;x_0))\|>\varepsilon\}\), with \(\inf\varnothing=T\). Here \(\mathcal K\) is the initial-condition set and \(\varepsilon\) is the allowed window error. The reset prevents previous model error from becoming the initial condition for the next training window. In an implementation, the supremum is approximated by a high batch quantile and continuous time by a discrete solver grid.
Implementation notes
Integrate this at the rollout module of a neural ODE, latent ODE, or continuous-time state-space model. Maintain a list of local vector fields \(f_{\Theta_k}(x,t)\), each responsible for an interval \([\tau_k,\tau_{k+1}]\). During training, initialize \(\tau_0=0\), choose a minimum window of \(s_{\min}\) discrete steps and a maximum cap \(S\), and warm-start \(\Theta_k\) from \(\Theta_{k-1}\). Optimize the teacher-forced window loss \(L_k=\sum_{b,s}\|\hat{x}_{b,k}(s)-x_b^{teacher}(\tau_k+s)\|_2^2\). Then roll the candidate model forward over a held-out batch. For every offset \(s\), compute \(e_b(s)=\|x_b^{teacher}(\tau_k+s)-\hat{x}_{b,k}(s)\|_2\), aggregate with the 95th or 99th percentile, and choose the first offset whose aggregate exceeds \(\varepsilon\); enforce \(s_{\min}\le s\le S\). Pseudocode: while \(\tau_k<T\), train \(\Theta_k\), evaluate \(\widehat E_k(s)\), set \(\tau_{k+1}\) using the stopping formula, append the module, and continue. At deployment, replace teacher resets by the model's predicted terminal state, which tests whether local accuracy prevents drift. The stopping rule and tolerance come from the paper; the batch quantile, discrete grid, and solver are empirical approximations. First experiment: compare one shared latent ODE with this adaptive ensemble on a chaotic oscillator or MuJoCo trajectory, using equal total parameters and solver evaluations. Measure long-horizon RMSE, number of windows, error immediately after every reset, and loss descent at equal FLOPs. Success means substantially slower error growth or a longer usable horizon at fixed compute.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Not reproduced ✗
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 readable adaptive-reset neural ODE MVP with discrete 95th-percentile error-triggered boundaries, teacher resets during training, and predicted-state resets during deployment. The math mechanism manifested: tolerance boundaries matched analytic crossings within 0.00155 time units at dt=0.002, mismatch produced earlier boundaries monotonically, and tolerance produced longer windows monotonically. The toy adaptive rollout reduced RMSE substantially, but this is not a compute- or parameter-matched win because it used 166 local windows.
- Agent confidence
- 8/10
- Baseline
- Shared scalar field: full-rollout RMSE 37.2274; final RMSE 85.4212.
- Idea
- Adaptive local fields: full-rollout RMSE 2.4972; final RMSE 5.5191; 166 windows. Analytic-versus-grid boundary maximum absolute error 0.00155.
Limitations: Only a scalar synthetic time-varying flow was tested; no neural network vector fields, chaotic oscillator, latent ODE, noisy observations, equal-parameter/FLOP budget, or GPU benchmark was evaluated. The adaptive result benefits from many local parameters and frequent reset opportunities.
How to run: python3 adaptive_reset_experiment.py
Stage 2 — Benchmark vs. tuned baseline (arXiv:2608.10738)
Significantly WORSE than the tuned baseline (+13326.8%, p=0.0081, wins 0 / 8 paired seeds).
- Benchmark
- Dynamics forecasting
- Model
- rnn_small
- Paired seeds
- 8
- Baseline mean
- 0.0005
- Idea mean
- 0.0732
- Effect (Δ)
- 0.0727 (+13326.8%; negative = idea better)
- Wins
- 0 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±5574.1%
- Mechanism
- Not confirmed ✗
- Practical effect
- Hurts
- Baseline tuning
- swept over 3 configs
The implementation uses the bench dynamics endpoint-prediction representation rather than a continuous-time ODE solver, and the local-window construction is a minimal adaptation to the fixed rnn_small interface. Compute and parameter counts were not separately normalized beyond using the same model family and training budget. The final idea report evaluates lr=0.001; the baseline sweep covered all three shared learning rates, but the idea-side nearby configurations were recorded rather than separately aggregated in the final comparison.
How to run: python3 stage2_adaptive_reset.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 adaptive local rnn_small rollout fields with teacher-forced local training and quantile reset diagnostics on the structurally matched dynamics track. The analytic stopping-rule sanity check passed, but the trained-model q95 errors exceeded the tolerance and the idea was significantly worse than the tuned shared baseline: paired delta +0.07265389 with permutation p=0.0081. Thus the stage-2 benchmark provides no transfer win.
- Baseline
- dynamics/rnn_small, tuned lr=0.01: test MSE mean 0.0005451723, std 0.0002036184
- Idea
- adaptive local rnn_small: test MSE mean 0.0731990607, std 0.0340228609; paired delta +0.0726538885, p=0.0081, 0/8 wins
Benchmark result
Significantly WORSE than the tuned baseline (+13326.8%, p=0.0081, wins 0 / 8 paired seeds).
- Benchmark
- Dynamics forecasting
- Model
- rnn_small
- Paired seeds
- 8
- Baseline mean
- 0.0005
- Idea mean
- 0.0732
- Effect (Δ)
- 0.0727 (+13326.8%; negative = idea better)
- Wins
- 0 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±5574.1%
- Mechanism
- Not confirmed ✗
- Practical effect
- Hurts
- Baseline tuning
- swept over 3 configs
The implementation uses the bench dynamics endpoint-prediction representation rather than a continuous-time ODE solver, and the local-window construction is a minimal adaptation to the fixed rnn_small interface. Compute and parameter counts were not separately normalized beyond using the same model family and training budget. The final idea report evaluates lr=0.001; the baseline sweep covered all three shared learning rates, but the idea-side nearby configurations were recorded rather than separately aggregated in the final comparison.
How to run: python3 stage2_adaptive_reset.py
Artifacts
- README.md 2.0 KB View
- adaptive_reset_experiment.py 6.5 KB View Raw
- bench_report.json 4.1 KB View Raw
- report.md 1.4 KB View
- report_bench_2026-09-01T101823.md 4.7 KB View
- results.json 3.6 KB View Raw
- stage2_adaptive_reset.py 5.1 KB View Raw