NS-Diff: Fluid Navier–Stokes Guided Video Diffusion via Reinforcement Learning

Zijun Deng, Yuxin PengCVPR 2026

TL;DR

Current video diffusion models generate visually stunning results but frequently violate basic physical laws, causing rigid objects to warp or fluids to disappear. NS-Diff solves this by treating video denoising as a physics-constrained reinforcement learning problem, enforcing a minimum-jerk principle for rigid bodies and a Navier-Stokes approximation for fluids directly within the latent space. This approach significantly improves physical realism and motion consistency without requiring heavy, slow external simulators.

What Problem Does This Paper Address?

State-of-the-art video generation models (like Sora) excel at capturing textures and style, but they lack an intrinsic understanding of physics. As a result, they often produce glaring physical anomalies: a plastic chair might bend like rubber when lifted, or poured sand might unnaturally morph and vanish.

Existing methods to fix this either rely on explicit, computationally expensive 3D physics simulators or fail to strictly enforce physical laws during generation. NS-Diff addresses this gap by integrating lightweight, differentiable physical constraints directly into the latent denoising process of Diffusion Transformers (DiTs), ensuring that generated motions remain physically plausible.

Methods

NS-Diff reformulates the diffusion denoising trajectory as a physics-constrained Markov Decision Process (MDP) optimized via Proximal Policy Optimization (PPO). The framework operates in three distinct stages:

  1. Physical Attribute Detection: Because estimating motion directly from noisy latents is highly inaccurate, the model decodes intermediate latents ($z_t$) into low-resolution RGB proxies. A noise-calibrated optical flow network (ARFlow) estimates velocity fields, compensates for camera motion, and segments the scene into rigid regions (using affine motion residuals) and fluid regions (using divergence and curl thresholds).
  2. Physics-Conditioned Latent Injection (PCLI): The extracted physical properties—velocity fields, deformation gradients, and material embeddings—are tokenized and injected into the DiT denoiser's intermediate layers via cross-attention. An adaptive gating mechanism controls the influence of these features.
  3. Reinforcement Learning Optimization: The DiT denoiser acts as a stochastic policy. PPO refines this policy using physics-based rewards: a minimum-jerk penalty minimizes high-frequency oscillations for rigid bodies, while a lightweight Navier-Stokes penalty enforces fluid continuity and incompressibility.

Crucially, the authors introduce an Adaptive Activation Scheduler. Early in the denoising process, noise is too high for reliable motion estimation, so the scheduler shuts off the physics guidance. As denoising progresses and structure emerges, the physics rewards are smoothly activated to guide the final trajectory.

Figure 2. Our framework enhances video diffusion via three stages: (1) Physical Attribute Detection: noise-robust optical flow estimates motion cues and object regions; (2) Physics-Conditioned Generation: motion dynamics are encoded into latent representations and injected into the DiT through adaptive cross-attention; (3) Reinforcement Learning Optimization: policy gradients enforce rigid jerk and fluid divergence constraints. An adaptive scheduler activates physics guidance based on noise levels.

Datasets

  • PhysVideoBench: A new benchmark curated by the authors to evaluate the physical accuracy of video generative models. It consists of 10,000 video clips (9,000 for training, 1,000 for testing) featuring diverse physical dynamics, densely annotated with object masks, material types, and ground-truth motion data.
  • UCF-101 and WebVid-10M: Standard video datasets used to evaluate general video quality, temporal consistency, and open-world generalization capabilities.

Key Insights and Ideas

  • Physics as a Differentiable Reward: Instead of forcing a generative model to interface with a rigid, non-differentiable graphics engine, NS-Diff proves that basic physical principles (like mass conservation and motion smoothness) can be formulated as differentiable loss functions to guide latent trajectories via RL.
  • Timing is Everything: Enforcing physical constraints too early in the diffusion process introduces destructive gradients because the model hasn't even established the basic layout of the scene. Waiting until the noise drops ensures the physical guidance refines actual motion rather than fighting random noise.
  • Emergent Material Semantics: t-SNE visualizations of the model's learned material embeddings revealed that the network autonomously clustered fine-grained physical categories (e.g., separating high-viscosity fluids from granular materials, and matte objects from transparent ones) without explicit supervision.

Key Results

  • Quantifiable Physical Improvements: On the PhysVideoBench dataset, NS-Diff reduced rigid-body jerk errors by 43% and fluid divergence errors by 33% compared to baseline models.
  • Enhanced Visual Quality: Enforcing physical laws did not degrade visual quality; instead, it improved the Fréchet Video Distance (FVD) by 22.7%, proving that physical plausibility is deeply tied to perceived visual realism.
  • Artifact Mitigation: Qualitative evaluations showed that NS-Diff successfully eliminated common generative glitches, such as objects suddenly splitting, merging, or disappearing entirely.
Figure 1. Existing methods like Sora [4] introduce physically implausible deformations (highlighted by red circles), while NS-Diff pre- serves rigid structures (the plastic chair) and more realistic fluid-like sand behavior.

Limitations and Future Work

  • Simplified Proxies: The minimum-jerk prior is a heuristic for smoothness rather than a complete mechanical model. As a result, NS-Diff does not explicitly model complex, discrete physical events like collisions, friction, or multi-object impacts.
  • Computational Overhead: Decoding latents to low-resolution RGB proxies to calculate optical flow introduces a minor training overhead (~8%), though this is significantly faster than running full physics simulations. Future work could explore estimating these properties entirely within the latent space.

Summary updated

BibTeX
@inproceedings{deng2026ns,
  author = {Zijun Deng and Yuxin Peng},
  title = {{NS-Diff: Fluid Navier–Stokes Guided Video Diffusion via Reinforcement Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=wxbbqX4Wdq},
}
Figure