Rethinking Closed-Loop Training for Autonomous Driving

Chris Zhang, Runsheng Guo, Wenyuan Zeng, Yuwen Xiong, Binbin Dai, Rui Hu, Mengye Ren, Raquel UrtasunECCV 2022 · DOI

Abstract: Recent advances in high-fidelity simulators have enabled closed-loop training of autonomous driving agents, potentially solving the distribution shift in training v.s. deployment and allowing training to be scaled both safely and cheaply. However, there is a lack of understanding of how to build effective training benchmarks for closed-loop training. In this work, we present the first empirical study which analyzes the effects of different training benchmark designs on the success of learning agents, such as how to design traffic scenarios and scale training environments. Furthermore, we show that many popular RL algorithms cannot achieve satisfactory performance in the context of autonomous driving, as they lack long-term planning and take an extremely long time to train. To address these issues, we propose trajectory value learning (TRAVL), an RL-based driving agent that performs planning with multistep look-ahead and exploits cheaply generated imagined data for efficient learning. Our experiments show that TRAVL can learn much faster and produce safer maneuvers compared to all the baselines.

Introduction

Most self-driving models are traditionally trained using open-loop supervised learning, or behavior cloning. While effective for simple imitation, this approach suffers from "distribution shift": small errors accumulate, leading the agent into states it never encountered during training, often resulting in catastrophic failure.

Closed-loop training, where an agent interacts with a simulator and learns from the consequences of its actions, offers a solution. However, two primary challenges remain: identifying the most effective simulated environments for training and overcoming the extreme sample inefficiency of standard Reinforcement Learning (RL) algorithms like PPO or SAC, which often struggle with the complex, long-term planning required for safe driving.

Methodology: Trajectory Value Learning (TRAVL)

To address these hurdles, we introduce TRAVL (TRAjectory Value Learning). TRAVL departs from standard RL by incorporating two key innovations: trajectory-based planning and counterfactual imagined data.

Planning in Trajectory Space

Instead of outputting low-level control signals (like raw throttle or steering) which are difficult for RL to optimize, TRAVL evaluates a large set of physically feasible future trajectories. As shown in the architecture below, the model uses a backbone network to process Bird's-Eye View (BEV) imagery and HD maps, then scores sampled trajectories using a learned value function. This "Q-value" decomposes costs into immediate "cost-to-come" and long-term "cost-to-go," enabling more robust long-term planning.

TRAVL Architecture: The model processes BEV and map data to score thousands of sampled trajectories using a backbone feature map and MLP.

Efficient Training via Imagined Data

To improve sample efficiency, TRAVL utilizes a simple world model to "imagine" counterfactual experiences. By assuming other actors follow their predicted paths, the agent can evaluate what would have happened if it had chosen a different trajectory without needing to run the full, computationally expensive simulator for every possible action. This allows for massive data generation at a fraction of the cost.

Benchmark Design and Insights

A critical contribution of this work is the analysis of benchmark design. We compared two paradigms: Free-flow (nominal random traffic) and Targeted (procedurally generated stress tests like aggressive cut-ins).

Benchmark Design: Targeted scenarios and behavior variations provide a richer learning signal than random traffic.

Our findings reveal several key insights for building effective AD benchmarks:

  • Targeted > Random: Training on high-stakes, targeted interactions provides a significantly richer learning signal. Agents trained on targeted scenarios generalize better to random traffic than vice versa.
  • Behavioral Diversity is Paramount: Scaling the diversity of actor behaviors (e.g., varying cut-in times or speeds) is far more effective for learning robust policies than simply increasing map diversity (e.g., road geometry).

Experimental Results

TRAVL significantly outperformed imitation learning and popular RL baselines (Rainbow, PPO, A3C) in both safety and efficiency.

  • Safety: TRAVL achieved an 86.5% Pass Rate and a low 2.6% Collision Rate on targeted benchmarks. In contrast, the best standard RL baseline (Rainbow) had a 4.8% collision rate, while on-policy methods like PPO reached collision rates as high as 24.9%.
  • Generalization: An agent trained on the Targeted set achieved a 90.3% pass rate on Free-flow traffic. However, an agent trained only on Free-flow traffic managed only a 69.6% pass rate when tested against Targeted "stress tests," highlighting the importance of scenario-based training.

Conclusion and Future Work

TRAVL demonstrates that combining trajectory-based inductive biases with efficient counterfactual rollouts can overcome the limitations of standard RL in autonomous driving. While currently focused on highway environments with non-reactive world models, future work will explore more complex urban intersections and highly interactive scenarios involving pedestrians and cyclists. This research underscores that the design of simulation benchmarks is just as vital as the learning algorithms themselves in the quest for safe autonomous agents.

Summary updated

BibTeX
@inproceedings{zhang2022rethinking,
  author = {Chris Zhang and Runsheng Guo and Wenyuan Zeng and Yuwen Xiong and Binbin Dai and Rui Hu and Mengye Ren and Raquel Urtasun},
  title = {{Rethinking Closed-Loop Training for Autonomous Driving}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19842-7\_16},
}
Figure