Rust in Everything
← Papers

PhysOPSD: Code as Privilege for Physically Plausible Video Generation

Harold Haodong Chen, Rui Peng, Lingteng Qiu, Kejie Qiu, Chao Xu, Zilong Dong

2026-11-11▲ 8arXiv 2611.12411v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

PhysOPSD uses executable code as privileged physical context for on-policy self-distillation to improve physically plausible video generation.

Problem

Video generative models achieve high visual fidelity but remain brittle at generating physically plausible dynamics and complex interactions. Supervised fine-tuning uses offline data that mismatches inference-time states, while reinforcement learning suffers from sparse, ill-defined physical rewards. On-policy self-distillation needs privileged context that reliably improves teacher predictions on student rollouts, but text prompts are declarative and real reference videos entangle physical laws with appearance and lack parametric control.

Method

PhysOPSD introduces executable code as privileged physical context. PhysOPSD-Engine translates real-world physical scenarios into verifiable simulation programs and rendered physical drafts using a coding agent with an execution-guided refinement loop. Dual-level physical privilege pairs dense drafts with abstract drafts as an intermediate information bottleneck, isolating motion and contact topology while filtering fine visual details and reducing geometric shortcuts. Controlled physical variation perturbs specific physical parameters while holding other scene factors invariant and uses paired scenes with shared rollout noise to expose causal dynamic shifts. Training follows OPSD: the student rolls out from the inference prompt, the EMA teacher is conditioned on privileged code-derived context, and the student matches the teacher velocity with stop-gradient. At inference, the generator uses text prompts without simulation.

Results

  • PhysOPSD improves physical adherence across two backbones while preserving general video quality, using far fewer samples than SFT and offline RL. §5.2
  • Executable coding drafts provide stronger privileged supervision than refined text or real reference videos. §5.3
  • Dual-level privilege achieves a higher VideoPhy-2 gain than abstract-only or dense-only privilege. §5.4
  • Controlled paired variations yield a larger gain than training on independent physical scenes. §5.4
  • PhysOPSD shows sample efficiency from 1 K to 4 K samples and steady scaling gains without premature plateauing. §5.5

Limitations

  • The paper states no explicit limitations section; its physical drafts use simplified simulation geometry, so the quantitative extent of simulation-to-real transfer is left open by the experiments reported in 5.2.
  • Evaluation covers UniVideo (13B) and OmniWeaving (8.3B); generalization to other backbones is left open in 5.2.
  • Data-scaling results stop at 4 K; behavior beyond 4 K is not reported in 5.5.
  • PhysOPSD-Engine depends on a frontier coding agent and an execution-guided refinement loop because single-pass zero-shot generation is unreliable for complex physical phenomena, as stated in A.1.

Key points

  • OPSD optimizes velocity matching along student rollout states; privileged context modifies only the teacher conditioning, leaving student inference behavior unchanged. §3
  • Executable code provides abstraction and controllability absent in declarative text and raw reference videos. §1
  • PhysOPSD-Engine combines a frontier coding agent with an automated execution-guided refinement loop to produce verifiable simulation code. §A.1
  • Dual-level physical privilege introduces an abstract physical draft as an intermediate bottleneck between dense drafts and a text-only student. §4.3.1
  • Controlled physical variation surgically perturbs physical parameters while holding other scene factors invariant to expose causal dynamic consequences. §4.3.2
  • The algorithm samples paired scene families with a shared privilege gap and initial noise, and the teacher is conditioned one privilege level above the student. §A.3
  • With only 3 K samples, PhysOPSD markedly outperforms SFT with 80 K and offline RL with 21 K. §5.2
  • Executable coding drafts yield larger physical gains than refined text or real reference videos under an identical budget of 3 K samples. §5.3

Mind map

PhysOPSD
Problem
Physical brittleness
SFT offline mismatch
RL sparse rewards
Privileged context design
Method
Executable code privilege
PhysOPSD-Engine
Dual-level privilege
Controlled variation
OPSD velocity matching
Results
Physical adherence gains
Code beats text and video
Structured privilege gains
Data efficiency
Limitations
Two backbones tested
Simplified simulation geometry
Scaling beyond 4 K open
Coding agent dependence