Abstract
Evaluating autonomous vehicles (AVs) in simulation requires traffic agents that are both realistic and reactive. Existing methods often struggle to balance realism with ease of control. We present CtRL-Sim, a framework that leverages return-conditioned offline reinforcement learning to generate controllable agent behaviors. By applying "exponential tilting" to predicted return distributions at inference time, users can intuitively adjust agent behaviors—such as increasing the likelihood of collisions or ensuring goal-reaching—without the need for expensive test-time optimization. CtRL-Sim achieves state-of-the-art realism while being significantly faster than diffusion-based alternatives.
Introduction
The safe deployment of autonomous vehicles depends on rigorous testing against "long-tail" edge cases, such as aggressive lane changes or sudden braking. While simulation offers a safe environment for such testing, creating realistic and reactive background agents remains a challenge. Traditional log-replay methods lack reactivity, while rule-based systems often appear robotic. Recent generative models, though realistic, are computationally expensive and difficult to control for specific adversarial scenarios. CtRL-Sim addresses these gaps by framing behavior simulation as a controllable offline reinforcement learning problem.
Methodology
CtRL-Sim utilizes a multi-agent Transformer architecture to model the joint distribution of agent actions and factorized returns.
Return-Conditioned Policy
Unlike standard RL that seeks a single optimal policy, CtRL-Sim trains a policy conditioned on specific reward components, such as goal progress, vehicle-to-vehicle distance, and road-edge proximity. This factorization allows for independent control over different aspects of driving behavior.
Exponential Tilting
At inference time, control is achieved through "exponential tilting." By adjusting a temperature parameter ($\kappa$), the model shifts the probability distribution of predicted returns. This allows for the generation of diverse behaviors—from highly safe to intentionally adversarial—by simply "tilting" the model's output toward desired or undesired outcomes.
Experimental Setup
The model was trained on the Waymo Open Motion Dataset (WOMD), processed through a physics-enhanced version of the Nocturne simulator. To improve performance in safety-critical scenarios, the model was fine-tuned on a curated dataset of ~3,500 collision scenarios generated via Closed-loop Adversarial Training (CAT). This exposure to edge cases allows the model to learn the dynamics of collisions that are rare in standard driving datasets.
Results and Discussion
CtRL-Sim demonstrates a significant improvement in both efficiency and controllability over existing baselines.
- Efficiency: CtRL-Sim is 5.4x faster than CTG++, a leading diffusion-based model, due to its direct forward-pass control mechanism that avoids iterative sampling.
- Realism: In user studies, CtRL-Sim's adversarial agents were rated as more realistic than those generated by specialized collision generators like CAT. This is largely because CtRL-Sim agents react dynamically to the ego vehicle's movements rather than following a fixed crash trajectory.
- Controllability: Adjusting the tilting parameter provides a smooth transition between behaviors. For instance, a strong negative tilt can increase collision rates by over 2x compared to the base model, while positive tilts ensure reliable goal-reaching.
Conclusion
CtRL-Sim provides a robust framework for generating reactive and controllable traffic agents for AV simulation. By repurposing offline RL as a generative tool, it enables the efficient creation of complex, safety-critical scenarios. Future work will focus on reducing inference latency through architectural optimizations like Flash Attention and exploring generative methods for initial scene configuration.
Summary updated