arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.00187cs.SE
收藏

ClarEval: 一个用于评估代码代理在模糊指令下澄清能力的基准测试

ClarEval: A Benchmark for Evaluating Clarification Skills of Code Agents under Ambiguous Instructions

School of Artificial Intelligence, Jilin University(吉林大学人工智能学院);Engineering Research Center of Knowledge-Driven Human-Machine Intelligence, MOE, China(教育部知识驱动人机智能工程研究中心);International Center of Future Science, Jilin University(吉林大学未来科学国际中心)

Jialin Li, Yuan Wu, Yi Chang

AI总结:

ClarEval通过模拟模糊性评估代码代理的协作能力,揭示现有模型在沟通策略上的不足。

摘要:

为了无缝融入现实中的软件工程,代码代理必须从被动的指令追随者发展成为主动的协作伙伴。然而,当前的评估范式主要奖励在理想条件下猜测用户意图,忽略了代理通过对话与用户对齐的能力——这对协作智能至关重要。在本工作中,我们提出了一种评估范式的转变,以推动这种转变。我们引入了ClarEval,一个框架,旨在通过模拟人类交流中的固有模糊性来评估代理的“协作商数”。通过系统地将三种现实的模糊性(缺失的目标、前提和模糊的术语)注入标准任务中,我们迫使代理跳出“生成器”的角色,进行需求 elicitation。为了量化这一能力,我们提出了一套以平均澄清回合数(ATC)和关键问题覆盖(KQC)为首的度量标准,这些度量标准不仅衡量生成代码的正确性,还衡量协作的效率和精确性。我们在十一种最先进的代理上进行了实验,揭示了一个严峻的现实:尽管像GPT-5-Coder这样的模型在编码方面表现优异,但它们往往缺乏高效合作所需的策略性沟通技能。ClarEval因此成为弥合强大编码者与有能力的协作者之间差距的关键路线图。代码可在https://github.com/JialinLi13/ClarEval上获得。

英文摘要:

To integrate seamlessly into real-world software engineering, Code Agents must evolve from passive instruction followers into proactive collaborative partners. However, current evaluation paradigms predominantly reward "guessing" user intent under ideal conditions, neglecting the agent's ability to align with users through dialogue--a critical trait for collaborative intelligence. In this work, we propose a paradigm shift in evaluation to drive this transition. We introduce ClarEval, a framework designed to assess an agent's "Collaborative Quotient" by simulating the inherent ambiguity of human communication. By systematically injecting three types of realistic ambiguity (missing goals, premises, and ambiguous terminology) into standard tasks, we force agents to step out of their "generator" role and engage in requirement elicitation. To quantify this capability, we propose a metric suite led by Average Turns to Clarify (ATC) and Key Question Coverage (KQC), which measure not just the correctness of the generated code, but the efficiency and precision of the collaboration. Our experiments on eleven state-of-the-art agents reveal a stark reality: while models like GPT-5-Coder excel at coding, they often lack the strategic communication skills required for efficient partnership. ClarEval thus serves as a crucial roadmap for bridging the gap between strong coders and capable collaborators.The code is available at https://github.com/JialinLi13/ClarEval

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑