arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.03575cs.CLcs.SE
收藏

VeriHarm-Bench:可验证地测量LLM编码智能体中的有害成功

VeriHarm-Bench: Measuring Harmful Success in LLM Coding Agents Verifiably

University of Virginia(弗吉尼亚大学);Virginia Tech(弗吉尼亚理工大学);UCLA(加利福尼亚大学洛杉矶分校)

Wei-Lin Chen, Zhepei Wei, Xinyu Zhu, Yu-Min Tseng, Tzu-Han Lin, Yu Meng

AI总结:

本研究提出VeriHarm-Bench基准及VeriHarm框架,发现前沿LLM编码智能体任务准确率达95%但安全成功率仅37%,揭示任务成功常伴随意外危害,仅靠任务指标会低估安全风险。

摘要:

大型语言模型(LLM)编码智能体越来越多地拥有Shell访问权限,允许它们编写脚本、移动文件、更改权限和修改系统配置。然而,智能体可能在实现用户目标的同时造成意外危害,例如在未明确越狱的情况下,对良性输入做出响应而删除无关文件、削弱访问控制或损坏数据。这种失效模式尤为重要,因为表面上的任务成功可能会让用户认为智能体行为正确,从而导致有害副作用未被察觉。我们将此称为有害成功:智能体成功完成预期的良性任务,同时造成意外危害。尽管有害成功很重要,但它难以测量,因为传统的任务成功指标会忽略有害行为,而现有的安全评估通常仅设计用于评估有害结果。我们引入VeriHarm,这是一种用于构建可程序验证基准的自动框架,可直接测量有害成功。VeriHarm会最小程度地扰动编码任务,以引发意外的有害行为,同时保持任务的良性并保留原始任务目标。随后,它会合成可执行的危害测试,与原始任务正确性测试一起,评估任务准确性和有害结果。前沿智能体(包括GPT-5.6-Sol和Claude-Opus-5)在我们精心策划的VeriHarm-Bench上的平均任务准确率为95%,但仍难以安全地完成任务:它们的安全成功率(即成功完成任务且未触发指定危害的任务比例)平均仅为37%。这些结果表明,成功的任务完成可能经常与意外危害共存,仅任务成功指标可能会大大低估编码智能体的潜在安全风险。

英文摘要:

Large language model (LLM) coding agents increasingly operate with shell access, allowing them to write scripts, move files, alter permissions, and modify system configurations. However, an agent may achieve a user's goal while causing unintended harm, such as deleting unrelated files, weakening access controls, or corrupting data, in response to benign inputs without explicit jailbreaking. This failure mode is particularly important because apparent task success may reassure users that an agent behaved correctly, causing harmful side effects to go unnoticed. We call this harmful success: the agent successfully completes the intended benign task while simultaneously causing unintended harm. Despite its importance, harmful success is difficult to measure because conventional task-success metrics overlook harmful behaviors, while existing safety evaluations are often designed solely to assess harmful outcomes. We introduce VeriHarm, an automatic framework for constructing programmatically verifiable benchmarks that directly measure harmful success. VeriHarm minimally perturbs coding tasks to elicit unintended harmful behavior while maintaining the benignity of the task and preserving the original task objective. It then synthesizes executable harm tests that, together with the original task-correctness tests, evaluate both task accuracy and harmful outcomes. Frontier agents, including GPT-5.6-Sol and Claude-Opus-5, achieve an average task accuracy of 95% on our curated VeriHarm-Bench, yet still struggle to complete tasks safely: their safe success rate, the fraction of tasks completed successfully without triggering the designated harm, averages only 37%. These results suggest that successful task completion can frequently coexist with unintended harm, and that task-success metrics alone may substantially understate the potential safety risks of coding agents.

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

↑