Extending Structural Causal Models for Autonomous Vehicles to Simplify Temporal System Construction & Enable Dynamic Interactions Between Agents

Rhys Howard, Lars Kunze · DOI

Abstract

In this work we aim to bridge the divide between autonomous vehicles and causal reasoning. Autonomous vehicles have come to increasingly interact with human drivers, and in many cases may pose risks to the physical or mental well-being of those they interact with. Meanwhile causal models, despite their inherent transparency and ability to offer contrastive explanations, have found limited usage within such systems. As such, we first identify the challenges that have limited the integration of structural causal models within autonomous vehicles. We then introduce a number of theoretical extensions to the structural causal model formalism in order to tackle these challenges. This augments these models to possess greater levels of modularisation and encapsulation, as well presenting temporal causal model representation with constant space complexity. We also prove through the extensions we have introduced that dynamically mutable sets (e.g. varying numbers of autonomous vehicles across time) can be used within a structural causal model while maintaining a relaxed form of causal stationarity. Finally we discuss the application of the extensions in the context of the autonomous vehicle and service robotics domain along with potential directions for future work.

Introduction

Autonomous vehicles (AVs) are increasingly reliant on deep neural networks. While effective, these "black-box" models are difficult to interrogate, especially when safety-critical incidents occur. Structural Causal Models (SCMs) provide a framework for answering "but-for" counterfactual questions (e.g., "But for the red car's overtake, would the crash have happened?"), yet they have seen limited adoption in robotics due to three primary challenges: temporal complexity in time-series data, monolithic and rigid design structures, and the dynamic nature of environments where agents frequently enter and leave the scene.

Methodology: Extending the SCM Formalism

To address these limitations, we propose several theoretical extensions inspired by functional programming and modular systems design:

  • Recursive Temporal Variables: Instead of unrolling a graph for every time step (which leads to memory exhaustion), we introduce Previous Time Step (PTS) variables. This allows the SCM to maintain a constant space complexity while processing infinite time steps.
  • Socket and Buffer Variables: We introduce "Socket" variables as standardized interfaces to allow different SCM modules (e.g., physics models and steering controllers) to be merged dynamically. "Buffer" variables encapsulate time-indexed data, acting as a cache to prevent graph duplication.
  • Monadic Side-Effects: By utilizing monads, we allow structural equations to handle non-mathematical tasks like memory I/O without violating the underlying causal logic.

Theoretical Insights

A key contribution is the definition of Retrospective Causal Stationarity (RCS). We prove that even when the set of variables changes over time (e.g., cars entering/leaving a sensor's range), the model remains valid for historical inference as long as the causal relationships were accurately modeled at each discrete time step.

Evaluation and Key Results

The framework was evaluated using the highD dataset, a collection of naturalistic vehicle trajectories from German highways. We focused on performing post-hoc fault attribution for collision scenarios.

Observed vs. Counterfactual scenarios in a collision event.

As shown in the figure above, the model can simulate counterfactual scenarios—such as removing an agent's speed-up—to determine if a collision was inevitable. In our tests, the model successfully identified the primary culprit by showing that even if other agents had taken different actions, the collision would have still occurred due to the initial dangerous maneuver. Furthermore, the PTS and Buffer approach ensured that these complex analyses remained computationally tractable with a minimal memory footprint.

Limitations and Future Work

While promising, the current approach assumes some linear relationships in temporal scaling, which may not capture highly non-linear dynamics like skidding. Future work will explore moving these causal structures from post-hoc analysis into the live decision-making loop of the vehicle and integrating automated causal discovery to learn relationships directly from data.

Summary updated

BibTeX
@inproceedings{howard2025extending,
  author = {Rhys Howard and Lars Kunze},
  title = {{Extending Structural Causal Models for Autonomous Vehicles to Simplify Temporal System Construction \& Enable Dynamic Interactions Between Agents}},
  booktitle = {CLeaR},
  year = {2025},
  url = {https://openreview.net/forum?id=1CI5I7JBaU},
}
Figure