DriveCamSim: Generalizable Camera Simulation via Explicit Camera Modeling for Autonomous Driving

Wenchao Sun, Xuewu Lin, Keyu Chen, Zixiang Pei, Yining Shi, Chuang Zhang, Sifa Zheng · Submission to ICLR 2026 · Rejected

TL;DR

Existing diffusion models for autonomous driving generate multi-view video by relying on implicit 2D attention, overfitting to specific camera rigs and frame rates. DriveCamSim bridges frames and viewpoints via explicit 3D physical world correspondences, allowing diffusion models to generalize across arbitrary camera parameters, extrapolate to higher video frequencies (e.g., generating 12Hz video from 2Hz training data), and retain fine-grained 3D geometry.

What Problem Does This Paper Address?

Evaluating vision-based autonomous driving systems requires diverse, controllable, closed-loop simulation. While 3D Gaussian Splatting and NeRFs offer high multi-view consistency, they require per-scene optimization and degrade heavily under large trajectory shifts. On the other hand, generative diffusion models scale well with data, but exhibit two critical flaws:

  1. Rigid Sensor & Temporal Overfitting: Prior models rely on vanilla 2D attention across views and frames. Consequently, they overfit to the exact camera configurations (focal lengths, extrinsics, view count) and fixed capture frequencies (e.g., 2Hz) of the training dataset.
  2. Information Loss in 3D Control: Existing conditioning either flattens 3D boxes into 2D perspective layouts (losing depth and vehicle orientation) or uses cross-attention (losing exact spatial/pose alignment relative to the camera).

Methods

DriveCamSim builds upon a pretrained latent diffusion model (Stable Diffusion v1.5) and replaces standard cross-view/temporal layers with physically grounded modules:

  • Explicit Camera Modeling (ECM): Instead of calculating cross-view attention purely in 2D image space, ECM projects query pixels along discrete depth anchors into 3D coordinates using known ego pose and camera calibration. These 3D points are reprojected onto target views (neighboring cameras, historical frames, or logged reference frames). A predicted depth distribution weights the aggregated features.
  • Overlap-Based View Matching (OVM): Rather than naively attending to adjacent camera indices, DriveCamSim dynamically chooses target views that have the highest 3D ray intersection with the query view, avoiding wasted computation during sharp turns.
  • Random Frame Sampling: The authors break chronological order during training by randomly sampling frames within a temporal window. This forces the network to learn actual 3D geometric transformations rather than relying on trivial frame-to-frame copy mechanisms.
  • Information-Preserving Control:
  • Identity-Aware 3D Bounding Boxes: 3D boxes are embedded with geometric features, class semantics, and keypoint appearance features sampled from historical frames to preserve vehicle appearance over time.
  • Bilinear Scatter Injection: Instead of direct latent addition or cross-attention, predicted 3D keypoints are projected onto the latent canvas, and condition features are bilinearly scattered into the feature map.
       Query Pixel (2D)
              │ (Back-project via Depth Anchors)
              ▼
       3D Anchor Points
              │ (Project via Target Camera & Ego Pose)
              ▼
 Target View Pixel Correspondences (Filtered & Depth-Weighted)

Datasets

  • nuScenes: Primary benchmark (700 training scenes, 150 validation scenes, 6 camera views sampled at 2Hz).
  • nuPlan: Used to test cross-dataset generalization across distinct camera rigs (8 cameras) and urban environments.
  • W-CODA: Evaluated for temporal consistency using the Fréchet Video Distance (FVD) metric.

Key Insights and Ideas

  • 3D as an Invariant Bridge: Projecting pixels into 3D physical coordinates removes the model's dependency on specific 2D camera geometry. The model learns to synthesize views conditioned on camera transformation matrices rather than memorizing sensor layout patterns.
  • Temporal Extrapolation: Decoupling temporal attention from fixed chronological deltas allows models trained strictly on low-frequency data (2Hz) to render smooth, high-frequency videos (12Hz) or even synthesize sequences in reverse time.
  • Bilinear Scattering Prevents Ambiguity: By scattering 3D box embeddings back to projected 2D coordinates instead of projecting 2D masks upfront, the network preserves critical metric depth and yaw heading.

Key Results

  • Generation Quality & Controllability: On nuScenes, DriveCamSim achieves an FID of 14.07 (down to 7.86 when using reference frames), outperforming baselines like MagicDrive (16.20) and Bench2Drive-R (10.95). In multi-view 3D object detection on generated scenes (via BEVFusion), it scores 23.87 NDS / 12.75 mAP (and 26.55 NDS / 14.47 mAP with reference frames).
  • Temporal Tracking: Evaluated via StreamPETR, DriveCamSim achieves 39.49 NDS (standalone) and 44.16 NDS (with reference), significantly beating MagicDrive (35.51 NDS). On W-CODA, it achieves an FVD of 195.58, outperforming DreamForge (224.76).
  • Sensor Generalization:
  • Under synthetic camera perturbations (Table 3), the downstream SparseDrive planner experiences virtually zero drop in performance (36.44 NDS original vs. 35.80 NDS perturbed).
  • A model trained strictly on nuPlan (8 cameras) generates usable driving views conforming to the nuScenes layout (6 cameras), scoring 16.26 NDS zero-shot and boosting joint performance to 38.23 NDS.

Limitations and Future Work

  • Sensitivity to Large Extrinsic Perturbations: While the model handles small angle and translation shifts smoothly, large perturbations (particularly heavy roll/pitch or translation along the $x$- and $z$-axes) cause visual degradation.
  • Multi-View Consistency Gap: Although superior to prior 2D generative baselines, DriveCamSim does not achieve the pixel-perfect geometric multi-view consistency of dedicated 3D rendering approaches (NeRF / 3D-GS).
  • LiDAR-Free Trade-off: The pipeline does not require LiDAR or explicit metric depth, relying on discrete depth anchors, which can introduce slight depth blur in complex geometries.

Summary updated

BibTeX
@misc{sun2025drivecamsim,
  author = {Wenchao Sun and Xuewu Lin and Keyu Chen and Zixiang Pei and Yining Shi and Chuang Zhang and Sifa Zheng},
  title = {{DriveCamSim: Generalizable Camera Simulation via Explicit Camera Modeling for Autonomous Driving}},
  year = {2025},
  eprint = {2505.19692},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.19692},
}
Figure