Composing Driving Worlds through Disentangled Control for Adversarial Scenario Generation

Yifan Zhan, Zhengqing Chen, Qingjie Wang, Zhuo He, Muyao Niu, Xiaoyang Guo, Wei Yin, Weiqiang Ren, Qian Zhang, Yinqiang ZhengarXiv 2026

TL;DR

CompoSIA is a novel diffusion-based driving video simulator that achieves fine-grained, disentangled control over scene structure, object identity, and ego-vehicle actions. By separating these factors, it allows researchers to systematically compose rare, adversarial safety-critical edge cases to stress-test autonomous driving planners.

What Problem Does This Paper Address?

Testing autonomous driving (AD) systems requires exposure to safety-critical edge cases—like a truck suddenly cutting in or a vehicle skidding laterally. However, these scenarios are naturally rare in real-world driving logs, forming a "long tail" distribution.

While generative world models can synthesize driving videos, existing approaches suffer from entangled control. If you try to modify the ego-vehicle's trajectory, the model might inadvertently alter the appearance of surrounding cars or distort the background. The authors liken this to a "puppeteer pulling tangled strings." To safely and reliably generate adversarial scenarios, a simulator must be able to independently manipulate scene layouts (structure), what objects look like (identity), and how the ego-vehicle moves (action).

Fig. 1: CompoSIA is a powerful simulator for synthesizing rare driving scenes. While existing driving world models focus on generat- ing, we enables explicit control over structure, identity, and ego action.

Methods

CompoSIA builds on a Flow Matching-based Diffusion Transformer (DiT) backbone, initialized from the open-source Wan2.1 model. To achieve independent control, the authors introduce three explicit, factor-specific conditioning branches:

  1. Spatiotemporal Layouts (Structure Control): 3D bounding boxes of dynamic and static elements are converted into 3D polylines and projected onto the 2D image plane using camera intrinsics and extrinsics. These are injected into the DiT via a lightweight convolutional adapter and zero-initialized projection layers.
  2. Noise-Level Identity Injection (Identity Control): To change an object's appearance using just a single reference image, CompoSIA uses a "select-and-repaint" strategy. During the high-noise stages of the diffusion process ($t > T_{id}$), the target region's latents are forcefully replaced with the noisy latents of the reference image. This guides the model to preserve semantic identity while allowing the object's pose to naturally conform to the 3D layout during the later denoising stages.
  3. Hierarchical Dual-Branch Action Conditioner (Action Control): Ego-motion is controlled via two complementary branches:
  4. Local Residual Modulation: Uses adaptive layer normalization (AdaLN) to inject frame-to-frame relative transformations, accelerating early-stage learning.
  5. Global PRoPE Attention: Uses Projective Positional Encoding (PRoPE) to provide long-range trajectory context. To save compute, video tokens are projected into a lower-dimensional subspace ($1/8\times$) before computing camera-conditioned attention.
Fig. 2: Overview of the CompoSIA framework. During training (top), structure, identity, and ego-action signals are explicitly decomposed and injected into a Flow Matching–based DiT backbone in a disentangled yet compositional manner. During sampling (bottom), different combinations of conditions enable controllable driving video generation, supporting multiple editing applications.

Datasets

The model was trained and evaluated using:

  • nuScenes: 700 multi-view videos for training and 150 for validation.
  • Internal Dataset: 100 hours of internal, multi-view autonomous driving data to capture a wider variety of element types and high-speed scenarios.

Videos were trained at 10 Hz using a mixed-resolution strategy ($33 \times 256 \times 512$ and $33 \times 480 \times 960$ clips).

Key Insights and Ideas

  • The Trajectory Leakage Problem: The authors discovered that structural layouts implicitly leak ego-action information (e.g., if all surrounding vehicles move backward in the frame, the model infers the ego-vehicle is moving forward). To prevent this from biasing the model, structure cues are always paired with action conditioning during training.
  • Timing is Everything for Identity: Hard-replacing latents with the reference identity at low-noise stages ruins video quality. Stopping the identity injection at a practical trade-off threshold ($T_{id} = 0.4$) balances editing freedom (allowing the car to turn and change poses) with strict identity preservation.
  • Subspace Attention Saves Compute: Because camera trajectories are inherently low-dimensional, performing global PRoPE attention in a compressed token subspace eliminates massive computational overhead without sacrificing action precision.
The hierarchical dual-branch action conditioning design combines local residual modulation and global PRoPE attention.

Key Results

CompoSIA significantly outperforms state-of-the-art baselines (such as MagicDrive-V2, DriveEditor, and Vista) across multiple dimensions:

  • Identity Control: Achieved a 17% improvement in Fréchet Video Distance (FVD) compared to baselines, maintaining strong identity fidelity even under complex illumination changes (like driving through tunnels).
  • Action Controllability: Reduced rotation errors by 30% and translation errors by 47% during action-following tasks.
  • Downstream Stress-Testing: The authors used CompoSIA to generate adversarial modifications of clean nuScenes logs and tested an end-to-end planner (Epona). The edited scenarios successfully exposed planner vulnerabilities, causing the average 3-second collision rate to spike by 173% overall (and up to 390% for structural edits like sudden cut-ins).

Limitations and Future Work

  • Out-of-Distribution Categories: Because the training data consists entirely of driving scenes, the identity editing pipeline struggles to generalize to completely out-of-distribution categories, such as animals or unusual objects.
  • Semi-Automatic Bounding Boxes: When inserting a new object via a reference image, users must still specify an approximate 3D bounding box size. While currently assisted by a Large Language Model (Gemini), the process is semi-automatic. Future work will focus on developing fully automated spatial grounding and interactive refinement interfaces.

Summary updated

BibTeX
@misc{zhan2026composing,
  author = {Yifan Zhan and Zhengqing Chen and Qingjie Wang and Zhuo He and Muyao Niu and Xiaoyang Guo and Wei Yin and Weiqiang Ren and Qian Zhang and Yinqiang Zheng},
  title = {{Composing Driving Worlds through Disentangled Control for Adversarial Scenario Generation}},
  year = {2026},
  eprint = {2603.12864},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.12864},
}
Figure