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

分析大语言模型的内在响应倾向:真实世界指令驱动的越狱攻击

Analyzing the Inherent Response Tendency of LLMs: Real-World Instructions-Driven Jailbreak

Harbin Institute of Technology(哈尔滨工业大学)

Yanrui Du, Sendong Zhao, Ming Ma, Yuhan Chen, Bing Qin

AI总结:

本文提出自动越狱方法RADIAL,通过分析LLMs的内在响应倾向并拼接真实世界指令来诱导肯定响应,在多个开源LLMs上对中英文恶意指令均取得优异攻击效果,揭示了LLMs的安全风险。

摘要:

大量工作致力于改进大语言模型(LLMs)的安全机制。然而,当面对恶意指令时,LLMs仍然倾向于生成有害响应,这一现象被称为“越狱攻击”。在我们的研究中,我们提出了一种新颖的自动越狱方法RADIAL,该方法通过放大LLMs生成肯定响应的潜力来绕过安全机制。我们方法的越狱思路是“内在响应倾向分析”,该分析识别能够从内在层面诱导LLMs生成肯定响应的真实世界指令,相应的越狱策略是“真实世界指令驱动的越狱攻击”,该策略将上述分析识别出的真实世界指令策略性地拼接在恶意指令周围。我们的方法在五个开源先进LLMs上对英文恶意指令取得了优异的攻击性能,同时在针对中文恶意指令执行跨语言攻击时保持了稳健的攻击性能。我们进行了实验以验证我们越狱思路的有效性以及越狱策略设计的合理性。值得注意的是,我们的方法设计了语义连贯的攻击提示,凸显了LLMs的潜在风险。我们的研究为越狱攻击提供了详细的见解,为开发更安全的LLMs奠定了基础。

英文摘要:

Extensive work has been devoted to improving the safety mechanism of Large Language Models (LLMs). However, LLMs still tend to generate harmful responses when faced with malicious instructions, a phenomenon referred to as "Jailbreak Attack". In our research, we introduce a novel automatic jailbreak method RADIAL, which bypasses the security mechanism by amplifying the potential of LLMs to generate affirmation responses. The jailbreak idea of our method is "Inherent Response Tendency Analysis" which identifies real-world instructions that can inherently induce LLMs to generate affirmation responses and the corresponding jailbreak strategy is "Real-World Instructions-Driven Jailbreak" which involves strategically splicing real-world instructions identified through the above analysis around the malicious instruction. Our method achieves excellent attack performance on English malicious instructions with five open-source advanced LLMs while maintaining robust attack performance in executing cross-language attacks against Chinese malicious instructions. We conduct experiments to verify the effectiveness of our jailbreak idea and the rationality of our jailbreak strategy design. Notably, our method designed a semantically coherent attack prompt, highlighting the potential risks of LLMs. Our study provides detailed insights into jailbreak attacks, establishing a foundation for the development of safer LLMs.

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

↑