Mitigating Covariate Shift in Imitation Learning for Autonomous Vehicles Using Latent Space Generative World Models

Alexander Popov, Alperen Degirmenci, David Wehr, Shashank Hegde, Ryan Oldja, Alexey Kamenev, Bertrand Douillard, David Nistér, Urs Muller, Ruchi Bhargava, Stan Birchfield, Nikolai Smolyanskiy · OpenReview

TL;DR

This paper tackles the "covariate shift" problem in autonomous driving imitation learning, where policies trained on expert data fail in unseen real-world scenarios. They propose using a latent space generative world model during training to expose the policy to novel states, enabling it to learn recovery behaviors and significantly improve robustness.

What Problem Does This Paper Address?

Autonomous vehicles learn to drive by imitating human experts. However, a common challenge is "covariate shift," where the real-world driving scenarios encountered during deployment differ from the limited set of situations seen during training. This mismatch can cause the learned driving policy to make critical errors, leading to accidents. Traditional methods to combat this, like collecting more data or using privileged simulators, are often expensive, fragile, or rely on sub-optimal heuristics. This paper aims to provide a more robust and efficient solution by leveraging generative world models to proactively train the policy to handle these unseen states.

Methods

The core of the proposed solution is a latent space generative world model co-trained with the driving policy. This world model acts as a neural simulator, learning to predict future states based on past states and actions. Crucially, it operates in a latent space, allowing it to generate novel, unseen states that are not present in the original expert demonstrations.

During training, the driving policy is trained to minimize the difference between its predicted future states and those generated by the world model. This process effectively teaches the policy to recover from errors by learning to steer towards states that resemble expert demonstrations, even when starting from perturbed or novel situations.

A key component is a novel transformer-based perception encoder. This encoder leverages multi-view cross-attention and a learned scene query, using DINOv2 as a featurizer, to create rich representations of the driving scene. This robust perception is crucial for the world model to learn accurate state transitions.

The system is trained end-to-end, with gradients flowing through both the driving policy and the world model, allowing for recovery from mistakes over multiple timesteps.

Datasets

  • CARLA Simulator: Used for collecting expert driving data and for closed-loop evaluation. The training dataset consisted of 50,000 episodes.
  • NVIDIA DRIVE Sim: Used for qualitative evaluation, demonstrating the system's performance in a more photo-realistic environment.
  • Internal Real Driving Dataset: A 450-hour dataset collected by multiple autonomous vehicles, used for training the system for DRIVE Sim experiments.

Key Insights and Ideas

  • Latent Space as a "Simulator" for Robustness: The most significant insight is that a generative world model operating in a latent space can effectively "simulate" novel driving scenarios during training. This allows the policy to learn recovery behaviors without needing explicit demonstrations of every possible failure mode.
  • Covariate Shift Mitigation via Generative Models: The paper demonstrates a principled way to use generative models not just for data augmentation, but as an integral part of the training loop to directly address the covariate shift problem.
  • Transformer-based Perception for Rich Scene Understanding: The novel perception encoder, with its multi-view cross-attention and DINOv2 featurization, highlights the importance of robust visual features for accurate world modeling and subsequent policy learning.
  • End-to-End Training for Integrated Recovery: Co-training the policy and world model allows for gradients to flow through the entire system, enabling the policy to learn how to correct its own mistakes based on the world model's predictions.

Key Results

  • CARLA Simulator: The proposed system achieved state-of-the-art results on held-out test data and new weather conditions in CARLA, outperforming prior methods, including those using multiple cameras and LiDAR. Specifically, it achieved a Driving Score of 70.0 ± 0.2 and a Route Completion rate of 100.0 ± 0.1.
  • Covariate Shift Experiments: In a direct comparison against a behavior cloning (BC) baseline in CARLA, the proposed system showed significantly better performance (e.g., 80.0% route completion vs. 30.0% for BC) when subjected to disturbances, demonstrating its ability to recover from unseen states.
  • Disturbance Experiments: Qualitative results showed the system successfully recovering from manual steering disturbances, while the BC policy crashed.
  • NVIDIA DRIVE Sim: The system demonstrated robust performance and recovery capabilities in the more realistic DRIVE Sim, even with artificially introduced control lag.

Limitations and Future Work

  • Data Efficiency: While the paper claims the world model mitigates the need for excessive training data, the CARLA training still used 50,000 episodes, and the DRIVE Sim training used 1.3 million episodes. Further investigation into how much data is truly needed is suggested.
  • World Model at Deployment: The latent predictive world model is not run at deployment time, which simplifies the inference pipeline but means the recovery mechanism relies solely on the learned policy's ability to handle novel states.
  • Future Work: The authors suggest enhancing the world model predictor with architectures like Mamba, investigating the data efficiency benefits more rigorously, and exploring reinforcement learning for handling long-tail scenarios. They also mention the potential for using the decoder's capabilities for safety checks.

Summary updated

BibTeX
@misc{popov2024mitigating,
  author = {Alexander Popov and Alperen Degirmenci and David Wehr and Shashank Hegde and Ryan Oldja and Alexey Kamenev and Bertrand Douillard and David Nistér and Urs Muller and Ruchi Bhargava and Stan Birchfield and Nikolai Smolyanskiy},
  title = {{Mitigating Covariate Shift in Imitation Learning for Autonomous Vehicles Using Latent Space Generative World Models}},
  year = {2024},
  eprint = {2409.16663},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.16663},
}
Figure