NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Homotopy-based training of NeuralODEs for accurate dynamics discovery

Joon-Hyuk Ko, Hankyul Koh, Nojun Park, Wonho Jhe

TL;DR

Neural Ordinary Differential Equations (NeuralODEs) are a powerful tool for discovering physical laws from data, but they are notoriously difficult to train on long time series due to highly irregular, "cliff-like" loss landscapes. This paper introduces a novel training method that combines chaos-theory synchronization and homotopy optimization to smooth the loss landscape without restricting the model's architecture. The result is a dramatic reduction in training time (up to 90% fewer epochs) and vastly superior long-term forecasting capabilities.

What Problem Does This Paper Address?

NeuralODEs bridge deep learning and the physical sciences by using a neural network to parameterize the derivative of a continuous state vector. However, when trained on long time-series data, standard gradient descent frequently fails. The authors demonstrate that as data length increases, the loss landscape becomes highly pathological—riddled with local minima and sharp cliffs that cause exploding gradients.

To circumvent this, common strategies impose rigid architectural constraints on the neural network to force stable dynamics. However, if your goal is dynamics discovery (uncovering an unknown physical law), you cannot assume the underlying system satisfies these arbitrary constraints. Forcing them onto the model limits its expressivity and prevents it from learning complex or chaotic behaviors. The challenge tackled here is: how do we stabilize NeuralODE training on long sequences without crippling the network's capacity to learn?

Methods

The authors propose an architecture-agnostic training framework that introduces two concepts from dynamical systems and mathematical optimization:

  1. Synchronization: During training, they modify the NeuralODE by adding a coupling term: $$\frac{du}{dt} = U(t, u; \theta) - \lambda K(u - \hat{u}(t))$$ where $\hat{u}(t)$ is a continuous approximation of the training data (constructed using a cubic smoothing spline) and $K$ is a diagonal coupling matrix. This term acts like a tractor beam, pulling the model's trajectory toward the data.

  2. Homotopy Optimization: The parameter $\lambda$ smoothly varies from 1 to 0. At the start ($\lambda = 1$), the strong coupling tames the chaotic loss landscape into a smooth, easily optimized bowl. The algorithm finds the minimum on this relaxed landscape, then slowly decrements $\lambda$ toward 0 using a power-law schedule. By the time $\lambda = 0$, the coupling term vanishes, leaving the original, unconstrained NeuralODE perfectly settled in a high-quality global minimum.

Figure 1: Optimization trajectories for our homotopy method (left) and vanilla gradient descent (right). While convention training meanders on the pathological loss landscape, our method provides a series of relaxed land- scapes that effectively guide the optimizer to the loss minimum.
Figure 2: Irregular loss landscape in NeuralODE training. (Upper left) Loss landscape and (Lower left) eigenvalue spectrum of the loss Hessian for increasing lengths of train data. (Upper right) Loss landscape and (Lower right) eigenvalue spectrum of the loss Hessian with increasing coupling strength. For clarity, loss values were clipped above at 4000. All Hessian related information was calculated using the PyHessian package [69].

Datasets

The method was evaluated on three systems of varying complexity:

  • Lotka-Volterra System: Simulated periodic predator-prey dynamics with 5% Gaussian noise, used to benchmark performance against data length, model capacity, and noise.
  • Double Pendulum: Real-world experimental measurement data from Schmidt & Lipson (2009), focusing on a highly complex, aperiodic regime.
  • Lorenz System: Simulated data from the classic chaotic system, serving as a stress test for highly irregular dynamics.

Key Insights and Ideas

  • Optimization, Not Capacity: The paper debunks the idea that NeuralODEs fail on long sequences due to insufficient model capacity. They show that even tiny networks can learn complex dynamics perfectly—if they are guided by the right optimization strategy.
  • The Global Integration Advantage: A popular alternative, multiple shooting, splits the time series into short segments to ease training. However, because it trains only on short intervals, it fails to learn how to prevent error accumulation over long periods. The proposed homotopy method integrates over the entire trajectory from day one, leading to vastly superior long-term forecasting (extrapolation).
  • Intrinsic Noise Robustness: Even when the cubic spline interpolant fails to reject high-frequency noise at high noise amplitudes, the homotopy optimization process itself shows an intrinsic robustness, refusing to overfit to noisy oscillations.

Key Results

  • Massive Speedup: The homotopy method achieved a 40% to 90% reduction in training epochs required to reach minimum interpolation error compared to vanilla gradient descent.
  • Superior Extrapolation: On the Lotka-Volterra and chaotic Lorenz systems, the proposed method maintained low Mean Squared Error (MSE) when forecasting well beyond the training data window, while vanilla gradient descent degraded exponentially and multiple shooting accumulated catastrophic tracking errors.
  • Hessian Trace Verification: By tracking the trace of the loss Hessian during training, the authors proved that the homotopy method successfully maintains a low, stable trace value throughout the entire training run, confirming it successfully avoids pathological landscape features.

Limitations and Future Work

  • Theoretical Guarantees: While the paper provides strong empirical proof and intuitive connections to chaos theory, formal convergence proofs for this specific optimization path remain open.
  • High-Dimensional Scaling: The current method relies on computing splines and coupling matrices directly in the state space, which might become computationally expensive for high-dimensional systems (e.g., climate modeling or fluid dynamics). The authors suggest extending this framework to latent ODE models to circumvent this issue.
  • Hyperparameter Tuning: The method introduces five hyperparameters (coupling strength, step counts, decay ratios), though the authors note that in practice, sweeping just the learning rate and coupling strength ($k$) while fixing the others yields excellent results.

Summary updated

BibTeX
@inproceedings{ko2023homotopy,
  author = {Joon-Hyuk Ko and Hankyul Koh and Nojun Park and Wonho Jhe},
  title = {{Homotopy-based training of NeuralODEs for accurate dynamics discovery}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=rUFckPrzXR},
}
Figure