DEMO: A Dynamics-Enhanced Learning Model for multi-horizon trajectory prediction in autonomous vehicles

Chengyue Wang, Haicheng Liao, Kaiqun Zhu, Guohui Zhang, Zhenning Li

TL;DR

DEMO (Dynamics-Enhanced Learning Model) is a novel two-stage trajectory prediction framework for autonomous vehicles that bridges the gap between physics-based and learning-based modeling. By decoupling the prediction task into a short-term Dynamics Learning Stage and a long-term Interaction Learning Stage, it achieves state-of-the-art accuracy across multiple horizons while maintaining an ultra-low inference latency of just 15 milliseconds.

What Problem Does This Paper Address?

Accurate trajectory prediction for surrounding traffic participants is a cornerstone of safe autonomous driving. However, predicting where a vehicle will go involves two fundamentally different challenges depending on the time horizon:

  1. Short-term horizon ($\le$ 2 seconds): Dominated by immediate vehicle physics (inertia, velocity, braking capabilities).
  2. Long-term horizon (> 2 seconds): Dominated by social interactions and environmental constraints (lane changes, yielding, following map topologies).

Traditional approaches typically rely on either pure physics-based models (which excel at short-term accuracy but fail to capture complex multi-agent interactions) or pure deep learning models (which capture long-term trends well but often lack short-term physical precision and responsiveness). Existing hybrid models often fail to fully exploit the complementary strengths of both paradigms.

Comparison between traditional approaches and the proposed DEMO framework.

Methods

The authors introduce DEMO, which utilizes a hierarchical, two-stage architecture to handle multi-horizon trajectory prediction systematically:

  1. Dynamics Learning Stage (Short-Term Focus): This stage integrates a physics-based Dynamic Bicycle Model with a Dynamic Conditional Variational Autoencoder (DynCVAE). Instead of using physics equations to directly predict the trajectory, the DynCVAE estimates latent control variables (steering angle, acceleration, yaw rate). These are then fed into the vehicle dynamics model to generate physically realistic short-term trajectories and dynamic features ($\mathcal{F}_d$).
  2. Interaction Learning Stage (Long-Term Focus): This stage models environmental and social context. It processes the historical and short-term trajectories using a highly efficient Mamba-based State Space Model (SSM) as a temporal encoder to capture vehicle motion patterns without the high computational overhead of standard Transformers.
  3. Cross-Modal Fusion & Spatio-Temporal Encoding: Features from the temporal encoder, HD maps, and the dynamic features are mapped into a high-dimensional space using Gated Linear Units (GLUs) and cross-modal attention channels. A combination of a Gated Recurrent Unit (GRU), a Graph Convolutional Network (GCN), and a Transformer encoder updates these complex spatio-temporal interactions ($\mathcal{F}_i$).
  4. Multi-modal Decoder: Finally, a multi-modal decoder combines the dynamic and interaction features to output multiple plausible future trajectories alongside their respective probability distributions.
The overall two-stage architecture of the DEMO model.

Datasets

The model was rigorously evaluated on four diverse, real-world trajectory datasets:

  • NGSIM: High-resolution highway trajectory data capturing dense traffic.
  • HighD: A drone-acquired dataset of naturalistic vehicle trajectories on German highways.
  • MoCAD: Urban and campus driving data featuring unique right-hand driving dynamics.
  • nuScenes: A massive, complex multimodal dataset renowned for unstructured urban environments involving heavy multi-agent interactions (pedestrians, cyclists, vehicles).

Key Insights and Ideas

  • Decoupling Physics and Intuition: Rather than forcing a single neural network to learn both tire-friction physics and human driving etiquette simultaneously, DEMO handles them sequentially. Short-term predictions are strictly constrained by vehicle dynamics, while long-term predictions build on top of those physical foundations to learn social behaviors.
  • Mamba over Transformers for Time-Series: By replacing traditional Transformer blocks with Mamba-based State Space Models in the temporal encoder, the model dynamically selects pivotal sequence segments and scales efficiently over longer historical horizons.
  • Physics-Informed Loss: Because real-world datasets lack ground-truth labels for internal vehicle control variables (like steering wheel angle or cornering stiffness), the authors designed a dynamics-informed loss function ($\mathcal{L}_{DI}$) that uses the inverse form of the discrete bicycle model equations to supervise the CVAE.

Key Results

DEMO significantly outperformed state-of-the-art (SOTA) baselines across all datasets:

  • Short-Term Accuracy: On the complex urban MoCAD dataset, DEMO achieved an impressive 25.7% and 44.6% improvement in Root Mean Square Error (RMSE) for 1-second and 2-second horizons, respectively.
  • Long-Term Accuracy: On the nuScenes dataset (6-second horizon), DEMO achieved a minimum Final Displacement Error ($\text{minFDE}_1$) of 6.90, outperforming competitive baselines like PGP and MultiPath.
  • Inference Speed: DEMO achieved an exceptionally low inference latency of 15 ms on an NVIDIA RTX 3090 GPU, making it substantially faster than alternatives like PGP (215 ms) and Trajectron++ (38-66 ms), rendering it highly viable for real-world, real-time deployment.

Limitations and Future Work

When trained on a restricted 50% subset of the data, DEMO's performance dropped more noticeably in the long-term horizon than in the short-term horizon. This indicates that while the short-term physics-grounded stage is highly robust with less data, the long-term Interaction Learning Stage still relies heavily on large volumes of historical data to accurately generalize complex social behaviors. Future work could explore more data-efficient methods for modeling long-term multi-agent interactions.

Summary updated

BibTeX
@inproceedings{wang2025demo,
  author = {Chengyue Wang and Haicheng Liao and Kaiqun Zhu and Guohui Zhang and Zhenning Li},
  title = {{DEMO: A Dynamics-Enhanced Learning Model for multi-horizon trajectory prediction in autonomous vehicles}},
  booktitle = {Information},
  year = {2025},
  doi = {10.1016/j.inffus.2024.102924},
}
Figure