CodingDINO: Learning to Represent What We See as Code with Agentic Reinforcement Learning
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, ThreeJS, 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…
- arXiv
- 2611.40817
- Authors
- Qize Yu, Hanzhen Zhang, Yue Chen, Jiarui Lu, Tianxing Chen and 13 more
- Categories
- cs.CV · cs.LG