Exploring Latent Pathways: Enhancing the Interpretability of Autonomous Driving with a Variational Autoencoder

Anass Bairouk, Mirjana Maras, Simon Herlin, Alexander Amini, Marc Blanchon, Ramin M. Hasani, Patrick Chareyre, Daniela Rus

Abstract

This paper presents a modular autonomous driving framework designed for intrinsic interpretability. By replacing traditional black-box feature extractors with a Variational Autoencoder (VAE) integrated with Neural Circuit Policies (NCPs), the authors create a transparent latent space. A novel Automatic Latent Perturbation (ALP) tool is introduced to semantically map latent dimensions to environmental features, enabling a granular understanding of the model's decision-making process. While a slight performance trade-off is observed compared to state-of-the-art non-interpretable models, the proposed architecture offers significant advantages for safety-critical auditing and failure mode analysis.

Introduction

Autonomous driving systems typically follow either modular or end-to-end paradigms. While end-to-end models often achieve high performance, they function as "black boxes," making their decision-making processes opaque. Even modular systems frequently rely on Convolutional Neural Networks (CNNs) for perception, which are notoriously difficult to audit. Existing post-hoc explanation methods, such as saliency maps, often fail to faithfully represent a model's underlying logic, sometimes highlighting regions based on dataset biases rather than causal reasoning. This research addresses these challenges by moving toward intrinsic interpretability—building transparency directly into the system's design.

Methods: VAE-NCP Architecture and ALP

The proposed architecture consists of two primary components: a Variational Autoencoder (VAE) for perception and a Neural Circuit Policy (NCP) for control.

  1. VAE-NCP Framework: The VAE serves as an "optimal compressor," encoding high-dimensional input images into a low-dimensional latent space ($z$). Unlike standard CNNs, the VAE is trained to reconstruct the original image from $z$, ensuring that latent features represent meaningful visual information. These features are then processed by an NCP—a sparse, bio-inspired liquid neural network—to generate steering commands. The model is trained using a joint loss function that optimizes for reconstruction quality, latent space regularity (KL divergence), and steering accuracy.
The VAE-NCP architecture integrates a Variational Autoencoder for perception with a Neural Circuit Policy for steering control.
  1. Automatic Latent Perturbation (ALP): To decode the semantic meaning of the latent variables, the authors developed the ALP tool. By systematically perturbing individual dimensions of the latent vector $z$ and decoding the results, the tool generates "difference images" that highlight what specific features a dimension controls. These changes are then cross-referenced with a semantic segmentation model (DeepLabV3+) to provide human-readable labels, such as "road edges" or "vehicles."

Datasets and Evaluation

The study utilizes a dataset of 5 hours of real-world driving recordings (78x200 RGB) paired with human steering commands. Evaluation is conducted via tenfold cross-validation to ensure the model's robustness across diverse driving scenarios.

Results and Interpretability Analysis

The VAE-NCP (19 units) achieved a test error of 4.67. While this lags behind the top-performing "black-box" CNN-LSTM (3.17), it significantly improves upon the fully connected CNN-NCP baseline (5.18). More importantly, the framework provides unprecedented transparency.

Qualitative results from the ALP tool showing how specific latent dimensions correspond to semantic features like road boundaries, cars, and vegetation.

The ALP tool successfully mapped latent dimensions to specific environmental classes. For instance, dimension 467 was found to focus on other vehicles, while dimension 43 specialized in road boundaries and vegetation. By calculating an Impact Score ($I_j$), researchers can quantify how much each dimension influences the final steering command, allowing for the identification of specific failure modes and targeted data collection.

Conclusion

The VAE-NCP architecture demonstrates that intrinsic interpretability is achievable in autonomous driving without a prohibitive loss in performance. By providing a mechanism to visually and quantitatively audit the perception-to-control pipeline, this approach offers a path toward more reliable and verifiable AI systems. Future work will focus on closing the accuracy gap and extending evaluation to closed-loop, real-time environments.

Summary updated

BibTeX
@inproceedings{bairouk2024exploring,
  author = {Anass Bairouk and Mirjana Maras and Simon Herlin and Alexander Amini and Marc Blanchon and Ramin M. Hasani and Patrick Chareyre and Daniela Rus},
  title = {{Exploring Latent Pathways: Enhancing the Interpretability of Autonomous Driving with a Variational Autoencoder}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2024},
  doi = {10.1109/iros58592.2024.10801915},
}
Figure