深度攻击:从深层安全注意力头越狱大型语言模型 Depth Charge: Jailbreak Large Language Models from Deep Safety Attention Heads 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-03-06
👁️ 预览文献
💡 AI 中文简介
开源大模型即使经过安全对齐,仍可能被越狱攻击。现有方法多在提示或嵌入层面操作,难以触及深层漏洞。本文提出SAHA,一种注意力头级别的越狱框架,通过定位深层最脆弱的注意力头并施加边界感知扰动,成功诱导模型输出不安全内容。实验表明,SAHA的攻击成功率比现有最优方法提升14%,揭示了深层注意力头的安全风险。
领域自然语言处理 / 大模型安全
适合谁读需要一定专业背景(了解Transformer和对抗攻击基础)
核心贡献1. 发现深层注意力层更易受越狱攻击,并提出Ablation-Impact Ranking策略定位关键层;2. 设计Layer-Wise Perturbation边界感知扰动方法,以最小扰动实现高效越狱。
关键数据攻击成功率(ASR)比SOTA基线提升14%。
推荐理由如果你关心大模型安全,这篇工作从注意力头层面挖出了深层漏洞,攻击成功率提升14%,值得一读!
关键词["大型语言模型", "越狱攻击", "注意力头", "安全对齐", "对抗性扰动"]

原文摘要

查看英文原文摘要

Currently, open-sourced large language models (OSLLMs) have demonstrated remarkable generative performance. However, as their structure and weights are made public, they are exposed to jailbreak attacks even after alignment. Existing attacks operate primarily at shallow levels, such as the prompt or embedding level, and often fail to expose vulnerabilities rooted in deeper model components, which creates a false sense of security for successful defense. In this paper, we propose \textbf{\underline{S}}afety \textbf{\underline{A}}ttention \textbf{\underline{H}}ead \textbf{\underline{A}}ttack (\textbf{SAHA}), an attention-head-level jailbreak framework that explores the vulnerability in deeper but insufficiently aligned attention heads. SAHA contains two novel designs. Firstly, we reveal that deeper attention layers introduce more vulnerability against jailbreak attacks. Based on this finding, \textbf{SAHA} introduces \textit{Ablation-Impact Ranking} head selection strategy to effectively locate the most vital layer for unsafe output. Secondly, we introduce a boundary-aware perturbation method, \textit{i.e. Layer-Wise Perturbation}, to probe the generation of unsafe content with minimal perturbation to the attention. This constrained perturbation guarantees higher semantic relevance with the target intent while ensuring evasion. Extensive experiments show the superiority of our method: SAHA improves ASR by 14\% over SOTA baselines, revealing the vulnerability of the attack surface on the attention head. Our code is available at https://anonymous.4open.science/r/SAHA.