LEGO-Anything:用于3D场景重建的编码代理
研究论文 · 2026/09/30
从单张图像重建的3D场景,最有用的表示形式不是渲染结果或固定的3D输出,而是一个显式的场景程序,其执行可产生可检查、编辑和查询的场景。我们提出LEGO-Anything,一个图像到代码的框架,其中编码智能体迭代地编写和执行Blender代码,检查场景和渲染,并修订程序。为了评估端到端场景恢复,我们引入了LEGO-Bench,一个基于模拟器的基准,包含来自104个多样化室内外场景的208张图像。LEGO-Bench分别对伪影有效性、可见表面几何和渲染外观进行评分。其基于模拟器的设计支持可扩展性和精确的自动评估。在评估的智能体中,GPT-6-astra取得了最强的整体结果,室内得分53.4%,室外得分39.6%,但在生成有效场景伪影与忠实恢复场景几何和外观之间仍存在巨大差距。对智能体构建轨迹的分析揭示了三个反复出现的问题:场景初始化弱、迭代过程中的回归编辑以及不可靠的自我评估。这些发现促使了LEGO-Plugin的开发,这是一个无需训练的测试工具插件,用于更受控的迭代场景构建,它改善了所有六个评估模型,整体得分相对提升高达62.7%。最后,我们测试了重建场景是否能表示自然图像并支持视觉任务。在LEGO-World中,我们从GPT-6-astra重建的场景中导出对象检测、实例掩码和相对深度作为确定性查询。这些读数在所有三个任务上表现出非平凡的性能,但远低于专用视觉模型,表明当前编码智能体通过程序构建的场景是自然图像的一种有前景但尚不够精确的表示。
该研究提出了一种新颖的基于编码智能体的3D场景重建范式,并提供了全面的基准和深入分析,指出了当前方法的局限性和改进方向,对3D重建和程序化场景理解领域具有重要参考价值。
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.