HyperAIHyperAI

Command Palette

Search for a command to run...

VideoCoCo: 물리적으로 일관된 비디오 생성을 위한 에이전트 기반 이중 엔진 시스템에서의 사고 연쇄로서의 코드

초록

텍스트 기반 비디오 생성 모델은 놀라운 시각적 품질을 달성했지만, 장면의 시간적 전개가 고도로 압축된 텍스트 프롬프트로부터 암시적으로 추론되어야 하기 때문에 물리적으로 일관된 동역학을 생성하는 데 여전히 어려움을 겪는다. 기존의 사고 연쇄 접근 방식은 중간 계획이나 시각적 상태를 도입하지만, 이러한 표현은 일반적으로 실행 불가능하거나 시간적으로 희소하여 완전한 시공간 과정을 구체화하고 제어하는 능력이 제한된다. 이러한 한계를 해결하기 위해, 우리는 실행 가능한 블렌더(Blender) 코드가 프로세스 수준의 사고 연쇄 역할을 하는 에이전트 기반 이중 엔진 프레임워크인 VideoCoCo를 소개한다. 텍스트 프롬프트가 주어지면, 코딩 에이전트가 장면과 그 시간적 전개를 명시적으로 지정하는 블렌더 프로그램을 합성한다. 실행 가능한 시뮬레이션 엔진이 이 프로그램을 실행하여 결정론적인 시공간 초안을 생성하고, 이 초안은 생성적 비디오 엔진에 의해 초안 조건부 편집을 통해 사실적인 비디오로 변환된다. 이러한 분해는 프로세스 수준의 추론을 고품질 시각적 구현으로부터 분리한다. 비디오 편집기를 시뮬레이션 초안에 적응시키기 위해, 우리는 초안-지시-타겟 삼중항으로 구성된 정제된 데이터셋인 VideoCoCo-3K를 구축한다. VideoCoCo는 PhyGenBench에서 OmniWeaving 기준선의 성능을 0.475에서 0.558로, VBench-2.0에서는 52.18에서 77.88로 향상시켜 두 벤치마크 모두에서 최고 평균 점수를 달성했다. 이러한 결과는 실행 가능한 코드가 물리적으로 일관된 비디오 생성을 위한 효과적이고 제어 가능하며 검사 가능한 중간 표현을 제공함을 입증한다.

One-sentence Summary

Researchers from CUHK, USTC, SCUT, and others propose VideoCoCo, an agentic dual-engine framework where a coding agent generates executable Blender code as a chain of thought to simulate scene physics and produce a deterministic spatiotemporal draft, which a generative engine then refines into a photorealistic video, achieving state-of-the-art physically consistent generation on PhyGenBench and VBench-2.0.

Key Contributions

  • VideoCoCo is a dual-engine framework that uses executable Blender code as a process-level chain of thought to generate a deterministic spatiotemporal draft, which a generative editor then refines into a photorealistic video, decoupling physical reasoning from visual fidelity.
  • A curated dataset, VideoCoCo-3K, composed of draft–instruction–target triplets, adapts the video editor to simulated drafts.
  • On PhyGenBench and VBench-2.0, VideoCoCo raises the OmniWeaving baseline from 0.475 to 0.558 and from 52.18 to 77.88, respectively, achieving the highest average scores and demonstrating that executable code is an effective intermediate representation for physically consistent video generation.

Introduction

Text-to-video generation is a promising pathway toward world modeling for AGI, yet it faces a fundamental mismatch: highly compressed text prompts leave the underlying physical dynamics unspecified, a problem the authors call Causal Opacity. Prior chain-of-thought approaches for video use descriptive or selective intermediates (text plans, keyframes, or learned reward signals) that do not instantiate a complete, executable spatiotemporal process. The authors introduce VideoCoCo, an agentic dual-engine framework that resolves this gap by treating executable Blender code as a process-level chain of thought. A coding agent synthesizes a program that explicitly simulates the scene's evolution into a deterministic draft video; a generative video engine then conditions on that draft to realize the process as a photorealistic video. To train the engine, they construct VideoCoCo-3K, a dataset of draft–instruction–target triplets that aligns simulated drafts with realistic visuals. This design decouples physical reasoning from visual synthesis, yielding substantial gains in physical consistency on benchmarks such as PhyGenBench and VBench-2.0.

Dataset

The authors construct VideoCoCo‑3K, a synthetic dataset of 3,000 triplets designed to learn draft‑conditioned video editing. Each triplet contains three aligned components:

  • Draft – a rendered white‑clay video produced by running the executable simulation engine on a sampled prompt.
  • Instruction – a natural‑language editing instruction composed by the instruction agent for that draft.
  • Target – a photorealistic video obtained by feeding the draft and instruction into a teacher editor (Seedance 2.0). The teacher is chosen because it preserves the draft’s motion while yielding photorealistic frames.

Construction pipeline. Starting from prompts collected from the source distribution, the simulation engine and instruction agent generate a draft–instruction pair. The teacher editor then produces the corresponding photorealistic target, creating a supervised triplet that links a physically grounded motion to its realistic realization. All prompts used in evaluation benchmarks and near‑duplicates are excluded. The dataset retains the original prompt and Blender program as metadata for inspection and regeneration.

Usage in the model. VideoCoCo‑3K is used to adapt the draft‑conditioned editing engine GθG_{\theta}Gθ by providing the draft‑instruction‑target supervision that public video‑editing datasets lack. The full set of 3,000 triplets serves as training data; no further training split or mixing ratios are mentioned.

Method

The authors instantiate the Code-as-CoT idea as VideoCoCo, an agentic dual-engine framework that separates process-level reasoning from visual realization. As illustrated in the framework diagram, the two engines play complementary roles to decouple faithful dynamics from photorealistic appearance.

The first component is the Executable Simulation Engine. A text prompt compresses a physical event into a few words, forcing a text-to-video model to reconstruct the entire spatiotemporal process from language alone. Instead of asking the video model to bear this burden implicitly, the authors let a coding agent AcodeA_{\mathrm{code}}Acode synthesize a self-contained Blender Python program c=Acode(p)c = A_{\mathrm{code}}(p)c=Acode(p) that specifies the scene, objects, physical properties, and temporal evolution. This code is executed in an isolated Blender environment B\mathcal{B}B to obtain a rendered draft d=B(c)d = \mathcal{B}(c)d=B(c). The sandbox provides standardized primitives and enforces deterministic behavior. The resulting draft is a low-fidelity white-clay simulation that is temporally dense, fixing what happens and when, while leaving the visual appearance to the next engine.

The second component is the Generative Video Engine, which translates the instantiated process into a photorealistic video. Because the original prompt and the rendered draft describe the target at different levels of granularity, passing the prompt directly to a video editor would leave the appearance underspecified. To reconcile this, an instruction agent AeditA_{\mathrm{edit}}Aedit reads both signals and composes an appearance-focused editing instruction e=Aedit(p,d)e = A_{\mathrm{edit}}(p, d)e=Aedit(p,d). This instruction describes target subjects, materials, lighting, and cinematic style without redefining the motion. The two conditions are then fed jointly into a draft-conditioned video editor GθG_{\theta}Gθ, which produces the final video v^=Gθ(d,e)\hat{v} = G_{\theta}(d, e)v^=Gθ(d,e). The draft anchors the spatiotemporal structure, while the instruction specifies the photorealistic appearance.

To adapt the editor GθG_{\theta}Gθ to consume simulated drafts, the authors construct VideoCoCo-3K, a dataset of draft, instruction, and target triplets. For each prompt pip_ipi, the executable simulation engine produces a draft did_idi and the instruction agent composes an editing instruction eie_iei. A high-fidelity teacher editor GTG_{\mathrm{T}}GT generates the photorealistic target yi=GT(di,ei)y_i = G_{\mathrm{T}}(d_i, e_i)yi=GT(di,ei), yielding the dataset DVideoCoCo3K={(di,ei,yi)}i=13000\mathcal{D}_{\mathrm{VideoCoCo-3K}} = \{(d_i, e_i, y_i)\}_{i=1}^{3000}DVideoCoCo3K={(di,ei,yi)}i=13000.

The editor is adapted on these triplets using a standard conditional denoising objective. Let z0z_0z0 denote the latent of the target yyy and ztz_tzt its noised version at diffusion timestep ttt. The training loss is defined as:

L(θ)=E(d,e,y),t,ϵ[ϵϵθ(zt,t,d,e)22]\mathcal{L}(\theta) = \mathbb{E}_{(d, e, y), t, \epsilon} \left[ \| \epsilon - \epsilon_{\theta}(z_t, t, d, e) \|_2^2 \right]L(θ)=E(d,e,y),t,ϵ[ϵϵθ(zt,t,d,e)22]

where ϵN(0,I)\epsilon \sim \mathcal{N}(0, I)ϵN(0,I). The authors initialize GθG_{\theta}Gθ from a base generator and apply parameter-efficient LoRA adaptation to learn the draft-to-realistic mapping while retaining strong visual priors.

At inference time, VideoCoCo operates end-to-end from a text prompt alone. The coding agent synthesizes the Blender program, the sandbox renders the deterministic draft, the instruction agent composes the editing instruction, and the adapted editor produces the final video. No ground-truth draft or human annotation is required, making the entire pipeline fully automatic, inspectable, and reproducible.

Experiment

The evaluation uses two physics-focused benchmarks, PhyGenBench and VBench-2.0, comparing VideoCoCo against closed- and open-source generators. Experiments show that generating a code-based executable draft and refining it with a video editor improves physical consistency, with the largest gains in categories where purely appearance-driven models struggle most. Ablation confirms that the simulation draft provides the essential physical dynamics, while lightweight LoRA tuning of the editor refines photorealism without overwriting those dynamics, outperforming full fine-tuning.

Adding VideoCoCo to the OmniWeaving video generator substantially raises physical consistency and plausibility across mechanics, optics, thermal, and material dynamics. The largest improvements appear in material and thermal categories where appearance-driven models struggle most, confirming that the executable draft supplies genuine physical dynamics rather than mere surface realism. The combined system achieves top or near-top overall scores on both PhyGenBench and VBench-2.0, outperforming strong open and closed baselines. VideoCoCo lifts OmniWeaving's average consistency score on PhyGenBench to the best overall, ahead of the strongest open baseline, with the largest gains in material and thermal dynamics. On VBench-2.0, VideoCoCo improves the base model's average plausibility by a wide margin, attaining the highest mechanics and thermotics scores and ranking second in material.

Using an executable draft without editor tuning already improves physical plausibility over the base generator, especially in thermal and material categories. Adding editor adaptation yields further complementary gains, with LoRA tuning achieving the best overall average and the top mechanics score while updating far fewer parameters than full fine-tuning. This confirms that the draft supplies physical dynamics and that a lightweight adapter is sufficient to refine appearance without overfitting. The tuning-free variant raises the average from 0.48 to 0.51, driven by marked improvements in thermal (0.43 to 0.48) and material (0.39 to 0.51). LoRA-Tune delivers the highest average (0.56) and the best mechanics score (0.56), outperforming full fine-tuning on both metrics while updating far fewer parameters. Full-Tune boosts optics to 0.61 and matches LoRA on optics, but LoRA achieves a higher material score (0.53 vs. 0.49) and better overall average. The tuning-free gain isolates the draft’s contribution to physical dynamics; subsequent editor tuning, especially with LoRA, adds a complementary improvement in appearance.

Integrating VideoCoCo's executable physics draft into a video generator substantially improves physical consistency, with the largest gains in material and thermal dynamics where appearance-driven models are weakest. Even without tuning, the draft alone lifts plausibility, and adding a lightweight LoRA adapter delivers complementary appearance refinements to achieve top overall scores on PhyGenBench and VBench-2.0, outperforming strong baselines and full fine-tuning. These results confirm that the draft supplies genuine physical dynamics beyond surface realism and that efficient adapters suffice to bridge the remaining appearance gap.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp