Papers › "Hey, that's not an ODE": Faster ODE Adjoints via Seminorms

"Hey, that's not an ODE": Faster ODE Adjoints via Seminorms

20 Sep 2020arXiv:2009.09457archive 2025-07-28

Patrick Kidger, Ricky T. Q. Chen, Terry Lyons

Neural differential equations may be trained by backpropagating gradients via the adjoint method, which is another differential equation typically solved using an adaptive-step-size numerical differential equation solver. A proposed step is accepted if its error, \emph{relative to some norm}, is sufficiently small; else it is rejected, the step is shrunk, and the process is repeated. Here, we demonstrate that the particular structure of the adjoint equations makes the usual choices of norm (such as L²) unnecessarily stringent. By replacing it with a more appropriate (semi)norm, fewer steps are unnecessarily rejected and the backpropagation is made faster. This requires only minor code modifications. Experiments on a wide range of tasks -- including time series, generative modeling, and physical control -- demonstrate a median improvement of 40% fewer function evaluations. On some problems we see as much as 62% fewer function evaluations, so that the overall training time is roughly halved.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2009.09457")

Code

Syntology Ran 6 of 7 code samples harvested from 3 repositories linked to this paper; 1 has no recorded run. Of those that ran: 2 ran · honoured contract; 4 ran · our draft was wrong.

By repository: official repository: 2 samples from 1 repository, 2 ran; community (archive-listed): 4 samples from 1 repository, 3 ran; community: 1 sample from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

patrick-kidger/FasterNeuralDiffEq officialmentioned in papermentioned on GitHubpytorch report
rtqichen/torchdiffeq mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

7 samples harvested; 6 ran; 2 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
4ran · our draft was wrong
1unverified

Licence: 0 of the 7 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

_rms_norm patrick-kidger/FasterNeuralDiffEq/models/common.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · d5fe4428b7f73daf · report
make_norm patrick-kidger/FasterNeuralDiffEq/models/common.py official repository ran · our draft was wrong Apache-2.0 (permissive) · df358ff6bb70bc96 · report
_flat_to_shape rtqichen/torchdiffeq/torchdiffeq/_impl/adjoint.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 60d36a103bd951b8 · report
_mixed_norm rtqichen/torchdiffeq/torchdiffeq/_impl/adjoint.py community (archive-listed) ran · honoured contract MIT (permissive) · 616aed78f20f4738 · report
_rms_norm rtqichen/torchdiffeq/torchdiffeq/_impl/adjoint.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 2d6c73bb479f8a90 · report
handle_adjoint_norm_ rtqichen/torchdiffeq/torchdiffeq/_impl/adjoint.py community (archive-listed) unverified MIT (permissive) · 634734b11eb446c3 · report
get_data patrick-kidger/torchcde/example/time_series_classification.py community ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 582d465aad5dd543 · report

Tasks

Time SeriesTime Series Analysis

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections