Hierarchical Model-Based Imitation Learning for Planning in Autonomous Driving

Eli Bronstein, Mark Palatucci, Dominik Notz, Brandyn White, Alex Kuefler, Yiren Lu, Supratik Paul, Payam Nikdel, Paul Mougin, Hongge Chen, Justin Fu, Austin Abrams, Punit Shah, Evan Racah, Benjamin Frenkel, Shimon Whiteson, Dragomir Anguelov

TL;DR

Researchers at Waymo have successfully applied Model-Based Generative Adversarial Imitation Learning (MGAIL) to dense urban driving at an unprecedented scale. By combining a hierarchical goal-setting architecture with closed-loop adversarial training, they developed a "steerable" motion planner that generalizes to novel routes and handles complex interactions far better than traditional behavior cloning.

What Problem Does This Paper Address?

Imitation Learning (IL) is a popular way to teach autonomous vehicles (AVs) by having them "watch" human experts. However, it faces two massive hurdles:

  1. Covariate Shift (The "DAgger" Problem): Small errors in a model's predictions compound over time. If the AV drifts slightly off the expert's path, it enters a state it never saw during training and doesn't know how to recover, leading to catastrophic "divergent" behavior.
  2. Causal Confusion: If you just train a model to copy an expert's trajectory, the model might learn to follow the car in front of it simply because the expert did, without understanding the expert's actual intent (e.g., "I need to turn right at the next block").

Traditional "open-loop" behavior cloning (BC) treats every frame as an independent prediction, ignoring the long-term consequences of actions and failing to account for the AV's own goals.

Methods

The authors propose a hierarchical, model-based approach to solve these issues:

  • Hierarchical Architecture: The system is split into two parts. A high-level module uses a graph-based A* search on a map to generate a "goal route." A low-level motion policy (the MGAIL agent) then takes this route as an input, ensuring the vehicle is "steerable" toward specific objectives.
  • MGAIL (Model-Based GAIL): Unlike standard BC, MGAIL uses a discriminator to distinguish between expert trajectories and the model's own "rollouts." Because they use a differentiable dynamics model (a "delta actions" model), they can backpropagate gradients through time, allowing the model to understand how an action now affects the state several seconds later.
  • Transformer-Based Encoding: They use a sophisticated transformer architecture (utilizing linear-complexity cross-attention) to fuse diverse data: the AV’s history, other agents' paths, traffic lights, and the goal route.
  • Multi-Modal Output: The policy outputs a Gaussian Mixture Model (GMM), allowing the AV to represent multiple possible valid actions (e.g., deciding whether to pass a cyclist on the left or stay behind them).
  • Closed-Loop Evaluation with Reactive Agents: To test the model fairly, they don't just play back old logs. They use "Symphony" agents—simulated road users that actually react to the AV's new maneuvers—to ensure the simulation remains realistic even when the AV deviates from the original expert path.

Datasets

  • Expert Trajectories: A massive dataset of 10 million segments (over 100,000 miles) of real-world expert driving in San Francisco.
  • Unbiased Test Set: 82,198 segments used for general performance metrics.
  • Route Generalization Test Set: 18,593 segments where the high-level planner produced multiple distinct possible routes, used to test "zero-shot" generalization to novel goals.
  • Challenge Classifier: The authors trained a separate ML model to identify the "long-tail" of rare, difficult scenarios (potential collisions or close calls) to see how the model handles high-stress situations.

Key Insights and Ideas

  • The Power of the Hybrid Loss: The best results came from mixing MGAIL's adversarial loss with a standard BC loss. BC provides a strong "prior" for how to drive, while MGAIL's closed-loop nature fixes the compounding errors that plague pure BC.
  • Route Conditioning is Non-Negotiable: Without knowing the goal route, models struggle to stay on track. Adding route features improved success rates from ~86% to over 94% for BC models.
  • MGAIL Shines in the "Long Tail": While BC and MGAIL might look similar on "easy" average driving, MGAIL significantly outperforms BC in challenging, high-interaction scenarios. This suggests that closed-loop training is essential for safety-critical robustness.
  • Simulating Interaction Matters: Evaluating a model against static "logged" agents is misleading. When the AV tries a novel route, other cars must react, or the resulting collision metrics are meaningless.

Key Results

  • Expert-Level Performance: Their best model (MGAIL + BC + Route) achieved a 98.22% success rate on logged routes, nearly matching the expert "playback" (98.62%).
  • Zero-Shot Generalization: When forced to follow a "novel" route the expert didn't take, the model maintained an 89.65% success rate, whereas a model without MGAIL's adversarial training struggled significantly more with collisions and off-road excursions.
  • Robustness: In "High" difficulty scenarios identified by their challenge classifier, MGAIL-based models maintained much higher success rates than pure BC models, proving their resilience to covariate shift.

Limitations and Future Work

  • The Generalization Gap: There is still a performance gap between following a "logged" route and a "novel" one. The authors suggest that purely associative learning might not be enough for perfect generalization.
  • Safety Constraints: The current model is purely imitative. Future work could involve adding explicit safety layers (constrained optimization) or reward shaping to enforce hard rules like "never cross a double yellow line."
  • Co-Training: The authors suggest training the AV planner simultaneously with reactive agents to further improve the realism of multi-agent interactions.

Summary updated

BibTeX
@inproceedings{bronstein2022hierarchical,
  author = {Eli Bronstein and Mark Palatucci and Dominik Notz and Brandyn White and Alex Kuefler and Yiren Lu and Supratik Paul and Payam Nikdel and Paul Mougin and Hongge Chen and Justin Fu and Austin Abrams and Punit Shah and Evan Racah and Benjamin Frenkel and Shimon Whiteson and Dragomir Anguelov},
  title = {{Hierarchical Model-Based Imitation Learning for Planning in Autonomous Driving}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=fA_NbpMMws},
}

Loading related content...

Figure