Cognitive Overload: Jailbreaking Large Language Models with Overloaded Logical Thinking

Nan Xu, Fei Wang, Ben Zhou, Bangzheng Li, Chaowei Xiao, Muhao Chen

Introduction

Large Language Models (LLMs) have become central to modern AI applications, yet their safety remains a critical concern. Despite extensive safety alignment through Reinforcement Learning from Human Feedback (RLHF) and red teaming, these models are often susceptible to adversarial prompts. Traditional "jailbreak" attacks typically rely on manual roleplay or automated suffix optimization. This paper introduces a novel class of attacks based on "Cognitive Overload," exploiting the cognitive architecture of LLMs to bypass safety filters. By forcing models to handle complex logical or linguistic tasks, attackers can cause safety guardrails to fail, eliciting harmful responses from both proprietary and open-source models.

The Cognitive Overload Framework

Drawing inspiration from human Cognitive Load Theory—which posits that overloading working memory impairs reasoning—the authors investigate whether a similar phenomenon occurs in LLMs. When a model is tasked with high-complexity processing, its ability to maintain safety constraints may diminish. The study proposes three primary black-box attack vectors:

  1. Multilingual Cognitive Overload: This vector exploits the uneven safety alignment across different languages. By using low-resource languages or switching languages mid-conversation (e.g., starting in English and moving to Punjabi), attackers can bypass filters that are primarily optimized for high-resource languages.
  2. Veiled Expression: This method targets the model's reliance on surface-level keyword detection. By replacing sensitive terms with synonyms or neutral paraphrases, the attacker forces the model into deeper semantic processing, which often circumvents simple safety triggers.
  3. Effect-to-Cause Reasoning: This "logic trap" presents a scenario where a harmful outcome has already occurred in a fictional context. The model is then asked to explain the feasible details of how that outcome was achieved. This forces the model to prioritize logical consistency and helpfulness over safety checks.
Overview of the three cognitive overload attack strategies: Multilingual, Veiled Expression, and Effect-to-Cause Reasoning.

Experimental Evaluation

The effectiveness of these attacks was evaluated using two major benchmarks: AdvBench, containing 520 harmful instructions, and MasterKey, covering 11 prohibitive scenarios ranging from unauthorized practice to national security threats. UltraChat served as a baseline for benign prompts to monitor "false refusal" rates.

Key Insights and Results

The research revealed several critical vulnerabilities in current LLM safety architectures:

Language-Dependent Safety

Safety alignment is not language-agnostic. The Attack Success Rate (ASR) increases significantly as the linguistic distance from English grows. Models appear to have a "safety horizon" that narrows when processing languages they are less familiar with.

Correlation between language distance from English and Attack Success Rate (ASR) across various LLMs.

The Reasoning Conflict

The "Effect-to-Cause" reasoning task proved exceptionally potent against proprietary models. For instance, ChatGPT's ASR rose from 0% on standard AdvBench prompts to 88.3% when framed as a logic task. This suggests that the drive to provide a logically sound and helpful answer can override safety alignment when the two objectives conflict.

The Llama 2 Paradox

While Llama 2 exhibited a low ASR, it also showed a high "false refusal" rate. This indicates a conservative, keyword-based safety mechanism rather than a deep understanding of intent. The model often refuses benign requests if they contain even a single sensitive-sounding word, highlighting the limitations of current alignment techniques.

Conclusion and Future Directions

The discovery of cognitive overload attacks underscores the need for safety mechanisms that move beyond keyword-based filtering toward deep, intent-based understanding. Current defenses, such as in-context defense or defensive instructions, were found to be largely ineffective against these sophisticated logical traps. Future work must focus on developing robust alignment that can withstand complex reasoning tasks and maintain safety across all supported languages.

Summary updated

BibTeX
@inproceedings{xu2024cognitive,
  author = {Nan Xu and Fei Wang and Ben Zhou and Bangzheng Li and Chaowei Xiao and Muhao Chen},
  title = {{Cognitive Overload: Jailbreaking Large Language Models with Overloaded Logical Thinking}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-naacl.224},
}
Figure