arXiv cs.CL· Mohamed Dhouib, Clement Elliker, Alexi Canesse, Ma\"el Jenny, Lucas-Andrei Thil, Mahammed El Sharkawy, Sonia Vanier, Elie Bursztein·· 10 天前AI 评分33
RAISED:用自蒸馏提升 LLM 智能体对提示注入的鲁棒性
RAISED: Self-Distillation for Robustness to Prompt Injection in LLM Agents
AI 导读
RAISED 是一个结合自生成与自蒸馏的训练框架,让模型自行生成工具使用场景,并通过自蒸馏使学生模型在干净与注入轨迹上都对齐教师模型的干净上下文行为。该方法大幅降低工具响应中提示注入的攻击成功率,且不同于以往基于训练的防御,在智能体与通用基准上均保持原有能力。研究还指出这类防御会导致输出分布漂移,并在良性工具任务中出现模型拒绝执行工具输出所指示步骤的失效模式。
正文 · 原文
Abstract:Tool-using language-model agents are vulnerable to indirect prompt injection because they must act on untrusted external content. Existing training-time defenses can reduce attack success rates, but often at the cost of general capabilities. We show that training-based defenses induce substantial drift in the model's output distribution, altering its behavior even in benign settings and providing a potential mechanism for utility degradation. We further identify a failure mode of these defenses: On benign tool-use tasks, the model refrains from a step needed to finish an authorized task, particularly when that step is indicated by a tool output. To address these limitations, we introduce RAISED (Robust Attack Invariance through Self-Distillation), a training framework that combines self-generation and self-distillation. The model first generates its own tool-use scenarios, with an emphasis on cases where task completion requires acting on legitimate guidance from tool outputs. Then, through self-distillation, the student is trained to match the teacher's clean-context behavior on both clean and injected variants of the same trajectory. RAISED substantially reduces the attack success rate of prompt injections in tool responses while, unlike prior training-based defenses, preserving utility on both agentic and general-purpose benchmarks.
| Subjects: | Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI); Computation and Language (cs.CL); Machine Learning (cs.LG) |
| Cite as: | arXiv:2610.06401 [cs.CR] |
| (or arXiv:2610.06401v2 [cs.CR] for this version) | |
| https://doi.org/10.48550/arXiv.2610.06401 arXiv-issued DOI via DataCite |
Submission history
From: Alexi Canesse [view email]
[v1]
Mon, 5 Oct 2026 14:21:30 UTC (132 KB)
[v2]
Wed, 7 Oct 2026 12:59:03 UTC (132 KB)
来源:arXiv cs.CL · arxiv.org