Abstract: Current LLM safety defenses fail under decomposition attacks, where a malicious goal is decomposed into benign subtasks that circumvent refusals. The challenge lies in the existing shallow safety alignment techniques: they only detect harm in the immediate prompt and do not reason about long-range intent, leaving them blind to malicious intent that emerges over a sequence of seemingly benign instructions. We therefore propose adding an external monitor that observes the conversation at a higher granularity. To facilitate our study of monitoring decomposition attacks, we curate the largest and most diverse dataset to date, including question-answering, text-to-image, and agentic tasks. We verify our datasets by testing them on frontier LLMs and show an 87% attack success rate on average on GPT-4o. This confirms that decomposition attack is broadly effective. Additionally, we find that random tasks can be injected into the decomposed subtasks to further obfuscate malicious intents. To defend in real time, we propose a lightweight sequential monitoring framework that cumulatively evaluates each subtask. We show that a carefully prompt engineered lightweight monitor achieves a 93% defense success rate, beating reasoning models like o3 mini as a monitor. Moreover, it remains robust against random task injection and cuts cost by 90% and latency by 50%. Our findings suggest that lightweight sequential monitors are highly effective in mitigating decomposition attacks and are viable in deployment.
Introduction: The Blind Spot of Shallow Alignment
Most LLM safety training relies on "shallow alignment," meaning models are trained to recognize and refuse harm within a single, immediate prompt. However, adversaries exploit a massive blind spot: the inability to reason about long-range intent across a conversation. This is achieved via decomposition attacks, where a malicious goal is broken down into a sequence of seemingly innocent subtasks. Individually, each prompt is benign; collectively, they achieve a malicious objective.
Methods: Sequential Monitoring Framework
To address this, we propose a Sequential Monitoring Framework. Instead of evaluating prompts in isolation, an external "monitor" model observes the cumulative context of the conversation. At every step $i$, the monitor looks at the history $[p_1, \dots, p_i]$ and decides whether to "flag and halt" or "allow and continue."
We optimized this framework using a "Prompt-as-Hyperparameter" approach, testing techniques like In-Context Learning (ICL) and Chain-of-Thought (CoT) reasoning. Crucially, we focused on lightweight models (e.g., Llama-3.1-8B, GPT-4o-mini) to ensure the defense is viable for real-world deployment by minimizing latency and costs.
The DecomposedHarm Benchmark
We curated DecomposedHarm, the largest and most diverse dataset for decomposition attacks to date, covering three distinct modalities:
- Question-Answering (QA): 1,300 unsafe prompts decomposed into benign sub-queries.
- Text-to-Image: 631 examples where a sequence of innocent image descriptions eventually generates a harmful image.
- Agentic Tasks: 533 tasks where an AI agent performs multi-step actions leading to a malicious outcome.
Our evaluation confirms that decomposition attacks are a universal vulnerability. GPT-4o, a frontier model, had an 87% attack success rate across these datasets. Without sequential monitoring, its refusal rate dropped from ~78% on original tasks to just 7.2% when those tasks were decomposed.
Key Results: Efficiency and Robustness
A primary finding of our work is that safety does not require massive compute. A carefully prompted lightweight monitor (GPT-4o-mini with QA-specific ICL) achieved a 93% Defense Success Rate (DSR), outperforming massive reasoning models like o3-mini.
As shown in the figure above, lightweight sequential monitors occupy the optimal trade-off between performance and cost. They are not only more accurate but also 90% cheaper and 50% faster than using high-end reasoning models as monitors. Furthermore, they remain robust against "intent obfuscation," where attackers inject random tasks to confuse safety filters.
Conclusion and Future Work
Lightweight sequential monitors are highly effective in mitigating decomposition attacks and are viable for real-time deployment. Future research should address longer conversation horizons (beyond 20 subtasks) and more sophisticated obfuscation methods, such as synonym rewriting, to ensure defenses remain robust against evolving adversarial strategies.
Summary updated