Papers
arxiv:2611.40817

CodingDINO: Learning to Represent What We See as Code with Agentic Reinforcement Learning

Published on Nov 30
· Submitted by
Qize Yu
on Dec 4
Authors:
,
,
,
,
,
,
,
,
,
,
,

Abstract

Representations matter. Frontier LLMs increasingly solve complex tasks by writing and executing code, raising the question of how visual inputs can be represented in the same medium. Reconstructing images and videos as executable programs makes appearance, geometry, and temporal dynamics explicit, yielding compositional representations that LLMs can directly inspect, reason over, and edit. Existing vision-to-code methods largely emphasize single-pass generation or inference-time refinement, leaving a gap between using visual feedback and learning from it. We introduce CodingDINO, a unified agentic reinforcement learning (RL) framework for learning internal visual representations through code-based reconstruction. Inspired by DINO, our approach uses observation-to-render consistency as a general learning principle across 2D and 3D images and videos. A unified harness executes and renders SVG, HTML, Three.js, Blender, and animation programs, returning visual renders alongside execution diagnostics. Starting from supervised fine-tuning on verified teacher trajectories, multi-turn RL trains the agent to write, render, inspect, and revise code in this harness. Each trajectory is rewarded by execution validity and visual consistency with the target, measured using frozen DINO features and relative depth. Across six image-to-code and video-to-code benchmarks, CodingDINO rivals frontier LLMs such as Opus 5.5 and GPT-6 Astra, ranking first on 10 of 12 headline metrics and in the top three on 10. With no rendering feedback at all, its single-pass variant CodingDINO-Single retains 85.4% of this quality on average. These results position code-based reconstruction as a route to learning reusable internal visual representations, extending DINO's representational ambition to language models that reason and act through code.

Community

Paper author Paper submitter

Can we reverse-engineer the pretraining recipes behind GPT-6 Astra and Fable? What gives these frontier models their emerging capabilities in robotics? 🥳 CodingDINO is our first step toward answering those questions.

CodingDINO: Learning to Represent What We See as Code with Agentic Reinforcement Learning

🦁 On vision-to-code tasks, CodingDINO-27B rivals GPT-6 Astra and Fable 5.2 and substantially outperforms its teacher, DeepSeek-V4.1-Flash, after agentic RL.

🐣 What motivated us? While distilling Astra and Fable and evaluating a range of Chinese models, we noticed a pattern. Astra and Fable showed robotics capabilities that were largely absent from the other models we tested. They also had a clear lead in 3D spatial perception. What surprised us was how clearly the same gap showed up in vision-to-code tasks. Take the familiar “pelican riding a bicycle” example. A model can draw a recognizable pelican and a recognizable bicycle, get the colors right, and still miss the spatial relationships that make the bird look as though it is actually riding. Many of the models we tested produced exactly this kind of output. That observation led us to ask whether learning to reconstruct a scene in code could help a model learn its spatial structure.

🐥 Why CodingDINO? The name reflects two ideas. First, we see coding as a major source of frontier LLMs’ capabilities and one of their most important interfaces for interacting with the world. If a model can express what it sees as an executable program, code itself can serve as a visual representation. Second, the DINO reference reflects our interest in learning representations from the input itself. During agentic RL, the model writes code, executes it, inspects the render, and revises its program. The target image or video provides a visual reference for training without requiring a human-written reference program. The same loop can also support training in which the model and its execution harness improve together.

📊 Across six benchmarks and 42 metrics, CodingDINO sets a new state of the art at the 27B scale. It surpasses Opus 5.5 and GPT-6.1 Sol and rivals GPT-6 Astra and Fable 5.2. One result we’re especially excited about is what happens when we remove the harness at inference time. In a single call, the trained model can already produce outputs comparable in quality to those obtained through multiple rounds of refinement. That gives us evidence for our original hypothesis: some of what the model learns from inspecting and revising its renders carries over to how it represents a scene on the very first attempt.

💡 CodingDINO supports 2D and 3D reconstruction from images and videos, with outputs in SVG, HTML, Three.js, and Blender. Next, we’re extending this approach to real-to-sim reconstruction for robotics. Alongside the growing interest in building harnesses around Astra, we hope to draw attention to a complementary question: how can we train these capabilities into the underlying models and reduce dependence on Astra and Fable?

🔬 Our longer-term goal is to find a scalable pretraining recipe that gives foundation models precise spatial perception and to understand when that capability transfers to robotics. The paper, code, model weights, and evaluation logs are public. We’d love to hear what you find when you try CodingDINO, and we welcome collaborators for the next phase of pretraining.

🌐 Project page · 📑 Paper · 🚀 GitHub · 🤗 Model weights

⭐ If you find the work useful, please give us a star on GitHub and an upvote on Hugging Face Papers! 🥳

Sign up or log in to comment

Models citing this paper 1

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2611.40817 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2611.40817 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.