Manuscript Offprint

arXiv:2611.26595

Coda-DaVinci: Reimagining Video Generation with Code2Video

Yiyan Ji, Qixun Wang, Yang Shi, Zhuoran Zhang, Yifan Xu, Tengfei Liu, Yuqi Tang, Xiaohan Zhang, Shujie Li, Jiafu Tang, Xuanyu Zhu, Xinyu Liu, Yan He, Yushuo Guan, Zihao Wang, Xianghua Ying, Shixuan Liu, Haotian Wang, Wenjing Yang, Zhaoxiang Zhang, Yuanxing Zhang, Pengfei Wan, Jiaheng Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Code2Video uses agent-authored 3D proxies to guide video generation, enabling explicit control over structure and dynamics. However, how to construct proxies and prompts for optimal downstream quality remains underexplored, as do the capabilities and limitations of this paradigm. Through controlled experiments and blinded human evaluation, we study proxy granularity, physics simulation, and prompting. The results reveal task-dependent trade-offs: coarse proxies favor natural motion, while medium-grained proxies favor consistency. Physics simulation and proxy-aligned prompting further improve average quality. Guided by these findings, we introduce Coda-DaVinci, a task-adaptive agentic framework for Code2Video generation that selects between proxy-guided and direct generation, adapts modeling granularity to each entity, and coordinates simulation with proxy-grounded prompting. Its multi-agent harness preserves scene assets and guides repairs through visual inspection and independent review. Experiments demonstrate leading instruction following on VTR and scene consistency on R2M, improved physical plausibility over direct generation, and higher visual realism than the compared Code2Video baselines. Long-video evaluations further show gains in event structure and consistency across successive interactions, while revealing limitations in transition stability and adherence to scene settings.

1 Introduction

Recent video generation models can synthesize realistic and visually appealing videos from text and reference media [22, 11, 27, 7, 24]. Yet following detailed instructions, preserving scene state over time, and producing physically plausible interactions remain challenging. Code2Video approaches, including VideoCoCo [13] and Code Video Model [14], address these challenges through executable scene programs. In this paradigm, a coding agent constructs and renders a 3D proxy whose structure and motion guide a video model in synthesizing the final video. This explicit scene representation helps maintain scene state across camera revisits, as shown in Figure 1(a).

The benefits of Code2Video depend on the task and on how the proxy is constructed and used. Scene programs provide precise control over layout and trajectories, but detailed modeling can introduce geometric or motion errors that may carry over to the final video. When motion naturalness is central and explicit scene control offers limited benefit, an imperfect proxy may yield less natural results than direct generation. Proxies for the same task can differ substantially in their level of detail. Physical interactions also require choosing between scripted motion and physics simulation. The synthesis prompt must then align the intended appearance and finer actions with the rendered proxy. These considerations raise two central questions: How can we achieve the best video generation performance within the Code2Video paradigm, and how far can Code2Video extend the capabilities of video generation?

Figure

Figure 1: Selective 3D modeling. Each method pairs 3D proxy frames with generated video frames at 3, 5, and 7 seconds. Codex + Blender and VideoCoCo explicitly model hands and arms. Coda-DaVinci models the objects involved in cutting and unwrapping, while leaving detailed hand articulation to the video generator.

We study these questions through controlled comparisons with blinded human evaluation on tasks involving scene revisitation, complex motion, and physical processes. The benefits of proxy guidance vary by task: improved consistency and instruction following can come at the cost of motion naturalness. Under matched settings, coarse proxies preserve more natural motion than detailed alternatives on motion-intensive tasks, while medium-grained proxies provide stronger consistency when physics simulation is required. Prompts written by the coding agent outperform the tested external enhancement strategy in pooled scores. Among the tested configurations, medium-grained proxies combined with physics simulation and agent-authored prompts achieve the highest pooled performance.

Guided by these findings, we introduce Coda-DaVinci, a task-adaptive agentic framework for Code2Video generation as shown in Figure . Coda-DaVinci selects 3D modeling when precise scene or motion control is needed and favors direct generation for natural body movement when explicit control is unnecessary and proxy animation risks stiffness. For modeled scenes, it uses medium-grained proxies for environments and structured objects, coarse proxies for human subjects, and Blender simulation for supported physical interactions, as shown in Figure 1(b). The agent inspects the proxy before writing a synthesis prompt that links appearance references to proxy entities and specifies finer human actions. A multi-agent harness preserves the scene workspace across revisions and successive requests, supports visual inspection, and uses an independent acceptance agent to identify unmet requirements for repair.

Experiments show that Coda-DaVinci leads the compared methods in instruction following on VTR [9] and scene consistency on R2M [6]. It also improves physical plausibility over direct generation on World Models’ Last Exam in Physics [5] and outperforms Code2Video baselines in visual realism on the T2AV-Compass subset [2], approaching direct generation. We also examine agent–generator pairings and rendering engines; Blender offers higher quality than Three.js at greater token cost. Long-video and multi-turn evaluations show gains in long-form structure and scene consistency over direct continuation, but lower transition stability and setting adherence.

Our main contributions are threefold:

  • We systematically analyze proxy granularity, physics simulation, and prompting, deriving task-dependent guidelines for proxy construction and video synthesis.
  • We introduce Coda-DaVinci, a task-adaptive agentic framework that coordinates selective 3D modeling and proxy-grounded synthesis, supported by a persistent scene workspace and visual feedback.
  • We empirically characterize Code2Video’s capabilities and limitations across tasks, agent–generator pairings, rendering engines, and long-video settings, revealing trade-offs in visual quality, consistency, and token cost.

References (24)