Skip to main content
QUICK REVIEW

[论文解读] The Autonomy Tax: Defense Training Breaks LLM Agents

Shuai Li, Yue Zhao|arXiv (Cornell University)|Mar 19, 2026
Adversarial Robustness in Machine LearningComputer Science被引用 0
一句话总结

防御训练用于让大语言模型代理防范提示注入,悖论性地降低了多步骤代理的能力,导致立即出现第1步失败、级联超时,以及更高的攻击绕过率。

ABSTRACT

Large language model (LLM) agents increasingly rely on external tools (file operations, API calls, database transactions) to autonomously complete complex multi-step tasks. Practitioners deploy defense-trained models to protect against prompt injection attacks that manipulate agent behavior through malicious observations or retrieved content. We reveal a fundamental extbf{capability-alignment paradox}: defense training designed to improve safety systematically destroys agent competence while failing to prevent sophisticated attacks. Evaluating defended models against undefended baselines across 97 agent tasks and 1,000 adversarial prompts, we uncover three systematic biases unique to multi-step agents. extbf{Agent incompetence bias} manifests as immediate tool execution breakdown, with models refusing or generating invalid actions on benign tasks before observing any external content. extbf{Cascade amplification bias} causes early failures to propagate through retry loops, pushing defended models to timeout on 99\% of tasks compared to 13\% for baselines. extbf{Trigger bias} leads to paradoxical security degradation where defended models perform worse than undefended baselines while straightforward attacks bypass defenses at high rates. Root cause analysis reveals these biases stem from shortcut learning: models overfit to surface attack patterns rather than semantic threat understanding, evidenced by extreme variance in defense effectiveness across attack categories. Our findings demonstrate that current defense paradigms optimize for single-turn refusal benchmarks while rendering multi-step agents fundamentally unreliable, necessitating new approaches that preserve tool execution competence under adversarial conditions.

研究动机与目标

  • 描述防御训练在多步骤大语言模型代理中引发的三种特定代理失效模式。
  • 诊断根本原因为利用表面相关性而非语义威胁理解的快捷学习。
  • 开发诊断方法和数据集,以 isolating 第1步无能、级联动态和触发偏差弱点。
  • 在多样化代理任务上评估多种防御方法,以量化端到端的可靠性损失。

提出的方法

  • 将防御训练效应形式化为多步骤代理中的能力对齐悖论。
  • 引入 Step-1 执行分析,在任何观测之前 isolating 无能。
  • 定义级联失败度量和深度分层完成率,以捕捉重试动态。
  • 设计两个诊断数据集:基于 AgentDojo 的 97 任务基准测试和一个包含受控触发注入的 350 样本策划对抗-正常样本集。
  • 在三种基础模型(Llama-3-8B、Llama-3.1-8B、Mistral-7B)上评估三种防御配置(StruQ、SecAlign、Meta SecAlign)。
  • 报告指标包括完成率(CR)、级联失败率(CFR)、在快捷学习下的攻击检测的真阳性/假阳性率。
Figure 1: Three Defense Training Biases in Multi-Step Agents. Agent Incompetence : 47–77% Step-1 failure on benign tasks (vs 3% baseline). Cascade Amplification : Timeouts increase from 13–50% to 99%. Trigger Bias : 73–86% attack bypass with 25–71% benign over-refusal. Defense training teaches surfa
Figure 1: Three Defense Training Biases in Multi-Step Agents. Agent Incompetence : 47–77% Step-1 failure on benign tasks (vs 3% baseline). Cascade Amplification : Timeouts increase from 13–50% to 99%. Trigger Bias : 73–86% attack bypass with 25–71% benign over-refusal. Defense training teaches surfa

实验结果

研究问题

  • RQ1防御训练后的 LLM 代理是否表现出单轮基准无法捕捉的独特多步骤失效模式?
  • RQ2 defended 代理中的主导失效机制(如代理无能、级联放大、触发偏差)是什么?
  • RQ3防御训练是否在面对复杂、规避快捷攻击时创造表层捷径,降低安全性与效用?
  • RQ4缺陷防御如何影响端到端的代理任务成功率,横跨深度与重试动态?

主要发现

  • 防御训练在多步骤代理的善意任务上导致第1步无能,在工具观察之前就会出现直接拒绝或输出无效。
  • 级联放大导致防御模型的超时显著增加(CFR 高达99%),相比基线(13–50% CFR)。
  • 触发偏差使攻击绕过率高(73–86%),同时对善意内容的错误拒绝率(FPR)也上升(25–71%)。
  • 防御方法在不同攻击类别中的有效性存在显著差异,体现了快捷学习而非语义威胁理解。
  • 总体而言,在97个任务与1000个对抗提示下,受防御保护的代理端到端可靠性较未防御基线更差。
  • 统一解释将失败归因于防御数据集的快捷学习,即将表面线索与标签相关联,而非语义威胁检测。
Figure 2: Immediate execution failures and utility degradation in defense-trained agents. (a) Step-1 valid action rates: Base models achieve 96.9–97.9% valid actions on the first step, while defense models drop to 22.7–53.6%, indicating immediate execution incompetence before any tool observations a
Figure 2: Immediate execution failures and utility degradation in defense-trained agents. (a) Step-1 valid action rates: Base models achieve 96.9–97.9% valid actions on the first step, while defense models drop to 22.7–53.6%, indicating immediate execution incompetence before any tool observations a

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。