Temporal parallelisation of continuous-time maximum-a-posteriori trajectory estimation

Hassan Razavi, Ángel F. García-Fernández, Simo SärkkäarXiv 2025 · DOI

Introduction

Maximum-A-Posteriori (MAP) trajectory estimation is a cornerstone of state estimation in fields ranging from robotics and target tracking to quantitative finance. When systems are modeled via Stochastic Differential Equations (SDEs), the goal is to determine the most likely path given a sequence of noisy observations. Traditionally, this estimation relies on sequential algorithms like the Rauch–Tung–Striebel (RTS) smoother. However, as data volumes and sampling frequencies increase, the $O(T)$ sequential nature of these algorithms becomes a significant computational bottleneck, failing to exploit the parallel architectures of modern GPUs.

This paper introduces a framework to break this "temporal barrier," achieving $O(\log T)$ span complexity. By reformulating MAP estimation as a continuous-time optimal control problem, the authors enable the use of parallel associative scans to solve the estimation problem across disjoint time intervals simultaneously.

Theoretical Framework: The Control-Estimation Bridge

The core innovation lies in the mathematical equivalence between MAP estimation and optimal control. The authors utilize the Onsager–Machlup functional, which provides a rigorous way to define the probability density of paths in continuous time.

By framing the estimation as the minimization of this functional, the problem is transformed into a continuous-time optimal control task. This allows the application of the Hamilton–Jacobi–Bellman (HJB) equation. In this context, the "value function" represents the cost-to-go (or the log-likelihood) associated with the trajectory. Crucially, the solution to the HJB equation over a long time horizon can be decomposed into solutions over smaller, independent sub-intervals.

Parallelization via Associative Scans

The transition from sequential to parallel processing is facilitated by parallel associative scans. For an algorithm to be parallelized across the time dimension, the operation used to combine adjacent time segments must be associative (similar to how addition allows $(a+b)+c = a+(b+c)$).

The authors define a combination rule for conditional value functions that satisfies this associativity. This allows the computation to be structured as a balanced binary tree:

  1. Local Computation: Each processor computes the state transition and cost for a small time block.
  2. Upward Pass: Blocks are merged pairwise using the associative operator.
  3. Downward Pass: The global solution is distributed back to individual time steps.

This structure reduces the computational depth from $O(T)$ to $O(\log T)$. For linear Gaussian models, this framework naturally recovers parallel versions of the Kalman–Bucy filter and the RTS smoother. For nonlinear models, the authors employ an iterative approach, linearizing the system around a nominal trajectory using Taylor expansions (similar to an Iterated Extended Kalman Smoother) and solving the resulting linear problem in parallel.

Experimental Evaluation

The proposed method was evaluated on an NVIDIA Tesla A100 GPU using two primary benchmarks:

  • Wiener Velocity Model (Linear): A standard 2D tracking scenario involving position and velocity states with noisy position measurements.
  • Coordinated Turn Model (Nonlinear): A more complex 2D motion model with a varying turn rate, testing the iterative linearization approach.

Performance and Scalability

The experiments demonstrated that the parallel RTS and Two-Filter smoothers provide orders of magnitude speedups over sequential implementations as the number of time steps ($T$) increases. For datasets with up to $10^5$ steps, the logarithmic scaling was clearly visible.

However, the authors note the phenomenon of hardware saturation. The $O(\log T)$ scaling holds as long as the number of time blocks is less than or equal to the number of available processing cores. Once the problem size exceeds the GPU's parallel capacity, the scaling reverts to linear ($O(T)$), though the constant factor remains significantly better than sequential implementations.

Accuracy

A critical finding was that the parallel implementation is mathematically equivalent to the sequential version. The results produced by the parallel associative scan were identical to those of the traditional RTS smoother, ensuring that the gain in speed does not necessitate a compromise in estimation precision.

Conclusion and Future Work

This research successfully demonstrates that the temporal bottleneck in continuous-time MAP estimation can be overcome by leveraging the duality between estimation and control. By utilizing parallel associative scans, the framework allows for high-throughput state estimation that scales efficiently with modern hardware.

While the results are promising, limitations remain. The speedup is physically bounded by GPU core counts, and the reliance on Taylor expansions for nonlinear systems may struggle with highly non-Gaussian or multi-modal distributions. Future research directions include extending this parallelization to more complex filtering equations, such as the Kushner equations, and addressing systems with singular diffusion matrices where noise is not present in all state dimensions.

Summary updated

BibTeX
@misc{razavi2025temporal,
  author = {Hassan Razavi and Ángel F. García-Fernández and Simo Särkkä},
  title = {{Temporal parallelisation of continuous-time maximum-a-posteriori trajectory estimation}},
  year = {2025},
  eprint = {2512.13319},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.13319},
}
Figure