VideoCoCo: Code-as-CoT for Physically-Consistent Video Generation via an Agentic Dual-Engine System

Haodong Li, Tianfei Ren, Xiaoxiao Ma, Chunmei Qing, Zhen Fang, Sipeng He, Ziyu Guo, Haoyu Wu, Juanxi Tian, Yihang Zou, Ruichuan An, Dongzhi Jiang, Boxue Yang, Ji Xie, Xu Huang, Wenhao Yan, Jialv Zou, Zhengrong Yue, Yaxin Luo, Xiaotong Li, Yuzhu Wang, Junyan Ye, Jinjing Zhao, Zehui Chen, Lin Chen, Renye Yan, Feng Zhao, Pheng-Ann Heng

arXiv:2607.27380 · 2026-07-31 공개 · arXiv · PDF

video-generation executable-code draft-conditioned spatiotemporal code-as-cot blender phygenbench vbench-2-0

Abstract

Text-to-video models have achieved remarkable visual quality, yet they still struggle to generate physically consistent dynamics because the temporal evolution of a scene must be inferred implicitly from a highly compressed text prompt. Existing chain-of-thought approaches introduce intermediate plans or visual states, but these representations are typically non-executable or temporally sparse, limiting their ability to instantiate and control the complete spatiotemporal process. To address this limitation, we introduce VideoCoCo, an agentic dual-engine framework in which executable Blender code serves as a process-level chain of thought. Given a text prompt, a coding agent synthesizes a Blender program that explicitly specifies the scene and its temporal evolution. The executable simulation engine runs the program to produce a deterministic spatiotemporal draft, which is subsequently transformed into a photorealistic video by a generative video engine through draft-conditioned editing. This decomposition separates process-level reasoning from high-fidelity visual realization. To adapt the video editor to simulated drafts, we construct VideoCoCo-3K, a curated dataset of draft-instruction-target triplets. VideoCoCo improves the OmniWeaving baseline from 0.475 to 0.558 on PhyGenBench and from 52.18 to 77.88 on VBench-2.0, achieving the best average score on both benchmarks. These results demonstrate that executable code provides an effective, controllable, and inspectable intermediate representation for physically consistent video generation.

한국어 요약

한 줄 요약

VideoCoCo는 실행 가능한 코드를 이용해 물리적으로 일관된 동영상을 생성하는 이중 엔진 시스템을 제안한다.

핵심 기여도

핵심 아이디어

기존 텍스트-동영상 생성 모델은 텍스트 프롬프트에서 물리적 동작을 암묵적으로 추론해야 하므로, 시공간적 일관성을 보장하기 어렵다. 이에 대해 VideoCoCo는 **Code-as-CoT**(Code as Chain-of-Thought)라는 새로운 아이디어를 제시한다. 즉, 텍스트 프롬프트를 바탕으로 **Blender 프로그램**을 생성하여 시공간적 진화를 명시적으로 정의하고, 이를 **실행 가능한 시뮬레이션 엔진**을 통해 결정적인 초안(draft)으로 변환한다. 이후, 이 초안을 조건으로 하여 **생성형 동영상 엔진**이 고해상도의 광학적 영상을 생성한다. 이는 **프로세스 수준의 추론**과 **시각적 표현**을 분리하여 각 엔진이 자신이 가장 잘 수행할 수 있는 역할에 집중하도록 유도한다.

기술적 접근법

주요 결과

의의 및 한계

VideoCoCo는 **물리적으로 일관된 동영상 생성**을 위한 체계적인 프레임워크를 제시하며, 실행 가능한 코드를 중간 표현으로 사용함으로써 **제어 가능성**과 **검증 가능성**을 높인다. 특히, **시공간 구조 유지**와 **시각적 표현 분리**를 통해 기존 모델의 한계를 극복한다. 그러나 이 접근법은 **추가적인 추론 지연**(inference latency)을 유발하며, **Blender 시뮬레이터의 표현력**에 제한되어 복잡한 현상(예: 난류 유체)은 **zero-shot 생성이 어렵다**는 한계가 있다.

실용적 활용

VideoCoCo는 **물리 기반 시뮬레이션**과 **고해상도 동영상 생성**이 필요한 산업 분야(예: 영화 제작, 게임 개발, VR/AR)에 적용 가능하다. 또한, **교육용 시뮬레이션**, **공학 설계**, **로봇 학습** 등에서 시공간적 일관성을 요구하는 시나리오에도 유용하게 활용될 수 있다.