编码智能体在视觉生成中能走多远?

·

研究论文 · 2026/10/28

现代图像生成主要依赖专门的生成模型,而本文探索了一种替代方案:通过可执行程序构建图像的通用编码智能体。在200个提示的AgentDrawBench基准上进行的零样本绘图研究揭示了其独特的能力特征:智能体擅长保持结构和满足精确的视觉约束,在构图准确性比照片级真实感更重要的领域取得有竞争力的结果,但在感知丰富度上仍有限。其视觉表现力随绘图接口而变化,一项关于重建的定性研究显示了从人类演示中提取的程序性技能如何支持不同的艺术媒介。随后,作者将代码视为外部视觉思维语言——一种智能体可以构建和检查的结构化可执行表示,并在视觉问答任务中测试,发现重建的视觉代码保留了用于问答的大量信息,在某些领域甚至比原始图像支持更高的准确性。这些能力引出了进一步的问题:智能体是否利用了超越特定绘图程序的共享内部场景内容表示?作者探索了内部视觉思维语言假说,其中共享的、组合结构化的表示支持跨绘图语言的视觉操作。跨工具绘图和由独立单像素查询组装而成的图像表现出相关的布局和色调。智能体在可见绘图被移除后仍能保持自生成的房间布局跨视角一致。这些结果表明,编码智能体甚至在工具介入和生成开始之前,就在其想象中维持了一个一致且连贯的世界。

本文提出了一种新颖的图像生成范式,利用编码智能体通过程序构建图像,并探索了代码作为视觉思维语言的可能性。研究揭示了智能体在结构和约束满足上的优势,以及其内部世界模型的连贯性,为视觉生成和智能体推理提供了新视角。

Modern image generation largely relies on specialized generative models that leave the process of image construction implicit in learned parameters. We explore an alternative: general-purpose coding agents that construct images through executable programs. Our study of zero-shot drawing on AgentDrawBench, a 200-prompt benchmark, reveals a distinctive capability profile. Agents excel at preserving structure and satisfying precise visual constraints, achieving competitive results in domains where compositional accuracy matters more than photorealistic appearance, while remaining limited in perceptual richness. Their visual expressiveness varies with the drawing interface, and a qualitative study on reconstruction shows how procedural skills extracted from human demonstrations support different artistic media. We then examine code as an external visual language of thought: a structured, executable representation that agents can construct and inspect. We test it in visual question answering task and find reconstructed visual code retains substantial information for question answering and, in some domains, supports higher accuracy than the original image. These abilities raise a further question: do agents draw on a shared internal representation of scene content beyond a particular drawing program? We explore an internal visual language-of-thought hypothesis, in which a shared, compositionally structured representation supports visual operations across drawing languages. Cross-harness drawings and images assembled from independent single-pixel queries exhibit related layouts and tones. Agents also maintain self-generated room arrangements across viewpoints after visible drawings are removed. These results demonstrate that the coding agent would maintain a consistent and coherent world inside its imagine even before the harness gets involved and the generation starts.

阅读原文

参与讨论