Sparse Curriculum Reinforcement Learning for End-to-End Driving

Pranav Agarwal, Pierre de Beaucorps, Raoul de CharettearXiv 2021

Introduction

Reinforcement Learning (RL) for autonomous driving traditionally relies on complex "reward shaping," where engineers manually define numerous sub-rewards for metrics like speed, lane centering, and collision avoidance. While effective, this approach is brittle, prone to human bias, and often leads to agents "gaming" the reward system rather than learning safe driving behaviors.

This paper presents a framework that replaces intricate reward functions with simple, binary sparse rewards (0 or 1). By integrating top-down navigation maps, a "revert-on-failure" curriculum learning strategy, and a multi-policy ensemble, the authors demonstrate that an agent can learn to drive in the CARLA simulator in just 8 hours on a single GPU, showing robust generalization to unseen road layouts.

System Architecture

The proposed framework consists of two primary components: a perception module and a control module. Instead of raw front-facing camera images, which often suffer from a significant "sim-to-real" gap, the model utilizes top-down navigation view maps.

The end-to-end system architecture, showing the flow from the CARLA simulator through the perception (VAE) and control (Agent) modules to generate driving actions.

As shown in the architecture above, the perception module uses a Variational AutoEncoder (VAE) to compress these maps into a compact latent representation. Simultaneously, the control module—utilizing Proximal Policy Optimization (PPO)—processes this representation along with speed and goal information to output steering, gas, and brake commands. Training these modules concurrently significantly reduces total training time compared to sequential approaches.

Curriculum Learning Strategy

Training with sparse rewards is notoriously difficult because the agent receives no feedback for the vast majority of its actions. To overcome this, the authors implement a goal-constrained curriculum with a unique "revert" strategy.

The curriculum revert strategy (a) and goal constraints (b) used to guide the agent from simple to complex driving tasks.

The agent begins with simple goals (e.g., 1 meter away) and progresses to more distant targets (up to 100 meters). If the agent fails at a specific difficulty level ($C_i$), the curriculum reverts to a simpler level ($C_{i-1}$), preventing the policy from stagnating in local minima. Furthermore, "goal constraints" ensure the car reaches its destination within a specific lateral radius ($\rho$) and orientation ($\alpha$), providing a clear definition of success for the sparse reward signal.

Multi-Policy Ensemble

Rather than training a single monolithic policy to handle all driving scenarios, the framework utilizes a multi-policy ensemble. The task is decomposed into three specialized "primitive" policies: Straight (SP), Right (RP), and Left (LP). At inference time, a high-level navigation system (similar to a GPS) switches between these primitives based on the required maneuver. This modular approach allowed the agents to master 100m goals, whereas a single "all-in-one" policy plateaued at 40m complexity.

Results and Generalization

The system was evaluated in the CARLA simulator, training on sections of Town01 and testing on unseen areas of Town01 and Town02. Key findings include:

  • Efficiency: The model reached peak performance in approximately 8 hours on a single GPU.
  • Success Rates: The simultaneous training model achieved a 100% success rate for 20m goals and an 82% success rate for 100m goals on unseen tracks.
  • Generalization: Despite being trained on goals up to 100m, the agent successfully generalized to 300m goals with a 41% success rate and navigated unseen tracks for up to 1.2km by switching between primitives.
  • Emergent Behavior: Without explicit speed penalties, the agents naturally learned to slow down before turns and optimize their pathing (e.g., clipping the apex), suggesting that efficient driving styles emerge naturally from sparse rewards.

Conclusion and Future Work

This research demonstrates that sparse rewards, when combined with curriculum learning and modular policies, can effectively train autonomous driving agents without the need for manual reward engineering. While currently limited to static environments without dynamic obstacles, future work aims to integrate traffic rule constraints and internalize high-level navigation decisions within the RL framework.

Summary updated

BibTeX
@misc{agarwal2021sparse,
  author = {Pranav Agarwal and Pierre de Beaucorps and Raoul de Charette},
  title = {{Sparse Curriculum Reinforcement Learning for End-to-End Driving}},
  year = {2021},
  eprint = {2103.09189},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.09189},
}
Figure