RLFTSim: Realistic and Controllable Multi-Agent Traffic Simulation via Reinforcement Learning Fine-Tuning

Ehsan Ahmadi, Hunter Schofield, Behzad Khamidehi, Fazel Arasteh, Jinjun Shan, Lili Mou, Dongfeng Bai, Kasra RezaeeCVPR 2026

TL;DR

RLFTSim introduces a reinforcement learning-based fine-tuning framework that significantly improves both the realism and controllability of multi-agent traffic simulations. By transforming a sparse, population-based evaluation metric into a dense, low-variance reward signal called Meta-metric Leave-One-Out (MLOO), the framework achieves state-of-the-art simulation quality with high sample efficiency.

What Problem Does This Paper Address?

Building realistic traffic simulators is crucial for safely testing autonomous vehicles (AVs) in rare or dangerous edge-case scenarios. Most modern traffic simulators are trained using open-loop imitation learning (like behavior cloning), where agents learn to mimic human driving data step-by-step.

However, when these models are deployed in a closed-loop environment—where agents must continuously interact with one another—small errors accumulate rapidly. This distribution shift causes agents to drift into unrealistic states, leading to unnatural collisions or vehicles driving off the road. Furthermore, standard simulators act as "black boxes," making it difficult for developers to steer agents toward specific goals or generate targeted test scenarios without destroying the simulation's overall realism.

Methods

RLFTSim addresses these challenges through a closed-loop post-training framework built on top of a pre-trained traffic model (specifically, SMART-tiny).

Figure 1. Post-training with RLFTSim. For a seed scenario from the dataset multiple rollouts are generated. The main reward func- tion is defined based on time-independent distribution matching of the simulated scenarios and the expert demonstration in several feature spaces. Additionally the simulation model is forced to stay close to the pre-trained model with a KL-divergence regularization term.

The core methodological innovations include:

  1. Meta-metric Leave-One-Out (MLOO): The standard benchmark for traffic realism is the Waymo Realism Meta-Metric (RMM), which evaluates how well a group of 32 simulated rollouts matches real-world distributions across kinematic, interactive, and map-based features. Because RMM is population-based and sparse, it cannot be directly used as an RL reward. RLFTSim introduces MLOO, which calculates a dense, per-rollout reward by measuring each rollout's relative contribution to the overall RMM score ($RMM_{-j} - RMM_{-i}$).
  2. Goal-Conditioned Fine-Tuning (GCFT): To make the simulator controllable, the authors extend the model's observations to include target goals. They explore two representations: directly concatenating goal coordinates (cat) or using a binary indicator on map features to implicitly highlight the goal polyline (ind).
  3. Hindsight Experience Replay (HER): Because reaching specific spatial goals can be rare during exploration (leading to sparse rewards), the framework uses HER to retroactively turn achieved terminal states into alternative goals, drastically improving sample efficiency.

Datasets

The framework is trained and evaluated using the Waymo Open Motion Dataset (WOMD), the standard dataset for the Waymo Open Simulation Challenge (WOSAC). WOMD contains large-scale, high-fidelity, real-world driving trajectories that serve as the ground-truth distribution for the simulator's realism alignment.

Key Insights and Ideas

  • Distribution Matching > Step-by-Step Imitation: Minimizing traditional metrics like Average Distance Error (ADE) forces agents to strictly adhere to a single pre-recorded path. If an agent deviates slightly due to stochasticity, ADE provides poor corrective feedback. Directly optimizing a distribution-matching metric (RMM) allows agents to choose any realistic behavior given a critical situation.
  • Quadratic Variance Reduction: The authors mathematically prove and empirically validate that the MLOO formulation achieves a quadratic variance reduction ($O(1/N^2T)$) relative to the number of simulation rollouts ($N$).
Figure 2. Empirical reward variance of MLOO and RLOO on the validation set, computed over rollouts per scenario for varying N. Shaded regions represent ±1 std. in log space.

As shown in Figure 2, standard REINFORCE Leave-One-Out (RLOO) variance plateaus as more rollouts are added, whereas MLOO variance continues to drop sharply, providing a highly stable gradient for RL training.

Key Results

  • State-of-the-Art Realism: RLFTSim achieves a top-tier RMM score of 0.7867 on the private WOSAC test split, outperforming recent strong baselines like TrajTok, SMART-tiny CAT-K, and BehaviorGPT.
  • Effective Controllability: When evaluating goal-directed driving, the Indication, Soft variant achieved the lowest Passing Miss Rate of 9.180% (compared to 16.631% for the goal-free baseline) while maintaining an exceptionally high realism score (RMM of 0.7819).
Figure 3. Qualitative Evidence of RLFTSim Effectiveness. (a) Realism Enhancement: Comparison of baseline SMART-tiny (a-2) vs. RLFTSim (a-3) on a challenging intersection scenario. The baseline model generates unrealistic off-road behavior (red trajectory) and a collision with cross-traffic, while RLFTSim produces realistic lane-following behavior that respects traffic rules. (b) Controllability Distillation: Two sets of realistic simulation rollouts of the fine-tuned model are shown for a fixed seed scenario, conditioned on different goal points (magenta points): a U-turn goal (top row) and a left-turn goal (bottom row). In GCFT rollouts, the ego vehicle, depicted with an orange border, achieves the goal point while maintaining realistic interactions with other agents.

Qualitatively, as shown in Figure 3, RLFTSim successfully eliminates the unrealistic off-road driving and cross-traffic collisions generated by the baseline model (panel a). It also demonstrates clear steerability, successfully guiding the ego vehicle to distinct U-turn or left-turn goals based purely on the conditioned target (panel b).

Limitations and Future Work

Despite its strong performance, the authors note a few limitations:

  • Tokenization Delays: The underlying model chunks trajectories into half-second segments, which can occasionally reduce responsiveness in highly dynamic, fast-changing traffic scenarios.
  • Imperfect Controllability: While goal-reaching rates improved significantly, there is still room for improvement to guarantee exact trajectory execution.
  • Metric Saturation: The RMM is a proxy for realism; its saturation might partially reflect limitations or blind spots within the metric itself rather than perfect real-world alignment.

Future work includes exploring the application of the MLOO formulation to other population-based metrics outside of traffic simulation.

Summary updated

BibTeX
@inproceedings{ahmadi2026rlftsim,
  author = {Ehsan Ahmadi and Hunter Schofield and Behzad Khamidehi and Fazel Arasteh and Jinjun Shan and Lili Mou and Dongfeng Bai and Kasra Rezaee},
  title = {{RLFTSim: Realistic and Controllable Multi-Agent Traffic Simulation via Reinforcement Learning Fine-Tuning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=drwUOoHLcL},
}
Figure