arXiv:2605.11946cs.AI2026-05被引 6

通过对比分析,揭示大模型技能对行为的细微影响

Counterfactual Trace Auditing of LLM Agent Skills

论文配图:Counterfactual Trace Auditing of LLM Agent Skills
图 1 · 摘自论文原文
  • 构建反事实追踪框架,比对有无技能时的执行过程
  • 发现技能显著改变行为但任务通过率仅提升0.3个百分点
  • 可识别模板复制、过度规划等隐藏问题,适合评估者使用

大型语言模型代理正越来越多地集成各类技能。当前技能评估方法仍较有限,多数部署基准仅报告技能添加前后的通过率变化,将技能视为黑箱行为改变。本文提出反事实追踪审计(CTA)框架,通过配对同一任务下带技能与不带技能的代理执行轨迹,将其分割为目标导向阶段,对齐后生成结构化技能影响模式(SIP)标注,描述技能对行为的实际影响而非仅任务结果。在49个软件工程任务上基于SWE-Skills-Bench与Claude进行实例化。结果显示,平均通过率仅提升0.3个百分点,表明整体效果微弱;但CTA识别出522个SIP实例,说明技能显著重塑了行为。审计还分离出通过率无法察觉的常见效应:直接模板复制、离题产物生成、过度规划及任务恢复。三个发现:第一,高基线任务中包含多数技能影响,但其通过率已饱和;第二,中等基线任务最易实现可回收提升,但消耗更高令牌成本;第三,主导的SIP类型由基线水平决定:天花板任务多为表面锚定,中低任务多为边缘用例提示。这些规律将非正式失败模式转化为可复现的行为度量。

原文摘要 · Abstract (English)

Large Language Model agents are increasingly augmented with agent skills. Current evaluation methods for skills remain limited. Most deployed benchmarks report only pass rate before and after a skill is attached, treating the skill as a black box change to agent behavior. We introduce Counterfactual Trace Auditing (CTA), a framework for measuring how a skill changes agent behavior. CTA pairs each with skill agent trace with a without skill counterpart on the same task, segments both traces into goal directed phases, aligns the phases, and emits structured Skill Influence Pattern (SIP) annotations. These annotations describe the behavioral effect of a skill rather than only its task outcome. We instantiate CTA on SWE-Skills-Bench with Claude across 49 software engineering tasks. The resulting audit reveals a clear evaluation gap. Pass rate changes by only +0.3 percentage points on average, suggesting little aggregate effect. Yet CTA identifies 522 SIP instances across the same paired traces, showing that the skills substantially reshape agent behavior even when pass rate is nearly unchanged. The audit also separates several recurring effects that pass rate cannot detect, including literal template copying, off task artifact creation, excess planning, and task recovery. Three findings emerge. First, high baseline tasks contain most of the observed skill effects, although their pass rate is already saturated and therefore cannot reflect those effects. Second, tasks with moderate baseline performance show the most recoverable gain, but often at substantially higher token cost. Third, the dominant SIP type can be identified by baseline bucket: surface anchoring is most common on ceiling tasks and edge-case prompting is most common on mid-range and floor tasks. These regularities turn informal failure mode observations into reproducible behavioral measurements.

大模型评估行为分析技能审计

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。