A coding agent writes Blender code to rebuild a scene from one photo. The best agent scores 53.4% indoors, and a training-free plugin lifts weaker agents by up to 62.7%.
Pick a builder and press run. Watch the scene on the right grow toward the reference on the left, edit by edit. Then we build, piece by piece, how a program rebuilds a picture and how we score it.
You need what a language model is and what a program is. We build the rest from zero.
Every builder starts from an empty Blender scene and the same reference image. Watch which ones keep their progress.
Endpoints are the paper's: GPT-5.6-sol 14.7 and Sol with the plugin 32.5 are the Reception example (Figure 9, best of three base runs, overall score as a percent); GPT-6-astra 53.4 is the indoor mean (Table 3). Those are different slices, so compare the shapes, not the gaps. The edit-by-edit curves and the toy room are illustrative: they only follow the paper's reported behaviour (Sol's final scene trails its best by 3.2 points, Section 5.1).
Chapter 0
See why a scene written as code can be run, checked and edited, and meet the four pieces of the paper
You photograph a meeting room. It has a table, a lamp, a plant and a box on the floor. You want a 3D copy of the room on your computer. Then you ask three plain questions.
Can I move the lamp? How many objects are in the room? Does my copy match the photo? The answers depend on what kind of thing the copy is. There are three common kinds.
The first kind is a render: a picture. It is a grid of colored dots, called pixels. A render looks like the room, but it has no lamp. It has a patch of yellow pixels. You cannot move a patch without leaving a hole behind it.
The second kind is a fixed 3D output. A learned model reads the photo once and writes out a 3D answer in one pass. The answer may be a mesh (a net of small triangles that forms a surface), a point map (a 3D position for every pixel) or a set of objects. This kind has depth. But it is a final answer. The paper notes that learned models and modular pipelines (a chain of specialist parts for seeing, reconstructing, fetching assets and assembling) offer no direct way to check the result against the input and revise it.
The third kind is a scene program: code that, when it runs, builds the scene. Objects, shapes, layout and camera are all written down as lines. The authors say such a program can be run, inspected, edited and queried like any other code. Try it below.
The left side is the program. The right side is the scene it builds. Drag lamp.x or switch the box off. Watch which lines change and which objects move.
A toy room with four objects and four lines of pseudo code, made for this lesson. Real programs in the paper are Blender Python scripts with far more lines.
One line changed. One object moved. Three objects stayed where they were. The program also answers questions: it knows it holds four objects, because it contains four lines that make objects. A render cannot tell you that. A fixed 3D output can only guess.
The paper is called LEGO-Anything. The name points to the method: you do not drop the scene in one piece. You place one brick at a time, look at the model, and fix what is wrong.
The builder is a coding agent: a language model that can write code, run it, read the result and try again. The software around the model is its harness. The harness gives the model tools and runs the loop. Our lesson on harness engineering and the Veanor Code as Agent Harness cover harnesses in depth.
The code is written for Blender, a free 3D program that you can drive with Python scripts. A step goes like this. The agent edits the code. Blender runs it and renders the scene. The agent looks at the render next to the photo and decides what to change. The authors call this task Image2Code: one image in, one scene program out.
The paper asks three questions. How faithfully can coding agents rebuild a scene from one image? What limits their step-by-step construction? Are the resulting programs precise enough to stand in for the image itself? It answers with four pieces.
The headline results fit in three sentences. The best agent, GPT-6-astra, scores 53.4% indoors and 39.6% outdoors. Almost every agent delivers a valid scene file, but few rebuild the geometry well. The plugin lifts weaker agents by up to 62.7% in relative score.
Chapter 1
Learn what a scene program holds, how a camera turns 3D into a picture, and why one picture cannot fix the size
Hold a coffee cup 30 cm from your eye. Then hold it at arm’s length. The cup fills less of your view the second time. Your eye is a camera. It records the shape of the cup in the picture, but it does not record the distance.
That one fact shapes the whole paper. An agent that sees a single photo must guess sizes and distances. This chapter shows what the agent builds, how the camera works, and where the guessing starts.
In Blender, a scene is a list of things. The main kind of thing is an object. An object has a mesh, which is its shape. It has a transform, which says where it sits, how it turns and how big it is. It has a material, which sets its color and shine.
A scene also holds lights and one active camera. The render is the picture that the active camera sees. Positions use three axes, X, Y and Z, with Z pointing up. The unit is the metre.
A scene program is a script that creates these things. Here is the kind of code an agent writes. It is a schematic, not the paper’s own output.
pythonimport bpy # Blender's Python interface # one object: a box 0.5 m wide, standing on the floor, 4 m in front of the origin bpy.ops.mesh.primitive_cube_add(size=1, location=(0.5, 4.0, 0.4)) box = bpy.context.object box.name = "box" box.scale = (0.5, 0.5, 0.8) # width, depth, height in metres # the camera: where it stands, where it looks, how wide it sees cam = bpy.data.objects["Camera"] cam.location = (0, 0, 1.5) cam.data.angle = radians(60) # horizontal field of view
Picture the simplest camera: a dark box with a tiny hole in the front and a sensor at the back. Light from a point in the room travels in a straight line through the hole and lands on one spot of the sensor. This is a pinhole camera.
Two similar triangles give the rule. One triangle sits outside: a point is X metres to the side of the axis and Z metres ahead. The other sits inside: the spot lands u pixels from the centre, and the sensor sits f pixels behind the hole. The triangles have the same shape, so the ratios match.
The field of view tells you f. For an image w pixels wide with horizontal field of view θ, f = (w/2) / tan(θ/2). LEGO-Bench gives the agent this field of view as public metadata. Take w = 1,000 px and θ = 60°. Then f = 500 / 0.5774 = 866 px.
Now place the box edge X = 0.5 m right of the axis at depth Z = 4 m. Then u − cx = 866 × 0.5 / 4 = 108.3 px. Place a larger box edge at X = 1.0 m and Z = 8 m. Then u − cx = 866 × 1.0 / 8 = 108.3 px. Both land on the same pixel.
The top-down view shows the camera and a box. The strip shows the picture. Choose what to hold fixed, then drag the distance.
Image 1,000 px wide, horizontal field of view 60 degrees, so f = 866 px. The reference picture is a 0.5 m box at 4 m, which spans 108 px. This is a toy of the formula above, not a figure from the paper.
In the first mode, a fixed box shrinks in the picture as it moves away. In the second mode, you keep the picture the same, and the box has to grow with the distance. Both scenes are correct answers to the same photo. A single image cannot tell them apart.
The agent sees one image, so it must use cues to pick a size. A floor line gives a hint. A chair has a usual height. The room layout helps too. These are guesses, and some are wrong.
The guesses have a cost. The benchmark compares your geometry with the truth directly, in the camera’s own frame, with no fitted shift, turn or scale (Chapter 4). A box that is twice too large and twice too far makes a perfect picture and a poor geometry score.
The plugin of Chapter 9 respects this limit. Its starting plan records each object’s place in the picture, its relative depth and its depth order. It deliberately leaves out metric depth and absolute size, because a single monocular image cannot give them reliably.
One more detail matters later. The simulator that renders the benchmark uses a left-handed system in centimetres. The evaluator uses a right-handed system in metres, with Z up. The paper converts with one line.
pU = (250, 100, 80) cm → D pU / 100 = (2.50, −1.00, 0.80) m
For more on cameras and depth, see our 3D vision and multi-view geometry lessons. Many views remove the ambiguity. One view does not.
Chapter 2
Follow one coding agent through its workspace, its actions and its stages, and write the loop as code
Picture a builder at a table. A photo of a room lies beside a box of bricks. The builder places a few bricks, steps back, looks at the photo, and repairs what is wrong. Then the builder places a few more. The builder never gets the room right in one move. The room appears through many small moves, each one checked by eye.
A coding agent builds a scene the same way. This chapter gives that picture a precise form: one formula, one workspace, one list of stages, and the loop as code.
The paper writes the task in two short lines. A single image goes in. A program comes out. Running the program gives a scene.
The agent does not write P in one go. It alternates between editing code, running it and inspecting the scene and its renders. That gives a construction trajectory: a list of triples, one per step t. Each triple holds the program so far Pt, the scene it built St, and the observation ot the agent saw afterward. An observation can be printed text, an error message or a render. The final program is P = PT.
At the end, the agent submits three files: scene.blend (the editable Blender scene), scene.glb (a standard export of the geometry) and final.png (a render). Together they form an executable artifact: something a grader can open, run and query.
The agent works in a small workspace. scene.blend and a notes file, README.md, are editable. scene.glb and final.png are read-only outputs. Six actions are open to it: read a file, plan, write code, execute, check, and persist (save its work).
The tools reach Blender through Blender-MCP. MCP is the Model Context Protocol, a standard way for an agent to call outside tools. All the coding-agent experiments use Codex, a coding-agent harness from OpenAI. Each trial runs inside a Harbor container, a sealed box that holds Blender 5.0.1 and nothing else the agent could peek at. The agent gets one public RGB image. It never gets the private depth, masks or scores.
The base instruction is short. In paraphrase: reconstruct the depicted scene in Blender, make real 3D geometry rather than an approximation of the rendered image, keep major objects as separate scene objects, and save and export every required artifact before you finish. The rule against image approximations matters. Without it, an agent could paste the photo on a flat plane and call it done.
Figure 2 of the paper abstracts one run of GPT-6-astra into eleven stages. Read them as a story with a loop in the middle.
Stages 6 to 10 repeat. A failed check sends the agent back to stage 6. Below is the loop as code, with the shape of each piece of data in a comment.
pythondef build_scene(image, model, blender, budget): # image: a 3 x H x W array of 8-bit colors; it enters the model as input tokens plan = model.interpret_and_plan(image) # stages 3-5: text program = "" # P_0: no code yet obs = None for t in range(budget): code = model.write_code(image, plan, program, obs) # stage 6: a text edit result = blender.execute(code) # stage 7: printed text or an error render = blender.render() # stage 8: a 3 x H x W image if result.ok: program += code # P_t: failed code is not kept obs = (result.text, render) # o_t, what the model reads next if model.says_done(image, render): break # stages 9-10: the MODEL judges itself blender.export("scene.blend", "scene.glb", "final.png") return program
Watch the line says_done. The same model that builds the scene also decides if the scene is good enough. Chapter 8 shows that this self-judgment is weak.
Press Step to move one stage at a time through four iterations. Watch the program grow, the scene change, and what the agent reads afterward.
A toy run written for this lesson. The paper’s runs have many more steps and real Blender code; the four stages and the error-as-feedback pattern are the paper’s.
Iteration 3 is the useful one. The code failed, the scene stayed put, and the error text became the next observation. A broken line costs one step. It is also information, which is why code works well as the agent’s way to act. See our lessons on agents and tool use and harness engineering for the general pattern.
Chapter 3
See how pictures rendered from finished simulator scenes give both natural-looking inputs and exact answers
A teacher wants to grade a student’s 3D model of a room. For that, the teacher needs the true 3D positions of everything in the room. With a real photograph, nobody knows them. You could scan the room with lasers, but that is slow and costly. You could build a simple cartoon room instead, but then the picture looks nothing like real life.
The paper states the bind in one line: real photographs lack precise 3D ground truth, while simple synthetic scenes lack realism. Ground truth means the known right answer that you grade against.
The authors reverse the usual steps. They start with a finished 3D scene that professional artists built. Then they take the picture from it. Now they hold two things: a realistic image, and the exact 3D scene behind it.
The agent gets only the image, plus a few public facts: the image size, the horizontal field of view, a list of allowed object categories, and the format of the answer. Everything else stays private to the grader. That includes the true geometry, the depth, the object masks, the matching of objects, and the scene transforms.
Two terms help here. A depth map stores, for every pixel, the distance to the surface it shows. An instance mask is a picture where each pixel carries the label of the object it belongs to, so that two chairs get two labels. The grader uses both to score the agent’s scene.
The scenes live in LychSim, a controllable simulation framework. The assets come from packs on the Fab marketplace. The authors keep only assets whose usage terms allow AI use. Figure 3 of the paper describes the pipeline in five moves.
The pipeline needs only registered assets and a scene specification. So anyone can add scenes, difficulty levels or views without changing how scoring works. The authors show this with an extra split: ten overhead views of New York City, used as a stress test.
How do you make a benchmark harder in a fair way? A bad way is to use a different room. Then you cannot tell whether the agent failed because of the room or because of the extra objects.
The paper groups scenes into themes. Inside a theme, the objects are nested: the Easy set sits inside the Medium set, and Medium sits inside Hard. Architecture, materials, lighting and camera stay fixed. Every object shared by two tiers keeps the same asset, place, scale and bounding box. Each kept object must be visible in at least one view and must rest on something. Only the visible content grows.
Choose a tier. The room, camera and lights never change; only the objects grow. Then switch on the private view to see what only the grader holds.
A toy room. The object counts per tier and the depths are made up for the picture. The nesting rule, the fixed room and the public and private split are the paper’s (Sections 4.1 and D.2).
This nesting is a matched comparison. If the score falls from Easy to Hard, the cause is the added objects, because nothing else moved. It works like an exam where the harder version adds questions but keeps the earlier ones.
LEGO-Bench holds 208 RGB inputs from 104 logical scenes, so each scene gives two views. The scenes span 8 environments and 17 themes, and use 443 registered assets. Ten of the 208 inputs are the bird’s-eye split. The main tables pool them with 90 ground-level outdoor views, which leaves 108 indoor images by subtraction.
One fixed slice recurs in later chapters: the 42-case Office subset. It has seven room types, three complexity levels and two paired views per room and level. That makes 7 × 3 × 2 = 42.
Table 1 of the paper compares LEGO-Bench with its neighbors. Only LEGO-Bench ticks all six boxes.
| Benchmark | Image input | Scene-level | Executable | Indoor and outdoor | Natural-image style | Controlled difficulty |
|---|---|---|---|---|---|---|
| 3DCodeBench | yes | no | no | no | no | no |
| WorldCoder-Bench | no | yes | yes | no | no | no |
| P3D-Bench | yes | no | no | no | no | no |
| SEIG | yes | no | yes | no | no | no |
| SceneActBench | yes | yes | yes | no | no | no |
| LEGO-Bench | yes | yes | yes | yes | yes | yes |
The cost of this design is honest to state. The inputs are renders of artist-built scenes. They look like natural images, but they are not photographs. Chapter 11 returns to this limit.
Chapter 4
Learn the gate that checks the files, then the point-matching score that grades the surfaces the camera can see
Two students hand in a model of the same room. In the first, the chair stands 20 cm from where it should. In the second, the chair is missing. A grader needs a number for each model. The rule must also stay fair when the chair is far from the camera.
LEGO-Bench scores each trial on three axes: Validity V, Reconstruction R and Appearance A. This chapter covers the first two. Chapter 5 covers the third and joins all three.
Validity asks one question: did the agent hand in usable files? Three checks apply. scene.blend must open and hold at least one mesh and an active camera. scene.glb must be a well-formed export that is not empty. final.png must be an image that decodes and is not blank.
The grader judges the files themselves, not the exit status of the process. A run that timed out can still leave valid files. A clean exit does not prove the files are valid. A failed submission gets V = 0, and its R and A are also set to zero. A poor scene alone is never invalid. A scene that opens but looks wrong is valid and scores low on R and A.
A single photo shows only the front of things. Nobody can tell the back of the sofa from one view. So the grader compares only the surfaces the reference camera can see.
It builds two sets of 3D points. The reference-visible points come from the private depth map: each pixel’s depth is turned back into a 3D point. The submitted-visible points come from the agent’s scene: the grader draws its triangles from the scene’s own active camera and keeps the nearest surface at each pixel. Then it sorts both sets into objects with the private instance masks.
This sorting uses where a point lands in the image, not what the agent named it. Names, categories and mesh groups do not matter. A wrong scale, a wrong camera or a duplicate object all show up in the same way: points land in the wrong mask or miss the reference by too much.
The comparison has no alignment step. The grader does not fit a shift, a turn or a rescale to help you. It compares both point sets in the camera’s frame as they are.
For one object o, let G be its reference points and Q its submitted points. A reference point is found if some submitted point lies close enough to it. A submitted point is right if some reference point lies close enough to it. Recall is the fraction of reference points found. Precision is the fraction of submitted points that are right.
“Close enough” needs a number. A fixed 5 cm would be too strict for a far wall and too loose for a near cup. So the tolerance grows with distance. It is 5% of the reference point’s forward depth z.
The paper calls this score F@5%. It also reports stricter F@2% and looser F@10% variants in the appendix.
Here is a worked case. An object has 8 reference points. The agent’s scene covers only 5 of them, and all 5 are within tolerance. Recall is 5/8 = 0.625 and precision is 5/5 = 1.0. So F = 2 × 1.0 × 0.625 / 1.625 = 0.769. Now add 5 stray points inside the same mask, far from the surface. Precision falls to 5/10 = 0.5. F becomes 2 × 0.5 × 0.625 / 1.125 = 0.556. A plain average of the two would give 0.5625, which hides how much the second case suffers.
Blue dots are the true surface. Warm dots are the agent’s surface. Each blue circle is the tolerance. Shift the agent’s surface, cover less of it, add stray geometry, or move the object farther away.
A toy object with 12 reference points on a flat face, seen from above, scored with the paper’s rule (tolerance 0.05 z, nearest-neighbour tests, harmonic mean). The surface, depths and errors are made up for the picture.
Try the sliders. At depth 4 m the tolerance is 0.20 m. An error of 0.15 m passes and 0.30 m fails. Move the object to 10 m, and the tolerance is 0.50 m, so the same 0.30 m error passes. Cover only 40% of the surface and recall falls while precision stays at 100%. Add stray points and precision falls instead.
Two edge rules complete the score. An object with reference points but no submitted points gets F = 0. An object with no reference points at all is dropped from the average. Visible geometry outside every scored mask is left out of R, but Appearance (Chapter 5) will notice it.
pythonimport numpy as np from scipy.spatial import cKDTree def object_f1(G, Q, frac=0.05): """G: (n,3) reference-visible points, Q: (m,3) submitted-visible points. Camera frame, metres, column 2 is forward depth z.""" if len(G) == 0: return None # no target points: object is dropped if len(Q) == 0: return 0.0 # target exists, nothing submitted: F = 0 d_g, _ = cKDTree(Q).query(G) # each reference point to its nearest submitted point rec = np.mean(d_g <= frac * G[:, 2]) # tolerance uses the reference depth d_q, j = cKDTree(G).query(Q) # each submitted point to its nearest reference point prec = np.mean(d_q <= frac * G[j, 2]) return 0.0 if prec + rec == 0 else 2 * prec * rec / (prec + rec) def reconstruction_score(objects): # objects: list of (G, Q) per scored object f = [object_f1(G, Q) for G, Q in objects] f = [x for x in f if x is not None] return sum(f) / len(f) if f else 0.0
Chapter 5
Learn how the grader re-renders the scene, counts matching pixels, and folds three axes into one score
Two rooms have the same shapes in the same places. One is lit by morning sun. The other sits under a dim lamp. A shape score cannot tell them apart. A person can, at once. The color, the material, the shadows and the camera all differ.
The Appearance score covers this. It asks how much the finished picture looks like the reference.
The agent hands in a final.png. The grader does not score it. Instead it opens the submitted scene and renders it fresh. It keeps the scene’s own camera, geometry, materials, lights and color settings. It fixes the render engine and the output size.
The reason is simple. A picture the agent made itself proves little. An agent could pick a flattering angle, or paste in the reference. A fresh render from the submitted scene can only be as good as the scene. The grader then resizes the reference to match. It applies no warp, no crop, no camera fix and no color correction. A camera error therefore shows up as an appearance error.
Each pixel holds three numbers, red, green and blue, from 0 to 255. Compare the render pixel with the reference pixel. Take the largest of the three differences. Call the pixel correct if that largest difference is at most 30. Appearance is the fraction of correct pixels.
Take a reference pixel (200, 180, 150) and a render pixel (215, 170, 160). The differences are 15, 10 and 10. The largest is 15, which is at most 30, so the pixel is correct. Now take a render pixel (200, 180, 110). Two channels match exactly, but the third differs by 40. The largest is 40, so the pixel is wrong. Using the largest channel, not the average, is a strict choice. One bad channel is enough.
Each patch stands for a group of pixels. Green patches are within the tolerance. Red patches are not. Drag δ, then add a lighting error and watch Appearance fall.
The 160 patch errors are made up: most are small, some mark a wrongly coloured object, and one block marks a missing object. The rule (largest channel, tolerance δ) is the paper’s. The Reconstruction score of 40% is illustrative.
Two things stand out. First, a missing object costs a whole block of patches, and no setting of δ rescues it. Second, a lighting error hits patches everywhere. Even a perfect geometry loses Appearance if the light is off. The paper says this directly: the score is sensitive to lighting, materials, camera error and geometry. It is not a perceptual model, and it is not an independent check of geometry. That is why the benchmark reports R and A separately.
The paper stresses one more rule about the gate. In the main table, a submission with usable files whose evaluation could not be completed also gets V, R, A and S set to zero. The grader never drops a failed case from the average, because dropping it would reward an agent that fails on its hardest rooms. A failure is a zero that stays in the count.
For each case i, the benchmark takes the mean of R and A and multiplies by V. V is 1 for a valid case and 0 for an invalid one. The final score S averages this over all N cases that were tried, including the failures.
You can check the formula against Table 3. GPT-6-astra scores R = 52.4 and A = 54.4 indoors. Half of the sum is 53.4, and the table lists 53.4.
| Model, indoor | R | A | (R + A) / 2 | S in Table 3 |
|---|---|---|---|---|
| GPT-6-astra | 52.4 | 54.4 | 53.4 | 53.4 |
| GPT-6-sol | 22.2 | 42.5 | 32.35 | 32.3 |
| GPT-6-luna | 15.8 | 30.5 | 23.15 | 23.2 |
| GPT-5.6-sol | 9.8 | 19.8 | 14.8 | 14.8 |
The table averages three runs, so the last digit can differ by rounding. One row shows why two axes matter. The baseline Gen3DSR reaches R = 65.4, higher than any coding agent, but its A is 0.0 because it produces no evaluable appearance. Its S is 30.1, below GPT-6-astra even though its shapes are better.
Can we trust the metrics? The authors ran a blinded A/B/Tie study with six annotators on 240 samples. Annotators agreed with each other 86.6% of the time (88.9% on shape, 84.3% on appearance). The metrics agreed with the humans 83.7% of the time when a score gap under 0.05 counted as a tie.
pythonimport numpy as np def appearance(render, ref, delta=30): """render, ref: (H, W, 3) uint8 arrays of the same size.""" err = np.abs(render.astype(int) - ref.astype(int)).max(axis=2) # (H, W): largest channel gap return float((err <= delta).mean()) # fraction of correct pixels def benchmark_score(cases): # cases: list of (valid, R, A); failures stay in the list return np.mean([v * (r + a) / 2 for v, r, a in cases])
Chapter 6
Read Table 3 by its shape: who delivers files, who recovers geometry, and what harder scenes and more thinking change
When you read a leaderboard, look at its shape before its top row. Where do the bars drop off? Which column hides a trap? This chapter reads the paper’s main table that way.
Table 3 holds twelve systems. Six are GPT coding agents run in the Codex harness: GPT-6-astra, GPT-6-sol, GPT-6-luna, GPT-5.6-sol, GPT-5.6-terra and GPT-5.6-luna. Two are task-specific LLM systems, VIGA and SceneConductor. Four are single-image scene-construction baselines: 3D-RE-GEN, Gen3DSR, REST3D and SceneGen. Each number is a mean over three runs.
Pick a split and a metric. V is validity, R is reconstruction, A is appearance and S is the overall score. A dash means the system does not support that split.
All values are from Table 3 of the paper (percent, mean of three runs). Scoring is equal for every row, but inference budget and information access are not (Appendix F.2).
Switch the metric to V. All six GPT agents sit at 97.8% or above indoors. The files open. Now switch to S. The bars fall from 53.4 for GPT-6-astra to about 15 for the strongest GPT-5.6 agents. Delivering a valid scene is solved. Recovering the room is not.
Now switch to R. Gen3DSR, a pipeline that builds scenes from a single view, gets 65.4, higher than every coding agent. Switch to A. Its bar vanishes, because it makes no evaluable appearance. The agents are the only systems that do well on both axes. Also note that three baselines do not support outdoor scenes. Outdoors, the overall score falls for every system except GPT-5.6-sol, which moves from 14.8 to 15.3. The paper says fidelity drops for every model, but its own table shows that one exception.
One caution from the paper’s appendix: the scorer is the same for all rows, but the systems do not share budgets, tools or information. Read the table as “what each system hands in”, not as a controlled contest of methods.
Table 3 also lists a standard deviation over the three runs. Use it to decide which gaps are real. GPT-6-astra’s indoor S is 53.4 with a spread of 0.8, so its lead over GPT-6-sol at 32.3 is far outside the noise. But look at the three GPT-5.6 agents indoors: 14.8 (spread 1.0), 15.4 (0.6) and 14.1 (1.3). Those three overlap. The table cannot rank them, and you should not either.
The outdoor split costs almost every model something. GPT-6-astra falls from 53.4 indoors to 39.6 outdoors, a loss of 13.8 points, or about 26% of its indoor score. The paper does not say why outdoor scenes are harder, so we do not guess. Check the Outdoor view of the leaderboard above to see which systems fall most.
Average the six GPT agents over the three tiers. Validity stays at 99.5%. The overall score falls from 24.6 on Easy to 21.3 on Medium and 20.5 on Hard. Table 4 splits it by axis.
| Tier | Indoor R | Indoor A | Outdoor R | Outdoor A |
|---|---|---|---|---|
| Easy | 23.3 | 30.4 | 18.4 | 25.3 |
| Medium | 19.7 | 27.9 | 14.2 | 22.8 |
| Hard | 18.8 | 27.4 | 12.7 | 22.4 |
Every column falls. The steepest drop is outdoor Reconstruction, from 18.4 to 12.7. Because the tiers are nested (Chapter 3), the drop comes from the added objects alone.
Does the agent do better if it thinks longer? The harness lets you set the reasoning effort: how many thinking steps the model may spend before it acts. Spending more compute at answer time is called test-time scaling. The authors vary effort from Low to Medium, High and XHigh on the 42-case Office subset. Inputs, prompts, budgets and scoring stay fixed.
Choose a model. The solid bars are the two values the paper states in text. The dashed slots are the middle settings, which appear only in the paper’s figure.
Office subset, 42 cases (Figure 4 and Section 4.3). Only the Low and XHigh values are stated in the text; Medium and High are not reproduced here. Intervals in the paper are bootstrap intervals over the 42 inputs.
Gains grow with model strength. Astra gains 29.5 points, sol gains 18.4 and luna gains 6.8. Astra levels off toward XHigh, while sol keeps rising. The GPT-5.6 models show weak or uneven changes. So thinking time helps the strong models most. A weak model cannot turn extra thought into a better room.
The cost view agrees (Finding 8 in the appendix). GPT-5.6-luna is the cheapest point. The GPT-6 family forms most of the quality and cost frontier. GPT-6-astra reaches the top score at much higher spend, and GPT-5.6-sol and GPT-5.6-terra fall off the frontier.
Chapter 7
Score every step of a run, not only the last one, and name the failures that the final number hides
A marathon result gives one time. It does not say whether the runner started late, stumbled in the middle or faded at the end. Splits tell that story. A final benchmark score is like the finish time. It says how far the agent got. It does not say why it stopped there.
So the authors took every trajectory from the main experiments and scored every intermediate scene that could be rendered. The checkpoint quality is Q = (R + A) / 2, computed offline. The agent never sees it. An eligible checkpoint needs a valid Blender scene, a geometry export, and both R and A scores.
The trajectory view gives three quantities. Each is simple to compute.
Take a toy run. Q after the scorable steps is 8, 14, 22, 17, 21, 15, 19. The first scorable scene is at step 3 of 8, so it arrives 37.5% of the way in. There are six edits after it. Two of them lower Q (22 to 17 and 21 to 15), so the rate is 2/6 = 33%. The best Q is 22 and the final Q is 19, so the regret is 3 points. The agent had a better scene and gave it up.
Pick an agent and press New run to draw a fresh 20-edit run. The dashed line marks the best scene. Then turn on rollback and run again.
Random toy runs, drawn in your browser. The stronger agent starts at about 10% of the budget and rarely regresses; the weaker agent starts at about 20% and regresses on about 30% of edits, matching the paper’s ranges (Section 5.1). The rollback switch uses the true score, which a real agent does not have (Chapter 8).
GPT-6-astra reaches its first evaluable scene within about the first tenth of its budget. GPT-5.6-sol needs about a fifth. That leaves it less budget for render-based refinement. After the start, astra improves steadily. Sol often stalls or declines: 29.6% of its edits lower the score, and its final scene trails its best intermediate scene by 3.2 points.
The appendix adds a subtle point. Astra reaches its first scene later in wall-clock minutes, but earlier as a share of its own run. It also has the lowest regression rate and the smallest regret of the four models studied. But even for astra the path is not smooth. Every model shows a non-monotonic path. A submission is the end of a trajectory, not the best state of it.
Figure 12 shows how bad one case can be. On a house bedroom, astra’s best checkpoint scored Q = 33.90% at step 2. Its last checkpoint, at step 4, scored 4.35%. That is a loss of 29.55 points from a late edit. GPT-5.6-terra did worse: best 36.93% at step 4, last 2.10% at step 19. The paper uses this only as a severity example, picked because it had the largest mean best-to-last gap across the four models.
Why does an early first scene matter? Think of the budget as a fixed number of edits. Say the budget is 20 edits (a toy number for this lesson). An agent that has a scorable scene after edit 2 keeps 18 edits to refine it. An agent that needs until edit 4 keeps 16. The late starter has less room to use renders for correction, and the paper says exactly this: the late agent is left with less budget for render-based refinement.
Think about what one edit does. A line that moves the lamp may also change the camera, or rescale a group that the lamp belongs to. The scene is shared state. A small change in code can ripple through many objects. The paper says the regressions come from later edits that damage geometry, camera settings or a previously stronger scene.
The paper adds a fix for the same problem: Version Control, which Chapter 9 describes. Its design hints at a gap. In the plain loop, the agent works on the latest version, and nothing in the loop sets aside the best state so far. That reading is ours, not the paper’s.
These facts name two of the paper’s three recurring issues: weak scene initialization (a late first scene) and regressive edits (progress lost during iteration). The third issue, unreliable self-evaluation, is the next chapter. Together they explain what the plugin of Chapter 9 sets out to fix.
Chapter 8
Test whether a model can tell which of two scenes is better, and learn why the answer pushes the fix toward measurement
Ask a student to grade their own essay. If the student could see the weak parts, the student would have fixed them already. The agent loop of Chapter 2 relies on exactly this skill. After each render, the model looks at the picture and decides if the scene is good enough. If that judgment is poor, the loop has no steering wheel.
The authors test the skill directly. They take two checkpoints from one run, an earlier and a later one, and show the renders to a judge model next to the reference. The judge picks the better scene. The authors then check the pick against the deterministic LEGO-Bench metric. If the metric says the later scene was better, a judge who picks it is correct. A coin flip is correct 50% of the time.
Every one of the six GPT models plays both roles, builder and judge. That gives 6 × 6 = 36 builder and judge pairs. Each builder supplies 60 checkpoint pairs from 60 different valid runs, so there are 360 pairs and 2,160 judgments. The pairs are balanced across sequence gaps of 1 to 2, 3 to 5, and 6 or more steps.
The judge is blind. It sees only the reference and the two renders. It does not see the model names, the transcripts, the depth, the masks or the scores. It is asked two separate questions. For Reconstruction: which candidate better matches the geometry, such as viewpoint, layout, scale, shape and silhouette, while ignoring color and light? For Appearance: which better matches color, material, texture, lighting and shadow? It answers left, right, tie or both bad. A both-bad answer or a failed call counts as wrong. A tie matches only when the metric also ties.
Each cell of the results grid rests on 60 pairs. That is small. Before you read the numbers, you need to know how far a coin flip can wander from 50%.
Suppose the judge guesses. The number of right answers out of n pairs then follows a binomial spread. Its standard error, as a fraction, is the square root of p(1 − p)/n.
SE = √(0.5 × 0.5 / 60) = 0.0645, or 6.5 percentage points
So a cell at 45% sits less than one SE below a coin flip. Even 56.5% would not stand out. A cell must reach about 63% or fall to about 37% before we can say it differs from chance. This is our own arithmetic on the paper’s setup, but it frames the table fairly.
Rows are builders and columns are judges. Green means above chance and red means below. Faint cells lie within one standard error of 50%. Tap a cell to read it.
All 72 cell values are from Table 8 of the paper (agreement with the metric's direction, percent of 60 pairs). The one-SE band of 6.5 points is our arithmetic, assuming independent pairs.
Look at the Reconstruction view first. Most cells sit near or below 50%. The best one is GPT-6-astra judging its own pairs, at 61.7%, and that is under two SE above chance. Averaged over the 36 pairs, self-judgments agree with the metric 45.8% of the time on geometry, and judgments by other models agree 45.4%. Judges are near or below chance on geometry.
Now switch to Appearance. The cells are higher. GPT-6-astra’s pairs reach 77% to 87%. The same judges do worse on the GPT-5.6-luna pairs, down to 35.0%. Averaged, self-judgments agree 62.2% and cross-model judgments 63.9%. Color and light are easier to compare than three-dimensional layout.
The key result is what the diagonal does not show. Self-judging beats the mean of the other five judges for only 3 of 6 builders on Reconstruction and 2 of 6 on Appearance. A model does not know its own work better than a stranger does. The paper calls this Finding 5: coding agents cannot reliably judge scene quality, especially geometry.
One more caution. Because ties and both-bad answers count as wrong, a judge that refuses to pick is scored below 50%. So a pooled rate under 50% does not prove that judges are worse than a coin. It does show that they are no better.
If the model cannot see whether the lamp is placed well, more looking will not fix it. The authors draw the plain conclusion. Refinement should be grounded in deterministic evidence, not in self-assessment. Measure the lamp’s position in the picture. Compare that number with the reference. Chapter 9 builds that.
Chapter 9
Add a better start, a tape measure and an undo button to any agent, with no training
Imagine a builder with three bad habits. The builder starts with a blind guess. The builder cannot tell if a brick is placed well. And the builder sometimes knocks over a good tower while fixing a small thing. You do not retrain such a builder. You put a foreman at the table. The foreman gives a sketch to start from, a tape measure, and an undo button.
That is LEGO-Plugin. Each guard answers one failure from Chapters 7 and 8.
| Failure | Guard | What it adds |
|---|---|---|
| Weak initialization | Enhanced Initialization | A starting room and camera taken from the reference |
| Unreliable self-evaluation | Grounded Refinement | Measurements against the reference, not opinions |
| Regressive edits | Version Control | Accept, repair or roll back each edit |
The plugin is a training-free control layer. It reaches the agent through MCP tools, workflow skills and runtime hooks. The agent stays the planner. Blender-MCP stays the only general scene editor. So the plugin fits into harnesses that keep changing. It adds no unrestricted code path, and it never edits the scene unless the agent calls it. Every signal comes from the reference image and the current scene. It never reads the private ground truth or the benchmark scores.
The first scene is the weak point for weaker agents. The plugin recovers the room and the camera from the reference with VGGT, a model that predicts camera and scene geometry from images. It builds a gravity-aligned Manhattan frame: a frame whose three axes match the room’s floor and walls, which meet at right angles. It installs the room and the camera together after checking them.
Then it writes a construction plan. For every visible object the plan holds a normalized centroid (its centre in the picture, scaled to 0 to 1), its projected extent, its relative and ordinal depth, and flags for how visible it is. The plan leaves out metric depth and absolute size on purpose, for the reason you met in Chapter 1.
Chapter 8 showed that agents cannot judge geometry by eye. So this guard measures. It extracts object regions from the reference with SAM 3 (a segmentation model) and relative depth with Depth Anything V2. It then compares the scene against these targets through residuals: the gap between what you measure and what you want. The paper names projected extent and relative depth as examples. The providers return only regions and depth maps. The agent decides which Blender object each region matches.
These two formulas are our own plain version of what the paper calls projected centroid and extent. The paper does not print exact formulas or tolerances.
The dashed blue box is the lamp’s mask in the reference. The warm box is the lamp in your scene. Move and resize it. The arrow shows the residual. Switch off the mask to see what happens without evidence.
The tolerances here (centroid 0.05, extent 15%) and the toy lamp are illustrative. The pass, fail and unknown outcomes, and the rule that missing evidence blocks acceptance, are the paper’s (Appendix G.5).
The checks come in a fixed vocabulary: existence, transforms and dimensions, support, containment, collision, facing, repeated layout, camera visibility, projected centroid and extent, reference depth, depth order, and rendered brightness. Each returns pass, fail or unknown. A hard requirement that fails, or that lacks evidence, blocks acceptance. Other failures become warnings. A report is tied to the exact scene state. Any later change makes it stale. Each candidate gets at most two correction rounds.
Version Control wraps every bounded edit in a transaction. The transaction declares which objects the edit may change, which it must not touch, what kinds of change are allowed, and what must pass afterward. Before the edit, the plugin snapshots transforms, meshes, materials, hierarchy, visibility, the active camera and the render settings.
After the edit, the plugin rejects any change to protected or undeclared objects. The transaction commits only if it made a non-empty allowed change and all hard requirements pass. Otherwise it rolls back: it removes the new objects and restores the snapshot. In the evaluation runs, a case may use at most eight transactions and two rollbacks, to prevent endless repair loops. Runtime hooks stop the agent from finishing while checks are stale, transactions are open, or renders are unreviewed.
Press Next edit to apply the agent’s eight edits one by one. Compare the line with version control on and off.
Illustrative edit effects (+8, +6, −9, +5, +7, −6, −7, +4) on a toy score that starts at 10. The limits of 8 transactions and 2 rollbacks per case are the paper’s. The text we read does not say what happens after the rollback budget runs out; the toy lets the third bad edit through.
The authors test the plugin on the 42-case Office subset. For each model, the inputs, prompts, budgets, reasoning effort and evaluator are identical with and without it. The result: the plugin improves all six models, and the gain is larger for weaker ones.
| Model | Relative gain in overall score |
|---|---|
| GPT-6-astra | +2.1% |
| GPT-6-sol | +12.1% |
| GPT-6-luna | +27.5% |
| The three GPT-5.6 models | +55.3%, +55.8% and +62.7%, about 7 to 8 points each |
Two single cases show the effect. On a reception scene, the best of three GPT-5.6-sol base runs scored 0.147. With the plugin it scored 0.325. On a copy room the scores were 0.109 and 0.278. In both, the overall score more than doubled.
The pattern is the point. The strongest agent gains almost nothing. The paper’s reading is that the plugin mainly makes up for the start, regression and self-judging failures of weaker agents, while the strongest agent already avoids most of them. The weaker agents gain the most, because they have the failures the guards fix. The gap narrows but does not close.
One honest limit: the paper reports the three guards together. In the text we read, there is no removal test that turns off one guard at a time. We cannot say which guard gives which share of the gain.
Chapter 10
Read detections, masks and depth straight out of a frozen scene, and see how far code gets as a representation
So far we asked how close the scene is to the photo. Now ask a different question. Can the scene answer questions about the photo? Where is each object? Which one is nearer? Which pixels belong to the lamp?
A scene program answers by plain computation. Project the objects onto the picture and you have their boxes and masks. Render the depth from the scene’s camera and you have a depth map. No new neural network is needed, and none is trained.
The paper writes this as a chain. The image goes through the agent to a program, the program runs to a scene, and a fixed function reads the answer for task k out of the scene.
Three readouts are tested. For detection, each visible object instance is projected to a 2D box, and the agent labels each object with a category from the target dataset’s list. For segmentation, each instance becomes a mask. For depth, the scene camera renders a depth map. The true answers stay with the grader and are never returned to the agent.
Choose a readout. Blue is the truth. Warm is what the scene gives. Drag the scene error and watch the readout drift. The last tab shows the paper’s results.
The toy room, its four objects and the error model are made up for this lesson; IoU and AbsRel are computed on a small raster. The Paper tab shows Table 5 (100 images per task; DINO, Segment Anything 3 and Depth Anything 3 as the specialists).
Box AP (average precision) asks how many predicted boxes are right, and how well they are ranked. A box counts as right if it overlaps a true box enough. The overlap is the IoU, intersection over union: the shared area divided by the combined area. Mask AP is the same idea for pixel masks. A small drift in a box can drop it under the IoU threshold, which is why AP is touchy.
One caveat belongs here. AP needs a confidence score for each prediction. A scene gives none. So every prediction gets confidence 1.0, with a fixed tie order. The paper says to read this AP as a compatibility check under a fixed order, not as a fair match against detectors that rank their own guesses.
The authors use GPT-6-astra without the plugin. They sample 100 random images each from COCO val2017 for boxes, LVIS v1 val for masks and ETH3D for depth. COCO and LVIS are standard photo collections with hand-labelled objects, and ETH3D is a photo collection with measured depth. These are three separate image sets, so no single scene is scored on all three tasks.
| Task | Specialist | Specialist score | LEGO-Anything |
|---|---|---|---|
| COCO box AP (higher is better) | DINO | 59.88 | 30.14 |
| LVIS mask AP (higher is better) | Segment Anything 3 | 53.96 | 14.75 |
| ETH3D AbsRel (lower is better) | Depth Anything 3 | 0.0783 | 0.1554 |
Do the arithmetic. The scene reaches 30.14 / 59.88 = 50% of the best box AP. For masks it reaches 14.75 / 53.96 = 27%. Its depth error is 0.1554 / 0.0783 = 1.98 times larger. The paper calls this about half of specialist box AP, and well short elsewhere. Its conclusion: executable scenes from current coding agents are a promising but not yet sufficiently precise representation of natural images.
Coverage matters too. For boxes and masks, 94 of 100 images produced a scored scene, and the six missing ones count as no detections. For depth, 99 of 100 produced output. On those same 99 images the errors are 0.07845 for the specialist and 0.15540 for the scenes, so the gap holds.
Read the protocol with care. The three tasks use three different sets of 100 images, so the paper does not claim that one scene supports all three readouts at once. Also, the agent here is GPT-6-astra with no plugin. A stronger test would use the plugin, more images, and calibrated confidences. The authors list the gap to specialists as the main finding, not as a defect to hide.
Step back. A neural network that maps an image to a box has no inside you can open. A scene program has parts with names. You can ask for the lamp, move it, and read its box again. This is the same bet as Code as Agent Harness: when the thing an agent builds is code, you get inspection, editing and testing for free.
The price shows in the numbers. A learned model such as SAM 3D maps an image to 3D in one forward pass, trained on large data. A coding agent has no task training. It builds from general skill, one edit at a time, and it can miss an object or misplace one. Precision is the open problem.
Chapter 11
Say what the evidence supports, mark what it does not, and keep the numbers, terms and code in one place
Here is the paper in one paragraph. A coding agent rebuilds a scene from one image by writing Blender code, running it and looking at the result. LEGO-Bench scores the outcome on validity, shape and appearance, using renders of artist-built scenes so that the true answer is known. The best agent scores 53.4% indoors and 39.6% outdoors. Valid files are easy and geometry is hard. Agents stall for three reasons: a late start, edits that undo progress, and weak self-judgment. LEGO-Plugin adds a starting sketch, measurements and an undo, with no training, and lifts every model. LEGO-World shows that a frozen scene can answer detection, mask and depth questions, but at roughly half the box AP of a specialist.
A good reader marks the edge of a claim. These limits come from the paper itself.
These questions are ours, not the paper’s. Which guard matters most, and does a single guard get most of the gain? Would training an agent on its own trajectories, rewarding the Q score, teach it to start early and avoid regressions? Can a scene recover true size, if more views or known objects set the scale? Could the same loop work for photographs where nobody holds ground truth? The authors also run a pilot on articulation: of 443 registered assets, 368 are static and 75 are articulated, with 327 joint requirements. It points to scenes that move, not only scenes that sit.
| What | Number | Where |
|---|---|---|
| Benchmark size | 208 images, 104 scenes, 8 environments, 17 themes, 443 assets | Table 2 |
| Best overall score | GPT-6-astra: 53.4% indoor, 39.6% outdoor | Table 3 |
| Validity of coding agents | 97.8% to 100% indoors | Table 3 |
| Reconstruction tolerance | 5% of reference depth (F@5%) | Equation 2 |
| Appearance tolerance | 30 on the 0 to 255 scale | Equation 3 |
| Score by difficulty | 24.6, 21.3, 20.5 (Easy, Medium, Hard) | Table 4 text |
| Reasoning effort, astra | 32.3 at Low, 61.8 at XHigh | Figure 4 |
| First scene | about 1/10 of budget (astra), 1/5 (sol) | Section 5.1 |
| Sol regressions | 29.6% of edits; final trails best by 3.2 points | Section 5.1 |
| Self-judging agreement | 45.8% shape, 62.2% appearance (chance 50%) | Figure 6 |
| Plugin gain | +2.1% (astra) to +62.7% | Figure 8 |
| Plugin limits | 8 transactions, 2 rollbacks, 2 correction rounds | Appendix G |
| Scene readouts | 30.14 box AP, 14.75 mask AP, 0.1554 AbsRel | Table 5 |
| Human check | 86.6% annotator agreement; 83.7% metric and human | Appendix E.5 |
| Term | Meaning |
|---|---|
| Scene program | Code that builds a 3D scene when it runs |
| Image2Code | One image in, one scene program out |
| Harness | The software around a model that gives it tools and runs its loop |
| Blender-MCP | Tools that let an agent drive Blender through the Model Context Protocol |
| Validity V | The files open, hold geometry and a camera, and the render decodes |
| Reconstruction R | Mean object F1 on visible surfaces, tolerance 5% of depth |
| Appearance A | Fraction of pixels within 30 of the reference in every channel |
| Score S | Mean of V times the mean of R and A, over all attempted cases |
| Regression rate | Share of edits that lower quality |
| Best-to-final regret | Best quality of the run minus submitted quality |
| Residual | The gap between a measurement in the scene and the target from the reference |
| Transaction | One edit wrapped with a snapshot, checks, and a commit or rollback |
| Readout | A fixed function that reads a task answer out of a frozen scene |
This sketch joins the loop of Chapter 2 with the three guards of Chapter 9. It is our schematic of the paper’s design, not the authors’ code.
pythondef build_with_plugin(image, agent, blender, plugin, max_tx=8, max_rollbacks=2): init = plugin.initialize(image) # guard 1: VGGT -> Manhattan frame, camera, object plan blender.install(init.room, init.camera) tx = rollbacks = 0 while tx < max_tx and not agent.done(): edit = agent.propose_edit(image, blender.state(), init.plan) # the agent still plans and writes code snap = plugin.snapshot(blender, edit.editable, edit.protected) # transforms, meshes, materials, camera blender.execute(edit.code); tx += 1 for _ in range(2): # at most two correction rounds report = plugin.validate(blender, edit.requirements, image) # guard 2: residuals, pass/fail/unknown if report.ok(): break edit = agent.repair(report); blender.execute(edit.code) if report.ok() and plugin.changed_only_allowed(snap): plugin.commit(snap) # guard 3: keep the edit elif rollbacks < max_rollbacks: plugin.rollback(snap); rollbacks += 1 # restore the last accepted state return blender.export("scene.blend", "scene.glb", "final.png")
LEGO-Anything joins a line of work that treats code as the working medium of an agent: program-based scene builders such as SceneCraft and VIGA, harness research such as Meta-Harness, and benchmarks such as SWE-bench for software repair. Its contribution is a measuring stick for the 3D case, a map of how agents fail on it, and a first guard layer that works without training.
Cite as: Xirui Li, Peng Shi, Mingwen Dong, Sheng Zhang, Zhuoyan Xu, Dongkyu Lee, Shuaichen Chang, Yi Xiang, Lin Pan and Jiarong Jiang. LEGO-Anything: Coding Agents for 3D Scene Reconstruction. arXiv:2609.36380, September 2026. University of Maryland, College Park and AWS. All credit for the work, the data and the figures belongs to the authors; this lesson is an independent study guide.
Now press Present or Teach and explain the whole loop from memory: how a program becomes a scene, how the scene is scored, why agents stall, and what each guard fixes. Then go back to the top and run the three builders once more.