Team Ai
Modelpublic

athul020/PhysicsDrivenWorld

sourceHugging Faceapache-2.0updated 7mo agoView on Hugging Face
0likes
Model Card

PhysicsDrivenWorld (PDW)

Physics-Corrected Video Generation via Warp-Guided LoRA Fine-Tuning

CogVideoX-2b + LoRA (r=16) · NVIDIA Warp Physics · Single H100 NVL

Key Result

MetricBase CogVideoX-2bPDW (Ours)Improvement
Diffusion MSE — test_medium2.26760.3861+83.0%
Diffusion MSE — testveryhigh2.27630.3790+83.4%
Average2.2720.383+83.2%

The fine-tuned model predicts noise on physics-correct reference frames 83.2% more accurately than the base model, confirming that the Warp physics prior was successfully injected into the denoising weights.


Model Description

PhysicsDrivenWorld (PDW) fine-tunes CogVideoX-2b using Low-Rank Adaptation (LoRA) supervised by an NVIDIA Warp rigid-body physics simulator.

Modern video diffusion models generate visually plausible but physically inconsistent results — objects float, bounce unrealistically, or violate Newton's laws. PDW injects a physics prior into the model's denoising weights by training on Warp-simulated ground-truth trajectories.

The training objective is standard diffusion denoising MSE, but applied exclusively to frames that are physically correct by construction from the Warp simulator — so the model learns to denoise physics-consistent content better than physics-inconsistent content.


Architecture

ComponentDetails
Base ModelCogVideoX-2b (2B parameter text-to-video diffusion transformer)
AdapterLoRA — rank r=16, alpha=32
Target Modulesto_q, to_k, to_v, to_out.0 (attention projections)
Trainable Params~3.7M of 2B total (0.185%)
Physics EngineNVIDIA Warp 1.11.1 — GPU-accelerated rigid body simulator
SimulationSemi-implicit Euler, 60 Hz, ground collision with restitution
Training LossDiffusion MSE on Warp-generated physics-correct frames
LR Schedule10-step linear warmup (1e-6 → 1e-4) then cosine decay to 1e-6
HardwareSingle NVIDIA H100 NVL (99.9 GB VRAM) — 13.9 GB peak usage

Training

Hyperparameters

HyperparameterValue
LoRA rank (r)16
LoRA alpha32
LoRA dropout0.05
Peak learning rate1e-4
OptimiserAdamW (β=(0.9, 0.999), ε=1e-8, weight_decay=0.01)
Training steps200 (5 epochs × 40 steps)
Batch size1
Diffusion timestepsDDPMScheduler (1000 steps), random t ∈ [50, 950]
Precisionbfloat16
Gradient clipping1.0

Training Data — Warp Physics Scenarios

Training uses synthetic videos rendered from NVIDIA Warp rigid-body simulations, not real-world video. This eliminates dataset bias and provides ground-truth physically-correct trajectories as supervision.

ScenarioDrop HeightRestitutionPhysics Behaviour
balldroplow2m0.70Low-energy drop, high bounce
balldrophigh5m0.60Standard gravity, moderate bounce
ball_elastic3m0.85Very elastic — multiple high bounces
ball_heavy4m0.30Inelastic — dead stop after first bounce

Convergence

EpochAvg LossNotes
11.512Warmup spike — expected
2~0.45Fast learning
50.341Converged — 77% drop from epoch 1

How to Use

Load the Model

python