Model-Based Imitation Learning for Urban Driving

Anthony Hu, Gianluca Corrado, Nicolas Griffiths, Zachary Murez, Corina Gurau, Hudson Yeo, Alex Kendall, Roberto Cipolla, Jamie Shotton

Introduction

Autonomous driving systems typically fall into two categories: modular pipelines, which are complex to tune, or end-to-end imitation learning, which often lacks "common sense" about world dynamics. While "world models" have shown significant success in reinforcement learning (RL), they usually operate on low-resolution images and require millions of online interactions with the environment—a luxury unavailable in the real world where safety is paramount.

To address this, researchers have developed MILE (Model-based Imitation LEarning), a framework that jointly learns a world model and a driving policy from high-resolution offline video data. By incorporating 3D geometric inductive biases and a latent dynamics model, MILE learns to understand the underlying 3D geometry and can "imagine" future states to plan complex maneuvers, achieving state-of-the-art performance using only camera inputs.

Methods: The MILE Architecture

MILE is designed to predict the future and plan actions without requiring online interaction during training. Its architecture consists of several innovative components:

MILE Architecture: Observing and Imagining phases
  1. 3D Geometric Inductive Bias: Instead of feeding raw images into a flat neural network, MILE "lifts" 2D image features into 3D space using predicted depth distributions. These features are then pooled into a Bird’s-Eye View (BeV) representation, providing explicit spatial reasoning.
  2. Latent Dynamics Model: The model maintains a latent state composed of a deterministic history and a stochastic state. It uses a Recurrent Neural Network (RNN) to evolve these states over time based on previous states and actions.
  3. Action-Conditioned Imagination: MILE is trained to predict the future. During inference, it can "unroll" its internal model to predict future BeV states and actions. This allows the agent to drive "in imagination" even when visual observations are temporarily unavailable.
  4. Joint Learning: The world model (predicting the next state) and the policy (predicting the next action) are learned simultaneously. The model is supervised by expert actions and BeV semantic segmentation labels, requiring no ground truth rewards.

Datasets and Evaluation

The primary environment for training and evaluation is the CARLA Simulator. The training corpus consists of 32 hours (approximately 2.9 million frames) of driving data collected using an expert RL agent across four different towns and various weather conditions. The model was rigorously evaluated on Town05—a town never seen during training—under new weather conditions to test generalization.

Key Insights

  • Geometry is Non-Negotiable: Explicitly modeling 3D geometry (lifting to BeV) is critical. Ablation studies showed that removing the 3D lifting step caused a massive drop in performance.
  • The Power of Compactness: Surprisingly, a low-dimensional 1D latent vector performed better for long-term recurrent stability than high-dimensional 3D spatial tensors, which made it harder for prior and posterior distributions to match during training.
  • Action-Conditioning Matters: Unlike passive video prediction, MILE models how the world responds to its actions, allowing it to anticipate how other agents might react to the ego-vehicle's movements.
  • Efficient Inference: By using a recurrent state, MILE updates its understanding of the world efficiently. Its "Fully Recurrent" mode runs at 43Hz, which is 7x faster than re-processing a fixed window of past frames.

Key Results

MILE establishes a new state-of-the-art for camera-only autonomous driving in the CARLA simulator.

Comparison of MILE against state-of-the-art methods on the CARLA simulator
  • New State-of-the-Art: MILE achieved a Driving Score of 61.1 on the CARLA leaderboard (Town05 Long), representing a 31% relative improvement over the previous best camera-only method (LAV).
  • Surpassing LiDAR: Remarkably, this camera-only approach outperformed several prior methods that had access to LiDAR data, such as TransFuser.
  • Imagination Success: The model demonstrated the ability to execute complex maneuvers, like navigating a roundabout, using plans predicted entirely in its "imagination" without seeing new frames for several seconds.

Limitations and Future Work

While MILE represents a significant step forward, it currently requires Bird’s-Eye View semantic labels for supervision. Moving toward self-supervision is a promising next step to unlock the model's full potential for real-world scaling. Additionally, MILE imitates an expert but doesn't explicitly learn a reward function; inferring a "driving cost" from expert data could allow for more explicit planning and safety guarantees. Finally, while offline training bridges some gaps, deploying and testing on real-world urban datasets remains the ultimate hurdle for sim-to-real transfer.

Summary updated

BibTeX
@inproceedings{hu2022model,
  author = {Anthony Hu and Gianluca Corrado and Nicolas Griffiths and Zachary Murez and Corina Gurau and Hudson Yeo and Alex Kendall and Roberto Cipolla and Jamie Shotton},
  title = {{Model-Based Imitation Learning for Urban Driving}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure