TRACER:针对间接提示注入的轨迹正则化训练
TRACER: Trace-Regularized Training Against Indirect Prompt Injection
AI总结:
本文针对间接提示注入的通道依赖性问题,提出TRACER对抗训练方法,在GSM8K数据集上使Qwen2.5-3B-Instruct的RAG框架ASR大幅下降,证明稳健防御需跨部署通道训练评估。
摘要:
间接提示注入会利用不可信的检索内容、工具输出或智能体消息来覆盖大语言模型(LLM)的预期行为。研究表明,防御的鲁棒性具有通道依赖性:同一种攻击作为后续消息时成功率为18%,而置于检索上下文中时成功率达53%。本文提出TRACER(带奖励塑造的轨迹正则化对抗通道暴露),这是一种感知通道的对抗训练方法,它采样呈现包装器,并结合基于答案锚定、证据门控的奖励与ATRC(当注入无效时,使受攻击的推理与干净证据对齐)。在GSM8K数据集上使用Qwen2.5-3B-Instruct模型时,TRACER将基于检索增强生成(RAG)框架的攻击成功率(ASR)从65.5%降至6.1%,同时保留78%-82%的干净准确率。在3B规模下,联合RAG+工具训练在不同框架下的平均ASR为13.9%,而7B模型的单轮训练达到9.4%。这些结果表明,稳健的防御必须在部署的各通道上进行显式训练与评估。
英文摘要:
Indirect prompt injection uses untrusted retrieved content, tool outputs, or agent messages to override an LLM's intended behavior. We show that defense robustness is channel-conditioned: the same attack succeeds 18% of the time as a follow-up message but 53% when placed in retrieved context. We propose TRACER (Trace-Regularized Adversarial Channel Exposure with Reward-shaping), a channel-aware adversarial training method that samples presentation wrappers and combines an answer-anchored, evidence-gated reward with ATRC, which aligns attacked reasoning with clean evidence when an injection is invalid. On GSM8K with Qwen2.5-3B-Instruct, TRACER reduces RAG-framed ASR from 65.5% to 6.1% while preserving 78-82% clean accuracy. Joint RAG+tool training achieves 13.9% average ASR across framings at 3B scale, while a single epoch at 7B reaches 9.4%. These results demonstrate that robust defenses must explicitly train and evaluate across deployment channels.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。