arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.03052cs.LGcs.CR
收藏

理解并增强越狱攻击的可迁移性

Understanding and Enhancing the Transferability of Jailbreaking Attacks

Sydney AI Centre, The University of Sydney(悉尼人工智能中心、悉尼大学);Hong Kong Baptist University(香港 Baptist 大学)

Runqi Lin, Bo Han, Fengwang Li, Tongling Liu

AI总结:

本研究揭示越狱攻击可迁移性受限源于对抗序列对源大语言模型参数的过拟合,提出感知重要性扁平化方法,通过分散模型注意力遮蔽恶意意图,有效提升对专有大语言模型的越狱攻击迁移性,可用于高效红队评估。

摘要:

越狱攻击能够有效操控开源大语言模型(LLM)生成有害回复,但这类攻击的可迁移性有限,无法持续突破专有LLM的防护。为可靠识别专有LLM的漏洞,本研究通过分析越狱攻击对模型意图感知的影响,探究其可迁移性机制。这类攻击通过加入对抗序列,使源LLM的注意力偏离原始输入中的恶意意图token,从而阻碍模型的意图识别并诱导其生成有害回复。然而,这些对抗序列无法误导目标LLM的意图感知,使得目标LLM能够重新聚焦于恶意意图token并弃权(不执行)回复。进一步分析发现,生成的对抗序列存在固有的分布依赖性,其有效性源于对源LLM参数的过拟合,因此对目标LLM的可迁移性有限。为此,我们提出感知重要性扁平化(PiF)方法,该方法将模型的注意力均匀分散到原始输入的中性意图token上,从而遮蔽恶意意图token,且无需依赖过拟合的对抗序列。大量实验表明,PiF可为专有LLM提供有效且高效的红队评估。

英文摘要:

Jailbreaking attacks can effectively manipulate open-source large language models (LLMs) to produce harmful responses. However, these attacks exhibit limited transferability, failing to disrupt proprietary LLMs consistently. To reliably identify vulnerabilities in proprietary LLMs, this work investigates the transferability of jailbreaking attacks by analysing their impact on the model's intent perception. By incorporating adversarial sequences, these attacks can redirect the source LLM's focus away from malicious-intent tokens in the original input, thereby obstructing the model's intent recognition and eliciting harmful responses. Nevertheless, these adversarial sequences fail to mislead the target LLM's intent perception, allowing the target LLM to refocus on malicious-intent tokens and abstain from responding. Our analysis further reveals the inherent distributional dependency within the generated adversarial sequences, whose effectiveness stems from overfitting the source LLM's parameters, resulting in limited transferability to target LLMs. To this end, we propose the Perceived-importance Flatten (PiF) method, which uniformly disperses the model's focus across neutral-intent tokens in the original input, thus obscuring malicious-intent tokens without relying on overfitted adversarial sequences. Extensive experiments demonstrate that PiF provides an effective and efficient red-teaming evaluation for proprietary LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑