Explaining How a Deep Neural Network Trained with End-to-End Learning Steers a Car

Mariusz Bojarski, Philip Yeres, Anna Choromanska, Krzysztof Choromanski, Bernhard Firner, Lawrence D. Jackel, Urs MullerarXiv 2017

Abstract NVIDIA’s PilotNet is an end-to-end deep learning system designed to map raw pixels from a single front-facing camera directly to steering commands. While highly effective, the "black box" nature of deep neural networks often obscures the underlying logic of their decisions, hindering debugging and safety validation. This paper presents a computationally efficient, top-down saliency mask generation algorithm that identifies the specific image regions driving the network's output. Experimental results demonstrate that PilotNet autonomously learns to focus on critical environmental features—such as lane markings, road edges, and other vehicles—without explicit human labeling or hand-crafted rules.

Introduction

The appeal of end-to-end learning for autonomous vehicles lies in its ability to replace complex, manually-coded rule sets with a unified model that learns directly from human driving data. However, for these systems to be deployed safely, engineers must be able to verify that the model is making decisions based on appropriate visual cues. Existing interpretability methods, such as deconvolution or layer-wise relevance propagation, are often too computationally intensive for real-time application on mobile hardware. To bridge this gap, Bojarski et al. developed a lightweight visualization technique capable of running on the NVIDIA DRIVE PX 2 platform, providing immediate feedback on the network's focus during live operation.

Methods

The PilotNet architecture is a 9-layer Convolutional Neural Network (CNN) consisting of one normalization layer, five convolutional layers, and three fully connected layers. It processes YUV-formatted images to output the inverse turning radius. To explain these outputs, the authors introduced a top-down saliency mask generation algorithm. This method begins at the highest convolutional layer by averaging feature map activations. This averaged map is then upscaled to the resolution of the preceding layer and multiplied element-wise by that layer's averaged activations. This recursive process continues down to the input resolution, resulting in a normalized mask that highlights the pixels most influential to the steering command.

The top-down saliency mask generation process, which recursively upscales and multiplies averaged feature maps to identify influential input pixels.

Results and Discussion

Qualitative analysis of the generated masks reveals that PilotNet learns a sophisticated internal representation of the driving environment. In various scenarios, the saliency masks consistently highlight lane lines and road boundaries. Interestingly, the network demonstrates human-like attention; on unmarked roads, it focuses on the transition between the pavement and the grass to determine the drivable path. It also successfully identifies and prioritizes obstacles like parked cars or construction equipment, even when partially occluded.

Saliency masks (shown in green) demonstrating PilotNet's ability to focus on lane markings, road edges, and parked vehicles across different driving conditions.

To quantitatively validate these findings, the authors conducted a pixel-shifting experiment. By segmenting the image into "salient" and "background" regions, they observed that horizontal shifts applied only to the salient pixels produced steering changes nearly identical to shifting the entire image. Conversely, shifting background pixels had almost no effect on the output. This confirms that the saliency masks accurately isolate the visual features responsible for the vehicle's control.

Conclusion

The ability to visualize the "intent" of an end-to-end driving model is a crucial step toward building trustworthy autonomous systems. By proving that PilotNet focuses on relevant road features rather than spurious correlations, this research provides a framework for more effective model debugging and data curation. Future work will focus on refining the system's performance in complex urban environments and reducing the reliance on empirical tuning for different network architectures.

Summary updated

BibTeX
@misc{bojarski2017explaining,
  author = {Mariusz Bojarski and Philip Yeres and Anna Choromanska and Krzysztof Choromanski and Bernhard Firner and Lawrence D. Jackel and Urs Muller},
  title = {{Explaining How a Deep Neural Network Trained with End-to-End Learning Steers a Car}},
  year = {2017},
  eprint = {1704.07911},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.07911},
}
Figure