Differentiable Multiple Shooting Layers

Stefano Massaroli, Michael Poli, Sho Sonoda, Taiji Suzuki, Jinkyoo Park, Atsushi Yamashita, Hajime Asama

Abstract

Neural Ordinary Differential Equations (Neural ODEs) have revolutionized continuous-time modeling, yet their sequential nature remains a significant computational bottleneck. Standard ODE solvers require step-by-step integration, preventing effective parallelization across the time dimension. This paper introduces Differentiable Multiple Shooting Layers (MSLs), a framework that reformulates ODE solving as a parallelizable root-finding problem. By partitioning the integration interval and utilizing a differentiable Newton-type method, MSLs achieve substantial speedups in both training and inference while maintaining the expressive power of continuous-depth models.

1. The Sequential Bottleneck in Continuous Learning

The primary challenge in continuous-depth models like Neural ODEs is the inherent sequentiality of the integration process. To determine the state of a system at time $t=T$, a solver must evaluate the vector field at numerous intermediate points starting from $t=0$. This "depth" corresponds to integration time, and unlike traditional deep networks where layers can sometimes be optimized, the temporal chain in ODEs is rigid. In the era of massively parallel GPU computing, this sequential dependency limits throughput and increases wall-clock time for both inference and training.

2. Methodology: Multiple Shooting Layers

To break this temporal chain, the authors adapt the classical numerical technique of "multiple shooting" into a differentiable neural network layer. Instead of solving a single long ODE, the time interval $[0, T]$ is divided into $N$ sub-intervals.

Comparison between standard sequential Neural ODEs and the parallelized Multiple Shooting Layer approach.

As shown in the figure above, MSLs solve these sub-intervals simultaneously in parallel. This creates a "matching problem": the end state of one segment must match the initial state of the next to ensure a continuous trajectory. MSLs treat this requirement as a root-finding problem, defining a matching function $g_\theta$ that reaches zero only when the segments are perfectly stitched together. A differentiable Newton method is then employed to iteratively refine the initial conditions of each segment.

3. Efficient Training and Differentiation

A key innovation of MSLs is the integration of Fixed-Point Tracking. Solving the matching problem to high precision at every training step would be computationally expensive. However, because model parameters $\theta$ change slowly during gradient descent, the solver can "track" the solution across training iterations. By performing only a single Newton iteration per gradient step, the model maintains efficiency without sacrificing convergence.

The forward and backward pass architecture of MSLs, highlighting the use of sensitivity analysis and adjoint methods.

The differentiability of the layer is handled through a combination of forward sensitivity analysis and sequential adjoint methods. This allows the gradient of the loss with respect to the model parameters to flow through the root-finding process, making MSLs compatible with standard backpropagation frameworks.

4. Experimental Results

The researchers evaluated MSLs across several challenging domains to demonstrate their versatility and speed:

  • Sequence Generation: On synthetic dynamics (Van Der Pol and Rayleigh Duffing oscillators), MSLs reduced the number of function evaluations (NFEs) by 60% compared to standard Latent Neural ODEs.
  • Medical Time-Series: Using the PhysioNet 2019 sepsis prediction dataset, MSLs achieved a 10x wall-clock speedup during training over sequential Neural Controlled Differential Equations (Neural CDEs).
  • High-Dimensional Control: In a 200-dimensional Timoshenko beam simulation, MSLs were 3x faster than sequential baselines, proving the method's scalability to complex physical systems.

5. Conclusion

Differentiable Multiple Shooting Layers bridge the gap between implicit-depth models (like Deep Equilibrium Networks) and continuous-depth models. By transforming the sequential "relay race" of ODE integration into a parallelizable root-finding task, MSLs offer a scalable path forward for continuous deep learning in high-performance computing environments. While they introduce additional memory requirements for parallel states, the significant gains in training speed and inference efficiency make them a powerful tool for real-time engineering and large-scale temporal data analysis.

Summary updated

BibTeX
@inproceedings{massaroli2021differentiable,
  author = {Stefano Massaroli and Michael Poli and Sho Sonoda and Taiji Suzuki and Jinkyoo Park and Atsushi Yamashita and Hajime Asama},
  title = {{Differentiable Multiple Shooting Layers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=NKNjbKb5dK},
}
Figure