# Coda-DaVinci: Reimagining Video Generation with Code2Video

AI.info

> Code2Video methods let a coding agent build and render a 3D scene whose structure and motion guide a video model toward the final clip. This explicit representation helps keep scenes consistent when…

**arXiv**: 2611.26595 · Preprint · not peer-reviewed

**Published**: 2026-11-19

**Authors**: 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

## In plain words

Code2Video methods let a coding agent build and render a 3D scene whose structure and motion guide a video model toward the final clip. This explicit representation helps keep scenes consistent when a camera returns to a location, but nobody had systematically asked how detailed the proxy should be, when physics simulation actually helps, and how the synthesis prompt should be written.

## AI summary

## Overview

**Research area:** Computer Vision — text/reference-conditioned video generation, specifically the "Code2Video" paradigm in which a coding agent builds an executable 3D scene (a "proxy") that steers a downstream video model.

**Technical level:** Intermediate (readers should know basic diffusion/video-generation and 3D rendering concepts such as Blender proxies and prompting).

**Scope:** A systematic empirical study of how proxy granularity, physics simulation, and prompt authoring affect Code2Video output quality, followed by Coda-DaVinci, a task-adaptive multi-agent framework built on those findings, evaluated across four benchmarks plus long-video and multi-turn settings.

## What This Paper Is About

Code2Video methods let a coding agent build and render a 3D scene whose structure and motion guide a video model toward the final clip. This explicit representation helps keep scenes consistent when a camera returns to a location, but nobody had systematically asked how detailed the proxy should be, when physics simulation actually helps, and how the synthesis prompt should be written. The authors run controlled experiments with blinded human scoring to answer those questions, then package the resulting guidelines into Coda-DaVinci, a framework that decides per task and per entity how much 3D control to impose.

## Key Contributions

1. **A controlled empirical study of the Code2Video design space.** The authors vary proxy granularity (G0 coarse / G1 medium / G2 fine), physics simulation (P0 off / P1 Blender built-in physics), and prompt strategy (PE0 original prompt / PE1 MiniMax H3-Context-IR enhancement / PE2 agent-written, proxy-aligned prompt with subject–color bindings), scoring outputs on WorldMemBench, VGIF-Bench, and Principia with blinded expert ratings on a 0–3 scale.
2. **Task-dependent guidelines for proxy construction.** The analysis shows coarse proxies favor natural motion on motion-heavy tasks, medium-grained proxies favor consistency, physics simulation raises average quality, and agent-authored prompting beats the tested external enhancement model.
3. **Coda-DaVinci, a task-adaptive agentic framework.** It routes between proxy-guided 3D modeling and direct generation, applies medium granularity to environments and structured objects but coarse granularity to human subjects, simulates physics when representable in Blender, and writes proxy-grounded synthesis prompts.
4. **A multi-agent harness with persistent state and visual review.** A shared Blender workspace preserves scene assets across revisions and later video extensions, delegate coding subagents handle separable modeling tasks, and an independent acceptance agent checks each candidate against the original requirements and returns unmet items for repair.

## Main Findings

- **Where Code2Video helps and where it hurts:** It most consistently improves consistency and instruction following over direct Seedance 2.5 generation. Under PE0, all six tested configurations beat Seedance on all four dimensions on WorldMemBench and Principia, but on VGIF-Bench all improve instruction following while scoring *lower* in physical plausibility, naturalness, and realism, with mixed consistency.
- **Granularity trade-off:** With PE0 fixed, G2 never exceeds G1 in naturalness and realism across benchmarks and physics settings. On VGIF-Bench, coarse G0 leads the three granularities in physical plausibility and naturalness under both physics settings, which manual inspection attributes to leaving limb motion to the video generator and avoiding stiffness inherited from detailed proxy animation. Under P1, G1 improves consistency over G0 on WorldMemBench and VGIF while tying on Principia.
- **Physics simulation helps modestly and unevenly:** P1 minus P0 raises the pooled four-metric mean in every tested comparison, from +0.005 (G0/PE0) to +0.165 (G1/PE2). Gains are more consistent in physical plausibility and visual quality than in consistency, which moves in both directions.
- **Agent-authored prompts beat the external enhancer:** At fixed G1, PE2 exceeds PE1 on all four metrics under both physics settings; at G1/P1 the pooled mean advantage is +0.255 (consistency +0.364, instruction following +0.131, physical plausibility +0.261, naturalness +0.263). Against PE0 at G1/P1 the mean gain is +0.085, with naturalness and realism dipping −0.021.
- **Prompt enhancement is task-sensitive:** On VGIF-Bench, switching from PE0 to PE2 raises the four-metric mean by 0.405 points under P1, while the change under P0 is under 0.001 points in magnitude. On WorldMemBench and Principia the same switch slightly lowers the mean under P1.
- **Best tested configuration:** G1/P1/PE2 has the highest pooled four-metric mean and the highest pooled consistency, instruction-following, and physical-plausibility averages. Its pooled naturalness/realism average beats Seedance but trails G0/P1/PE0, which ranks first on that metric.
- **Main benchmark results (Table 4):** Coda-DaVinci scores 60.77 on World Models' Last Exam in Physics (direct generation 47.16; Claude + Blender is highest at 65.52), reaches normalized memory ratios of 1.011 / 0.947 / 0.875 / 0.966 on R2M's scene ID, local geometry, state, and object metrics, achieves 91.42 checklist satisfaction on VTR while cutting word error rate to 11.08% versus 59.21% for direct generation, and posts video realism 70.26 and visual instruction following 67.99 on T2AV-Compass (direct generation: 71.38 and 65.11).
- **Robustness to agent choice:** Across four coding agents (GPT-6-Astra, GPT-6.1-Sol, Claude Opus 5.5, Gemini 4 Argon) and three video generators (Seedance 2.5, MiniMax H3, Kling 4.0 Omni) on a 33-task diagnostic subset, overall scores stay in a narrow band — for example 3.712 with GPT-6-Astra on Seedance 2.5 versus 3.508 for direct generation.
- **Each component earns its place:** Removing independent acceptance, adaptive routing, or entity-wise modeling granularity lowers all four ablation dimensions. Independent acceptance matters most for consistency; forcing 3D modeling on every task or G1 on every subject hurts instruction following and aesthetics most.
- **Blender versus Three.js:** Both engines beat direct generation; Blender wins on all four dimensions but consumes roughly twice as many agent tokens per case.
- **Long video and multi-turn:** On 29 LongAV-Compass cases (sequences spanning 25–90 seconds) and 50 WBench cases, Coda-DaVinci improves long-form structure and shows its largest WBench gains in interaction adherence and consistency. Direct generation remains better at transition stability on LongAV-Compass and setting adherence on WBench.

## Methodology in Plain English

The team first treats the Code2Video pipeline as three knobs: how detailed the 3D scene is, whether Blender's physics engine is used, and how the text prompt handed to the video model is produced. They build matched configurations with a coding agent, render proxy videos, feed them to Seedance 2.5 along with the prompt, and have human experts rate every output blind on consistency, instruction following, physical plausibility, and naturalness/realism using a 0–3 scale. Comparing one knob at a time while holding the others fixed reveals the trade-offs.

Those results become rules of thumb baked into Coda-DaVinci. A routing step decides whether a task needs explicit 3D control or is better served by direct generation when natural body movement matters. Modeling then uses different detail per entity type — medium for environments and structured objects, coarse for people — with overall human movement in the scene code and finer articulation described in the prompt. The agent renders, looks at the frames, fixes the scene code if events deviate, then writes a prompt that binds subject descriptions and colors to specific proxy entities. Finally the video model synthesizes the clip, and an independent acceptance agent checks it against the original requirements before shipping, with mismatches routed back either to scene revision or to prompt/reference changes.

## Why This Matters

**Impact on research.** The paper converts an intuition-driven recipe ("use a 3D proxy") into measured trade-offs, showing that more proxy detail is not monotonically better and that explicit scene control carries a realism cost on motion-heavy tasks. It also gives a clean characterization of failure modes — motion stiffness, transition instability, setting drift — that future Code2Video and long-video work can target.

**Real-world applications:**

- Advertising and e-commerce product videos needing repeatable camera moves and persistent product geometry across shots.
- Instructional and educational content (the original Code2Video use case) where correct object layouts and step ordering matter.
- Narrative or episodic content that revisits the same location or prop across many clips, benefiting from a reusable 3D scene workspace.
- Physics-heavy visualizations — collisions, pouring, cutting — where scripted animation alone looks unconvincing.

**Industry relevance.** Because the framework is model-agnostic across four coding agents and three video generators, and because it explicitly quantifies the Blender-versus-Three.js quality/token-cost trade-off, the results are directly actionable for production pipelines that balance visual fidelity against agent inference spend.

## Future Directions

- **Closing the transition-stability gap.** Direct generation still wins on transition stability across 25–90 second sequences and on setting adherence in multi-turn WBench, so cross-clip continuity and scene fidelity remain open problems.
- **Preserving explicit control through synthesis.** The paper's closing note calls for better keeping the proxy's control intact during generation, since fine articulation is currently handed off to a video model that may not follow the reference even with correct proxy motion or camera work.
- **Improving physical plausibility beyond Claude + Blender.** Claude + Blender still beats Coda-DaVinci on Last Exam (65.52 versus 60.77), which the authors attribute to the coding model's ability to implement physical behavior — a cue to strengthen agent-side physics competence.
- **Cheaper high-quality modeling.** Blender's quality advantage comes at roughly double the agent tokens of Three.js, motivating work on lower-cost engines or more efficient scene authoring.

## Target Audience

Researchers and practitioners working on controllable video generation, agentic content pipelines, and 3D-scene-guided synthesis will get the most from this paper. It also suits teams building production video tooling who need concrete guidance on when to invest in 3D proxies, how detailed they should be, and what such pipelines cost in agent tokens. Readers without background in video diffusion or 3D rendering will find the empirical tables accessible but the implementation details dense.

## Authors’ 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…

[The full abstract on arXiv](https://arxiv.org/abs/2611.26595)

[Read the original paper](https://arxiv.org/abs/2611.26595)

## Related papers

- [EgoCaptioner: Towards Comprehensive and Fine-Grained Egocentric Video Captioning](https://ai.info/paper/egocaptioner-towards-comprehensive-and-fine-grained-egocentric-video-2611.26380) 2026-11-19 · cs.CV · Also by Qixun Wang, Shujie Li +7
- [Behind Video Generation: Observations and Insights on Multimodal Understanding from Kling](https://ai.info/paper/behind-video-generation-observations-and-insights-on-multimodal-2611.04916) 2026-11-03 · cs.CV · Also by Jiafu Tang, Qixun Wang +7
- [Reviso: Not All Visual Evidence Deserves Equal Attention in Video Captioning](https://ai.info/paper/reviso-not-all-visual-evidence-deserves-equal-attention-in-video-2611.03602) 2026-11-02 · cs.CV · Also by Qixun Wang, Shujie Li +6
- [RefCaptioner: Multi-Reference Image-Grounded Video Captioning](https://ai.info/paper/refcaptioner-multi-reference-image-grounded-video-captioning-2607.28509) 2026-07-30 · cs.CV · Also by Qixun Wang, Tengfei Liu +5
- [Verus-Insight: Towards Explainable Artifact Detection in AI-Generated Videos](https://ai.info/paper/verus-insight-towards-explainable-artifact-detection-in-ai-generated-2610.30866) 2026-10-22 · cs.CV · Also by Qixun Wang, Tengfei Liu +4

---

Canonical: https://ai.info/paper/coda-davinci-reimagining-video-generation-with-code2video-2611.26595
