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

CodingDINO-27B achieves new best performance in six benchmarks and 42 metrics, surpassing Opus 5.5 and GPT-6.1 Sol, competing with GPT-6 Astra and Fable 5.2. The model generates high-quality outputs without a framework during inference, demonstrating its precise representation of scenarios on the first attempt.
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! 🥳
Source: Hugging Face Daily Papers · huggingface.co