通过认知过载攻击,用特定提示让大模型失效。
Cognitive Overload Attack:Prompt Injection for Long Context
- 借用人脑负荷理论,设计诱导模型过载的恶意提示
- 实测多个主流模型攻击成功率最高达99.99%
- 适合关注大模型安全与对抗攻防的研究者
大型语言模型(LLMs)在无需显式重训练的情况下,展现出跨领域任务执行能力,这一特性称为上下文学习(In-Context Learning, ICL)。然而,这种能力也使模型暴露于各类对抗性提示和越狱攻击中,导致其生成不期望或有害内容。本文从认知神经科学视角重新解读LLM中的ICL,借鉴认知负荷理论,实证表明:与人类认知类似,当模型处理需求超过其认知容量时,会陷入认知过载状态,进而引发错误。我们进一步证明,攻击者可通过精心设计的提示诱导模型产生认知过载,从而绕过安全机制实现越狱。实验验证了该威胁模型的有效性,成功对GPT-4、Claude-3.5 Sonnet、Claude-3 OPUS、Llama-3-70B-Instruct、Gemini-1.0-Pro及Gemini-1.5-Pro等先进模型实施越狱,攻击成功率最高达99.99%。研究揭示了模型在ICL中的关键脆弱性,强调亟需将认知负荷理论融入模型设计与评估,以提升AI系统的安全性与可靠性。
原文摘要 · Abstract (English)
Large Language Models (LLMs) have demonstrated remarkable capabilities in performing tasks across various domains without needing explicit retraining. This capability, known as In-Context Learning (ICL), while impressive, exposes LLMs to a variety of adversarial prompts and jailbreaks that manipulate safety-trained LLMs into generating undesired or harmful output. In this paper, we propose a novel interpretation of ICL in LLMs through the lens of cognitive neuroscience, by drawing parallels between learning in human cognition with ICL. We applied the principles of Cognitive Load Theory in LLMs and empirically validate that similar to human cognition, LLMs also suffer from cognitive overload a state where the demand on cognitive processing exceeds the available capacity of the model, leading to potential errors. Furthermore, we demonstrated how an attacker can exploit ICL to jailbreak LLMs through deliberately designed prompts that induce cognitive overload on LLMs, thereby compromising the safety mechanisms of LLMs. We empirically validate this threat model by crafting various cognitive overload prompts and show that advanced models such as GPT-4, Claude-3.5 Sonnet, Claude-3 OPUS, Llama-3-70B-Instruct, Gemini-1.0-Pro, and Gemini-1.5-Pro can be successfully jailbroken, with attack success rates of up to 99.99%. Our findings highlight critical vulnerabilities in LLMs and underscore the urgency of developing robust safeguards. We propose integrating insights from cognitive load theory into the design and evaluation of LLMs to better anticipate and mitigate the risks of adversarial attacks. By expanding our experiments to encompass a broader range of models and by highlighting vulnerabilities in LLMs' ICL, we aim to ensure the development of safer and more reliable AI systems.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。