Back to articles

CodingDINO Trains Models to Represent Images and Video as Code

3 min read

Introduction

Large language models increasingly use code to solve complex tasks. CodingDINO asks whether code can also serve as a practical representation of what a model sees. Rather than describing a picture only in words, the model reconstructs it as an executable program. Running that program produces an image or video that can expose object appearance, spatial relationships, and motion in a form the model can inspect and edit.

Learning from visual feedback

According to the project description, training begins with supervised fine-tuning on verified teacher trajectories. Multi-turn reinforcement learning then teaches the model to write a program, execute it, inspect the render, and revise its code. The execution harness supports SVG, HTML, Three.js, Blender, and animation programs. It returns both rendered visuals and diagnostics about execution.

The reward combines two considerations: whether the program runs successfully and how closely its render matches the target. The project measures visual consistency using frozen DINO features and relative depth. The authors say the approach does not require a human-written reference program for every target image or video. Instead, the visual target supplies the comparison signal. This differs from methods that rely mainly on one-shot generation or make repeated corrections only at inference time: CodingDINO aims to teach the model from those feedback loops during training.

Reported results—and what is missing

The project says CodingDINO handles 2D and 3D reconstruction from images and videos, producing outputs for vector graphics, web content, Three.js scenes, and Blender. Its creators report that the 27B model performs strongly across six image-to-code and video-to-code benchmarks, with 42 metrics in total, and competes with models including GPT-6 Astra and Fable 5.2. They also say that, after removing the execution harness at inference time, a single generation can approach the quality of outputs produced through multiple rounds of refinement.

These are claims from the project announcement, not a substitute for the full evaluation. The supplied material does not give benchmark-by-benchmark scores, protocols, or error analyses. The results therefore cannot, on their own, establish how broadly the method outperforms alternatives or where it remains weak.

Why it matters

A program can make scene structure explicit: objects, geometry, and motion can be represented as components that may be rearranged or edited. If training on render-and-revise loops improves the model’s initial spatial representation, the idea could matter beyond graphics generation. The team points to real-to-sim reconstruction and robotics as future directions. But whether visual similarity rewards capture genuine spatial understanding, whether the learned skills transfer to real settings, and how reliable or costly the harness is all remain open questions. The authors say the paper, code, weights, and evaluation logs are public.

Source: Hugging Face Daily Papers

Comments

Checking sign-in status...

Loading comments...

Related articles

CCTest · Blog
TTT-Drive Uses Test-Time Memory for Long-Horizon Driving Scene Reconstruction
Vision & Video
cctest.ai
Vision & Video

TTT-Drive Uses Test-Time Memory for Long-Horizon Driving Scene Reconstruction

TTT-Drive separates synchronized multi-camera fusion from long-range temporal aggregation, aiming to reconstruct moving road users without the cost of global attention across every view. The paper reports gains over evaluated feed-forward baselines on nuScenes, with zero-shot evaluations on Waymo and Argoverse 2.

Read more