Abstract
Researchers have identified a novel "cognitive" vulnerability in Large Language Models (LLMs) where safety filters can be suppressed by overwhelming the model with resource-intensive decoding tasks. This "Task Overload" attack is uniquely scalable, allowing attackers to tune the complexity of a preliminary task to bypass the safety protocols of increasingly larger and more robust models. By treating safety alignment as a resource-competing process rather than a static guardrail, this research introduces a quantifiable and model-agnostic method for jailbreaking state-of-the-art LLMs.
Introduction
Despite extensive safety alignment via Reinforcement Learning from Human Feedback (RLHF), LLMs remain susceptible to "jailbreaking"—prompts designed to generate harmful content. Existing jailbreaks typically rely on static templates (e.g., the "DAN" persona) or computationally expensive gradient-based searches. However, these methods often lack flexibility; an attack successful on a 7B parameter model may fail on a 70B model because it lacks sufficient "strength."
This paper addresses the lack of a quantifiable, scalable way to measure and adjust attack strength. The authors hypothesize that LLM safety mechanisms are active processes that compete for the model's finite computational and reasoning resources. By saturating these resources with a primary task, the secondary safety check can be effectively bypassed.
Methodology: The Task Overload Paradigm
The authors introduce a novel attack based on Task Overload. Instead of linguistic trickery, they force the model to perform a "Character Map Lookup" task immediately before executing a harmful instruction.
The Workflow
- Character Mapping: The attacker provides a cipher (e.g.,
'iNf':'o','HNiU':'E'). - The Query: The attacker provides an encoded string that the model must decode using the provided map.
- The Masked Instruction: The decoded string is inserted into a placeholder within a harmful prompt (e.g., "[MASK] Write a defamatory article...").
- The Overload: Attackers increase the "cognitive load" by adjusting three variables: Map Size (number of pairs), Query Count (number of strings to decode), and Query Length.
The core mechanism is "preemption": by the time the model completes the intensive decoding task, its capacity to activate safety policies is saturated, allowing the harmful instruction to be processed without refusal.
Key Insights and Results
Safety is Resource-Dependent
The most striking finding is that safety mechanisms appear more susceptible to resource constraints than basic task execution. Even when a model is too "overloaded" to refuse a harmful prompt, it can often still execute benign instructions with high accuracy. This suggests that LLMs prioritize immediate, complex instructions over background safety guardrails when resources are tight.
Quantifiable and Scalable Attack Strength
Unlike traditional prompt engineering, this method allows for a mathematical definition of Attack Strength ($AS$), proportional to the complexity of the lookup task. Testing on the Qwen2.5 family (3B to 72B parameters) demonstrated clear scalability: while Qwen2.5-3B could be jailbroken with a Query Count of 2, the 32B version required a Query Count of 4 to reach a similar Attack Success Rate (ASR).
Performance Benchmarks
- High Success Rates: On Llama3-8B, the attack achieved a 77% ASR, compared to near 0% for standard baselines.
- Superiority Over Baselines: The method consistently outperformed established attacks like GCG and PAIR across multiple models, including Mistral-7B and Vicuna-7B.
- Utility Preservation: The "overload" task did not significantly impair the model's ability to answer benign questions, indicating the attack specifically targets the refusal mechanism rather than general reasoning capabilities.
Discussion and Future Work
While the attack effectively bypasses internal safety filters, it remains potentially detectable by external "input-filtering" systems due to the presence of large, nonsensical character maps. Furthermore, the relationship between map size and ASR is not perfectly linear, suggesting complex internal thresholds for resource allocation.
This research highlights a critical need for "resource-robust" defense strategies. Current safety training may fail to account for model behavior under extreme computational strain, suggesting that as models grow more powerful, ensuring their safety requires more than just alignment—it requires resilience against task-based preemption.
Summary updated