TraceDance:一个从真实世界智能体部署轨迹构建智能体行为基准的自动化系统

·

研究论文 · 2026/09/29

智能体在完成任务时可能表现出不良行为。开发者需要针对部署中遇到的具体行为进行测试,而非仅依赖固定基准套件。我们提出 TraceDance,一个智能体系统,能从部署轨迹中为用户指定的不良行为构建针对性基准。为高效构建,Anchor-and-Confirm 结合可编程检索与 Flash 大语言模型(LLM)的候选级确认,而 Anchor Synthesis Loop 则为自定义行为生成和修订规范。基准使用决策点延续,在记录决策点用行为特定评分标准评估 LLM 的下一轮响应,无需参考答案或环境重放。在编码和通用工具使用实验中,基于 252,557 个会话,生成 107 个基准、4,125 个实例,满足 95.3% 的构建目标请求。两名人类标注者在 84% 的抽样实例中确认了所请求行为,自动评分器与人类通过/失败判断的一致性可与标注者之间的一致性相媲美。九个前沿 LLM 平均通过率仅为 26.7%,表明它们在评估决策点仍难以恰当响应。跨行为特定基准的分析进一步揭示了当前 LLM 作为智能体的行为弱点。通过将部署问题转化为针对性基准,TraceDance 可作为递归自我改进(RSI)循环的关键组件。

该工作将真实部署中的问题转化为针对性基准,为智能体行为评估提供了自动化、可扩展的新方法,并揭示了当前前沿模型的显著弱点,对智能体安全与自我改进研究具有重要价值。

An agent can complete a task while exhibiting undesirable behavior during execution. Developers need tests for the specific behaviors encountered in deployment, beyond fixed benchmark suites. We present TraceDance, an agent system that constructs targeted benchmarks from deployment traces for user-specified undesirable behaviors. For efficient construction, Anchor-and-Confirm combines programmable retrieval with candidate-level confirmation by a Flash large language model (LLM), while the Anchor Synthesis Loop generates and revises specifications for custom behaviors. The benchmarks use decision-point continuation to evaluate an LLM's next turn at a recorded decision point with a behavior-specific rubric, without a reference answer or environment replay. Experiments in coding and general tool use draw on 252,557 sessions and produce 107 benchmarks with 4,125 instances, fulfilling 95.3% of build-target requests. Both human annotators confirm the requested behavior in 84% of sampled instances, and the automated grader's agreement with human pass/fail judgments is comparable to that between the annotators. Nine frontier LLMs achieve a mean pass rate of only 26.7%, showing that they still struggle to respond appropriately at the evaluated decision points. Analysis across behavior-specific benchmarks further reveals weaknesses in how current LLMs behave as agents. By turning deployment problems into targeted benchmarks, TraceDance could serve as a key component of the recursive self-improvement (RSI) loop.

阅读原文

参与讨论