TL;DR
This paper highlights a critical security vulnerability in LLM agents: "sequentially contextual harm," where individually harmless actions combine to cause significant damage. The authors demonstrate that current off-the-shelf LLMs struggle to detect this harm when it's broken down into sub-tasks, even with advanced models, and call for specialized training for robust monitoring.
What Problem Does This Paper Address?
As LLM agents become more integrated with external tools and capable of complex tasks, the potential for misuse and catastrophic risk increases. A key challenge in monitoring these agents is detecting "sequentially contextual harm." This type of harm isn't obvious from any single instruction or action. Instead, it emerges from the composition of multiple, seemingly benign steps that, when chained together, achieve a malicious objective. This makes traditional monitoring, which often focuses on individual actions, insufficient. The paper aims to demonstrate this risk and evaluate how well current LLMs can act as monitors for such subtle, sequential malicious intent.
Methods
The core of the paper's methodology involves:
- Task Decomposition: The authors demonstrate the risk by taking harmful tasks and breaking them down into a series of individually benign sub-tasks. This decomposition significantly reduces the refusal rate of LLM agents, making them more likely to complete the harmful task.
- LLM-based Monitoring Evaluation: They then evaluate the ability of various off-the-shelf LLMs to act as monitors. This involves prompting these LLMs to infer the user's intent (binary malicious/benign, or natural language description) from sequences of sub-tasks.
- Obfuscation Techniques: The study also investigates how injecting unrelated, benign sub-tasks into a malicious sequence can further degrade the monitor's performance, simulating an attacker's attempt to hide their true intent.
- Prompt Engineering and Ensemble Methods: The researchers explore whether basic prompt engineering or using an ensemble of LLM monitors can improve detection accuracy.
Datasets
The paper introduces a new dataset for evaluating sequentially contextual harm. This dataset is derived from:
- Modified AgentHarm Tasks: 36 tasks from the existing AgentHarm benchmark were adapted.
- Newly Curated Tasks: 14 new tasks were manually developed.
In total, the dataset comprises 50 unique agent tasks across 8 categories, including disinformation, fraud, and harassment. Each harmful task is decomposed into a sequence of seemingly benign sub-tasks.
Key Insights and Ideas
- The "Decomposition Attack" is Real: Breaking down harmful tasks into seemingly benign sub-tasks significantly lowers LLM agent refusal rates, making them more susceptible to executing malicious actions. This is a concrete demonstration of sequentially contextual harm.
- Current LLM Monitors are Not Infallible: While LLMs can achieve decent accuracy (up to 86%) in predicting binary intent from sub-tasks, there's a significant performance gap compared to directly judging the original, high-level harmful instructions.
- Obfuscation is Effective: Injecting unrelated benign sub-tasks into a malicious sequence drastically degrades monitoring accuracy, showing that attackers can effectively hide their intent.
- Capability Doesn't Equal Monitoring Prowess: More capable LLMs (higher Chatbot Arena scores) do not automatically translate to better monitoring abilities for sequentially contextual harm. This suggests a need for specialized training.
- Input-Only Monitoring is Key: Evaluating user instructions (inputs) exclusively yields better monitoring performance for inferring natural language intentions compared to monitoring outputs or both.
Key Results
- Reduced Refusal Rates: Task decomposition reduced refusal rates for models like GPT-4o from 50% to 10%, and for Claude-3.5-Sonnet from 90% to 55%, while maintaining high task completion.
- Monitor Accuracy: The best-performing LLM monitor achieved around 86% accuracy in predicting binary malicious/benign intent from sub-tasks.
- Natural Language Intent Inference: The top model scored an average of 8.15 out of 10 for aligning inferred natural language intent with actual intent.
- Impact of Obfuscation: Increasing the percentage of injected random sub-tasks consistently degraded monitor performance (lower inference scores and accuracy).
- No Correlation with Capability: Monitoring accuracy showed weak correlation with Chatbot Arena scores (R² = 0.19) and almost no correlation with training compute (R² = 0.01).
- Safety Guidelines Don't Help: Incorporating safety guidelines into judgmental prompts did not improve monitoring performance and, in most cases, decreased it.
Limitations and Future Work
- Dataset Size: The empirical analysis was conducted on a relatively small dataset due to the manual effort required to craft tasks. The authors plan to expand this to a larger dataset.
- Monitoring Methods: The current study primarily uses prompting-based methods for monitoring. Future work could explore more advanced techniques.
- Specialized Training: The findings strongly suggest that current off-the-shelf LLMs are not inherently good at monitoring sequentially contextual harm. The paper calls for specialized training approaches to develop more robust agent monitoring systems.
- Longer Contexts and Multi-Conversation Harm: The current work focuses on a single trajectory. Future research should explore how malicious users might execute benign sub-tasks across different conversations to achieve harm, making intent inference even harder.
Summary updated