XPENG AI's CodingDINO turns video into editable code
The XPENG AI framework learns visual representations through agentic reinforcement learning, then outputs SVG, HTML, Three.js or Blender code a language model can read and edit.

Key takeaways
- XPENG AI released CodingDINO, a framework that reconstructs images and video as executable code, covered on December 4.
- CodingDINO learns through agentic reinforcement learning and renders SVG, HTML, Three.js, Blender and animation programs, so a language model can inspect, reason about and edit a scene.
- The authors report CodingDINO ranks first on 10 of 12 headline metrics across six image-to-code and video-to-code benchmarks, rivaling Opus 5.5 and GPT-6 Astra.
- Its single-pass variant, CodingDINO-Single, keeps 85.4% of that quality on average with no rendering feedback.
XPENG AI researchers have released CodingDINO, a framework that reconstructs images and video as executable code, so a large language model can read a scene, reason about it and change it directly. The paper landed on Hugging Face's paper pages and drew coverage on December 4.
Most video tools keep what a model "sees" sealed inside the network. CodingDINO converts that internal representation into programs a model can run and rewrite. The paper is titled "CodingDINO: Learning to Represent What We See as Code with Agentic Reinforcement Learning," and its authors describe code-based reconstruction as a route to representations a language model can act on.
What CodingDINO does
CodingDINO reconstructs a scene as code that renders. Given an image or a video, it writes a program in SVG, HTML, Three.js, Blender or an animation language, then renders that program back into a picture. A unified harness runs the code and returns the render alongside execution diagnostics, so the model sees both what the program drew and where it broke.
What comes out is code: instructions that describe a scene's appearance, geometry and how it changes over time. Because the result is a program, a language model can open it, change one line and re-render. An editor adjusts a parameter instead of regenerating a whole clip.
How the model learns from its own renders
The method is a form of reinforcement learning. CodingDINO starts from supervised fine-tuning on verified teacher trajectories, then trains across multiple turns: write code, render it, inspect the result, revise. Each attempt earns a reward on two axes, whether the program ran and how closely its render matches the target.
That match is measured with frozen DINO features and relative depth. DINO is a self-supervised vision model known for the quality of its features, and the paper borrows its name for the principle at the center of the work, observation-to-render consistency. The authors frame the goal as extending DINO's representational ambition to language models that reason and act through code.
The paper reports CodingDINO-27B, a 27-billion-parameter model. Its authors say it rivals GPT-6 Astra and Fable 5.2 on vision-to-code tasks and outperforms its own teacher, DeepSeek-V4.1-Flash, after agentic reinforcement learning.
Why code makes a scene editable
Earlier vision-to-code methods stopped at one-pass generation or refinement at inference time. CodingDINO is built to learn from the visual feedback it produces, so each render it inspects can improve the representation behind it. That is the paper's central claim: a model that learns from the render it made can improve the representation behind the picture, which is what makes a later edit possible.
For a creator, the promise is control. When a scene exists as code, an edit is a change to a program: move a light, recolor a surface, adjust a camera path. The scene stays the same scene. Changing a detail in generated video today usually means a new prompt and a new generation, with everything else drifting.
What the benchmarks show
Across six image-to-code and video-to-code benchmarks, the authors report CodingDINO ranks first on 10 of 12 headline metrics, rivaling frontier models such as Opus 5.5 and GPT-6 Astra. A single-pass variant, CodingDINO-Single, keeps 85.4% of that quality on average with no rendering feedback at all.
These are the authors' own numbers, and no independent test of the framework exists yet.
The same day, code as memory and as a zoom tool
CodingDINO was not alone. Two other papers that surfaced the same day use code and agents to work with video.
Programmatic Multimodal Memory (PMM) targets footage that runs for hours or days. Rather than compressing a video into a memory bank, it writes a multi-scale temporal memory of timestamped captions and transcripts once, without consolidation, and keeps it aligned with the raw video. A "Root" model then reads that memory with code across multiple turns in a persistent Python REPL, filtering records across days and inspecting raw frames on demand. The authors trained Qwen3.5-9B as the Root, and the resulting PMM-9B gains 12.1 points over its zero-shot version and beats standalone GPT-5 and Gemini 2.5 Pro on average, by nearly 20 points on the week-long EgoLifeQA benchmark.
ZoomLynx attacks a different problem, models that call a zoom tool over and over without learning anything from the call. It organizes evidence gathering around three decisions, when to inspect, where to zoom, when to stop, and trains a 4B model on trajectories built from real tool interactions. Across eight benchmarks, the authors report their 4B model beats Gemini 3.1 Pro and GPT-5.5 on aggregate, and they release Aperture-580, a benchmark for active visual reasoning.
Read together, the three point the same direction: code as the interface between a model and what it sees. CodingDINO represents a scene as code, PMM stores a long video's text as records a program can query, and ZoomLynx decides when a closer look is worth the call.
What it means for creators
The practical gap is wide. CodingDINO is a research release, not a product, and there is no timeline for it to reach an editing tool. Its benchmarks measure how well a model reproduces a scene as code, which is not the same as how well a creator can edit one.
The direction still matters for anyone who has watched a small change in a generated clip force a full regeneration. A scene that exists as code can be version-controlled, compared and edited in place, and an agent can be handed a task like "make the sky darker" and write the code to do it. Controllable video editing remains one of the harder problems on this beat, and representing a scene as something a model can rewrite is one plausible route through it.
Read the CodingDINO paper on Hugging Face: https://huggingface.co/papers/2611.40817
Sources
- huggingface.co - the CodingDINO paper page: the method, the harness, the benchmarks
- huggingface.co - the Programmatic Multimodal Memory paper page (same-day context)
- huggingface.co - the ZoomLynx paper page (same-day context)
- huggingface.co - the Hugging Face Daily Papers listing, December 4
- newweb.media - secondary report of the release and the same-day context