Introduction: The Transparency Challenge in Autonomous Driving
As autonomous driving (AD) technology transitions from experimental prototypes to public roads, it faces a significant "black box" problem. While deep learning models excel at mapping complex sensor data to steering and acceleration commands, they lack the inherent ability to explain why a specific action was taken. This lack of transparency is not only a safety concern but also a regulatory hurdle, as emerging standards like the EU’s GDPR emphasize a "right of explanation" for automated decisions.
Existing interpretability methods often rely on saliency maps or feature importance scores. While these are valuable for engineers, they are rarely intuitive for the average passenger. This research proposes a framework using Visual Question Answering (VQA) to bridge this gap, providing causal, natural language justifications for vehicle actions.
Methodology: A Multi-Stage Pipeline
The authors developed a pipeline consisting of three primary components:
- The Driver: A Reinforcement Learning (RL) agent trained using the Deep Deterministic Policy Gradient (DDPG) algorithm. DDPG was selected for its ability to handle the continuous action spaces required for realistic navigation in the CARLA simulator.
- The Data Logger: This component extracts video frames corresponding to five distinct driving actions: going straight, turning left/right, and navigating T-junctions.
- The Explainer (VQA): The core of the framework is a VQA architecture that fuses vision and language:
- Vision: A pre-trained VGG-19 network extracts 1024-dimensional features from the driving scene.
- Language: A Long Short-Term Memory (LSTM) network encodes the user's question (e.g., "Why is the car turning right?").
- Fusion: The image and question vectors are combined via element-wise multiplication to create a joint representation, which is then processed through a softmax layer to predict the most likely justification from a vocabulary.
Experimental Setup and Datasets
The study utilized the CARLA simulator (Town 1 and Town 2) to generate a custom dataset. The training set comprised 250 high-quality frames from Town 1, manually annotated with ground-truth question-answer pairs. Evaluation was conducted on a test set of 100 frames from both towns to assess the model's ability to generalize to unseen environments. The model utilized the standard MS COCO vocabulary, augmented with five specific driving justifications, such as "Because the road is bending to the right."
Key Results and Discussion
The framework achieved an overall accuracy of 80% on the test set. Performance was highly polarized across action categories: the model reached 100% accuracy for "Go straight," "Turn right," and both T-junction actions. However, it failed completely (0% accuracy) on the "Turn left" category, consistently misclassifying these scenes as "Turn right."
This failure highlights the challenge of visual ambiguity and dataset scale. With only 250 training frames, the model became biased toward specific visual features or more frequent labels. Despite this, for correctly predicted actions, the model demonstrated high confidence, with softmax probability scores ranging between 0.73 and 0.99.
Limitations and Future Directions
The authors acknowledge that these are post-hoc explanations; the VQA system justifies the action based on the visual scene, which may not always perfectly mirror the RL agent's internal logic. Future work aims to address current limitations by:
- Scaling the Dataset: Increasing the training data to over 50,000 frames to eliminate category biases.
- Dynamic Environments: Incorporating dynamic agents like pedestrians and other vehicles.
- Architectural Evolution: Moving from VGG-19 to Vision Transformers (ViT) and leveraging Large Language Models (LLMs) for more nuanced explanations.
- Forensic Analysis: Utilizing QA logs to understand a vehicle's "state of mind" during accident investigations.
Summary updated