让AI理解截图、图表等视觉信息来生成正确代码
Beyond NL2Code: A Structured Survey of Multimodal Code Intelligence

- 按代码在任务中的角色分类,建立多模态代码智能新框架
- 提出多信号验证等四条评估新方向,超越单纯看图识码
- 适合关注视觉编程、AI辅助开发的研究者与工程师
尽管大语言模型在文本转代码方面取得显著进展,但许多真实编程任务通过截图、图表和视频等视觉元素表达意图。这些任务要求模型将视觉感知与可执行程序关联,因为正确性不仅取决于语法,还涉及布局、数据语义和执行后的领域约束。本综述系统梳理多模态代码智能,涵盖基于视觉输入生成、编辑、优化或推理代码的系统。我们首先根据代码在任务中的角色进行建模,区分代码作为渲染产物、可编辑结构、中间推理路径或可执行工具接口。随后将基准测试和方法归入四大领域:图形用户界面、科学可视化、结构化图形及前沿任务与框架。该分类体系连接了生成型任务与代理式、统一化场景,并揭示不同任务对正确性证据的处理方式。我们认为,可靠评估需包含语义与交互层面的证据,而不仅仅是视觉保真度。展望未来,研究可从四个以验证为中心的方向推进:多信号验证、多状态验证、跨任务迁移测试以及可验证代理轨迹。这些方向有望推动该领域从单输出模仿迈向基于证据的可执行系统。相关资源已开源至GitHub。
原文摘要 · Abstract (English)
While Large Language Models (LLMs) have substantially advanced text-to-code generation, many real programming tasks specify intent through visual artifacts such as screenshots, charts, and videos. These tasks require models to connect visual perception to executable programs, as correctness depends not only on syntax but also on layout, data semantics, and domain-specific constraints that apply after execution. This survey reviews Multimodal Code Intelligence, covering systems that generate, edit, refine, or reason with code under visually grounded inputs and outputs. We first formulate the field by the role that code plays in each task, distinguishing code as a rendered artifact, an editable structure, an intermediate reasoning trace, or an executable tool interface. Then we organize benchmarks and methods into four domains: Graphical User Interface, Scientific Visualization, Structured Graphics, and Frontier Tasks and Frameworks. This taxonomy connects artifact-generation problems to agentic and unified settings and allows us to compare how different tasks treat evidence of correctness. Across the literature, we argue that reliable evaluation requires evidence about semantics and interaction beyond visual fidelity. Looking ahead, future research may benefit from four verification-centered directions. Multi-signal validation can combine complementary evidence of correctness, multi-state verification can test behavior across execution trajectories, cross-task transfer testing can probe reusable visual-code skills, and verifiable agent traces can reveal whether agent actions are grounded in visual evidence. Together, these directions may move this field from single-output imitation toward evidence-grounded executable systems. An ongoing project and resources are available on \href{https://github.com/xjywhu/Awesome-Multimodal-LLM-for-Code}{GitHub}.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。