potentialpaper

Safe Actions Can Form Unsafe Traces: Benchmarking and Shielding Compositional Emergent Risk in AI Agents

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:34 UTC · 6200329d83db ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,26 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "I49ieEOieb"
- }
- ],
- "title": "Safe Actions Can Form Unsafe Traces: Benchmarking and Shielding Compositional Emergent Risk in AI Agents",
- "authors": [
- "Zhongze Wu",
- "Xiu Su",
- "Hongyan Xu",
- "Yichao Cao",
- "Yueyi Luo",
- "Jun Long"
- ],
- "abstract": "Large language model agents increasingly act through tools, browsers, code interpreters, and external APIs, turning safety from a single-output problem into a trace-level problem. We identify compositional emergent risk (CER), a failure mode where individually safe actions interact across time to produce unsafe outcomes. We characterize an information barrier: monitors cannot distinguish safe and harmful histories that yield the same observation. To study this failure systematically, we introduce CER-Bench, a controlled long-horizon benchmark with 440 tasks and 19,525 actions across 5–500 steps, spanning five risk domains and two compositional mechanisms. At the largest tier, each trace induces a 79M+ candidate risk-composition search space. Across 15 frontier and open-source LLM agents, every model exhibits a non-zero compositionality gap (CG), ranging from 44.4% to 100.0% with a mean of 82.2%. Moreover, 86.1% of compliant executions contain caution language yet still proceed, showing that verbal risk awareness does not reliably prevent unsafe composition. We introduce RiskShield, a conformal-calibrated runtime shield that learns trace-risk boundaries, evaluates planned continuations before commitment, and substitutes risky suffixes while preserving safe prefixes. On 7 held-out CER-Bench models, RiskShield reduces mean CER-5 CG from 69.9% to 0.0%, with no shielded pass observed in 763 evaluations, while preserving 78.4% step-level task completion. It outperforms cumulative-threshold, sliding-window, full-trace, and published safety baselines, with 63.3% of tasks requiring no extra API call and additional robustness across longer traces, risk domains, and external agent-safety benchmarks.",
- "year": 2026,
- "venue": "NeurIPS 2026",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "989b54c1-ba96-4e77-ab9f-71aade18d369"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,16 @@
+{
+ "title": "Safe Actions Can Form Unsafe Traces: Benchmarking and Shielding Compositional Emergent Risk in AI Agents",
+ "authors": [
+ "Zhongze Wu",
+ "Xiu Su",
+ "Hongyan Xu",
+ "Yichao Cao",
+ "Yueyi Luo",
+ "Jun Long"
+ ],
+ "abstract": "Large language model agents increasingly act through tools, browsers, code interpreters, and external APIs, turning safety from a single-output problem into a trace-level problem. We identify compositional emergent risk (CER), a failure mode where individually safe actions interact across time to produce unsafe outcomes. We characterize an information barrier: monitors cannot distinguish safe and harmful histories that yield the same observation. To study this failure systematically, we introduce CER-Bench, a controlled long-horizon benchmark with 440 tasks and 19,525 actions across 5–500 steps, spanning five risk domains and two compositional mechanisms. At the largest tier, each trace induces a 79M+ candidate risk-composition search space. Across 15 frontier and open-source LLM agents, every model exhibits a non-zero compositionality gap (CG), ranging from 44.4% to 100.0% with a mean of 82.2%. Moreover, 86.1% of compliant executions contain caution language yet still proceed, showing that verbal risk awareness does not reliably prevent unsafe composition. We introduce RiskShield, a conformal-calibrated runtime shield that learns trace-risk boundaries, evaluates planned continuations before commitment, and substitutes risky suffixes while preserving safe prefixes. On 7 held-out CER-Bench models, RiskShield reduces mean CER-5 CG from 69.9% to 0.0%, with no shielded pass observed in 763 evaluations, while preserving 78.4% step-level task completion. It outperforms cumulative-threshold, sliding-window, full-trace, and published safety baselines, with 63.3% of tasks requiring no extra API call and additional robustness across longer traces, risk domains, and external agent-safety benchmarks.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}