RIFT: Group-Relative RL Fine-Tuning for Realistic and Controllable Traffic Simulation

Keyu Chen, Wenchao Sun, Hao Cheng, Sifa Zheng

TL;DR

RIFT bridges the long-standing gap between realism and controllability in traffic simulation by introducing a dual-stage "pre-training and fine-tuning" framework. By combining imitation learning on real-world data with a novel group-relative reinforcement learning fine-tuning strategy, RIFT corrects closed-loop distribution drift while preserving diverse, natural driving styles.

What Problem Does This Paper Address?

Testing autonomous vehicles (AVs) requires realistic and controllable traffic simulations. Currently, researchers are stuck choosing between two imperfect paradigms:

  1. Data-driven simulators use imitation learning (IL) on real-world datasets to replicate natural driving behaviors. However, they suffer from covariate shift—errors accumulate during closed-loop testing because the simulator drifts into states not covered in the training data. They also rely on simplified physics.
  2. Physics-based simulators provide high-fidelity interactions and precise control via reinforcement learning (RL), but they lack expert human demonstrations, often resulting in robotic, unnatural traffic behavior.
Figure 1: Traffic Simulation across Different Platforms. (a) Data-driven Simulator: employs imitation learning to replicate real-world driving behaviors, but suffers from covariate shift and simplified dynamics; (b) Physics-based Simulator: enables controllable scenario construction via high-fidelity closed-loop interaction, but lacks large-scale real-world data; (c) Our framework: combines IL pre-training in a data-driven simulator to ensure realism with RL fine-tuning in a physics-based simulator to enhance controllability.

The authors tackle this fundamental trade-off, aiming to create a simulation that is simultaneously realistic (behaves like real humans) and controllable (can be adjusted to represent aggressive, normal, or conservative driving styles) without breaking down in closed-loop settings.

Methods

The authors propose a dual-stage, AV-centric simulation framework inspired by the alignment process of Large Language Models (LLMs):

  • Stage 1: Imitation Learning Pre-training: A planning model (based on the open-source Pluto architecture) is trained on real-world data to generate realistic, multimodal trajectories conditioned on route reference lines. This establishes trajectory-level realism and route-level compliance.
  • Stage 2: Group-Relative RL Fine-Tuning (RIFT): To adapt the model to a physics-based simulator without destroying its learned realism, the authors introduce RIFT.
Overview of the RIFT framework, highlighting route-level interaction analysis and group-relative fine-tuning.

Key algorithmic innovations in RIFT include:

  • Asymmetry-Aware Fine-Tuning: The authors observe that covariate shift affects model components unevenly. The trajectory generation head remains robust because it is bound to route geometry, but the scoring head (which selects the best trajectory) degrades. RIFT freezes the generation head to lock in realism and fine-tunes only the scoring head.
  • Group-Relative Formulation: Inspired by GRPO (Group Relative Policy Optimization) used in LLMs, RIFT samples a group of candidate trajectories for Critical Background Vehicles (CBVs), simulates them forward, and scores them against a reward function. It optimizes based on the relative advantage within the group rather than an absolute baseline.
  • Equal-Weight Objective: Instead of standard old-policy importance sampling, RIFT weights candidates equally during updates to prevent mode collapse and preserve behavioral diversity.
  • Dual-Clip Stabilization: To prevent extreme negative updates from destabilizing the policy when the standard KL-divergence penalty is removed, a dual-clip surrogate objective bounds the policy updates.

Datasets

  • nuPlan: A massive, real-world driving dataset used to pre-train the imitation learning base model (Pluto) to capture natural human driving patterns.
  • CARLA (via Bench2Drive): A high-fidelity, physics-based simulator used for the closed-loop RL fine-tuning stage and downstream AV evaluation.

Key Insights and Ideas

  • The LLM Alignment Parallel: Just as LLMs are pre-trained on internet text to understand language and then fine-tuned (via RLHF/GRPO) to be safe and helpful, traffic models can be pre-trained on driving logs for realism and fine-tuned via RL for closed-loop stability and style control.
  • Don't Fix What Isn't Broken: Fine-tuning an entire network with RL often destroys the subtle nuances of human behavior because reward functions are mathematically coarse. Freezing the trajectory generator and only training the selection mechanism (scoring head) acts as a powerful regularizer for realism.
  • Evaluating Rollouts, Not Raw Plans: Instead of scoring static trajectory predictions, RIFT runs a brief forward physics simulation for all candidate paths. This bridges the "plan-rollout deviation" gap caused by vehicle dynamics.

Key Results

RIFT significantly outperforms both pure IL/RL methods and prior hybrid fine-tuning techniques across kinematic, interaction, and map compliance metrics:

  • Realism & Interactivity Balance: While supervised methods (like SFT-Pluto) are overly conservative, RIFT achieves high driving efficiency (Route Progress of 995.33) while maintaining realistic speed and acceleration distributions.
  • Style Controllability: By tweaking the reward function weights, RIFT successfully shifts traffic behavior from "Normal" to "Aggressive" (inducing assertive overtaking maneuvers) without causing the model to behave erratically.
Qualitative comparison of RIFT's style-level controllability (Aggressive vs. Normal).
  • Downstream AV Stress-Testing: When used to generate scenarios to evaluate modern learning-based AV planners (PlanT, UniAD, VAD), RIFT exposed critical weaknesses, causing the steepest drops in driving scores ($\Delta DS$ of -20.99 for UniAD and -26.54 for VAD) compared to any baseline, proving its utility as a robust evaluation tool.

Limitations and Future Work

  • Bounded Realism: Because the generation head is frozen during RL fine-tuning, the absolute quality and creativity of the trajectories are capped by the capabilities of the Stage 1 IL pre-trained model.
  • Simulation-to-Real Gap: Fine-tuning heavily within a physics simulator like CARLA risks overfitting the scoring head to that specific simulator's quirks, potentially harming real-world transferability.
  • Execution-Level Discomfort: The authors note that while the high-level trajectories are realistic, low-level tracking controllers (like PIDs) in CARLA introduce jerkiness and tracking instability, leading to high "uncomfortable rates" during execution. Future work will look into tighter integration of low-level control loops during fine-tuning.

Summary updated

BibTeX
@misc{chen2025rift,
  author = {Keyu Chen and Wenchao Sun and Hao Cheng and Sifa Zheng},
  title = {{RIFT: Group-Relative RL Fine-Tuning for Realistic and Controllable Traffic Simulation}},
  year = {2025},
  eprint = {2505.03344},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.03344},
}
Figure