Learning Human Driving Behaviors with Sequential Causal Imitation Learning

Kangrui Ruan, Xuan Di

Introduction

Standard imitation learning often fails in real-world applications because it assumes full observability of the expert's state. In reality, human drivers react to "unobserved confounders"—hidden factors like internal intent, road conditions, or subtle visual cues like tail lights. This paper introduces Sequential Causal Imitation Learning (SeqCIL), a framework designed to prevent autonomous agents from learning misleading, spurious correlations by accounting for these hidden variables.

The Challenge of Causal Confusion

Most imitation learning (IL) models, such as Behavioral Cloning or GAIL, assume a Markov Decision Process (MDP) where the current observed state is sufficient for decision-making. However, driving datasets are often incomplete. For instance, a car might slow down due to a hidden red light or a sudden patch of ice. Without accounting for these confounders, an AI might fall into "causal confusion," incorrectly attributing the braking action to a nearby landmark rather than the true cause. SeqCIL aims to identify and block these "backdoor" paths to ensure the AI learns the true causal mechanisms of driving.

Methodology: SeqCIL and MDPUC-HD

The authors propose a new causal template called MDPUC-HD (Markov Decision Processes with Unobserved Confounders for Human Driving). This model generalizes standard MDPs by explicitly mapping how unobserved variables influence both expert actions and resulting rewards.

The SeqCIL framework addresses unobserved confounders by modeling the causal relationships between states, actions, and hidden variables over time.

Key technical contributions include:

  • The \pi-backdoor Criterion: A graphical method to determine which historical variables must be conditioned on to block spurious correlations.
  • Theorem of Non-Imitability: A proof that if the expert's policy and the reward share hidden factors, standard non-causal imitators are mathematically guaranteed to fail.
  • SeqCIL + GAIL: Integration of causal logic into the Generative Adversarial Imitation Learning (GAIL) framework. The discriminator evaluates "causal state-action pairs" (e.g., $S_t, A_{t-1}, S_{t-1}$) to ensure the policy aligns with the expert’s causal reasoning.

Experimental Evaluation

The researchers evaluated SeqCIL using both synthetic and real-world data:

  1. Synthetic Car-Following: A controlled environment using the Intelligent Driver Model (IDM) where variables like tail lights were intentionally hidden.
  2. NGSIM Dataset: Real-world vehicle trajectories from US Highway 101, representing a "black box" scenario where human reward functions are unknown.

Key Results and Insights

The results demonstrate a significant advantage for causal reasoning. In the car-following task, the Causal 2-step GAIL achieved a normalized reward of 0.892, vastly outperforming standard GAIL (0.196) and LSTM-based models (0.238).

Comparison of safety metrics on the NGSIM dataset shows that causal models significantly reduce collision rates and other undesirable behaviors.

On the NGSIM dataset, the causal model significantly improved safety metrics, reducing collision rates and off-road durations compared to Naive Behavioral Cloning and standard GAIL. Furthermore, the Root Mean Squared Error (RMSE) for position and speed remained lower over a 20-second horizon, suggesting a better understanding of traffic flow.

A critical insight from the study is that simply adding more history (e.g., via LSTMs) does not solve causal confusion. In fact, conditioning on the wrong historical variables can introduce "colliders," creating new spurious paths. The authors found a "2-step" causal imitator to be the most effective balance for driving scenarios.

Limitations and Future Outlook

SeqCIL's effectiveness depends on the accuracy of the predefined causal graph. If the underlying structure is incorrectly modeled, backdoor paths may remain unblocked. Future research could explore causal discovery algorithms to automatically extract the causal graph from data, reducing the reliance on human-defined templates.

Summary updated

BibTeX
@inproceedings{ruan2022learning,
  author = {Kangrui Ruan and Xuan Di},
  title = {{Learning Human Driving Behaviors with Sequential Causal Imitation Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i4.20382},
}
Figure