TL;DR
Standard ordinary differential equation (ODE) solvers advance sequentially step-by-step, resulting in runtimes that scale linearly with the number of time steps. This paper introduces ParaIEKS, a parallel-in-time probabilistic numerical solver that casts ODE integration as Bayesian smoothing across an associative prefix scan. On modern parallel hardware like GPUs, this reformulates the time complexity from $\mathcal{O}(N)$ to $\mathcal{O}(\log N)$, delivering orders-of-magnitude speedups in high-accuracy regimes.
What Problem Does This Paper Address?
Simulating dynamical systems over long time horizons or at high precision requires tens of thousands of time steps. Because classical ODE solvers (such as Runge–Kutta or multistep methods) operate sequentially—computing step $n+1$ strictly after step $n$—they cannot natively take advantage of the massive core counts on modern GPUs. Existing parallel-in-time schemes (like Parareal) often hit concurrency ceilings due to sequential coarse-grid correction sweeps.
Meanwhile, probabilistic numerics reinterprets ODE solving as Bayesian state estimation (inferring an unknown continuous-time state given derivative evaluations). While probabilistic ODE filters provide valuable uncertainty calibration, existing implementations have inherited the same sequential, linear-time $\mathcal{O}(N)$ bottleneck.
Methods
The authors build on the fact that Gaussian filtering and smoothing can be formulated as associative binary operations over prefix sums (cumulative scans):
- Gauss–Markov Prior & Observation Model: The ODE solution and its derivatives are modeled using a continuous-time $\nu$-times integrated Wiener process (IWP($\nu$)). The ODE vector field $\dot{y}(t) = f(y(t), t)$ is enforced via an information operator conditioned on zero-defect observations $Z(t_n) = 0$.
- Parallel Exact Smoothing (ParaRTS): For affine ODEs, the smoothing problem maps to an exact linear Gaussian state-space model. Using associative filtering and smoothing operators, the state estimates across all time steps are solved in parallel using Blelloch's associative prefix scan in $\mathcal{O}(\log N)$ time. Computations are carried out in square-root form (using QR/triangularization updates) to maintain numerical stability.
- Iterated Extended Kalman Smoothing (ParaIEKS): For general nonlinear ODEs, the solver applies an Iterated Extended Kalman Smoother (equivalent to a Gauss–Newton algorithm for finding the Maximum A Posteriori trajectory):
- Parallel Linearization: Simultaneously linearizes the vector field via first-order Taylor expansion at all $N$ time steps around the current trajectory estimate.
- Parallel Smoothing: Solves the global linear state-space model via ParaRTS.
- Iterate: Updates the trajectory and repeats until convergence (typically within $\sim 10$ iterations).
Datasets
Because this work focuses on numerical analysis rather than predictive modeling, evaluation is performed on standard ODE benchmarks rather than static machine learning datasets:
- Logistic ODE (1D): Scalar equation testing basic convergence and stability.
- Rigid Body Dynamics (3D): Non-stiff, nonlinear Euler equations of a rotating rigid body.
- Van der Pol Oscillator (2D): Standard oscillatory benchmark evaluated in a non-stiff regime ($\mu = 1$).
High-precision reference solutions were generated using the adaptive Kvaerno5 Runge–Kutta solver from the Diffrax package with tight tolerances ($\tau_{\text{abs}} = 10^{-16}, \tau_{\text{rel}} = 10^{-13}$).
Key Insights and Ideas
- Probabilistic numerics enables structural parallelism: Recasting numerical integration as Bayesian estimation is often praised solely for uncertainty quantification. Here, its main strength is algorithmic flexibility: converting temporal stepping into an associative prefix sum that can be parallelized on modern accelerators.
- Identical math, completely different scaling: ParaIEKS is mathematically equivalent to sequential IEKS and converges to the exact same posterior trajectory for a given grid, but executes in logarithmic time rather than linear time.
- Global linearization scales effortlessly: Evaluating vector-field Jacobians across thousands of points simultaneously is embarrassingly parallel and ideally suited for SIMD hardware (GPUs).
Key Results
- Logarithmic Complexity in Practice: Benchmarks on an NVIDIA RTX 4090 demonstrate true $\mathcal{O}(\log N)$ runtime scaling for grid sizes up to roughly $N \approx 5 \times 10^3$, beyond which GPU cores become saturated and scaling gradually shifts toward linear.
- Massive GPU Speedups: On an NVIDIA V100 GPU, ParaIEKS achieves multi-order-of-magnitude speedups over its sequential IEKS counterpart across all test problems.
- Outperforming Classic Solvers: In medium-to-high precision settings ($N > 10^3$), ParaIEKS (particularly with prior order $\nu=2$) runs up to an order of magnitude faster than both classical explicit/implicit solvers (
Dopri5,Kvaerno3,Kvaerno5,ImplicitEuler) and standard sequential probabilistic ODE filters (EKS). - Hardware Scalability: Unlike sequential solvers whose runtimes remain flat regardless of GPU capacity, ParaIEKS runtime scales down directly as CUDA core count increases (tested from a GTX 1060 up to an A100/RTX 4090).
Limitations and Future Work
- Coarse Grid Warm-Starts: On very coarse grids, the default constant trajectory initialization can lead the Gauss–Newton iterations to local optima far from the true solution.
- Fixed Grid Limitation: The current formulation relies on predefined, uniform grids; extending associative scans to adaptive grid refinement remains an open challenge.
- Hardware Memory Footprint: Maintaining square-root covariance factors for large state vectors across thousands of grid points can become VRAM-bound on consumer GPUs.
- Advanced Optimization: The authors highlight future directions including Levenberg–Marquardt optimization, line searches, and extending the parallel formulation to boundary value problems (BVPs), differential-algebraic equations (DAEs), and ODE parameter inference.
Summary updated