arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.21700cs.CRcs.AIcs.LG
收藏

XBreaking:理解大语言模型的安全对齐如何被攻破

XBreaking: Understanding how LLMs security alignment can be broken

Department of Electrical, Computer;Biomedical Engineering, University of Pavia, Italy\ .;Department of Computer Applications,\ University of Science \& Technology, India\ .

Marco Arazzi, Vignesh Kumar Kembu, Antonino Nocera, Vinod P

AI总结:

本文提出XBreaking方法,通过可解释AI比较有审查与无审查模型的行为,提取可利用的对齐模式,并利用定向噪声注入攻破大语言模型的安全对齐约束。

摘要:

大语言模型是当今以人工智能解决方案为主导的现代信息技术格局中的基础性参与者。然而,与它们相关的安全威胁可能会阻碍其在政府机构和医疗机构等关键应用场景中的可靠采用。出于这一原因,商业大语言模型通常会经过一套复杂的审查机制,以消除它们可能产生的任何有害输出。这些机制通过保证模型安全且合乎伦理地做出回应,来维护大语言模型对齐的完整性。针对这一点,对大语言模型的攻击是对此类保护的重大威胁,许多先前的方法已经在不同领域证明了其有效性。现有的大语言模型攻击大多采用“生成-测试”策略来构造恶意输入。为了加深对审查机制的理解并设计一种有针对性的攻击,我们提出了一种可解释人工智能解决方案,该方案对有审查和无审查模型的行为进行比较分析,以推导出独特且可利用的对齐模式。随后,我们提出了XBreaking,这是一种新颖的方法,通过有针对性的噪声注入来利用这些独特模式,从而打破大语言模型的安全和对齐约束。我们全面的实验活动返回了关于审查机制的重要见解,并证明了我们方法的有效性和性能。

英文摘要:

Large Language Models are fundamental actors in the modern IT landscape dominated by AI solutions. However, security threats associated with them might prevent their reliable adoption in critical application scenarios such as government organizations and medical institutions. For this reason, commercial LLMs typically undergo a sophisticated censoring mechanism to eliminate any harmful output they could possibly produce. These mechanisms maintain the integrity of LLM alignment by guaranteeing that the models respond safely and ethically. In response to this, attacks on LLMs are a significant threat to such protections, and many previous approaches have already demonstrated their effectiveness across diverse domains. Existing LLM attacks mostly adopt a generate-and-test strategy to craft malicious input. To improve the comprehension of censoring mechanisms and design a targeted attack, we propose an Explainable-AI solution that comparatively analyzes the behavior of censored and uncensored models to derive unique exploitable alignment patterns. Then, we propose XBreaking, a novel approach that exploits these unique patterns to break the security and alignment constraints of LLMs by targeted noise injection. Our thorough experimental campaign returns important insights about the censoring mechanisms and demonstrates the effectiveness and performance of our approach.

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

↑