用轻量级监控器识别大模型对话中的隐蔽攻击意图。
Monitoring Decomposition Attacks in LLMs with Lightweight Sequential Monitors
- 在对话序列中逐项监控,捕捉分解攻击的长期恶意意图。
- 对GPT-4o攻击成功率达87%,轻量监控器防御成功率93%。
- 适合安全团队部署,成本降90%,延迟减50%。
当前大模型安全防护在分解攻击下失效,攻击者将恶意目标拆解为看似无害的子任务以绕过拒绝机制。现有浅层对齐方法仅检测即时提示中的危害,无法推理长序列中的隐含意图。为此,我们提出外部监控机制,以更高粒度观察对话流。为研究该问题,我们构建了迄今最大最多样化的数据集,涵盖问答、文生图及智能体任务。在前沿大模型上测试显示,分解攻击对GPT-4o平均成功率高达87%。此外,随机任务可嵌入子任务中进一步掩盖恶意意图。为实现实时防御,我们设计轻量级序列监控框架,累计评估每一步子任务。经精心提示工程的轻量监控器达到93%防御成功率,优于如o3 mini等推理模型,且对随机任务注入仍具鲁棒性,成本降低90%,延迟减少50%。结果表明,轻量级序列监控器能有效缓解分解攻击,具备实际部署可行性。
原文摘要 · Abstract (English)
Current LLM safety defenses fail under decomposition attacks, where a malicious goal is decomposed into benign subtasks that circumvent refusals. The challenge lies in the existing shallow safety alignment techniques: they only detect harm in the immediate prompt and do not reason about long-range intent, leaving them blind to malicious intent that emerges over a sequence of seemingly benign instructions. We therefore propose adding an external monitor that observes the conversation at a higher granularity. To facilitate our study of monitoring decomposition attacks, we curate the largest and most diverse dataset to date, including question-answering, text-to-image, and agentic tasks. We verify our datasets by testing them on frontier LLMs and show an 87% attack success rate on average on GPT-4o. This confirms that decomposition attack is broadly effective. Additionally, we find that random tasks can be injected into the decomposed subtasks to further obfuscate malicious intents. To defend in real time, we propose a lightweight sequential monitoring framework that cumulatively evaluates each subtask. We show that a carefully prompt engineered lightweight monitor achieves a 93% defense success rate, beating reasoning models like o3 mini as a monitor. Moreover, it remains robust against random task injection and cuts cost by 90% and latency by 50%. Our findings suggest that lightweight sequential monitors are highly effective in mitigating decomposition attacks and are viable in deployment.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。