Raw2Drive: Reinforcement Learning with Aligned World Models for End-to-End Autonomous Driving (in CARLA v2)

Zhenjie Yang, Xiaosong Jia, Qifeng Li, Xue Yang, Maoqing Yao, Junchi Yan

TL;DR

Raw2Drive is the first feasible dual-stream model-based reinforcement learning (MBRL) framework for end-to-end autonomous driving that operates directly from raw sensor data. By using an auxiliary privileged world model to guide a raw sensor world model during training, it overcomes the severe convergence difficulties typical of standard RL while avoiding the causal confusion inherent to imitation learning. The approach achieves state-of-the-art performance on the highly challenging CARLA v2 and Bench2Drive benchmarks.

What Problem Does This Paper Address?

End-to-end autonomous driving (E2E-AD) aims to map raw sensor inputs (like camera feeds) directly to driving actions (steering, throttle, braking). Currently, Imitation Learning (IL)—where a model mimics expert human drivers—is the dominant paradigm. However, IL suffers from two fundamental flaws: distribution shift (compounding errors when the model drifts into unfamiliar situations) and causal confusion (where the model misassociates unrelated visual cues with driving actions, like assuming a dashboard indicator causes the car to move).

Reinforcement Learning (RL) naturally mitigates these issues by learning through trial-and-error interaction with the environment. Unfortunately, model-free RL is incredibly sample-inefficient, and existing Model-Based RL (MBRL) methods rely on compact, "privileged" ground-truth data (such as exact 3D bounding boxes and HD maps) that are unavailable during real-world deployment. Training a predictive world model directly from high-dimensional, noisy, and redundant raw multi-view video has previously been too difficult to converge.

Figure 1: Comparison of different training paradigms in end-to-end autonomous driving. (a) Imitation Learning suffers from causal confusion [1] and distribution shift [2]. Model-free Reinforcement Learning [3] faces efficiency problem and fails to converge. (b) Model-based Reinforcement Learning: There are no reported such works for raw sensor input E2E-AD as the raw data can be noisy and redundant, and Think2Drive [4] assumes the privileged ground truth data is given, which cannot be directly applied in real-world AD. (c) In Raw2Drive, we propose the first feasible model-based reinforcement learning paradigm for end-to-end autonomous driving. By leveraging low-dimensional, structured privileged input, our approach guides the learning of a world model from raw sensor data, effectively addressing the issues outlined in (a) and (b).

Methods

The authors introduce Raw2Drive, a dual-stream MBRL framework that bridges the gap between privileged information and raw sensor inputs through a two-stage training process.

1. Dual-Stream Architecture

  • Privileged Stream: Inputs low-dimensional, structured Bird's-Eye-View (BEV) semantic masks.
  • Raw Sensor Stream: Inputs multi-view camera images and IMU data, processed via a BEVFormer encoder to output grid-shaped BEV features.

2. Two-Stage Training Pipeline

  • Stage I (Privileged Training): The privileged world model (WM) and a paired neural planner are trained efficiently using ground-truth environment states.
  • Stage II (Raw Sensor Training): The raw sensor world model ($\hat{\text{WM}}$) and the end-to-end planner are jointly trained, explicitly guided by the pre-trained privileged WM.

3. The Guidance Mechanism

To avoid the computational nightmare of forcing the raw sensor model to reconstruct future video frames pixel-by-pixel, Raw2Drive introduces two guidance strategies:

  • Rollout Guidance: Aligns the spatial-temporal features and abstract states (both deterministic vehicle states and stochastic traffic behaviors) between the two streams during imaginary rollouts. Crucially, to prevent compounding errors from random sampling divergence, stochastic states are sampled only from the raw sensor stream's distribution and shared with the privileged stream.
  • Head Guidance: Directly training reward or continuation heads on raw sensor data fails because visually similar frames can have wildly different rewards (e.g., right before vs. during a collision). Raw2Drive bypasses this by completely omitting raw head training; instead, it uses the stable, accurate reward and continuation predictions from the privileged WM to train the raw sensor policy.
Figure 2: The Overall Pipeline of Raw2Drive. (a) During training, we use privileged input to train the privileged world model and paired policy. Then, the privileged world model is used to guide the training of the raw sensor stream. (b) During inference, only raw sensor inputs are available, which aligns with real-world autonomous driving. (c) The guidance mechanism consists of two parts: (I) Rollout Guidance to ensure future modeling consistency; (II) Head Guidance to ensure the supervision for raw sensor policy is accurate and stable.

Datasets

  • CARLA Simulator (v0.9.15.1): The primary closed-loop simulation environment.
  • CARLA Leaderboard 2.0 (Town13): Evaluated on long routes (7–10 km) containing 39 complex, real-world corner cases (e.g., ParkingExit).
  • Bench2Drive: A comprehensive benchmark featuring 220 short routes, each containing a distinct challenging corner case to isolate specific driving abilities like merging, overtaking, and emergency braking.
  • Dev10: A tiny validation subset of 10 carefully selected representative clips used for ablation studies.

Key Insights and Ideas

  • Feature Alignment Over Pixel Reconstruction: Instead of predicting future high-dimensional video frames (which wastes capacity on background details like clouds or textures), the raw sensor world model learns by aligning its latent features with the privileged model's structured BEV representations.
  • The Danger of Raw Reward Heads: Trying to map raw imagery directly to a scalar reward causes "perception confusion." Because adjacent video frames look nearly identical but can yield opposite rewards, borrowing the stable "heads" of the privileged model is essential for policy convergence.
  • Eliminating Sampling Randomness: In standard dual-stream architectures, independent sampling causes the two models to drift apart during long rollouts. Sampling once from the raw stream and feeding it to both models stabilizes the alignment.
Figure 4: Training of Raw Sensor World Model. During training, the spatial-temporal feature of the privileged world model serves as supervision instead of reconstructing multi-view video so that the learning could focus on decision related information. RSSM parameters are initialized from the privileged world model.

Key Results

  • SOTA on CARLA Leaderboard 2.0: Raw2Drive is the only RL-based end-to-end method successfully deployed on CARLA v2, achieving a Driving Score (DS) of 4.12 (Validation) and 3.56 (Devtest), outperforming top imitation learning methods like UniAD and DriveTrans.
  • Bench2Drive Dominance: On the Bench2Drive Closed-loop Benchmark, Raw2Drive achieved a 71.36 Driving Score and a 50.24% Success Rate, outperforming the best raw-sensor IL method (DriveAdapter, which scored 64.22 DS / 33.08% SR) by a large margin.
  • Compute Efficiency: Training the final planner requires only 64 H800 GPU days from scratch (and can be reduced to 40 days if reusing the privileged phase), making it significantly cheaper than many industrial imitation learning setups.

Limitations and Future Work

  • Dependency on Privileged Data During Training: While the model only uses raw camera feeds during inference, it strictly requires ground-truth bounding boxes and HD maps during training. Scaling this to real-world data requires highly accurate auto-labeling or human annotation.
  • Simulation Gap: The framework is currently bound to the CARLA simulator. The authors note that future work will need to explore real-world deployment or training within advanced generative world simulators (such as 3D Gaussian Splatting or diffusion-based simulators).

Summary updated

BibTeX
@inproceedings{yang2025raw,
  author = {Zhenjie Yang and Xiaosong Jia and Qifeng Li and Xue Yang and Maoqing Yao and Junchi Yan},
  title = {{Raw2Drive: Reinforcement Learning with Aligned World Models for End-to-End Autonomous Driving (in CARLA v2)}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=CAz7UGRdLs},
}
Figure