Abstract
Vision-based urban driving is hard. The autonomous system needs to learn to perceive the world and act in it. We show that this challenging learning problem can be simplified by decomposing it into a two-stage process: first training a privileged agent with access to ground-truth information, and then training a sensorimotor agent to imitate the privileged one. This approach, "Learning by Cheating" (LBC), achieves state-of-the-art performance on the CARLA benchmark, including a 100% success rate on the original tasks.
Introduction
Autonomous driving using vision-based sensorimotor control is a significant challenge. Standard imitation learning, where a model maps raw pixels directly to control outputs (steering, throttle) by observing a human expert, often struggles. This difficulty arises because the model must simultaneously solve two complex problems: perception (interpreting the visual scene) and control (deciding on the appropriate action).
In complex urban environments, direct imitation models frequently fail due to the "blooming, buzzing confusion" of the visual world. They may fail to detect a critical object or fail to understand the behavioral implications of a detected object. This research proposes to decouple these challenges to create a more robust and efficient learning pipeline.
The Two-Stage Learning Framework
The core of the proposed method is a two-stage decomposition of the learning process, moving from a "cheating" expert to a vision-only student.
Stage 1: The Privileged Agent (The Teacher)
The first stage involves training an agent with access to "privileged" information—a bird’s-eye view (BEV) map provided by the simulator. This map contains ground-truth data on lane positions, traffic lights, and other actors. Because this agent "cheats" by having perfect perception, it can focus entirely on learning the policy (control). This agent learns to predict a series of waypoints, which are then executed by a low-level PID controller.
Stage 2: The Sensorimotor Agent (The Student)
The second stage trains a sensorimotor agent that only has access to a single forward-facing RGB camera. Instead of imitating a human driver directly, this agent is trained to imitate the privileged agent from Stage 1.
This teacher-student setup offers several advantages:
- On-policy Supervision: The student can be supervised even when it deviates from the expert's path, as the privileged teacher can be queried at any state.
- Rich Learning Signal: The teacher provides supervision for multiple potential commands (e.g., turn left, go straight) simultaneously, offering a denser signal than a single human action.
Architecture and Implementation
Both agents are designed to predict spatial waypoints rather than raw control values. This abstraction makes the model more robust to vehicle dynamics. The sensorimotor agent uses a Convolutional Neural Network (CNN) to process the input image and current speed, outputting spatial attention maps for different high-level commands.
The study utilized the CARLA simulator for training and evaluation. Training data was surprisingly sparse, consisting of only 100 trajectories (approx. 4 hours of driving) in a single town. Evaluation was conducted in an unseen town to test generalization.
Experimental Results
The "Learning by Cheating" (LBC) approach demonstrated significant improvements over existing methods:
- Benchmark Success: LBC was the first model to achieve a 100% success rate on the original CARLA (CoRL2017) benchmark.
- NoCrash Performance: On the more difficult NoCrash benchmark, LBC outperformed the previous state-of-the-art (CILRS) by 18 percentage points in dense traffic conditions.
- Safety and Robustness: The model significantly reduced infractions, such as collisions or running red lights, compared to end-to-end imitation learning baselines.
Conclusion
By decoupling perception and control through a two-stage imitation learning process, the "Learning by Cheating" framework simplifies the complex task of vision-based autonomous driving. While the "cheating" phase relies on simulator-provided ground truth, the resulting sensorimotor agent is highly capable and generalizes well to new environments. Future work may explore combining this framework with reinforcement learning to further enhance agent performance beyond human-level expertise.
Summary updated