认知过载攻击:针对长上下文的提示注入
Cognitive Overload Attack:Prompt Injection for Long Context
AI总结:
本文提出认知过载攻击,通过设计特定提示使大型语言模型产生认知过载以绕过安全机制实现越狱,在多个先进模型上攻击成功率高达99.99%,揭示了LLMs的关键漏洞。
摘要:
大型语言模型(LLMs)在无需显式重新训练的情况下,在跨各个领域执行任务方面展现出了卓越的能力。这种被称为上下文学习(ICL)的能力虽然令人印象深刻,但也使LLMs面临各种对抗性提示和越狱攻击,这些攻击操纵经过安全训练的LLMs生成不期望或有害的输出。在本文中,我们通过认知神经科学的视角,通过将人类认知学习与ICL进行类比,提出了一种对LLMs中ICL的新颖解释。我们将认知负荷理论的原理应用于LLMs,并经验性地验证了,与人类认知类似,LLMs也会遭受认知过载——这是一种对认知处理的需求超过模型可用容量的状态,会导致潜在错误。此外,我们展示了攻击者如何利用ICL,通过故意设计在LLMs上引发认知过载的提示来对LLMs进行越狱,从而破坏LLMs的安全机制。我们通过精心制作各种认知过载提示来经验性地验证这一威胁模型,并展示了诸如GPT-4、Claude-3.5 Sonnet、Claude-3 OPUS、Llama-3-70B-Instruct、Gemini-1.0-Pro和Gemini-1.5-Pro等先进模型可以被成功越狱,攻击成功率高达99.99%。我们的发现突显了LLMs中的关键漏洞,并强调了开发强大保障措施的紧迫性。我们提议将认知负荷理论的见解整合到LLMs的设计和评估中,以更好地预测和减轻对抗性攻击的风险。通过扩展我们的实验以涵盖更广泛的模型,并通过强调LLMs的ICL中的漏洞,我们旨在确保开发出更安全、更可靠的AI系统。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。