Interpretable Learning for Self-Driving Cars by Visualizing Causal Attention

Jinkyu Kim, John F. Canny

Introduction

End-to-end deep learning has revolutionized autonomous driving by enabling vehicles to learn steering commands directly from raw camera pixels. However, these models are often criticized as "black boxes," offering little insight into the rationale behind their decisions. This lack of transparency poses significant challenges for safety validation and liability. While visual attention mechanisms have been proposed to highlight salient image regions, these maps often suffer from "spurious correlations"—highlighting objects that are visually prominent but irrelevant to the actual control task.

This research introduces a novel framework that moves beyond simple correlation to establish causality. By combining a visual attention mechanism with a fine-grained causal filtering step, the model generates explanations that highlight only the specific image regions—such as lane lines or lead vehicles—that directly influence the steering output.

System Architecture

The proposed framework consists of a three-stage pipeline designed to extract features, predict control commands, and refine visual explanations.

The three-stage architecture: (1) CNN Encoder, (2) Coarse-Grained Decoder with LSTM attention, and (3) Fine-Grained Decoder for causal filtering.
  1. The Encoder (CNN): A five-layer convolutional neural network extracts high-level spatial features from input images. To preserve precise spatial information, the authors avoid max-pooling layers, ensuring the model maintains a high-fidelity map of where features are located.
  2. Coarse-Grained Decoder (Attention): An LSTM network processes the extracted features to predict the steering angle. Simultaneously, it generates a "soft" attention map, assigning weights to different image regions to indicate their potential importance.
  3. Fine-Grained Decoder (Causal Filtering): This stage identifies which parts of the attention map are truly causal. The system clusters the attention map into distinct "blobs" using the DBSCAN algorithm. It then performs a causality test by masking out individual blobs and re-running the network. If the steering output changes significantly, the blob is deemed "causal"; otherwise, it is discarded as "spurious."

Causal Filtering and Visual Saliency

A key insight of this work is that attention is a filter, not an explanation. An attention model's primary role is to identify all potentially salient areas for the recognition network, which naturally includes background noise like roadside trees or buildings.

Comparison of raw attention maps versus refined causal maps across different datasets. Bar charts show that a majority of attention blobs (e.g., 62% in Comma.ai) are spurious.

By systematically "poking" the model through blob masking, the researchers discovered that a massive portion of what the network attends to is irrelevant to the final decision. In experiments using the Comma.ai dataset, 62% of the attention blobs were found to be spurious. The causal filtering step prunes these irrelevant regions, resulting in refined heatmaps that consistently point to intuitive, task-relevant features like lane markings and the vehicles directly ahead.

Experimental Results

The model was evaluated on three large-scale datasets: Comma.ai (highway/urban), Udacity (urban), and HCE (highway), totaling over 1.2 million frames.

  • Accuracy: The inclusion of an attention mechanism did not degrade performance. On the Comma.ai dataset, the model achieved a Mean Absolute Error (MAE) of 2.44 degrees, slightly outperforming standard CNNs without attention. This suggests that the attention penalty acts as a beneficial regularizer.
  • Interpretability: The causal pruning significantly reduced the complexity of visual explanations. The final output provides a clear, human-interpretable rationale for the car's behavior, successfully isolating the causal drivers of the steering command from environmental noise.
  • Data Preprocessing: The authors noted that applying exponential smoothing to human driver training data was essential to account for human reaction times and signal jitter, leading to more stable model training.

Conclusion and Future Work

This framework demonstrates that interpretability in self-driving AI does not require a trade-off with accuracy. By filtering out spurious correlations, the model provides a more reliable window into the "mind" of the autonomous vehicle. Future research may focus on "feature-level masking" to reduce the computational overhead of multiple forward passes and aligning these causal maps with human eye-tracking data to further validate their intuitive accuracy.

Summary updated

BibTeX
@inproceedings{kim2017interpretable,
  author = {Jinkyu Kim and John F. Canny},
  title = {{Interpretable Learning for Self-Driving Cars by Visualizing Causal Attention}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.320},
}
Figure