Pretrained Video Models as Differentiable Physics Simulators for Urban Wind Flows

Janne Perini, Rafael Bischof, Moab Arar, Ayça Duran, Michael A. Kraus, Siddhartha Mishra, Bernd BickelarXiv 2026

TL;DR

WinDiNet repurposes a 2B-parameter pretrained video diffusion model into a fast, end-to-end differentiable physics simulator for urban wind flows. By generating full 112-frame fluid dynamics rollouts in under a second, it outperforms traditional neural PDE solvers and enables direct gradient-based optimization of building layouts for pedestrian comfort and safety.

What Problem Does This Paper Address?

Urban wind flows significantly impact pedestrian safety and comfort, but evaluating them traditionally relies on Computational Fluid Dynamics (CFD) simulations, which take minutes to hours per design. This high computational cost prevents thorough design exploration. Furthermore, standard CFD solvers are non-differentiable, meaning they cannot provide gradients to guide designers on how to alter a building layout to mitigate dangerous wind conditions.

While existing deep-learning surrogates offer massive speedups, they usually predict steady-state or time-averaged fields. This misses transient gusts that threaten pedestrian safety. Temporal neural PDE solvers exist, but they struggle to maintain accuracy over long time horizons due to error accumulation.

Methods

The authors introduce WinDiNet (Wind Diffusion Network), built on top of LTX-Video, a pretrained 2B-parameter latent video transformer. To adapt a model trained on natural videos for physics simulation, they implement several key innovations:

  • Physical-to-RGB Encoding: The horizontal ($u$) and vertical ($v$) wind velocities are mapped to the red and green channels of an RGB image, while the blue channel represents the fluid mask (open space vs. building).
  • Physics-Informed VAE Adaptation: Instead of using the frozen VAE designed for natural videos, they fine-tune the VAE decoder using a physics-informed loss function. This loss combines standard reconstruction error with a divergence penalty (to enforce incompressibility) and a wall no-penetration penalty.
  • Scalar Conditioning: They replace the text encoder with a learnable embedding module that injects continuous physical parameters (inlet speed and domain size) using Fourier features and a small MLP.
  • Differentiable Inverse Optimization: Because the entire pipeline is differentiable, they pair WinDiNet with a soft rasterizer. This allows them to compute gradients from a wind comfort loss function all the way back to the continuous coordinates of the buildings, enabling automated layout optimization via backpropagation.
Figure 1: Overview of the proposed framework. (a) Procedurally generated urban layouts are simulated with a 2D incompressible Euler solver to produce training data. (b) A latent diffusion model with a physics-informed VAE is trained to generate wind field sequences conditioned on building footprint, inlet speed uin, and domain size L. (c) At inference, the model generates horizontal and vertical velocity fields (u, v) and enables gradient-based inverse optimization of building layouts.

Datasets

The authors generated a new dataset consisting of 13,000 2D incompressible wind flow simulations over procedurally generated urban layouts using an incompressible Euler solver.

  • The dataset is split into 10,000 training, 1,000 validation, and 2,000 test simulations.
  • Each simulation spans 112 seconds of physical time, recorded as 112 velocity snapshots at $256 \times 256$ resolution.
  • Parameters vary across inlet wind speeds ($0.1$ to $20$ m/s) and domain sizes ($900$ to $1400$ m).

Key Insights and Ideas

  • Video Priors Transfer to Quantitative Physics: Pretrained video models already possess strong internal priors about motion, continuity, and boundaries. When properly fine-tuned, these priors don't just generate visually plausible fluids; they yield quantitatively accurate physical simulations that beat purpose-built neural PDE solvers.
  • The VAE is the Bottleneck: Standard VAEs introduce severe artifacts when compressing pseudo-colored physical fields. Fine-tuning the decoder with physics-informed constraints (like conservation of mass) is crucial to unlocking high-fidelity results.
  • Text is Too Imprecise for Physics: Replacing natural language prompts with direct scalar embeddings via Fourier mapping significantly improves both accuracy and efficiency, as text encoders aren't built to handle continuous physical quantities precisely.
  • Classifier-Free Guidance (CFG) Hurts Physics: While CFG makes natural videos sharper and more visually appealing, it distorts the exact mapping required for physical parameters, meaning it should be disabled for scientific surrogates.

Key Results

  • Massive Speedup: WinDiNet generates a full 112-frame rollout in approximately 0.32 seconds on a single NVIDIA H200 GPU—roughly three orders of magnitude faster than traditional CFD solvers.
  • State-of-the-Art Accuracy: WinDiNet outperforms six specialized neural operator baselines (including FNO, OFormer, and RNO), achieving the lowest Variance-Normalized RMSE (VRMSE) of 0.520 (compared to RNO's 0.563).
  • Successful Layout Optimization: In inverse design experiments, the gradient-based optimizer successfully rearranged building layouts to mitigate dangerous wind conditions. For instance, in a single-inlet test, dangerous wind speeds ($>15$ m/s) were reduced from 2.6% to 0.2%, with all improvements verified by ground-truth CFD.

Limitations and Future Work

  • 2D Limitation: The current framework operates strictly in 2D. While extending it to 3D is conceptually straightforward (e.g., encoding building heights as continuous values), generating the required 3D urban CFD training data would be computationally demanding.
  • Temporal Extrapolation: While the model can generate rollouts beyond its 112-frame training horizon due to its rotary position embeddings (RoPE), very long sequences tend to lose fine-grained details and drift toward time-averaged predictions.
  • Data Bottleneck: The performance of the model is highly dependent on the diversity and quality of the training dataset, making data generation the primary bottleneck for scaling to more complex environments.

Summary updated

BibTeX
@misc{perini2026pretrained,
  author = {Janne Perini and Rafael Bischof and Moab Arar and Ayça Duran and Michael A. Kraus and Siddhartha Mishra and Bernd Bickel},
  title = {{Pretrained Video Models as Differentiable Physics Simulators for Urban Wind Flows}},
  year = {2026},
  eprint = {2603.21210},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.21210},
}
Figure