LEGO-Anything: Coding Agents for 3D Scene Reconstruction

Xirui Li, Peng Shi, Mingwen Dong, Sheng Zhang, Zhuoyan Xu, Dongkyu Lee, Shuaichen Chang, Yi Xiang and 2 others

University of Maryland, College Park · AWS

Published September 28, 2026 · on the feed September 30, 2026 · ▲ 129 · arXiv 2609.36380

3D, worlds & gamesCode & softwareAgents No code arXiv ↗Hugging Face ↗

The abstract

A 3D scene reconstructed from a single image is most useful when represented not as a rendering or a fixed 3D output, but as an explicit scene program whose execution yields a scene that can be inspected, edited, and queried. We present LEGO-Anything, an Image-to-Code framework in which a coding agent iteratively writes and executes Blender code, inspects scenes and renderings, and revises the program. To evaluate end-to-end scene recovery, we introduce LEGO-Bench, a simulator-grounded benchmark with 208 images from 104 diverse indoor and outdoor scenes. LEGO-Bench separately scores artifact validity, visible-surface geometry, and rendered appearance. Its simulator-grounded design enables extensibility and precise automatic evaluation. Among evaluated agents, GPT-6-astra achieves the strongest overall results, with 53.4% indoor and 39.6% outdoor scores, yet substantial gaps remain between delivering valid scene artifacts and faithfully recovering scene geometry and appearance. Analysis of agent construction trajectories reveals three recurring issues: weak scene initialization, regressive edits during iteration, and unreliable self-evaluation. These findings motivate LEGO-Plugin, a training-free harness plugin for more controlled iterative scene construction, which improves all six evaluated models, with relative gains of up to 62.7% in overall score. Finally, we test whether reconstructed scenes can represent natural images and support vision tasks. In LEGO-World, we derive object detections, instance masks, and relative depth as deterministic queries on scenes reconstructed by GPT-6-astra. These readouts show non-trivial performance across all three tasks but fall well short of specialized vision models, suggesting that program-constructed scenes from current coding agents are a promising but not yet sufficiently precise representation of natural images.

The Brief

3:08

A short podcast summary of the paper. Written and voiced by AI.

Transcript

LEGO-Anything. Coding Agents for 3D Scene Reconstruction. By Xirui Li and nine others, from the University of Maryland, College Park and AWS. Published on the twenty-eighth of September. No code repository is linked to it.

A 3D scene reconstructed from a single image is most useful, the authors argue, not as a rendering or a fixed 3D output, but as an explicit scene program. Run the program and you get a scene that can be inspected, edited and queried. LEGO-Anything is their Image-to-Code framework for producing such programs. A coding agent iteratively writes and executes Blender code, inspects the scenes and renderings it gets back, and revises the program. What that approach needs, and what the paper supplies, is a way to evaluate scene recovery end to end, from the photograph to the rebuilt scene.

LEGO-Bench is that evaluation. It scores three things separately. First, whether the artifact the agent delivers is valid at all. Second, the geometry of the visible surfaces. Third, the rendered appearance. Keeping those apart is what lets the benchmark say where an agent falls short, not only that it does. A program that runs cleanly but builds the wrong room should not score like a program that builds the right room, and a room with the right shape but the wrong look should not score like either. Three separate scores make those cases distinguishable.

The benchmark is simulator-grounded, with two hundred and eight images drawn from one hundred and four diverse scenes, indoor and outdoor. Grounding it in a simulator makes it extensible and allows precise automatic evaluation. A second test, called LEGO-World, asks whether reconstructed scenes can stand in for natural images. Object detections, instance masks and relative depth are derived as deterministic queries on scenes that GPT-6-astra has reconstructed. The idea is that if a scene program really captures the photograph, ordinary vision questions about the photograph can be answered by querying the program, with no vision model in the loop.

Among the evaluated agents, GPT-6-astra achieves the strongest overall results, scoring fifty-three point four percent indoors and thirty-nine point six percent outdoors. Even so, substantial gaps remain between delivering a valid scene artifact and faithfully recovering the scene's geometry and appearance.

Looking at how agents build their scenes, the analysis finds three recurring issues: weak scene initialization, regressive edits during iteration, and unreliable self-evaluation. In plain terms, agents start from a poor first draft, sometimes make the scene worse while trying to improve it, and cannot always tell when they have. Those findings motivate LEGO-Plugin, a training-free harness plugin for more controlled iterative construction. It improves all six evaluated models, with relative gains of up to sixty-two point seven percent in overall score. As for LEGO-World, its readouts show non-trivial performance on all three vision tasks, but fall well short of specialized vision models.

Producing a valid scene and recovering the right scene are separate achievements, and the benchmark is built to keep them apart. On that measure, current coding agents sit in between. The authors' summary is that program-constructed scenes from these agents are a promising but not yet sufficiently precise representation of natural images.

Paper Quest · 7 chapters · about 40 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

One photo, one room, and outputs you cannot fix. That is the wall.

You are rebuilding a 3D scene from a single photo. Learned models output a fixed mesh or point map in one shot; modular pipelines glue specialised parts together.

The road ahead

  1. 1 · The problem ~7 min Rebuilding a 3D scene from one photo usually gives a fixed result you cannot check against the photo, fix, edit or query.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~8 min Represent the scene as Blender code that an agent writes, runs, compares with the photo and revises, so the program itself is the reconstruction.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min The agent loops through four steps: write Blender code, execute it, inspect the scene and renders, and revise the program towards the photo.
  6. 6 · The experiment ~6 min You’ll guess: Adding the training-free LEGO-Plugin harness to coding agents that rebuild 3D scenes as Blender programs, how large was the best relative gain in overall score?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.