Skip to main content
QUICK REVIEW

[Paper Review] Discretize-Optimize vs. Optimize-Discretize for Time-Series Regression and Continuous Normalizing Flows

Derek Onken, Lars Ruthotto|arXiv (Cornell University)|May 27, 2020
Time Series Analysis and ForecastingComputer Science38 references27 citations
TL;DR

This paper compares Discretize-Optimize (Disc-Opt) and Optimize-Discretize (Opt-Disc) approaches for training neural ODEs in time-series regression and continuous normalizing flows (CNFs). It demonstrates that Disc-Opt achieves comparable inference performance to Opt-Disc while reducing training time by 39% to 97%, with one case cutting training from nine days to under one day, due to gradient accuracy independent of ODE solver precision.

ABSTRACT

We compare the discretize-optimize (Disc-Opt) and optimize-discretize (Opt-Disc) approaches for time-series regression and continuous normalizing flows (CNFs) using neural ODEs. Neural ODEs are ordinary differential equations (ODEs) with neural network components. Training a neural ODE is an optimal control problem where the weights are the controls and the hidden features are the states. Every training iteration involves solving an ODE forward and another backward in time, which can require large amounts of computation, time, and memory. Comparing the Opt-Disc and Disc-Opt approaches in image classification tasks, Gholami et al. (2019) suggest that Disc-Opt is preferable due to the guaranteed accuracy of gradients. In this paper, we extend the comparison to neural ODEs for time-series regression and CNFs. Unlike in classification, meaningful models in these tasks must also satisfy additional requirements beyond accurate final-time output, e.g., the invertibility of the CNF. Through our numerical experiments, we demonstrate that with careful numerical treatment, Disc-Opt methods can achieve similar performance as Opt-Disc at inference with drastically reduced training costs. Disc-Opt reduced costs in six out of seven separate problems with training time reduction ranging from 39% to 97%, and in one case, Disc-Opt reduced training from nine days to less than one day.

Motivation & Objective

  • To evaluate the trade-offs between Disc-Opt and Opt-Disc in training neural ODEs for time-series regression and continuous normalizing flows (CNFs).
  • To assess whether Disc-Opt maintains model quality—especially invertibility in CNFs—despite reduced computational cost.
  • To quantify training time reductions and performance trade-offs in realistic scientific machine learning tasks.
  • To validate that Disc-Opt gradients remain accurate even with low-accuracy ODE solvers, unlike Opt-Disc.
  • To demonstrate practical efficiency gains in real-world problems beyond image classification, where Disc-Opt has been previously studied.

Proposed method

  • Formulates neural ODE training as an optimal control problem with ODE constraints and regularized loss minimization.
  • Derives the continuous optimality system using Pontryagin’s maximum principle, leading to adjoint ODEs for gradient computation.
  • Applies Disc-Opt by discretizing the ODE first (using forward Euler) and then solving the finite-dimensional optimization problem via automatic differentiation.
  • Uses discrete adjoint backpropagation with backward Euler for Opt-Disc, computing gradients at time points after the forward step.
  • Employs forward-backward stable networks and adjoint solvers to mitigate numerical instability in backward ODE integration.
  • Implements both methods with varying ODE solver tolerances to compare gradient accuracy and training cost trade-offs.

Experimental results

Research questions

  • RQ1Can Disc-Opt achieve comparable inference performance to Opt-Disc in time-series regression and CNFs while reducing training cost?
  • RQ2How does gradient accuracy in Disc-Opt compare to Opt-Disc when using low-accuracy ODE solvers?
  • RQ3What is the magnitude of training time reduction achievable with Disc-Opt across diverse time-series and CNF tasks?
  • RQ4Does Disc-Opt preserve critical model properties such as invertibility in continuous normalizing flows?
  • RQ5In what scenarios does Disc-Opt outperform Opt-Disc in terms of computational efficiency and convergence stability?

Key findings

  • Disc-Opt reduced training time by 97% in one time-series regression problem, cutting it from nine days to under one day.
  • In six out of seven tested problems, Disc-Opt achieved significant training time reductions ranging from 39% to 97%.
  • Disc-Opt maintained inference performance comparable to Opt-Disc despite using lower-accuracy ODE solvers.
  • Gradient accuracy in Disc-Opt is independent of ODE solver precision, unlike Opt-Disc, which suffers from degraded gradients when solvers are inaccurate.
  • The method preserves invertibility in continuous normalizing flows, a key requirement for CNF-based generative modeling.
  • Disc-Opt is easier to implement with automatic differentiation and avoids the numerical instability of time-reversed ODE solves in Opt-Disc.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.