Coda-DaVinci: Reimagining Video Generation with Code2Video

Yiyan Ji, Qixun Wang, Yang Shi, Zhuoran Zhang, Yifan Xu, Tengfei Liu, Yuqi Tang, Xiaohan Zhang and 15 others

Nanjing University · KlingAI Research · Peking University · Hong Kong University of Science and Technology (Guangzhou) · University of Hong Kong · Hong Kong University of Science and Technology

Published November 19, 2026 · on the feed November 20, 2026 · ▲ 40 · arXiv 2611.26595

VideoAgentsVision & multimodal Code arXiv ↗Hugging Face ↗

The 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.

The Brief

2:19

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Coda-DaVinci. Reimagining Video Generation with Code2Video. By Yiyan Ji and twenty-two others, from Nanjing University, KlingAI Research, and five other institutions. Published on the nineteenth of November.

Code2Video is a paradigm in which agents author 3D proxies, and those proxies guide video generation. The appeal is explicit control over a scene's structure and dynamics. What has not been worked out is how to build the proxies and prompts that give the best downstream video, or where the paradigm's capabilities and limits actually lie. A proxy can be rough or detailed, it can be simulated physically or not, and the prompt sent alongside it can follow it closely or loosely. Each of those choices plausibly changes the video, and the authors describe all of them as underexplored.

The authors begin with a study rather than a system. Through controlled experiments and blinded human evaluation, they vary proxy granularity, physics simulation, and prompting. The trade-offs they find depend on the task. Coarse proxies favor natural motion, while medium-grained proxies favor consistency. Adding physics simulation, and prompting that is aligned with the proxy, both raise average quality. Those findings then shape Coda-DaVinci.

Coda-DaVinci is a task-adaptive agentic framework for Code2Video generation. For each task it chooses between proxy-guided generation and direct generation. It adapts the modeling granularity to each entity in the scene, rather than fixing one level of detail for everything, and it coordinates simulation with prompting grounded in the proxy. A multi-agent harness keeps scene assets intact and guides repairs, using visual inspection and an independent review.

In experiments, Coda-DaVinci leads on instruction following on VTR and on scene consistency on R2M. It improves physical plausibility over direct generation, and shows higher visual realism than the compared Code2Video baselines. Long-video evaluations show gains in event structure and in consistency across successive interactions. They also reveal limitations, in transition stability and in adherence to scene settings.

The framework follows from the study: since no single proxy granularity wins everywhere, the system decides per task and per entity instead of committing in advance. Sometimes that means skipping the proxy entirely. The long-video results then mark where that adaptivity still falls short: holding transitions steady and keeping to the scene settings over many successive events.

The deep dive

6:29

A longer episode, written from the whole paper. Written and voiced by AI.

Transcript

Coda-DaVinci. Reimagining Video Generation with Code2Video. By Yiyan Ji and twenty-two others, from Nanjing University, KlingAI Research, and five other institutions. Published on the nineteenth of November. This is the long version: the whole paper rather than the abstract.

Ask a video model to show someone blowing fallen leaves off some steps while the camera turns away and comes back, and a strong model will often return to steps still covered in leaves. Nothing kept track of the scene while it was off screen. Code2Video is one answer to that. A coding agent writes a program that builds a rough 3D scene, renders it as a proxy video, and the video model paints the final footage over that skeleton. The scene persists, so the leaves stay cleared. But the paper starts from an awkward observation: a detailed proxy can also hand its own errors to the final video, and stiff animated limbs come out as stiff limbs. So before building anything, the authors ask how a proxy should be built at all.

They study three knobs. Granularity runs from coarse, where a person is a cylinder with a sphere for a head and no limbs, through medium, a torso, head and four unjointed limbs in a fixed pose, to fine, with articulated joints and explicit contact. Physics is either optional, with hand-authored trajectories allowed, or required, meaning the agent must actually run Blender's simulation and render its results. Merely setting up a collider does not count. Prompting has three levels: the original instruction unchanged; an enhancement written by an outside model, MiniMax H3-Context-IR, which never sees the proxy; or a prompt written by the coding agent itself after looking at its proxy. In that last case every subject gets a distinct identity colour in the scene, and the prompt says which colour is which person or object. Ten blinded expert raters scored each video from zero to three on consistency, instruction following, physical plausibility, and naturalness, over ninety-four samples drawn from three benchmarks.

The analysis produces a division of labour. Proxies help most with consistency and instruction following. They hurt on the benchmark full of human and object motion, VGIF-Bench, where even the best configuration lost more than half a point of naturalness against direct generation. Coarse proxies kept motion more natural there, because the generator was free to invent the limbs. Medium proxies gave the best consistency once physics was required. The best single setting was medium proxies, required physics and agent prompting.

Coda-DaVinci turns those findings into policy. A routing step reads the task and decides whether to build a scene at all. If the task needs exact trajectories, physical interactions, revisits or persistent object states, it models in 3D. If natural body movement is the main challenge and a proxy would only stiffen it, the task goes straight to the video model. When both apply, explicit control wins. Inside a modeled scene, granularity is set per entity rather than per video: environments and objects get medium detail, while every human stays a coarse cylinder that only moves and turns. Finer action goes into the prompt instead. Around this sits a harness. A lead agent can hand separable pieces of the scene to subagents and resume them later for fixes, and the Blender workspace persists, so a long video can continue from the same scene. Before building, the agent writes fixed acceptance criteria. After synthesis it views generated frames beside the matching proxy frames, which tells it whether a fault lies in the scene code or in the prompt. A separate acceptance agent with read-only tools then judges each criterion, and up to three repair rounds follow.

All methods use the same generator, Seedance 2.5. On VTR, the text rendering benchmark, word error rate fell from fifty-nine point two one percent with direct generation to eleven point zero eight percent. On R2M, which measures memory across revisits, it led every column. The more revealing result is physics. On World Models' Last Exam in Physics every Code2Video method beat direct generation, but Coda-DaVinci came second, behind Claude plus Blender at sixty-five point five two. The authors read this as evidence that the coding model's skill at implementing physics still limits the approach. On realism, routing let it lead the Code2Video methods while still trailing direct generation slightly. Ablations show that removing independent review, forcing every task through 3D, or giving everyone medium proxies each lowered all four scores. Blender beat Three.js on every dimension, at roughly twice the agent tokens.

There is no limitations section. What the paper does report is candid. In long videos built clip by clip, direct generation was better at smooth transitions between clips, and on WBench it kept closer to the scene setting, even though Coda-DaVinci tracked interactions and consistency better. The conclusion names motion naturalness, transition stability and setting adherence as open gaps. Beyond that, the evidence has shape you should notice. The design study rests on ninety-four samples, filtered to those every configuration could produce, partly because Seedance's privacy policy blocked some. The whole design study used one generator, and the human study reports means without spread.

The idea to carry away is not that 3D scaffolding makes better video. It is that control should be allocated. Code is good at the things that must be exactly right: where objects are, what happened while the camera looked away, what collided with what. Video models are good at what code renders badly: hands, faces, the give of dough under a palm. Coda-DaVinci works by drawing that boundary per task and per entity, and by checking frames against proxies to see which side of the boundary a failure came from.

Paper Quest · 7 chapters · about 41 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

Video models paint beautifully and forget easily. Here is the wall: control without losing life.

You want a video model to follow a detailed instruction: clear leaves off some steps while the camera turns away, then return to the cleared steps. Video models make lovely footage but forget the scene when the camera looks elsewhere.

The road ahead

  1. 1 · The problem ~7 min Video models make lovely footage but lose track of the scene, and a rough 3D scene that guides them brings its own errors.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~9 min Split the work: the coding agent fixes structure and dynamics, the video model adds appearance and fine motion, and the system decides when and how much to model.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Route the task, set detail per entity, simulate physics, write a proxy-grounded prompt, generate, then review and repair.
  6. 6 · The experiment ~6 min You’ll guess: In the controlled study, which proxy detail level kept motion most natural on motion-heavy tasks?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.