PhysOPSD:代码作为物理合理视频生成的权限
研究论文 · 2026/11/11
现代视频生成模型在视觉保真度上表现优异,但在生成物理上合理的动态和复杂交互时仍显脆弱。针对性的后训练至关重要,但监督微调受离线状态不匹配困扰,强化学习则受稀疏且定义不清的物理奖励函数阻碍。同策略(自)蒸馏(OPSD)将同策略 rollout 与密集纠正反馈结合,核心挑战转向设计有效的特权上下文。然而传统模态不足:文本提示本质是陈述性的,真实参考视频则严重纠缠物理规律与视觉外观且无参数控制。为此,我们提出 PhysOPSD,引入可执行代码作为视频生成的特权物理上下文。与静态视觉观察不同,可执行代码实例化了一个可编辑的物理世界,具有内在抽象性和可控性。借助 PhysOPSD-Engine,我们将真实物理场景转化为可验证的仿真程序。PhysOPSD 随后结合(i)双层物理特权,通过中间瓶颈弥合信息差距,以及(ii)共享 rollout 噪声下的受控物理变化,以暴露因果动态偏移。大量实验表明,PhysOPSD 在多种骨干网络上显著提升物理合理性,仅用 3K 样本即超越 SFT 和 RL 基线,同时保持通用视频生成质量。
该工作创新性地以可执行代码作为特权物理上下文,解决了视频生成中物理合理性后训练的奖励设计难题,仅需少量样本即显著提升效果,为物理可信视频生成提供了新范式。
While modern video generative models achieve remarkable visual fidelity, they remain noticeably brittle when generating physically plausible dynamics and complex interactions. Targeted post-training is crucial, yet supervised fine-tuning suffers from offline state mismatch, and reinforcement learning is hindered by sparse, ill-defined physical reward functions. On-Policy (Self-)Distillation (OPSD) reconciles on-policy rollouts with dense corrective feedback, shifting the core challenge to designing effective privileged context. However, conventional modalities fall short: text prompts are inherently declarative, whereas real reference videos heavily entangle physical laws with visual appearance without parametric control. To this end, we propose PhysOPSD, introducing executable code as privileged physical context for video generation. Unlike static visual observations, executable code instantiates an editable physical world with intrinsic abstraction and controllability. Powered by PhysOPSD-Engine, we translate real-world physical scenarios into verifiable simulation programs. PhysOPSD then incorporates (i) dual-level physical privilege to bridge the information gap via an intermediate bottleneck, alongside (ii) controlled physical variations under shared rollout noise to expose causal dynamic shifts. Extensive experiments demonstrate that PhysOPSD substantially improves physical plausibility across diverse backbones, outperforming SFT and RL baselines with only 3K samples, while preserving general video generation quality.