TL;DR
DiReCT introduces a lightweight post-training framework that fixes the blatant physics violations common in flow-matching video generators. By decomposing contrastive learning into macro (semantically distant) and micro (physics-perturbed) scales, it resolves the "gradient conflict" caused by text-physics entanglement. The result is a 1.3B parameter model that outperforms models nearly four times its size in physical commonsense benchmarks without sacrificing visual quality.
What Problem Does This Paper Address?
State-of-the-art video generators excel at producing visually stunning, temporally coherent videos. However, they frequently fail at basic physics: bouncing balls accelerate after impact, solid objects pass through each other, and heavy objects float unnaturally.
The root cause lies in the standard training objective. Traditional reconstruction losses (like pixel-level $\ell_2$ or conditional flow-matching) penalize frame-by-frame deviations uniformly. They fail to distinguish between a physically plausible trajectory and an impossible one.
While contrastive flow matching ($\Delta$FM) has been proposed to push apart incorrect trajectories, it fails in text-conditioned video generation due to semantic-physics entanglement. Because natural language prompts couple what is in the scene with how it moves, naive negative sampling draws random prompts that share significant velocity-field structure with the positive sample. The authors mathematically prove that this overlap creates a gradient conflict, where the contrastive gradient directly opposes the flow-matching reconstruction gradient, ultimately degrading model performance.
Methods
The authors introduce DiReCT (Disentangled Regularization of Contrastive Trajectories), a post-training framework that eliminates gradient conflict by splitting the contrastive signal into two distinct scales:
- Macro-Contrastive Learning (MaNS): To ensure clean global trajectory separation, the framework pools text embeddings and clusters the training prompts into $K=32$ semantic regions. Negatives are exclusively sampled from different clusters, ensuring minimal velocity-field overlap and avoiding gradient conflict.
- Micro-Contrastive Learning (MiNS): To teach the model fine-grained physical boundaries, DiReCT constructs "hard negatives." An LLM (Qwen2.5-7B-Instruct) perturbs a single physical axis of the anchor prompt while keeping the scene semantics identical. The base video model then renders this perturbed prompt into a physically incorrect video trajectory. The five targeted physical axes are:
- Kinematics (e.g., sudden vs. gradual motion)
- Forces (e.g., floating vs. sinking)
- Material (e.g., high vs. low viscosity)
- Interaction (e.g., sticking vs. bouncing)
- Magnitude (e.g., a droplet vs. a massive torrent)
- Distributional Anchoring: Fine-tuning runs the risk of catastrophic forgetting. DiReCT introduces a velocity-space analogue of the KL penalty against a frozen copy of the pretrained model, ensuring the model stays on the natural visual manifold while refining its physics.
Datasets
- Training: A curated subset of the WISA-80K dataset, consisting of 11,299 video-caption pairs annotated across 17 physical laws.
- Evaluation:
- VideoPhy: Assesses Semantic Adherence (SA) and Physical Commonsense (PC) across 344 prompts.
- WorldModelBench: Evaluates instruction following and fine-grained physics adherence (such as mass conservation and penetration) across 350 diverse physical scenarios.
Key Insights and Ideas
- The Geometry of Gradient Conflict: The paper provides a elegant mathematical proof showing that when positive and negative samples are semantically close, the inner product of the flow-matching and contrastive gradients becomes negative. This formalizes exactly why naive contrastive learning fails for text-to-video.
- Dual Benefit of Self-Generated Negatives: Because the hard negatives are generated by the base model itself, they contain both the targeted physics violation and the model's inherent generation artifacts (like flickering or texture drift). Pushing away from these trajectories simultaneously corrects physics and suppresses model artifacts.
- Natural Curriculum: As the model improves and the reconstruction error shrinks, the contrastive alignment condition becomes easier to satisfy. This creates an implicit curriculum where the model first locks down visual reconstruction, then sharpens its physical boundaries.
Key Results
The authors applied DiReCT to the Wan 2.1-T2V-1.3B base model.
- Physical Commonsense Leap: On VideoPhy, DiReCT improved the Physical Commonsense (PC) score by 16.7% relative to the baseline and 11.3% compared to standard Supervised Fine-Tuning (SFT).
- Efficiency vs. Scale: DiReCT achieved the highest total score on WorldModelBench (5.68), outperforming massive models like CogVideoX-5B (5.33) and Mochi (10B, 4.91), despite CogVideoX having $3.8\times$ and Mochi having $7.7\times$ the parameter count.
Limitations and Future Work
- Preprocessing Overhead: Generating the hard-negative videos requires an offline preprocessing step. For this study, it took roughly 13 GPU-hours on 4 H200 GPUs to generate the dataset.
- LLM Dependency: The quality of the micro-contrastive hard negatives depends heavily on the LLM's ability to strictly alter only one physical dimension without changing surrounding text semantics. The authors had to filter out candidates with low text-embedding cosine similarity to mitigate this.
Summary updated