Seedlabs
Source research

Cognitive Overload Attack:Prompt Injection for Long Context

Bibek Upadhayay, Vahid Behzadan, Amin Karbasi · 2024 · 28 citationsRead the paper

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.

What the full text shows

Working prototype
  • Cognitive overload prompts successfully jailbroke multiple SOTA models with high attack success rates (ASR). — up to 99.99% ASR (Tested on GPT-4, Claude-3.5 Sonnet, Claude-3 OPUS, Llama-3-70B-Instruct, Gemini-1.0-Pro, and Gemini-1.5-Pro)
  • The attack bypassed LLM Guardrail-Llama Guard-2 8B, failing to identify harmful inputs and allowing harmful outputs. — up to 45% ASR for harmful outputs (Using cognitive overload attack prompts)
  • Increasing cognitive load (CL) leads to degraded performance on secondary observation tasks. — not specified (Progressive stacking of CL tasks (CL1 to CL6))
  • Claude-3.5-Sonnet showed higher resilience to standard CL1-CL6 prompts, requiring custom CL7-CL11 combinations. — 53% ASR (Tested on JailbreakBench dataset)
Setup
Tested on Forbidden Question Set (232 questions) and JailbreakBench (100 questions) across models including GPT-4, Claude-3 series, Llama-3-70B, and Gemini series.
How
The researchers applied Cognitive Load Theory to LLMs by stacking multiple cognitive tasks (CL1-CL6) before a target observation task to induce overload. They used an automated attack algorithm to paraphrase harmful questions, obfuscate them with tags, and iteratively increase the cognitive load until a judge LLM flagged the response as unsafe.
Limitations
Limited to a small number of specific cognitive load task patterns. · Lack of human evaluation for assessing the harmfulness of responses. · ASR results vary significantly depending on the judge LLM used for evaluation. · Preliminary cognitive load measurements were limited to a single model (Llama-3-70B-Instruct).

Summarized by Gemma 4 from the open-access full text · 11 Nov 2026. Read it