Skip to content

Fix benchmark bugs in StiffSDE, NonStiffSDE, HybridJumps, Jumps (StochasticHeat, Oval2Timings, BasicSDEWeak, Synapse, EGFR) - #1906

Merged
ChrisRackauckas merged 11 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fix-dde-sde-jumps
Sep 25, 2026
Merged

ChrisRackauckas merged 11 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fix-dde-sde-jumps

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

This PR fixes benchmark bugs found by the prose audit of StiffDDE, StiffSDE, NonStiffSDE, HybridJumps, and Jumps. There is one commit per page for the original fixes, plus follow-up commits from independent review. Each page was re-run locally from the worktree root with
~/.juliaup/bin/julia +<ver> --threads=auto --project=. benchmark.jl benchmarks/<Folder>/<file>.jmd, where <ver> is the folder Manifest's Julia version. Absolute wall-clock times vary with machine load; failure counts and qualitative rankings are what the pages claim.

StiffSDE/StochasticHeat: implicit errors did not decrease with dt

  • Root cause: ImplicitRKMil, ImplicitEM, and ImplicitEulerHeun are adaptive by default, so dt= only set the initial step. Every run took about 75 adaptive steps at the default tolerances whatever dt was. A standalone check (100 samples each) confirms it: adaptive ImplicitRKMil takes 75/77/75 steps for dt = 0.1/0.01/0.001, and with adaptive=false it takes 4/26/251.
  • Fix: Add adaptive=false to the implicit runs in the "Highest dt" and "Simple Error Analysis" sections. Update the conclusion to state the new errors.
  • Evidence (mean(simple_error(...)), 400 samples; Julia 1.11):
method dt before (published) after
ImplicitRKMil (Strat.) 0.1 0.018185517528369 1.0004903139814554
ImplicitRKMil (Strat.) 0.01 0.018418466765605716 0.014410479368842741
ImplicitRKMil (Strat.) 0.001 0.018451613923516377 0.00012493520216962087
ImplicitEulerHeun 0.1 0.009393747399189691 0.8318866546863489
ImplicitEulerHeun 0.01 0.007250951082943943 0.01423630485660903
ImplicitEulerHeun 0.001 0.007449617244075225 0.0001577490469593784
EulerHeun 5e-5 3.294e-9 3.083e-9

StiffSDE/Oval2Timings: the "fixed dt" loops ran adaptively

  • Root cause: The SRIW1, RKMil, ImplicitEM, and ImplicitRKMil loops did not pass adaptive=false. At the default tolerances with an initial dt = 2^-16, adaptive SRIW1 ends with ReturnCode.DtLessThanMin on every trajectory (50/50 in a standalone check), which accounts for the 975–984/1000 "fails". RKMil's time was flat in dt. Two more bugs in the same plot:
    • best_adaptive_time = numfails != 0 ? adaptive_time : min(...) overwrote the best time with a failing run's time.
    • The red "stable" markers used hard-coded indices.
  • Fix: Add adaptive=false to those four loops. Keep best_adaptive_time unchanged when a run fails. Compute the markers as the largest dt with zero failures. Add an intro and a conclusion (the page had no prose). The conclusion states load-invariant claims only (Δt thresholds, failure counts, order-of-magnitude speedup)—not absolute seconds from any one machine.
  • Evidence (failure counts match CI weave job 107296517719; times below are from that weave, not a loaded local host):
method before: fails (dt=2^-16..) after: fails after: time on CI (s)
SRIW1 984, 975, 978, 975 8, 4, 2, 0 ~1.0 → 8.21
RKMil 5, 3, 6, 7, 7, 6 (time flat) 10, 1, 1, 0, 0, 0 (first zero fails at 2^-19: 4.26)
EM (unchanged code) 10, 1, 1, 0, 0, 0 10, 1, 1, 0, 0, 0 (first zero fails at 2^-19: 3.86)

Before the fix, ImplicitEM and ImplicitRKMil times were flat in dt (adaptive). After it, CI reports ImplicitEM ~11–170 s and ImplicitRKMil ~11–166 s across the sweep, with no failures. The best adaptive run without failures (SOSRI, abstol 2^-7, reltol 2^-4) takes 0.124 s on CI—more than an order of magnitude faster than the cheapest stable fixed-step run (EM at 3.86 s).

NonStiffSDE/BasicSDEWeakWorkPrecision: "Sample Error: 1000" plotted the 10^4-sample value

  • Root cause: sample_size = Int[10; 1e2; 1e3; 1e4], and the line plotted se[end].
  • Fix: Plot se[3] in all six plots. Summary: on the linear problem, "several times more time" becomes "more time", because with the corrected line EM reaches it at roughly twice SRIW1's cost. The Summary notes that DiffEqDevTools.get_sample_errors divides by sqrt(N) twice, so the dashed line is a factor of about √1000 below E_S = sqrt(V/N); comparisons against it are provisional.
  • Evidence: In the additive problem, the line moves from 4.7557374180683486e-7 (published se[end]) to se[3], which is 4.774260360097123e-6 in this run. Published get_sample_errors values scale like 1/N (4.36e-6 at N = 1000 vs 4.76e-7 at N = 10^4).

HybridJumps/Synapse: swapped axis labels

  • Fix: xlabel = "Time", with ylabel = "Voltage" or "N". The re-run figures Synapse_22_1.png and Synapse_23_1.png show time (0–1000) on x.

Jumps/EGFR_Benchmark: y label said "Average" for a median

  • Fix: ylabel = "Median Time (s)". The re-run bar chart (NRM 18.4 s, CCNRM 14.1 s, DirectCR 18.0 s, RSSACR 0.85 s) shows the new label.

Not fixed here / not a bug / upstream

  • StiffDDE/Oregonator_wpd (flat reference solution): The bug is in DDEProblemLibrary: the sign of k₁ A u₂ in the u1 equation is wrong compared with RADAR5's dr-oregon.f. Upstream fix with test: DDEProblemLibrary: fix sign error in RADAR5 Oregonator (u1 equation) DiffEqProblemLibrary.jl#233. The page change (tolerances scaled to the solution) is a separate draft PR, blocked on that release: StiffDDE/Oregonator_wpd: tolerances for the corrected (oscillating) RADAR5 Oregonator #1905.
  • StiffDDE/QuorumSensing (one Tsit5 point at ~1e10 in the L∞ RK diagram): not a benchmark bug, no change. The point is MethodOfSteps(Tsit5()) at abstol=1e-4, reltol=1e-1. It returns ReturnCode.Success with u3 oscillating between ±7.1e10 from t ≈ 36 (72 accepted / 28 rejected steps). The true u3 is ~1e-7, far below abstol, and with reltol=0.1 the error estimator accepts a growing unstable mode. reltol=5e-2 gives ReturnCode.Unstable (NaN'd by DiffEqDevTools), and reltol=1e-2 gives max|u3| = 8.9e-5. With MethodOfSteps(Tsit5(); constrained=true), which keeps steps no longer than the lag τ = 2, max|u3| stays at 1.3e-4 even at reltol=1e-1. So this is a real result: an explicit method on a stiff DDE at a very loose tolerance.
  • HybridJumps/MultivariateHawkes (VR_Direct (recursive) 9.987 ms at V=30 vs 3.864 s at V=40): under investigation in JumpProcesses; this PR does not change the page.

Review follow-ups

SHA change
10c137d0 Oval2Timings conclusion: drop load-dependent absolute timings
1114e3a3 BasicSDEWeak: DiffEqDevTools sample-error caveat
0074c1d7 Drop prose-inspection Core testset (AGENTS.md forbids source-text tests)
2f876e04 BasicSDEWeak caveat wording: “factor of √1000”; no “fix in progress” claim

Original page-fix commits: StochasticHeat 635689d0, EGFR 76e31755, Oval2 code 22585448, Synapse 9bd39263, BasicSDEWeak index fb9edcab.


Independent review (round 1) — VERDICT: CHANGES (addressed)

Blocking Oval2 absolute timings → fixed in 10c137d0. See round-1 review details previously posted on this PR.

Independent review (round 2) — VERDICT: CHANGES (addressed)

Blocking: Core testset "Oval2Timings conclusion is load-invariant" violated AGENTS.md (no tests that merely inspect benchmark prose). Removed in 0074c1d7. Non-blocking caveat wording clarified in 2f876e04.

Risk assessment

  • Risk: low. Five .jmd pages (+ transient Core testset removed). No tolerances loosened, no solvers dropped, no Project/Manifest changes.
  • Blast radius: StiffSDE/StochasticHeat, StiffSDE/Oval2Timings, NonStiffSDE/BasicSDEWeakWorkPrecision, HybridJumps/Synapse, Jumps/EGFR_Benchmark.
  • Evidence: Oval2Timings CI weave passed at earlier head (code unchanged since); Julia Tests Core green; StochasticHeat numerics confirmed in round-1 local re-run.
  • Independent review: round 1 and round 2 (both CHANGES; blocking items addressed).
  • Merge: needs review. Draft marked ignore-until-reviewed by @ChrisRackauckas. Prefer waiting for StochasticHeat and BasicSDEWeak weave jobs before merge.

🤖 Posted by an AI agent — harness: Cursor Agent 2026.09.23-86fc751 · model: Composer (Auto)
Conversation: local session eb4c79f6-9841-416b-9a38-8ab3cf517f44; job dir /home/crackauc/sandbox/fleet-master-jobs/fix-sb-1906


Independent re-review (Devin CLI / fusion-claude-opus-5-5-high-sidekick-swe-2-medium)

VERDICT: MERGE

Risk assessment

  • Risk: low. The PR changes 5 .jmd pages and nothing else: no Project/Manifest changes, no src/ or test/ changes against master, no new dependencies, no tolerance changes, and no solvers removed.
  • Blast radius: rendered output of StiffSDE/StochasticHeat, StiffSDE/Oval2Timings, NonStiffSDE/BasicSDEWeakWorkPrecision, HybridJumps/Synapse, Jumps/EGFR_Benchmark.
  • Evidence: Oval2Timings has a passing CI weave (job 107296517719 at fb9edcab). Its code has not changed since then. The other four pages have never completed a CI weave: they were queued, then cancelled, in three runs, and are queued again now. Their numbers come only from the author's local runs.
  • Independent review: this review (round 3). Rounds 1 and 2 were CHANGES.
  • Merge: needs review, and should wait for the queued weave jobs (see above).
Full review

VERDICT: MERGE

Re-review of #1906 at head 2f876e04. Condition: merge only after the Benchmarks run now queued at this head (36099608407) passes, at least for StochasticHeat and BasicSDEWeakWorkPrecision. Those two pages make numeric claims in their prose, and no CI weave has checked them yet.

Risk assessment

  • Risk: low. The PR changes 5 .jmd pages and nothing else: no Project/Manifest changes, no src/ or test/ changes against master, no new dependencies, no tolerance changes, and no solvers removed.
  • Blast radius: rendered output of StiffSDE/StochasticHeat, StiffSDE/Oval2Timings, NonStiffSDE/BasicSDEWeakWorkPrecision, HybridJumps/Synapse, Jumps/EGFR_Benchmark.
  • Evidence: Oval2Timings has a passing CI weave (job 107296517719 at fb9edcab). Its code has not changed since then. The other four pages have never completed a CI weave: they were queued, then cancelled, in three runs, and are queued again now. Their numbers come only from the author's local runs.
  • Independent review: this review (round 3). Rounds 1 and 2 were CHANGES.
  • Merge: needs review, and should wait for the queued weave jobs (see above).

Blocking findings

None. I checked both earlier blocking items against the commits themselves, not just the PR body's claims:

  • Round 1: Oval2 conclusion quoted absolute timings. Resolved in 10c137d0. git diff fb9edcab 2f876e04 -- benchmarks/StiffSDE/Oval2Timings.jmd shows only the conclusion paragraph changed. The new text makes only claims that don't depend on machine load: Δt thresholds, failure counts, and "more than an order of magnitude".
  • Round 2: prose-inspection testset in test/core.jl broke AGENTS.md's rule against tests that only inspect benchmark source text. Resolved in 0074c1d7, which deletes 16 lines from test/core.jl. git diff --stat origin/master...pr1906 lists only the 5 .jmd files, so nothing under test/ differs from master.

Non-blocking findings

  1. StochasticHeat conclusion now conflicts with its own opening (suspected from reading plus rough arithmetic). The paragraph still opens with "the implicit methods do not have a stepsize limit … if we do not care about the error too much, the implicit methods dominate." The new numbers give a mean squared error of 1.0005 (ImplicitRKMil) and 0.83 (ImplicitEulerHeun) at dt = 0.1. My rough estimate of E‖u_true(0.25)‖² for this problem is also about 1: lowest mode 4/π·e^{-π²/4} ≈ 0.11 per component, over 100 components, with an E[e^{2W}] factor. That suggests the fixed-step implicit solution at dt = 0.1 is damped to about 0, with roughly 100% relative error. "No stepsize limit" then holds for stability but not for accuracy. One clause saying so would help. The opening sentence predates this PR.
  2. The "factor of roughly 100 per tenfold reduction of dt" is loose. The PR-body table gives ratios of 69×/115× for ImplicitRKMil and 58×/90× for ImplicitEulerHeun. "Roughly 60–115×", or "consistent with squared error ∝ dt²", would match the data better.
  3. The BasicSDEWeak caveat is correct in substance but slightly off in its factor, and cites no upstream issue. I read get_sample_errors in DiffEqDevTools 3.6.3, the version pinned in the NonStiffSDE Manifest (local depot copy ~/.julia/packages/DiffEqDevTools/4mSBe, now in the OrdinaryDiffEq.jl monorepo under lib/DiffEqDevTools). It takes std over solution_runs of the N-sample mean, which already scales as √(V/N), then divides by sqrt(numruns[i]) again. So "divides by √N twice" is right. But the result is 1.96·√V/N, so against E_S = √(V/N) the line sits about √1000/1.96 ≈ 16× low, not √1000 ≈ 32× low, unless E_S includes the 1.96. The page says "currently" but links no upstream issue. That issue belongs in SciML/OrdinaryDiffEq.jl.
  4. The BasicSDEWeak Summary's qualitative claims have not been checked against output. Moving the line from se[end] to se[3] raises it about 10×. The Summary still says EM/RKMil "do not reach" it on the additive problem, and the PR body says EM needs "roughly twice SRIW1's cost" on the linear problem. The body gives no numbers for either, and no CI weave has run this page. The queued weave should settle it.
  5. Tests at head. The body says "Julia Tests Core green". The Tests workflow passed at 1114e3a3 and has not run at 2f876e04. The net diff against master under test/ is empty, so this doesn't matter in practice. The claim just refers to an earlier head.

What I ran

Confirmed by running:

  • gh pr view, gh pr diff, gh pr checks, and gh run list --branch fix-dde-sde-jumps. The Benchmarks run at 2f876e04 (36099608407) is queued. The runs at fb9edcab, 466b4ea8 and 1114e3a3 were cancelled for every page except Oval2Timings, which passed at fb9edcab. Runic, Typos, and Runic Suggestions pass at head.
  • Cloned the repo and fetched pull/1906/head. Ran git diff --stat fb9edcab pr1906 over benchmarks/{StiffSDE,NonStiffSDE,HybridJumps,Jumps} and src: only prose changed in Oval2Timings and BasicSDEWeak, and no Manifest changed. So the Oval2 CI weave result still applies at head.
  • Downloaded the Oval2 weave artifact (benchmark-benchmarks-StiffSDE-Oval2Timings-jmd, run 35894793886) and checked every Oval2 number in the PR body against Oval2Timings.md. SRIW1 fails 8/4/2/0 (1.04 → 8.21 s). RKMil 10/1/1/0/0/0 (4.26 s at 2^-19). EM 10/1/1/0/0/0 (3.86 s at 2^-19). ImplicitEM 11.0–169.7 s and ImplicitRKMil 11.1–165.9 s, both with 0 fails. All 12 adaptive runs have 0 fails, and the minimum is 0.124 s (SOSRI, 2^-7/2^-4), so 3.86/0.124 ≈ 31× backs "more than an order of magnitude". The conclusion's threshold claims match. In the figure, the computed red markers sit at 2^-19 for all three methods.
  • Read the new marker code: findfirst(==(0), fails[:,i]) over Δt values in decreasing order, with untested SRIW1 rows at -1. The (j,i) index order is correct. The fix that keeps best_adaptive_time unchanged after a failed run is also correct.
  • Read the Synapse and EGFR sources at head. plot!(res.t, …) puts time on x, and median(bm) feeds the bar chart, so both label fixes are correct.
  • Read get_sample_errors in the DiffEqDevTools 3.6.3 source (see finding 3).

What I did not verify

  • I ran no Julia. The StochasticHeat numbers, the BasicSDEWeak line values and Summary claims, and the Synapse/EGFR re-run figures come from the author's local runs, and no CI weave has run those pages. Unverified.
  • The standalone step-count check (75/77/75 adaptive steps vs 4/26/251 fixed) and the 50/50 DtLessThanMin SRIW1 check. Unverified.
  • The QuorumSensing, Oregonator and MultivariateHawkes notes in the PR body. These pages aren't in this diff, and I didn't review them.

Links


Review by an AI agent. Harness: Devin CLI. Model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium. Not posted to GitHub.


🤖 Posted by an AI agent — orchestrator: Devin Sidekick on behalf of @ChrisRackauckas · reviewer: Devin CLI / fusion-claude-opus-5-5-high-sidekick-swe-2-medium
Conversation: local session; review transcript ~/sandbox/fleet-master/jobs/909/log-SciMLBenchmarks.jl-1906-r3.txt on Chris's Mac

ChrisRackauckas and others added 5 commits September 23, 2026 09:02
ImplicitRKMil, ImplicitEM and ImplicitEulerHeun default to adaptive
stepping, so `dt` was only the initial step and every run used ~75
adaptive steps at the default tolerances; the error table was therefore
flat in dt. Pass adaptive=false so the dt sweeps are dt sweeps, and state
the resulting errors in the conclusion.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Agent-Harness: Claude Code 2.1.280
Agent-Model: claude-opus-5-5[1m]
Agent-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
Claude-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
The bars are `median(bm).time`, but the y axis said "Average Time (s)".

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Agent-Harness: Claude Code 2.1.280
Agent-Model: claude-opus-5-5[1m]
Agent-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
Claude-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
SRIW1, RKMil, ImplicitEM and ImplicitRKMil default to adaptive stepping,
so `dt` was only the initial step; SRIW1 at the default tolerances ended
in DtLessThanMin on ~98% of trajectories and RKMil's time was flat in dt.
Pass adaptive=false, keep best_adaptive_time when a run fails instead of
overwriting it with the failing run's time, mark the largest dt without
failures from the results instead of hard-coded indices, and describe
the results.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Agent-Harness: Claude Code 2.1.280
Agent-Model: claude-opus-5-5[1m]
Agent-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
Claude-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
…plots

Both plots have time on the x axis; the labels had "Voltage"/"N" on x
and "Time" on y.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Agent-Harness: Claude Code 2.1.280
Agent-Model: claude-opus-5-5[1m]
Agent-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
Claude-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
…"Sample Error: 1000"

`sample_size = Int[10; 1e2; 1e3; 1e4]`, so `se[end]` is the 10^4-sample
error; the line labelled "Sample Error: 1000" (and matching N = 1000 in
the work-precision sets) is `se[3]`.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Agent-Harness: Claude Code 2.1.280
Agent-Model: claude-opus-5-5[1m]
Agent-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
Claude-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd

@pankgeorg pankgeorg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: MERGE

No blocking findings in the changed code.

Validation: inspected the surrounding loops and sampling setup. The Oval2 CI weave passed. I did not reproduce the stochastic timing numbers or run benchmarks locally; the other cancelled weaves do not establish successful execution.

Reviewed head: fb9edcaba7bd3fea56d35c9273f5a46b754198c5.

CI comparison (checked 2026-09-24; each row is a failed PR job):

Job PR Default branch
Runic / Runic Format Check FAILURE SUCCESS — latest run

All these PR Runic logs report formatting in unchanged cutest_benchmark_utils.jl. That failure also occurred on the September 23 base run, but the latest default-branch Runic run is green; it should not be described as currently red on default.

Cancelled checks are incomplete validation, not passing or red test results:

Job PR Latest matching default job
Run: benchmarks/StiffSDE/StochasticHeat.jmd CANCELLED CANCELLED; absent from newest workflow run
Run: benchmarks/HybridJumps/Synapse.jmd CANCELLED CANCELLED; absent from newest workflow run
Run: benchmarks/Jumps/EGFR_Benchmark.jmd CANCELLED CANCELLED; absent from newest workflow run
Run: benchmarks/NonStiffSDE/BasicSDEWeakWorkPrecision.jmd CANCELLED CANCELLED; absent from newest workflow run

🤖 Posted for @pankgeorg by an AI agent — harness: Codex CLI 0.155.0 · model: gpt-6-astra
Session: local Codex session 01a0d371-cd25-7b23-9706-a1a1fa644f9f

ChrisRackauckas and others added 6 commits September 25, 2026 04:19
…conclusion

CI weave timings disagree with the author's loaded-machine numbers by several×
(e.g. SOSRI ~0.12 s vs ~1.1 s; speedup ~31× vs ~16×). Keep Δt thresholds,
failure counts, and an order-of-magnitude comparison that survive machine load,
and add a Core test that rejects absolute seconds / fixed speedup ratios in the
conclusion.

Co-Authored-By: Chris Rackauckas <[email protected]>
Agent-Harness: Cursor Agent 2026.09.23-86fc751
Agent-Model: Composer (Auto)
Agent-Session: eb4c79f6-9841-416b-9a38-8ab3cf517f44
Co-authored-by: Cursor <[email protected]>
…or caveat

The index fix (se[3] for N=1000) is correct, but get_sample_errors still divides
by sqrt(N) twice, so the dashed line sits about sqrt(1000) below E_S=sqrt(V/N).
State that comparisons against the line are provisional until the upstream fix.

Co-Authored-By: Chris Rackauckas <[email protected]>
Agent-Harness: Cursor Agent 2026.09.23-86fc751
Agent-Model: Composer (Auto)
Agent-Session: eb4c79f6-9841-416b-9a38-8ab3cf517f44
Co-authored-by: Cursor <[email protected]>
AGENTS.md forbids tests under test/ that merely inspect benchmark source
text. The load-invariant conclusion is already in the page; guarding its
wording in Core would fail CI if a future weave moves the first stable Δt.

Co-Authored-By: Chris Rackauckas <[email protected]>
Agent-Harness: Cursor Agent 2026.09.23-86fc751
Agent-Model: Composer (Auto)
Agent-Session: eb4c79f6-9841-416b-9a38-8ab3cf517f44
Co-authored-by: Cursor <[email protected]>
…rding

Say the dashed line is a factor of about √1000 below E_S, and drop the
unsupported claim that a DiffEqDevTools fix is imminent.

Co-Authored-By: Chris Rackauckas <[email protected]>
Agent-Harness: Cursor Agent 2026.09.23-86fc751
Agent-Model: Composer (Auto)
Agent-Session: eb4c79f6-9841-416b-9a38-8ab3cf517f44
Co-authored-by: Cursor <[email protected]>
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 25, 2026 14:22
@ChrisRackauckas
ChrisRackauckas merged commit 4f395dd into SciML:master Sep 25, 2026
6 of 10 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 28, 2026
…ility wording, cite sample-error fix (#1906 follow-up) (#1916)

* StiffSDE/Oval2Timings: compute the conclusion verdict from the stored run data

The conclusion's claims are now recomputed in a summary chunk from the
stored failure counts and timings: the first failure-free step size per
explicit method, implicit failure totals and fastest times, and the name
and speedup of the fastest adaptive run. The implicit loops record their
failures and times so the summary covers them, and each adaptive chunk
tracks which failure-free run was fastest. The conclusion names the
fastest adaptive run by reference to the summary rather than hardcoding a
tolerance pair whose ordering flips under machine load.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: local session, transcript at /home/crackauc/sandbox/tmp_20260923_090949_54257/handoff/fu1906.log on this machine

* StiffSDE/StochasticHeat: qualify the stability conclusion with the errors shown

The implicit methods being stable at every tested step size is a
stability statement, not an accuracy one: at dt = 0.1 their fixed-step
squared error is about 1, far above what they reach at smaller steps, so
the error limits dt in practice. The unsupported claim that an error of
about 1e-10 is needed for explicit methods to win is removed; no timing
on the page compares cost at equal accuracy.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: local session, transcript at /home/crackauc/sandbox/tmp_20260923_090949_54257/handoff/fu1906.log on this machine

* NonStiffSDE/BasicSDEWeakWorkPrecision: cite the upstream get_sample_errors fix

Link the sample-error caveat to the draft upstream fix for the
double-1/sqrt(N) division in DiffEqDevTools.get_sample_errors
(SciML/OrdinaryDiffEq.jl#4612, DiffEqDevTools lives in the OrdinaryDiffEq
monorepo).

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: local session, transcript at /home/crackauc/sandbox/tmp_20260923_090949_54257/handoff/fu1906.log on this machine

* StiffSDE/Oval2Timings: record adaptive runs via one helper and print all conclusion claims from the data

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd (bridged session shared with the earlier run)

* NonStiffSDE/BasicSDEWeakWorkPrecision: describe the upstream sample-error fix as proposed, not landed

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd (bridged session shared with the earlier run)

* StiffSDE/Oval2Timings: report the true largest failing dt and cheapest failure-free run

The verdict used findlast on the descending dt grid, so the printed
"largest failing dt" was actually the smallest failing one. The
"cheapest failure-free fixed-step run" minimized over only each explicit
method's first failure-free row and could divide by Inf when no
successful run existed. Compute both from the dt values themselves so
the result does not depend on grid order, minimize over every measured
failure-free fixed-step run (explicit and implicit), label the winning
method and step, and print that no baseline exists instead of an
infinite ratio. The conclusion prose now only describes what the summary
computes; the red stability dots use the same order-independent
largest-failure-free-dt selection.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: local Devin CLI session "locrian-drip" (no shareable URL; transcript ~/.local/share/devin/cli/transcripts/locrian-drip.json)

* Print all data-dependent conclusions from computed results on the changed SDE pages

Round-5 review of PR #1916 found StochasticHeat and
BasicSDEWeakWorkPrecision still asserting measured results in prose.
StochasticHeat now records each solve's status and each squared error
and prints stability, error magnitudes and adjacent-step ratios from
them, including the adaptive RSwM1 run; the stability test compares
against sol.prob.tspan[2] rather than a literal final time.
BasicSDEWeakWorkPrecision retains every work-precision set's weak_final
errors and timings and prints which methods reach each set's
sample-error line ordered by cheapest qualifying time. Oval2Timings
gives the stability scatter concrete Float64 inputs so the marker path
is safe when no fixed-step method is failure-free.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3; draft by Codex CLI 0.157.1
Agent-Model: swe-2-max; draft by gpt-6-sol
Agent-Session: local Devin CLI session 1e449d1a-c91c-4c3d-bd02-6aae6f54552f (transcript in ~/.local/share/devin/cli/sessions.db), bridged to https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd; Codex rollout: see handoff/cx1916.log

* Address round-6 non-blocking review items on the three SDE pages

Oval2Timings now counts each explicit method's failing step sizes over
all tested dt instead of only those coarser than the coarsest
failure-free step, so non-monotone failures at finer steps are
reported, and it picks each implicit method's fastest run among
failure-free runs only. The conclusion prose matches the new
quantities and drops retrospective wording. BasicSDEWeakWorkPrecision
renames the summary loop variable that shadowed Base.missing and
throws an informative ArgumentError when a name list and its
work-precision results differ in length. StochasticHeat retitles the
"Interesting Property" and "highest possible dt" headings to describe
the sections as they now are.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-max
Agent-Session: local Devin CLI session 1e449d1a-c91c-4c3d-bd02-6aae6f54552f (transcript in ~/.local/share/devin/cli/sessions.db on this machine), bridged to https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd

---------

Co-authored-by: ChrisRackauckas-Claude <[email protected]>
Co-authored-by: Devin <[email protected]>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Codex <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants