不要猜测,只需提问:评估仓库级软件开发的交互式需求澄清
Don't Guess, Just Ask: Evaluating Interactive Requirement Clarification for Repository-Level Software Development
AI总结:
该研究提出ReqClarifyBench基准,评估LLM在仓库级软件开发中通过交互将模糊用户意图转化为明确需求的能力,发现澄清效果与文档质量无必然关联,编码智能体工具未提升需求文档质量。
摘要:
随着大型语言模型(LLM)实现软件的能力日益增强,一个关键瓶颈浮现:它们是否真正理解用户的需求。用户通常从模糊的意图开始,需通过交互澄清重要需求。在仓库级开发中,误解会传播并导致高昂的返工成本。然而,现有基准通常基于完整规格或不明确的请求评估实现,忽略了编码前的需求澄清环节。此前的澄清研究主要聚焦于函数级任务,因此仍不清楚LLM通过交互将模糊意图转化为明确需求的能力如何,以及该能力对后续代码生成的影响。我们提出ReqClarifyBench,这是一个面向仓库级软件开发的交互式需求澄清基准,包含341个任务,涵盖游戏、小程序和Web开发,每个任务都有模糊的用户意图、经人工验证的需求文档和代码评估工件。我们采用基于LLM的用户模拟器,其角色源自真实对话,评估了6种LLM的澄清效果及生成的需求文档质量。结果显示,更强的澄清效果未必对应更高的文档质量,且不同用户角色的性能差异显著;此外,编码智能体工具相较于其基础LLM,并未进一步提升需求文档质量。这些发现为构建基于LLM的端到端软件开发系统提供了洞见。
英文摘要:
As LLMs become increasingly capable of implementing software, a critical bottleneck emerges: whether they truly understand what users want. Users often begin with vague intent, leaving important requirements to be clarified through interaction. In repository-level development, misunderstandings can propagate and cause costly rework. However, existing benchmarks typically evaluate implementation from complete specifications or underspecified requests, overlooking pre-coding requirement clarification. Prior clarification studies mainly focus on function-level tasks. It therefore remains unclear how well LLMs can transform vague intent into clear requirements through interaction and how this capability affects subsequent code generation. We introduce ReqClarifyBench, an interactive requirement clarification benchmark for repository-level software development. It contains 341 tasks spanning game, miniapp, and web development, each with a vague user intent, a human-validated requirement document, and code evaluation artifacts. We employ LLM-based user simulators with diverse personas derived from real-world conversations. We evaluate six LLMs in terms of clarification effectiveness and generated requirement document quality. Results show that stronger clarification effectiveness does not necessarily translate into higher document quality, and performance varies substantially across user personas. We also find that coding-agent harnesses do not further improve requirement document quality compared with their base LLMs. These findings offer insights for building LLM-based end-to-end software development systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。