Abstract
Imitation learning is a powerful approach for learning autonomous driving policy by leveraging data from expert driver demonstrations. However, driving policies trained via imitation learning that neglect the causal structure of expert demonstrations yield two undesirable behaviors: inertia and collision. In this paper, we propose Causal Imitative Model (CIM) to address inertia and collision problems. CIM explicitly discovers the causal model and utilizes it to train the policy. Specifically, CIM disentangles the input to a set of latent variables, selects the causal variables, and determines the next position by leveraging the selected variables. Our experiments show that our method outperforms previous work in terms of inertia and collision rates. Moreover, thanks to exploiting the causal structure, CIM shrinks the input dimension to only two, hence, can adapt to new environments in a few-shot setting.
1. Introduction
Imitation learning (IL) has emerged as a popular paradigm for training autonomous agents by mimicking expert human behavior. Despite its success, standard IL often suffers from causal confusion, where the model learns spurious correlations rather than true causal relationships. In autonomous driving, this manifests as two primary failure modes:
- The Inertia Problem: The agent stops (e.g., at a red light) but fails to resume motion because it has not identified the true causal trigger for acceleration.
- The Collision Problem: The agent fails to correctly model the movement of surrounding vehicles, leading to accidents.
Previous research has often treated these issues in isolation. This work argues they are fundamentally linked to the neglect of causal structure and proposes the Causal Imitative Model (CIM) to address them jointly.
2. Methodology
The CIM architecture bifurcates the driving task into navigation and speed control. While navigation is handled by a standard imitative model, speed control is managed by a specialized Causal Pipeline designed to ignore non-causal "noise."
2.1 Perception Model
To handle high-dimensional bird's-eye view (BEV) images, we employ a $\beta$-Variational Autoencoder ($\beta$-VAE). This model compresses the input into 128 disentangled latent variables, where each variable ideally corresponds to a single physical factor in the environment.
2.2 Causal Speed Predictor
The core of CIM is the causal discovery framework. We utilize Granger causality to analyze the latent variables and determine which ones are statistically significant predictors of future speed. Our analysis revealed that out of 128 features, only two were truly causal, representing the spatial configuration of surrounding vehicles.
2.3 Controller
The predicted "causal speed" is fed into a PID-style controller, which generates the final throttle and brake commands.
3. Experimental Evaluation
We evaluated CIM using the CARLA simulator across three distinct environments:
- Town01: Training and in-distribution testing.
- Town02: Testing under distributional shift.
- Town03: Few-shot domain adaptation in complex scenarios (roundabouts, 5-lane junctions) using only 100 samples.
4. Results and Discussion
CIM significantly outperformed state-of-the-art baselines, including Deep Imitative Model (DIM) and Robust Imitative Planning (RIP).
- Performance Gains: In Town01, CIM achieved a 20% error rate, a substantial improvement over DIM's 65%. This included an 85% reduction in inertia and a 44% reduction in collisions relative to DIM.
- Robustness and Adaptation: CIM maintained superior performance in Town02 (38% error rate). In the few-shot Town03 task, CIM reached a 29% error rate, outperforming non-causal variants (38%) by leveraging its sparse, two-variable causal model.
- The Power of Sparsity: By identifying that only two variables drive speed decisions, CIM avoids the causal confusion that plagues high-dimensional "black-box" models.
5. Conclusion
The Causal Imitative Model demonstrates that explicitly modeling causal structures can mitigate the inertia and collision problems in imitation learning. By focusing on a sparse set of causal variables, CIM achieves better generalization and faster adaptation to new environments. Future work will explore extending this causal framework to static scene elements, such as traffic lights and complex road geometries, to further enhance navigation capabilities.
Summary updated