arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.05652cs.CRcs.CL
收藏

糖衣毒药:良性生成解锁大语言模型越狱

Sugar-Coated Poison: Benign Generation Unlocks LLM Jailbreaking

Shanghai University of Engineering Science(上海工程技术大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)

Yu-Hang Wu, Yu-Jie Xiong, Hao Zhang, Jia-Chen Zhang, Zheng Zhou

AI总结:

本文提出“糖衣毒药”越狱攻击范式,利用语义反转诱导大语言模型生成大量良性内容以绕过安全机制,并针对该威胁提出基于词性依存分析的防御方法POSD。

摘要:

随着大语言模型(LLMs)在各个领域的深度融合,其安全机制的有效性正面临严峻挑战。当前,基于提示工程的越狱攻击已成为主要安全威胁。然而,现有方法主要依赖对提示模板的黑盒操纵,导致可解释性差且泛化能力有限。为突破这一瓶颈,本研究首先引入“防御阈值衰减”(Defense Threshold Decay,DTD)概念,揭示了大语言模型良性生成所引发的潜在安全影响:随着模型中良性内容生成的增加,模型对输入指令的关注度逐渐下降。基于这一洞察,我们提出了“糖衣毒药”(Sugar-Coated Poison,SCP)攻击范式,该范式采用“语义反转”策略,构造与恶意意图含义相反的良性输入。该策略诱导模型生成大量良性内容,从而使对抗性推理能够绕过安全机制。实验表明,SCP优于现有基线方法。值得注意的是,它在六个大语言模型上取得了平均87.23%的攻击成功率。在防御方面,我们提出了词性防御(Part-of-Speech Defense,POSD),利用动词-名词依存关系进行句法分析,在保持大语言模型泛化能力的同时增强其安全性。

英文摘要:

With the increasingly deep integration of large language models (LLMs) across diverse domains, the effectiveness of their safety mechanisms is encountering severe challenges. Currently, jailbreak attacks based on prompt engineering have become a major safety threat. However, existing methods primarily rely on black-box manipulation of prompt templates, resulting in poor interpretability and limited generalization. To break through the bottleneck, this study first introduces the concept of Defense Threshold Decay (DTD), revealing the potential safety impact caused by LLMs' benign generation: as benign content generation in LLMs increases, the model's focus on input instructions progressively diminishes. Building on this insight, we propose the Sugar-Coated Poison (SCP) attack paradigm, which uses a "semantic reversal" strategy to craft benign inputs that are opposite in meaning to malicious intent. This strategy induces the models to generate extensive benign content, thereby enabling adversarial reasoning to bypass safety mechanisms. Experiments show that SCP outperforms existing baselines. Remarkably, it achieves an average attack success rate of 87.23% across six LLMs. For defense, we propose Part-of-Speech Defense (POSD), leveraging verb-noun dependencies for syntactic analysis to enhance safety of LLMs while preserving their generalization ability.

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

↑