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

Neural Ordinary Differential Equations (NeuralODEs) offer a powerful framework for extracting dynamical laws from time-series data, effectively bridging deep learning with the differential equation-based modeling of the physical sciences. However, training these models on long-duration data is notoriously difficult.

This paper introduces a novel, architecture-agnostic training framework that combines synchronization and homotopy optimization. By "taming" the chaotic loss landscapes typical of long time-series, this method enables faster convergence and superior extrapolation without requiring the restrictive architectural constraints that often hinder true dynamics discovery.

The Challenge: Pathological Loss Landscapes

As the duration of training data increases, the loss landscape of a NeuralODE becomes pathological. It fills with stiff cliffs and a sea of local minima that easily trap standard optimizers.

To combat this instability, researchers often impose strict constraints on the model's architecture. However, this creates a significant catch for dynamics discovery: these constraints might prevent the model from learning the actual governing equations if the true physical system does not satisfy those arbitrary assumptions. The authors sought a solution that keeps the model flexible enough to discover complex, unconstrained dynamics.

The Solution: Synchronization and Homotopy Optimization

The authors propose a two-pronged strategy that alters the training process rather than the model architecture:

  1. Synchronization: Borrowing concepts from chaos theory, the authors "couple" the NeuralODE's predicted state to the actual training data during the forward pass. By adding a coupling term to the ODE—$\frac{du}{dt} = U(t, u; \theta) - \lambda \mathbf{K}(u - \hat{u})$—the model is continuously "guided." This prevents the model from diverging too far from the data during early training and effectively smooths out the jagged loss landscape.
  2. Homotopy Optimization: If the coupling remains active permanently, the model will never learn to predict dynamics independently. To solve this, the authors introduce a homotopy parameter ($\lambda$) that starts at 1 (maximum guidance) and gradually decays to 0 (no guidance).
Optimization trajectories for the homotopy method. The approach provides a series of relaxed, smoothed landscapes that gradually guide the optimizer down to the global minimum.

This decay allows the optimizer to follow a continuous "path" of local minima, transitioning from a simple, smoothed landscape to the final, complex objective function.

Why It Works: Taming the Hessian

A fascinating insight from the paper is the distinction between model capacity and trainability. NeuralODEs often fail on long sequences not because they lack the parameters to represent the dynamics, but because the landscape makes them untrainable.

Through Hessian analysis, the authors demonstrate that as training data gets longer, the loss landscape develops massive "eigenvalue outliers," which stall training. Synchronization effectively "bunches" these eigenvalues near zero, making the optimization problem significantly easier to solve.

Analysis of the loss landscape via Hessian eigenvalues. Increasing data length (left) makes the landscape irregular with outlier eigenvalues, while increasing coupling strength (right) tames it into a well-behaved, trainable space.

Furthermore, while this continuous-time synchronization shares similarities with "teacher forcing" in Recurrent Neural Networks, it is notably more robust. By using cubic smoothing splines to interpolate the data, the method inherently denoises the signal before it influences the model.

Key Results and Benchmarks

The method was rigorously evaluated on three systems of varying complexity: a simulated Lotka-Volterra predator-prey model, a highly chaotic Lorenz system, and a real-world Double Pendulum dataset featuring measurement noise and aperiodic regimes.

  • Training Speed: The homotopy method achieved minimum training loss in 40% to 90% fewer epochs compared to vanilla gradient descent.
  • Accuracy and Extrapolation: In the double pendulum and Lorenz benchmarks, the proposed method significantly outperformed "Multiple Shooting"—the current state-of-the-art for long-sequence ODE training—in extrapolation tasks.
  • Robustness: Thanks to the smoothing effect of the cubic splines, the method proved remarkably resilient to both data sparsity and high noise levels.

Limitations and Future Directions

While highly effective, the homotopy method introduces new hyperparameters, such as the initial coupling strength ($k$) and the specific decay schedule for the homotopy parameter. Finding the optimal configuration currently requires a grid search.

Additionally, the authors note that while the method succeeds on systems with up to four degrees of freedom, scaling it to very high-dimensional systems (like fluid dynamics) remains an open challenge. A promising future direction is combining this synchronization approach with Latent ODEs, where complex dynamics are learned in a lower-dimensional, compressed latent space.

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