Who Grades the Agent? Privilege Separation for Coding-Agent Benchmarks

Agent Agent Eval Benchmarks AI Safety / AI Ethics RA
2026年11月20日
面向AI编程智能体的基准测试已成为当前人工智能领域的重要组成部分,因为它们是衡量大语言模型(LLM)性能的主流方法。这些基准测试的得分直接影响企业的技术选型与科研方向的决策。然而,对编程智能体进行评估本身颇具挑战性:智能体可能操控其评估基础设施,从而人为地抬高得分。对智能体所生成解决方案的评分,往往需实际运行其代码;而一旦代码被执行,便可能干扰甚至篡改整个评估流程。近期,一种名为BenchJack的自动化基准测试审计工具,在十项主流智能体基准测试中的九项上取得了近乎完美的分数——但它实际上并未真正解决任何一项任务。事实上,此类行为在现实中早已悄然发生:例如,2026年7月OpenAI在Hugging Face平台上发生的事件即表明,智能体无需额外提示便会自发采取此类策略。 我们借鉴安全系统设计原则,提出SplitBench——一种面向编程智能体评估的权限分离框架;这也是学术文献中首个将“任务测试的执行”与“测试结果的判定”严格分离的评估框架。即便智能体的代码完全接管了整个测试运行环境,也无法伪造通过结果,因为可信的评分模块独立持有各任务的预期正确答案。我们验证了现实世界中已有基准(如Terminal-Bench、DeepSWE)可便捷、高保真地迁移至SplitBench框架:202个任务中有180个顺利完成转换;且SplitBench与原生评分器在98.7%的智能体提交结果上判定一致。我们进一步在最严苛的攻击场景下对已迁移的任务展开检验:此时对抗性智能体可完整读取全部评分代码,唯独无法访问预期答案。实验表明,SplitBench成功阻断了75%的作弊尝试;其余未被拦截的案例,大多暴露出原始任务测试用例自身存在的薄弱环节,而非SplitBench框架的设计缺陷。
Benchmarks for AI-based coding agents are a staple of the current AI landscape, because they are the leading way to measure the performance of LLMs. Their scores guide business and research decisions. Evaluating coding agents is challenging, since they are able to manipulate their evaluation infrastructure to artificially achieve better scores. Grading an agent's solution often requires running its code, which can then manipulate the evaluation process. BenchJack, an automated benchmark auditor, recently reached near-perfect scores on nine of ten popular agent benchmarks without actually solving their tasks. Agents already do this unprompted, as OpenAI's July 2026 Hugging Face incident showed. Building on secure systems design, we introduce SplitBench, a privilege separation framework for evaluating coding agents and the first in the scientific literature to separate running a task's tests from judging their results. Even an agent whose code takes over the entire test environment cannot forge a pass, because a trusted grader holds the expected answers. We show that real-world benchmarks (e.g., Terminal-Bench, DeepSWE) can be ported to the SplitBench framework with minimal effort and high fidelity: 180 of 202 tasks convert, and SplitBench agrees with the native graders on 98.7% of agent attempts. We attack the converted tasks in the worst case, where adversarial agents can read all the grading code but not the expected answers. SplitBench blocked 75% of their attempts; the rest mostly reveal weaknesses in the original tasks' tests rather than flaws in SplitBench.
许愿