Beyond Patterns: Harnessing Causal Logic for Autonomous Driving Trajectory Prediction

Bonan Wang, Haicheng Liao, Chengyue Wang, Bin Rao, Yanchen Guan, Guyang Yu, Jiaxun Zhang, Songning Lai, Chengzhong Xu, Zhenning Li

Abstract

Traditional autonomous driving systems often rely on statistical pattern matching for trajectory prediction, making them vulnerable to spurious correlations and poor generalization in novel environments. This paper presents a novel framework that integrates causal inference—specifically backdoor adjustment and counterfactual analysis—to distinguish between coincidental correlations and true cause-and-effect relationships. By modeling the environment's underlying causal logic, the proposed system achieves state-of-the-art performance across multiple diverse datasets and demonstrates significantly enhanced robustness and domain generalization.

Introduction: The Correlation Trap

Most modern autonomous driving (AD) systems are essentially sophisticated "pattern matchers." They excel at identifying statistical regularities within massive datasets. However, this reliance on correlation often leads to failures when faced with spurious correlations. For instance, if a training dataset contains many examples of vehicles accelerating through a specific intersection, a model might learn a simplistic rule like "Location X = Speed Up," completely ignoring the actual causal factors, such as a green light or the absence of pedestrians.

Comparison of standard imitation learning versus the proposed causal learning approach. While standard models might incorrectly predict acceleration based on past patterns (a), the causal model identifies pedestrians as the primary factor for deceleration in scenario (b).

When these models encounter "out-of-distribution" scenarios—such as new cities, rare weather conditions, or unusual traffic behaviors—their lack of causal understanding results in weak domain generalization and significant safety risks. This research aims to move beyond simple pattern recognition toward a system that understands why a vehicle moves the way it does by modeling the environment's underlying causal logic.

Methodology: Causal Inference for Trajectory Prediction

The authors propose a two-stage framework that treats trajectory prediction as a causal inference problem rather than a simple regression task. The core of this approach is the definition of a causal graph where the spatial map ($S$) and temporal agents ($T$) act as "confounders" influencing both the historical trajectory ($X$) and the future trajectory ($Y$).

The proposed causal graph illustrating the relationships between Spatial Map (S), Temporal Agents (T), History Trajectory (X), and Trajectory Prediction (Y), including the application of backdoor adjustment and counterfactual analysis.

Key Technical Components

  1. Diffusion-based Backdoor Adjustment: To eliminate bias from specific spatial maps, the model utilizes a diffusion process to generate a diverse set of potential traffic scenarios. This "stratifies" the map data, allowing the model to identify the true causal impact of road structures regardless of the specific layout.
  2. Counterfactual Analysis: The model performs "what if" reasoning. By substituting historical trajectories with hypothetical (zeroed) vectors and rerunning the prediction, it isolates the specific causal influence of surrounding agents ($T$) on the target vehicle.
  3. Cross-modal Progressive Fusion: Mimicking human reasoning, this multi-stage attention mechanism progressively refines its queries to adapt to dynamic scenes in real-time, rather than processing all data in a single pass.
  4. Dual-scale Information Fusion: A CNN-based framework integrates global scene context with local, agent-specific details to provide a comprehensive view of the driving environment.

Experimental Evaluation

The model was evaluated on five diverse, real-world datasets to test performance across different driving cultures and road layouts: ApolloScape (China), nuScenes (Boston and Singapore), NGSIM (US highways), HighD (German highways), and MoCAD (urban roads with right-hand drive).

Key Results

The proposed model achieved state-of-the-art (SOTA) results across all benchmarks:

  • ApolloScape: Improved WSADE and WSFDE by 1.84% and 8.20% respectively over the previous best model (MSTG).
  • nuScenes: Achieved a 7.91% improvement in minADE and 4.00% in FDE.
  • Robustness: In tests with 40% missing data frames, the model maintained high accuracy while traditional models' performance significantly declined.
  • Generalization: When trained in one city (e.g., Boston) and tested in another (e.g., Singapore), the causal model significantly outperformed traditional data-driven models, proving it had learned universal "driving logic" rather than local patterns.

Discussion and Future Work

By using the "do-operator" from causal calculus, the framework effectively severs misleading links between environment features and behavior, forcing the network to learn genuine causal links. The authors also demonstrated that these causal modules are "plug-and-play," significantly improving existing SOTA models like PGP in complex scenarios such as lane-forking.

While the results are impressive, future work will address the computational overhead introduced by diffusion models and multi-stage attention to ensure real-time performance on low-power edge hardware. Additionally, the authors plan to decompose the high-level causal graph into more granular factors, such as traffic rules, weather conditions, and driver intent, and extend this logic to long-range strategic planning beyond the current 3-5 second window.

Summary updated

BibTeX
@inproceedings{wang2025beyond,
  author = {Bonan Wang and Haicheng Liao and Chengyue Wang and Bin Rao and Yanchen Guan and Guyang Yu and Jiaxun Zhang and Songning Lai and Chengzhong Xu and Zhenning Li},
  title = {{Beyond Patterns: Harnessing Causal Logic for Autonomous Driving Trajectory Prediction}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/1102},
}
Figure