TL;DR
ECoSim introduces a lightweight, data-efficient adaptation framework that adds multi-modal control (sketches, text, or behavior latents) to frozen, pretrained traffic simulation models. By using identity-initialized feature modulation, ECoSim achieves strong controllability and generates realistic counterfactual scenarios using less than 1% of the paired control data.
What Problem Does This Paper Address?
Testing autonomous vehicles (AVs) requires simulating realistic traffic environments. Crucially, developers need controllable simulations to construct "what-if" counterfactual scenarios and test how an AV reacts to specific, long-tail behaviors (like an aggressive cut-in or a sudden U-turn).
However, existing traffic simulation models face a difficult trade-off. Inference-time guidance methods offer flexibility but introduce heavy computational overhead during sampling. On the other hand, direct conditioning methods—which retrain large generative models from scratch to accept control signals—require massive amounts of paired, annotated data and expensive retraining for every new control modality.
ECoSim addresses this gap by enabling multi-modal control over state-of-the-art pretrained traffic models without retraining their core backbones, achieving high data efficiency and preserving the models' original driving realism.
Methods
ECoSim introduces a model-agnostic control adaptation architecture that keeps the base traffic model's parameters frozen. It injects control signals at the decoder level using Feature-wise Linear Modulation (FiLM) layers.
The framework stands on three core technical pillars:
- Identity-Preserving Initialization: The FiLM layers are initialized such that the scaling factor $\gamma \approx 1$ and the shift factor $\beta \approx 0$. This ensures that at the start of training, the model behaves exactly like the unconditioned base model, preventing early training perturbations from destroying the model's learned driving priors.
- Multi-Modal Encoders: ECoSim maps different raw control inputs into a unified 256-dimensional embedding space. It supports:
- Sketches: Coarse spatial waypoints processed via a temporal transformer.
- Text: Natural language commands processed via a frozen DistilBERT model with LoRA adapters.
- Behavior Latents: High-level interaction styles extracted using a newly introduced BehaviorVAE, which jointly encodes multi-agent trajectories and scene context into a smooth, regularized latent space.
- Context-Aware Scenario Transfer: To generate counterfactuals safely, ECoSim uses a retrieval pipeline that matches query agents with environmentally compatible donor scenes from the dataset based on historical trajectories and map geometry.
Datasets
The authors evaluated ECoSim on the Waymo Open Motion Dataset (WOMD) following the closed-loop protocol of the Waymo Open Sim Agents Challenge (WOSAC).
- The BehaviorVAE was trained separately on 10,000 WOMD training scenarios.
- Text descriptions for evaluation were derived from the ProSim-Instruct-520k dataset.
Key Insights and Ideas
- Identity Initialization is Essential: Standard random initialization of adapters severely disrupts the base model's realism early in training. Identity initialization allows the framework to gradually learn control modulations without destabilizing multi-agent interactions.
- Extreme Data Efficiency: The scaling curves reveal that performance saturates at around 10% data, matching a full-data fine-tuning baseline. Remarkably, with just 0.01% of paired data for Latent control and 0.1% for Sketch control, the adapters achieve performance close to models trained on the full dataset.
- Context-Awareness Prevents Collisions: Simply forcing a behavior onto an agent in an arbitrary scene often results in highly unrealistic collisions. By using the context-match retrieval pipeline, ECoSim ensures that transferred behaviors align naturally with the target scene's road topology.
Key Results
The authors validated ECoSim across two different backbone architectures: VBD (a diffusion-based model) and SMART (an autoregressive model).
Using only 1% of paired control data, ECoSim achieved:
- Massive Error Reduction: Cut control error (measured by minimum Average Displacement Error, or mADE) by up to 83% on the SMART backbone and 65% on the VBD backbone.
- Realism Boost: Improved the overall WOSAC Meta score by 0.02–0.03 absolute points compared to unconditional baselines.
- Baseline Comparison: When applied to a ProSim backbone, ECoSim with 1% data achieved sketch controllability comparable to the original ProSim model trained on 100% data, and delivered significantly stronger text controllability.
Limitations and Future Work
Despite its success, ECoSim exhibits a few limitations:
- Safety vs. Control Trade-off: When a user-specified instruction strongly conflicts with the surrounding traffic context (e.g., forcing a stop instruction with a vehicle tailgating closely behind), the model sometimes prioritizes satisfying the control signal over reactive safety, leading to sudden brake or at-fault collisions.
- Single-Agent Focus: The current experiments primarily focus on controlling a single target agent at a time.
The authors suggest that future work will explore reinforcement learning fine-tuning to better balance instruction adherence with reactive safety, as well as extending the framework toward coordinated multi-agent control.
Summary updated