Abstract
We present FronTalk, a benchmark for front-end code generation that pioneers the study of a unique interaction dynamic: conversational code generation with multi-modal feedback. In front-end development, visual artifacts such as sketches, mockups and annotated creenshots are essential for conveying design intent, yet their role in multi-turn code generation remains largely unexplored. To address this gap, we focus on the front-end development task and curate FronTalk, a collection of 100 multi-turn dialogues derived from real-world websites across diverse domains such as news, finance, and art. Each turn features both a textual instruction and an equivalent visual instruction, each representing the same user intent. To comprehensively evaluate model performance, we propose a novel agent-based evaluation framework leveraging a web agent to simulate users and explore the website, and thus measuring both functional correctness and user experience. Evaluation of 20 models reveals two key challenges that are under-explored systematically in the literature: (1) a significant forgetting issue where models overwrite previously implemented features, resulting in task failures, and (2) a persistent challenge in interpreting visual feedback, especially for open-source vision-language models (VLMs). We propose a strong baseline to tackle the forgetting issue with AceCoder, a method that critiques the implementation of every past instruction using an autonomous web agent. This approach significantly reduces forgetting to nearly zero and improves the performance by up to 9.3% (56.0% to 65.3%). Overall, we aim to provide a solid foundation for future research in front-end development and the general interaction dynamics of multi-turn, multi-modal code generation. Code and data are released at this https URL
Abstract (translated)
我们介绍了FronTalk,这是一个用于前端代码生成的基准测试项目,它开创了对话式多模态反馈代码生成的独特互动模式的研究。在前端开发中,视觉元素如草图、模拟图和注释截图对于传达设计意图至关重要,然而它们在多次交互代码生成中的作用却鲜为人知。为了解决这一缺口,我们专注于前端开发任务,并整理了一个名为FronTalk的对话集合,包含了来自新闻、金融和艺术等不同领域的100个多轮次真实网站对话。每一轮对话包括一个文本指令及其对应的视觉指令,两者都代表了相同的用户意图。 为了全面评估模型性能,我们提出了一种基于代理的新颖评估框架,通过使用网页代理来模拟用户行为并探索网站,以此同时测量功能正确性和用户体验。对20个模型的评估揭示了两个文献中尚未系统探讨的关键挑战:(1)显著的记忆消退问题,即模型覆盖之前实现的功能,导致任务失败;(2)持续存在的视觉反馈解读难题,尤其是对于开源视觉-语言模型(VLMs)而言更为突出。 为了解决记忆消退的问题,我们提出了一个基于AceCoder的方法作为强有力的基线。这是一种利用自主网页代理批评过去每个指令的实施方式的技术,该方法将忘记问题显著降低至近乎于零,并且性能提高了高达9.3%(从56.0%提升到65.3%)。 总体而言,我们的目标是为未来的研究提供前端开发及多轮次、多模态代码生成交互动态的坚实基础。代码和数据可在[此处](https://this-is-the-url-to-release-code-and-data)获取。
URL
https://arxiv.org/abs/2601.04203