基于视觉结果的LLM代码定制:TikZ基准测试
LLM Code Customization with Visual Results: A Benchmark on TikZ
AI总结:
本文提出vTikZ基准测试,用于评估LLM根据自然语言指令定制代码并保持视觉结果一致性的能力,实验表明现有方法存在明显不足,为视觉反馈与LLM集成开辟了新方向。
摘要:
随着基于AI的代码生成的兴起,根据自然语言指令定制现有代码以修改视觉结果(如图形或图像)已成为可能,有望减少对深厚编程专业知识的需求。然而,即使是有经验的开发人员也可能在此任务中遇到困难,因为这需要识别相关代码区域(特征定位)、生成有效的代码变体,并确保修改可靠地与用户意图保持一致。在本文中,我们介绍了vTikZ,这是第一个旨在评估大型语言模型(LLMs)在保持连贯视觉结果的同时定制代码能力的基准测试。我们的基准测试由精心策划的vTikZ编辑场景、参数化真值以及一个利用视觉反馈来评估正确性的审查工具组成。使用最先进的LLMs进行的实证评估表明,现有解决方案难以可靠地按照视觉意图修改代码,这凸显了当前AI辅助代码编辑方法中的差距。我们认为,vTikZ为将LLMs与视觉反馈机制相结合开辟了新的研究方向,以改进TikZ之外的各个领域的代码定制任务,包括图像处理、艺术创作、Web设计和3D建模。
英文摘要:
With the rise of AI-based code generation, customizing existing code out of natural language instructions to modify visual results -such as figures or images -has become possible, promising to reduce the need for deep programming expertise. However, even experienced developers can struggle with this task, as it requires identifying relevant code regions (feature location), generating valid code variants, and ensuring the modifications reliably align with user intent. In this paper, we introduce vTikZ, the first benchmark designed to evaluate the ability of Large Language Models (LLMs) to customize code while preserving coherent visual outcomes. Our benchmark consists of carefully curated vTikZ editing scenarios, parameterized ground truths, and a reviewing tool that leverages visual feedback to assess correctness. Empirical evaluation with stateof-the-art LLMs shows that existing solutions struggle to reliably modify code in alignment with visual intent, highlighting a gap in current AI-assisted code editing approaches. We argue that vTikZ opens new research directions for integrating LLMs with visual feedback mechanisms to improve code customization tasks in various domains beyond TikZ, including image processing, art creation, Web design, and 3D modeling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。