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

Qize Yu, Hanzhen Zhang, Yue Chen, Jiarui Lu, Tianxing Chen, Siqiao Huang, Wenxuan Song, Minghua He, Yuran Wang, Junbo Niu, Zhengyu Jia, Zhihui Shang, Bowen Ping, Xianming Liu, Haoang Li, Ping Luo, Shuchang Zhou, Zijian WangarXiv 2026

TL;DR

CodingDINO teaches language models to "see" by writing code. Using an agentic reinforcement learning (RL) loop, the model learns to reconstruct 2D images, 3D scenes, and videos as executable programs (SVG, HTML, Three.js, Blender, and Python animations), inspecting its own renders and revising the code until it matches what it sees. The resulting model rivals frontier systems like Opus 5.5 and GPT-6 Astra—and even when stripped of all rendering feedback at test time, its single-pass variant retains 85.4% of its quality.

CodingDINO examples across 2D, 3D, and video-to-code tasks

What Problem Does This Paper Address?

Frontier language models are increasingly good at solving complex problems by writing and running code. This raises a natural question: if code is their native medium for reasoning, shouldn't visual inputs live in that same medium?

Reconstructing an image or video as an executable program makes its appearance, 3D geometry, and temporal dynamics explicit. Instead of an opaque grid of pixels, you get a compositional representation that an LLM can directly inspect, reason over, and edit.

Until now, most vision-to-code approaches have relied on single-pass generation or inference-time refinement—essentially guessing the code once, or tweaking it on the fly without actually learning from the visual feedback. CodingDINO bridges this gap by turning visual feedback into a training signal.

Methods

The authors introduce a two-part framework: a unified visual coding harness and agentic reinforcement learning.

Unified visual coding harness and Agentic RL pipeline
  • Unified Visual Coding Harness: A single environment executes and renders code across five backends—SVG, HTML, Three.js, Blender, and Python animations—returning both the rendered image (or video frames) and execution diagnostics (such as syntax or runtime errors).
  • Two-Stage Training:
  • Supervised Fine-Tuning (SFT): The model is first initialized on verified teacher trajectories (such as those from DeepSeek).
  • Multi-Turn Agentic RL: Using Group Relative Policy Optimization (GRPO), the agent practices a write → render → inspect → revise loop across multiple turns, learning from all assistant turns in the trajectory.
  • Observation-to-Render Consistency Reward: Inspired by DINO, the reward signal measures whether what the code draws matches what the model saw. Each trajectory is scored by R = validity × similarity, where similarity is computed using frozen DINOv2, DINOv3 features, and relative depth (averaged over matched frames for videos).

Datasets

CodingDINO is evaluated across six image-to-code and video-to-code benchmarks:

  • DrawAI-Bench (evaluated via SSIM and Edge F1)
  • 3DHarnessBench (evaluated via Uni3D I-3D, SigLIP2, DINOv2-L, DINOv3-L, Chamfer penalty, and Betti median)
  • CC-HARD (evaluated via CLIP and VisualScore)
  • VFIG (evaluated via SSIM and 1/LPIPS)
  • AnimWeb-Bench (evaluated via Static CLIP and Velocity)
  • Code2Video-Compass (evaluated via AF and MF)

(Details on the exact training datasets beyond "verified teacher trajectories" are not discussed in the provided excerpts.)

Key Insights and Ideas

  • Learning from feedback beats just using feedback: By embedding the render-and-inspect loop into RL training rather than just inference, the model builds genuine internal visual representations.
  • Single-pass generalization: Because the model internalizes how visual structure maps to code, CodingDINO-Single—which generates code in one shot with no rendering feedback—still retains 85.4% of the full agent's quality on average.
  • A universal visual reward: Combining frozen self-supervised features (DINOv2/v3) with relative depth provides a general, backend-agnostic way to score visual reconstruction across 2D, 3D, and video.

Key Results

Across the six benchmarks, CodingDINO rivals frontier LLMs such as Opus 5.5 and GPT-6 Astra:

Performance comparison across six vision-to-code benchmarks
  • Headline Rankings: CodingDINO ranks first on 10 of 12 headline metrics and in the top three on 10.
  • 3DHarnessBench: CodingDINO achieves 0.887 SigLIP2, 0.648 DINOv2-L, 0.719 DINOv3-L, and 0.323 Uni3D I-3D—a massive jump over its SFT baseline (0.449 SigLIP2, 0.244 DINOv2-L, 0.296 DINOv3-L, 0.146 Uni3D I-3D) and Qwen3.8-27B.

Limitations and Future Work

Not discussed in the provided excerpts.

Summary updated

BibTeX
@misc{yu2026codingdino,
  author = {Qize Yu and Hanzhen Zhang and Yue Chen and Jiarui Lu and Tianxing Chen and Siqiao Huang and Wenxuan Song and Minghua He and Yuran Wang and Junbo Niu and Zhengyu Jia and Zhihui Shang and Bowen Ping and Xianming Liu and Haoang Li and Ping Luo and Shuchang Zhou and Zijian Wang},
  title = {{CodingDINO: Learning to Represent What We See as Code with Agentic Reinforcement Learning}},
  year = {2026},
  eprint = {2611.40817},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40817},
}
Figure