potentialpaper

Efficient, Accurate and Stable Gradients for Neural ODEs

Sam McCallum, James Foster

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Introduces a class of reversible solvers for efficient backpropagation through Neural ODEs.

Abstract. Training Neural ODEs requires backpropagating through an ODE solve. The state-of-the-art backpropagation method is recursive checkpointing that balances recomputation with memory cost. Here, we introduce a class of algebraically reversible ODE solvers that significantly improve upon both the time and memory cost of recursive checkpointing. The reversible solvers presented calculate exact gradients, are high-order and numerically stable -- strictly improving on previous reversible architectures. On scientific modeling and time series classification experiments, reversible solvers reduce the training time by more than 2×2\times while using at least 10×10\times less memory on average than recursive checkpointing.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Summary

The submission proposes a mechanism to turn any one-step ODE solver into an algebraically reversible method, with downstream benefits for low-memory gradients of ODE solvers, that is, for training neural ODEs. Key contributions include proofs that the reversible solver inherits convergence rates and linear stability from the base solver. Experiments on scientific modelling tasks and in time series classification demonstrate improved efficiency over recursive checkpointing, which is the default for auto-differentiating through numerical ODE solvers.

Strengths

All reviewers acknowledge the novelty and utility of this work, and I have the impression that the submission has been received positively overall. Reviewers JZTR and 1sQQ appreciate the theoretical analysis, and I agree that it is valuable, especially in the context of prior work on constructing reversible versions of non-reversible solvers.

Weaknesses

Three weaknesses emerged in multiple reviews, and I expect the rebuttal to address them:

  1. Connections to Chen et al.'s adjoint-based O(1) memory gradients are not discussed to the extent reviewers JZTR and 1sQQ would have expected, both in text and in experiments. While recursive checkpointing is a convincing baseline, Chen et al.'s gradients have the same computational complexity as the method promised in the submission. Thus, the reviewers note that the manuscript would have benefited from more clearly stating differences in runtime, accuracy, and stability, and from including Chen et al. as a baseline for numerical demonstrations.
  2. Experiment size: The main promise of the proposed method is memory efficiency. Accordingly, reviewers JZTR and 1sQQ miss large-scale experiments in which these memory limitations are concrete bottlenecks in training. Currently, all experiments are on small and medium-sized problems. While the results are already somewhat convincing in their current form, they would be stronger if the experiments included larger problems with clear memory limitations.
  3. While linear stability is inherited from the base solver, the stability region of the reversible solver is reduced. Reviewers 1sQQ and MUoJ would like to see a more thorough investigation of the stability behaviour, including failure cases and concrete parameter recommendations.

In addition to the above strengths and weaknesses, I encourage rebuttals to the reviewers' concrete questions, particularly Reviewer JZTR's question about an inequality in the convergence proof. As is, the reviews are positive, but the points above would benefit from clarification.

Final justification

The initial set of reviews was positive but included some distinct weaknesses as well. Namely, a too-brief discussion of related methods, small experiment sizes, incomplete stability analysis, and a concern about an inequality in one of the proofs.

The inequality concern turned out to be based on a misreading of one equation, so the theory remains valid. The rebuttal further promised new experiments and revised discussion, which convinced Reviewers JZTR and MUoJ to the extent that they now consider all weaknesses resolved. However, Reviewer 1sQQ's recommendation remains borderline even after the rebuttal. The main criticism remaining is that the reviewer would have liked the new evidence not to be restricted to the EigenWorms setting. However, even Reviewer 1sQQ agrees that the new explanations and insights improve the paper.

In total, the two positive recommendations outweigh the one borderline, rejection-leaning recommendation. Therefore, I recommend accepting this work, under the condition that the new explanations and experiments from the rebuttals end up in the final manuscript.

Area Chair nzCN · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Summary

The submission proposes a mechanism to turn any one-step ODE solver into an algebraically reversible method, with downstream benefits for low-memory gradients of ODE solvers, that is, for training neural ODEs. Key contributions include proofs that the reversible solver inherits convergence rates and linear stability from the base solver. Experiments on scientific modelling tasks and in time series classification demonstrate improved efficiency over recursive checkpointing, which is the default for auto-differentiating through numerical ODE solvers.

Strengths

All reviewers acknowledge the novelty and utility of this work, and I have the impression that the submission has been received positively overall. Reviewers JZTR and 1sQQ appreciate the theoretical analysis, and I agree that it is valuable, especially in the context of prior work on constructing reversible versions of non-reversible solvers.

Weaknesses

Three weaknesses emerged in multiple reviews, and I expect the rebuttal to address them:

  1. Connections to Chen et al.'s adjoint-based O(1) memory gradients are not discussed to the extent reviewers JZTR and 1sQQ would have expected, both in text and in experiments. While recursive checkpointing is a convincing baseline, Chen et al.'s gradients have the same computational complexity as the method promised in the submission. Thus, the reviewers note that the manuscript would have benefited from more clearly stating differences in runtime, accuracy, and stability, and from including Chen et al. as a baseline for numerical demonstrations.
  2. Experiment size: The main promise of the proposed method is memory efficiency. Accordingly, reviewers JZTR and 1sQQ miss large-scale experiments in which these memory limitations are concrete bottlenecks in training. Currently, all experiments are on small and medium-sized problems. While the results are already somewhat convincing in their current form, they would be stronger if the experiments included larger problems with clear memory limitations.
  3. While linear stability is inherited from the base solver, the stability region of the reversible solver is reduced. Reviewers 1sQQ and MUoJ would like to see a more thorough investigation of the stability behaviour, including failure cases and concrete parameter recommendations.

In addition to the above strengths and weaknesses, I encourage rebuttals to the reviewers' concrete questions, particularly Reviewer JZTR's question about an inequality in the convergence proof. As is, the reviews are positive, but the points above would benefit from clarification.

Final justification

The initial set of reviews was positive but included some distinct weaknesses as well. Namely, a too-brief discussion of related methods, small experiment sizes, incomplete stability analysis, and a concern about an inequality in one of the proofs.

The inequality concern turned out to be based on a misreading of one equation, so the theory remains valid. The rebuttal further promised new experiments and revised discussion, which convinced Reviewers JZTR and MUoJ to the extent that they now consider all weaknesses resolved. However, Reviewer 1sQQ's recommendation remains borderline even after the rebuttal. The main criticism remaining is that the reviewer would have liked the new evidence not to be restricted to the EigenWorms setting. However, even Reviewer 1sQQ agrees that the new explanations and insights improve the paper.

In total, the two positive recommendations outweigh the one borderline, rejection-leaning recommendation. Therefore, I recommend accepting this work, under the condition that the new explanations and experiments from the rebuttals end up in the final manuscript.

1 comment
Authors · CommentOpenReview ↗

Thank you for your meta review and identification of the main suggestions by reviewers.

We address each of the points raised below, reproducing the rebuttal comments here for convenience.

  1. Please see discussions with reviewers JZTR and 1sQQ, reproduced here.

The field of Neural ODEs has largely moved away from the continuous adjoint method due to training instability. This is extensively documented in the literature [1, 2, 3].

While the continuous adjoint method and reversible backpropagation algorithm share the same runtime and memory complexity, the key difference between the two is gradient exactness. The continuous adjoint method computes an inexact gradient while reversible backpropagation computes an exact gradient. With inexact gradients, model training often becomes unstable, which we have numerically verified.

Specifically, for the PhysioNet sepsis dataset, we train the Neural CDE with the continuous adjoint method and find that this method results in ~40% of training runs diverging. This renders the method very difficult to use in practice, in agreement with previous literature. These numerical results and discussion will be added to the text.

To further include an additional baseline, we use the standard automatic differentiation algorithm from ANODE [1] as requested by reviewer 1sQQ. Please see the discussion with reviewer 1sQQ for numerical results.

  1. Please see discussions with reviewers JZTR and 1sQQ, reproduced here.

We agree that one of the main advantages of reversible backpropagation is memory efficiency; additionally, we would like to note that the improved runtime efficiency with respect to recursive checkpointing is an equally important advantage. Specifically, this combination results in an average 2x training speedup with 10x lower memory usage.

On scaling to larger vector fields:

Since the runtime and memory complexity of the backpropagation methods are independent of the single-step / network cost, the runtime and memory gains should hold for larger vector fields. To numerically verify this, we ablated the runtime of the Neural RDE on EigenWorms experiment and obtain the following results. We see that the runtime advantage holds as the network size increases.

Width Params Checkpointed (s/step) Reversible (s/step) Speedup
128 1.2M 1.62 0.69 2.36×
256 2.5M 3.13 1.16 2.70×
512 5.4M 6.42 2.14 2.99×
1024 12.4M 14.36 4.58 3.13×
  1. Please see discussions with reviewers 1sQQ and MUoJ, reproduced here.

We will extend the discussion for finding a stable coupling parameter and step size combination. In general, for a fixed step size hh, if one requires more forward stability λ\lambda can be decreased while if one requires more backward stability λ\lambda can be increased. The tradeoff between hh and λ\lambda is illustrated by the Euler example in the script. This provides a general algorithm for selecting the combination of hh and λ\lambda parameters, with concrete defaults described in the main text.

Additionally, we will present stability region plots for the reversible solver compared to the base solver to visualise the relationship between hh and λ\lambda.

To further validate stability properties empirically, we include measurements of the linear stability of the Reversible solver presented vs previous methods: Reversible Heun and Asynchronous Leapfrog (ALF). The results below show the relative absolute error of integration vs step size.

Method h = 0.035 h = 0.17 h = 0.5
Reversible Solver (RK4) 9×10⁻⁸ 4×10⁻⁶ 0.9
ReversibleHeun 2×10⁻³ 1.0 1×10²
AsynchronousLeapfrog 2×10⁻³ 1.0 1×10²

This table shows that at small step sizes, the reversible solver is 5 orders of magnitude more accurate than Reversible Heun and ALF. At h=0.17h=0.17, Reversible Heun and ALF become unstable (defined by displaying a relative error of 1.0) while the Reversible solver remains stable. The Reversible solver itself does not become unstable until h=0.5h=0.5, at which point Reversible Heun and ALF display a 10210^2 relative absolute error.

Thank you again for your time and meta review. Please see the individual rebuttal comments for further discussion and additional numerical results. Particularly, the question about an inequality in the convergence proof, which has been fully resolved.

References:

[1] Gholami et al. "ANODE: Unconditionally Accurate Memory-Efficient Gradients for Neural ODEs"

[2] Onken et al. "Discretize-Optimize vs. Optimize-Discretize for Time-Series Regression and Continuous Normalizing Flows"

[3] Kidger. "On Neural Differential Equations"

Reviewer MUoJOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
4/4
Clarity
4/4
Significance
4/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper introduces algebraically reversible Neural ODE solver generally applicable upon base solver of arbitrary order. Algebraic reversibility is achieved via doubling the memory and designing a coupling. It is proven that there exist such coupling constant and step size, that the method is linearly stable both at forward and backward passes. Across three experiments (ODE, CDE/RDE and chaotic systems) it is demonstrated that method provides significant speed up with relatively memory footprint and essentially the same final accuracy as recursive methods.

Strengths and weaknesses

Strengths:

  1. The paper introduces first to my knowledge reversible Neural ODE solver applicable to arbitrary base solver and with proven non-zero linear stability in backward pass.
  2. Method achieves significant speed up with small memory footprint compared to previous methods, which may be very valuable for SciML community.
  3. Presentation is clear.

Weaknesses:

  1. No practical recipe for finding stable coupling parameter and step size in nonlinear system is discussed, though suggestion for initial choice is provided
  2. The analytical comparison to previous reversible methods is discussed (lines 49-52, line 85), but no empirical results are provided to further support the claim
Questions
  1. what is practical trade-off in the choice of hh and $\lambda&, in linear case and studied non-linear systems?
  2. the work will further benefit from empirical comparison to previous reversible methods, even if analytical comparison is sound
Limitations

yes

Final justification

During rebuttal authors sufficiently addressed my concern on comparison to previous reversible methods. After reading their responses to other reviewers I maintain my positive evaluation.

Formatting concerns

no

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your review. We agree with your suggestions for improving the clarity of the method description, specifically as it relates to stability. We have responded to both of your questions below and include empirical stability comparisons to previous reversible methods.

(1) We will extend the discussion for finding a stable coupling parameter and step size combination. Additionally, we will present stability region plots for the reversible solver compared to the base solver to visualise the relationship between coupling parameter and step size. In general, for a fixed step size hh, if one requires more forward stability λ\lambda can be decreased while if one requires more backward stability λ\lambda can be decreased. This is a general rule that holds across all applications of the method.

The tradeoff between hh and λ\lambda is illustrated by the Euler example in the script. To ensure forward stability we require hα>λ−1h\alpha > \lambda - 1. This shows that for smaller values of λ\lambda, a larger step size hh can be taken. For larger values of λ\lambda, the step size hh must be smaller. Note that α\alpha is a negative constant.

(2) We include an experimental validation against previous reversible solvers to demonstrate the improved stability advantage of the proposed method.

Specifically, we include a measurement of the linear stability of the Reversible solver presented, Reversible Heun and the Asynchronous Leapfrog Method (ALF). The results below show the relative absolute error of integration vs step size.

Method h = 0.035 h = 0.17 h = 0.5
Reversible Solver (RK4) 9×10⁻⁸ 4×10⁻⁶ 0.9
ReversibleHeun 2×10⁻³ 1.0 1×10²
AsynchronousLeapfrog 2×10⁻³ 1.0 1×10²

This table shows that at small step sizes, the reversible solver is 5 orders of magnitude more accurate than Reversible Heun and ALF. At h=0.17h=0.17, Reversible Heun and ALF become unstable (defined by displaying a relative error of 1.0) while the Reversible solver remains stable. The Reversible solver itself does not become unstable until h=0.5h=0.5, at which point Reversible Heun and ALF display a 10210^2 relative absolute error.

Reviewer MUoJ · CommentOpenReview ↗

Authors response sufficiently addresses my concern on empirical comparison to previous reversible methods.

Stability region plots would be a good illustration for stability comparison between methods, though I further prompt authors to extend the discussion for selecting initial hh and λ\lambda, especially for nonlinear systems, as the practitioners would benefit from it.

I maintain my positive rating.

Reviewer 1sQQOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
2/4
Clarity
2/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a class of algebraically reversible ODE solvers for training Neural ODEs with exact gradients, reduced memory usage, and lower backpropagation cost compared with recursive checkpointing. The method augments the ODE state with an auxiliary variable and defines a coupled reversible update so that forward states can be reconstructed exactly during backpropagation from the terminal state, avoiding the need to store the full trajectory. The paper provides theoretical results on convergence and linear stability for the proposed reversible construction, and evaluates the method on scientific modeling and time-series classification tasks. The reported experiments suggest that the method can match recursive checkpointing in final loss while reducing runtime and memory usage. The main contribution is therefore a reversible solver framework intended to provide exact-gradient Neural ODE training with improved memory efficiency, though the practical comparison is mainly against recursive checkpointing rather than the broader set of standard Neural ODE training baselines.

Strengths and weaknesses

This paper proposes a class of algebraically reversible ODE solvers for Neural ODE training. The main idea is to augment the state with an auxiliary variable and define a coupled update that is algebraically invertible, so that the forward trajectory can be reconstructed during backpropagation from the terminal state. This aims to provide exact gradients with O(1)O(1) memory and better runtime than recursive checkpointing. The paper also provides convergence and linear-stability results, and evaluates the method on several scientific-modeling and time-series classification tasks.

On quality, the theoretical part appears to be one of the stronger aspects of the paper. The convergence and stability claims are precisely stated, and the reviewed proof sketches appear structurally sound. The reported experiments are also internally consistent with the claim that the method computes exact gradients: the final losses are close to recursive checkpointing, while the method uses substantially less memory and often less runtime. These are useful engineering properties for Neural ODE training.

However, the empirical evaluation is incomplete in ways that substantially weaken the paper. The main comparison is against recursive checkpointing, but the paper does not include the adjoint method of Chen et al. or ANODE-style memory-efficient exact-gradient baselines. These are central reference points for Neural ODE training: the adjoint method is the standard O(1)O(1)-memory inexact-gradient baseline, while ANODE is a standard memory-efficient exact-gradient alternative. Without these comparisons, it is difficult to judge when practitioners should prefer the proposed reversible solver over existing methods.

A second quality concern is scale. The experiments appear relatively small, with low-dimensional or modest Neural ODE vector fields. This makes the reported runtime and memory gains promising but not yet fully convincing for larger practical models. Since the method changes the forward solver cost and may require twice the computational work of the base solver, the paper should provide a clearer forward/backward runtime breakdown. Otherwise, the reported speedups are hard to interpret across different regimes.

The stability story is also not fully resolved. The paper provides a linear-stability theorem, but the stability region of the reversible method is more restrictive than that of the base solver. The authors acknowledge that the method can be less numerically stable than recursive checkpointing, but the experiments do not appear to report failure cases, stability diagnostics, or practical guidance for choosing the coupling parameter. This is important because exact reversibility is only useful if the solver remains numerically reliable in realistic training settings.

The clarity is generally good. The motivation, reversible update, backpropagation procedure, and theoretical results are understandable, and the paper seems well organized. However, the comparison with prior reversible ODE solvers, such as reversible Heun-type methods or asynchronous leapfrog methods, should be sharpened. The paper should also make the computational tradeoff more explicit: the method saves memory during backpropagation, but the forward solve itself is more expensive than the base solver.

The significance is moderate. If the method consistently provides exact gradients with much lower memory than checkpointing and better runtime, it would be a useful contribution for Neural ODE training. But the lack of comparison with the adjoint method and ANODE makes the practical significance uncertain. The method may be a solid improvement over one baseline, but the current evidence does not yet establish it as a broadly preferable training method.

The originality is also moderate. The coupling-based construction that turns a single-step solver into an algebraically reversible solver is interesting, and the ability to inherit higher-order convergence from the base solver is a meaningful design point. At the same time, the ingredients of reversibility, augmented states, and Runge-Kutta-style solvers are not new, and the paper should more clearly distinguish its contribution from prior reversible Neural ODE solvers. Overall, I find the method technically sound and potentially useful, but the experimental evidence is too narrow for a strong acceptance case.

Questions
  1. Can you compare against the adjoint method and ANODE-style memory-efficient exact-gradient training? Recursive checkpointing is an important baseline, but the adjoint method is the standard O(1)O(1)-memory Neural ODE baseline and ANODE is a natural exact-gradient memory-efficient comparison. Even a focused comparison on one scientific-modeling task and one time-series task, reporting runtime, memory, and final loss, would substantially clarify the practical value of the proposed method. My score would increase if the reversible solver clearly improves the tradeoff between accuracy, runtime, and memory against these baselines.

  2. How should practitioners interpret the reduced stability region of the reversible solver? The stability theorem appears to give a more restrictive condition than the base solver, and the paper acknowledges that the method can be less stable than recursive checkpointing. Please provide a stability-region plot or empirical stability diagnostics, and report whether any failure cases occurred during training. This would help determine whether the method is robust enough for practical use.

  3. Can you provide a forward/backward runtime breakdown? Since the reversible forward solve requires extra computation relative to the base solver, the reported overall speedups are hard to interpret without separating forward time, backward reconstruction time, and gradient computation time. A breakdown on one representative experiment would make the computational tradeoff much clearer.

  4. How does the method scale to larger Neural ODE vector fields? The current experiments appear to use relatively small models. Please include at least one larger hidden-size experiment, or otherwise explain why the reported memory and runtime gains should persist at larger scale. My confidence would decrease if the speedup mainly holds only for small models.

  5. Can you clarify the relationship to prior reversible ODE solvers such as reversible Heun or asynchronous leapfrog methods? In particular, what role does the coupling parameter play beyond enabling the stated stability theorem, and in what regimes should the proposed construction be expected to outperform previous reversible approaches?

Limitations

The paper acknowledges some limitations, including the extra forward-solve cost and potential numerical-stability issues relative to recursive checkpointing. However, several important limitations should be made more explicit. First, the lack of comparison to the adjoint method and ANODE-style baselines is a major limitation for judging practical relevance. Second, the experiments are relatively small-scale, so it remains unclear whether the runtime and memory advantages persist for larger Neural ODE models. Third, the reduced stability region of the reversible method should be discussed more concretely, ideally with stability diagnostics or failure cases. Finally, the paper should provide a clearer decomposition of forward and backward computation cost, since the method trades additional forward computation for memory-efficient exact backpropagation.

Final justification

I remain uncertain whether the favorable memory–runtime–stability trade-off generalizes across the broader range of Neural ODE applications targeted by the paper. I appreciate the authors’ efforts, but will retain my original borderline-reject score.

Formatting concerns

No major formatting concerns identified.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your review and recommendations for additional experimental validation. We have responded to each of your questions below and included the additional numerical results.

(1) The field of Neural Differential Equations has largely moved away from the continuous adjoint method due to training instability. This is extensively documented in the literature [1, 2, 3].

We have numerically verified this instability in our setting and can include a characterisation of this in the updated script. Specifically, for the PhysioNet sepsis dataset, we train the Neural CDE with the continuous adjoint method and find that this method results in ~40% of training runs diverging. This renders the method very difficult to use in practice, in agreement with previous literature. These divergent training plots will be added to the text.

The backpropagation method used in ANODE for a single ODE system is standard automatic differentiation. This is a specific instantiation of recursive checkpointing where the number of checkpoints saved is equal to the number of solver steps. We have implemented this algorithm for the Neural RDE on EigenWorms experiment and obtain the following results.

Step Method Memory (c) Accuracy (%) Time (min)
16 Reversible 2 79.0 ± 5.6 12.0 ± 0.7
Checkpointed 46 81.5 ± 6.1 27.9 ± 2.7
Standard 1124 78.5 ± 3.5 8.67 ± 0.55
64 Reversible 2 79.5 ± 4.1 3.35 ± 0.25
Checkpointed 23 79.5 ± 6.0 7.54 ± 2.24
Standard 281 78.5 ± 4.8 2.58 ± 0.62
128 Reversible 2 82.6 ± 3.8 1.46 ± 0.03
Checkpointed 16 81.0 ± 2.9 3.47 ± 0.45
Standard 140 81.0 ± 3.5 1.14 ± 0.08

We see that for a memory cost 70x, 140x, 562x compared to the reversible backpropagation algorithm (respectively for each step size), standard automatic differentiation obtains an average 1.3x runtime improvement. The final test accuracy obtained is comparable across all methods.

This large memory cost for small runtime improvement is why recursive checkpointing algorithms form the default backpropagation algorithm for differential equations.

(2) Thank you for the suggestion. We will include stability region plots for the reversible solver compared to the original Runge-Kutta (RK) method for a range of RK solvers (Euler, Midpoint, RK3, RK4).

For most Neural Differential Equation applications, we find empirically that the reversible solvers presented are stable. The region where stability decreases is when a very large number of steps are taken (at least ~10x larger than encountered in the experiments). We will include a description of this in the text. Also see point (5) for a numerical comparison to previous reversible solvers.

(3) Yes, that is correct, the forward solve has increased runtime compared to the base solver but decreased backpropagation runtime compared to checkpointed backpropagation. We agree that explicitly breaking this down for one experiment would be useful and we will add this to the script.

We report the runtime cost breakdown of the mean training step for the Neural RDE on EigenWorms experiment. The forward cost is ~1.8x higher than the base solver, as expected. While the backpropagation algorithm (reverse solve) is ~2.6x faster than checkpointing.

Method Forward solve (s) Backpropagation (s) Full train step (s)
Checkpointing 0.0516 ± 0.0007 1.5712 ± 0.0009 1.6239 ± 0.0005
Reversible 0.0901 ± 0.0001 0.5978 ± 0.0007 0.6899 ± 0.0005

(4) Since the runtime and memory complexity of the backpropagation methods are indepndent of the single-step / network cost, the runtime and memory gains should hold for larger vector fields.

To numerically verify this, we ablated the width size of the Neural RDE on EigenWorms experiment and obtained the following results. We see that the runtime advantage holds as the network size increases.

Width Params Checkpointed (s/step) Reversible (s/step) Speedup
128 1.2M 1.62 0.69 2.36×
256 2.5M 3.13 1.16 2.70×
512 5.4M 6.42 2.14 2.99×
1024 12.4M 14.36 4.58 3.13×

(5) The biggest difference to previous reversible methods is increased stability. We will extend this discussion in the text, highlighting the role of the coupling parameter. The coupling parameter directly enables stability by causing the two states, yny_n and znz_n, to remain close. This is achieved by taking the interpolated value λyn+(1−λ)zn\lambda y_n + (1-\lambda)z_n. Previous reversible solvers do not have this contractive coupling and become unstable when the two coupled states drift apart from eachother.

To validate this emperically, we include a measurement of the linear stability of the Reversible solver presented, Reversible Heun and the Asynchronous Leapfrog Method (ALF). The results below show the relative absolute error of integration vs step size.

Method h = 0.035 h = 0.17 h = 0.5
Reversible Solver (RK4) 9×10⁻⁸ 4×10⁻⁶ 0.9
ReversibleHeun 2×10⁻³ 1.0 1×10²
AsynchronousLeapfrog 2×10⁻³ 1.0 1×10²

This table shows that at small step sizes, the reversible solver is 5 orders of magnitude more accurate than Reversible Heun and ALF. At h=0.17h=0.17, Reversible Heun and ALF become unstable (defined by displaying a relative error of 1.0) while the Reversible solver remains stable. The Reversible solver itself does not become unstable until h=0.5h=0.5, at which point Reversible Heun and ALF display a 10210^2 relative absolute error.

References:

[1] Gholami et al. "ANODE: Unconditionally Accurate Memory-Efficient Gradients for Neural ODEs"

[2] Onken et al. "Discretize-Optimize vs. Optimize-Discretize for Time-Series Regression and Continuous Normalizing Flows"

[3] Kidger. "On Neural Differential Equations"

Reviewer 1sQQ · CommentOpenReview ↗

Thank you for the detailed rebuttal and the additional experiments. The runtime breakdown, width-scaling study, and comparisons with previous reversible solvers are useful and strengthen the empirical presentation. However, most of the new evidence is concentrated on the EigenWorms setting, while the continuous-adjoint comparison is limited to one PhysioNet experiment and the proposed stability-region analysis is not yet fully reported. Therefore, I remain uncertain whether the favorable memory–runtime–stability trade-off generalizes across the broader range of Neural ODE applications targeted by the paper. I appreciate the authors’ efforts, but will retain my original borderline-reject score.

Reviewer JZTROpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper presents an important and practical contribution to the neural ODE framework originally introduced by Chen et al. (NeurIPS 2018). A new framework is proposed to O(n) time and O(1) memory complexity by leveraging a clever idea on algebraically reversible solvers. The reversal algorithm is applicable to any single-step numerical solver. The theoretical results on convergence and stability are sound.

Strengths and weaknesses

The paper is overall strong and centers around a single broadly applicable idea: making ODE solvers algebraically reversible so that exact discrete gradients can be computed with O(1) memory. The paper does not use the continuous adjoint approximation (originally proposed in the Chen et al. 2018 paper). The theorems on convergence and stability are sound (with a few caveats mentioned below). This is a clean and useful contribution that can further the application of widely popular neural ODE methods (and its derivatives such as neural CDEs, RDEs) and enhance the field of scientific machine learning more broadly.

(1) The first concern (page 1) is the paper overstates the limitations of neural ODE training methods. In particular, the authors write: “Neural ODEs requires that we backpropagate through the ODE solve …” Upon reading the original neural ODE paper by Chen et al., it seems incorrect or overstated. That paper was explicitly motivated by avoiding this unrolled backpropagation via the continuous adjoint method. While this may not affect the technical results, it would be helpful to explain why many implementations still use direct discrete backpropagation, checkpointing, or related methods.

(2) The result on convergence order (“The convergence order of the reversible solver is inherited from the base solver”) is important and, therefore, theorem 2.1 should be carefully analyzed. I did not carefully check every single equation of the theorem; however, a simple inequality described next appears to be incorrect. The authors write: (1 - x - x^2)^(-1/2) <= 16^x for x between 0 and 0.5. But, this does not hold when x is near 0. I would encourage the authors to carefully review the derivations.

(3) The reversible solver (Section 2) is one of the central results. I assume that (Subsections 2.1 and 2.2) the transformation/relation between the vector y and z is connected by the function \psi. It seems that \psi is fixed and the paper implicitly assumes a reproducible, deterministic function. It \psi uses stochastic layers or data-dependent adaptive decisions, this reversal may break. Is this true? If yes, a disclaimer would be helpful.

(4) This is similar to the very first concern related to page 1. Again, on page 4, the motivation around “Backpropagation Algorithm” (Section 2.4) should distinguish the proposed O(1) memory reversible backpropagation from the original (Chen et al. 2018) O(1)-memory method. As written, the statement that the method achieves O(n) time and O(1) memory duplicates the original Neural ODE motivation. This clarification does not undermine the technical results, but it is important for positioning the contribution.

(5) What is the size of the systems (number of parameters, etc.)? It seems like the authors are not demonstrating their methods on large neural vector fields. The scientific ODE models are small, and the CDE/RDE models are moderate but not huge. Since the memory bottleneck partly comes from storing neural-network activations across solver calls, explicit parameter counts (and other relevant metrics) would help a lot.

Questions

As mentioned in the section above, the authors should address the following. (1) How the proposed method differs from the original O(1) memory continuous-adjoint method? (2) Is the convergence proof for Theorem 2.1 accurate? (3) Does the \psi function need to be deterministic? (4) Can the authors report the model sizes, parameters counts, etc., to show its application in relatively larger systems?

Limitations

No. As mentioned above in my questions, there is chance that the authors may not have mentioned certain limitations (e.g., difference with original method) but the concerns around "limitations" are somewhat trivial and do not affect the overall results.

Final justification

The authors sufficiently responded to the questions. I maintain my original rating of "Accept."

Formatting concerns

No

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your review and suggestions. We have responded to each of your questions below, adding experimental results where applicable.

(1) Thank you for the clarification. The first point is a question of semantics / definitions. We understand the continuous adjoint method to be a backpropagation algorithm, just in continuous time.

As you say, this continuous-time backpropagation is different to unrolled/discrete backpropagation, but they are both backpropagation algorithms.

Most implementations choose exact backpropagation algorithms over the continuous adjoint method because the latter causes training instability. This is extensively documented in the literature [1, 2, 3] and has resulted in the field largely moving away from using the continuous adjoint method. This is mentioned in the introduction but we agree that the discussion here should be expanded.

Further, we will include a numerical verifcation of this training instability for our setting. For the PhysioNet sepsis prediction task, we train the Neural CDE with the continuous adjoint method and find that this method results in ~40% of training runs diverging. This renders the method very difficult to use in practice, in agreement with previous literature. These divergent training plots will be added to the text.

(2) Thank you for checking the proof of Theorem 2.1. The inequality used in the proof is (1 - x - x^2)^(-1) <= 16^x. Note that the quadratic is raised to -1, not -1/2. This inequality holds for 0 <= x <= 1/2.

(3) Good question. Taking \Psi to be dependent on stochastic terms would lead most naturally to an extension solving stochastic differential equations (SDEs). Each update of the state therefore depends on a random variable and reversing this state requires this random variable is shared between the forward and backward step.

To enable this sharing, the Virtual Brownian Tree (VBT) algorithm was developed [4, 5]. We observe empirically that applying the reversible solver to solve SDEs with the VBT algorithm works well but was beyond the scope of the current paper. This extension to SDEs will be added to a future work section.

In general, if your forward solve depends on some state external to (t, x) then it must be stored or recomputed on the backward solve in order to use the reversible backpropagation method.

This discussion will be added to the manuscript.

(4) See point (1). We will include a description of the O(n) time and O(1) memory complexity of the continuous adjoint method in the script and discuss that the difference between the two algorithms is gradient exactness. This gradient exactness is required for stable training, as shown in [1, 2, 3] and verified here on the PhysioNet sepsis dataset.

(5) Parameter counts for the methods considered will be added to the script. For the time series experiments, we have:

Experiment Params
Sepsis (Neural CDE) 322,241
Speech Commands (Neural CDE) 96,450
EigenWorms (Neural RDE) 1,223,301

To address the scaling to larger vector fields, consider that the runtime and memory complexity of the backpropagation methods are independent of the single-step (network) cost. The network cost purely adds an equal multiplier/constant to the runtime/memory complexity of both backpropagation algorithms.

To numerically verify this, we ablated the runtime of the Neural RDE on EigenWorms experiment and obtain the following results. We see that the runtime advantage holds as the network size increases.

Width Params Checkpointed (s/step) Reversible (s/step) Speedup
128 1.2M 1.62 0.69 2.36×
256 2.5M 3.13 1.16 2.70×
512 5.4M 6.42 2.14 2.99×
1024 12.4M 14.36 4.58 3.13×

References:

[1] Gholami et al. "ANODE: Unconditionally Accurate Memory-Efficient Gradients for Neural ODEs"

[2] Onken et al. "Discretize-Optimize vs. Optimize-Discretize for Time-Series Regression and Continuous Normalizing Flows"

[3] Kidger. "On Neural Differential Equations"

[4] Li et al. “Scalable Gradients and Variational Inference for Stochastic Differential Equations”

[5] Jelincic et al. "Single-seed generation of Brownian paths and integrals for adaptive and high order SDE solvers"

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…