Representation Transitions Reveal Emerging Safety Risks in Multi-Turn LLM Agents
Haoyu Wang, Wei Zhao, Yedi Zhang, Christopher M. Poskitt, Jun Sun
Abstract
Multi-turn attacks on agentic systems can compose individually permissible actions into harmful outcomes, challenging defenses that assess actions or states in isolation. We show that such attacks leave a detectable signature in the agent's internal representations: harmful behavior emerges as an accumulated representation transition across context updates, whose triggering context can be identified from the same signal. We further find that naive aggregation is confounded by benign representation drift, as a contrastive safety direction need not assign zero to benign transitions. We address this by denoising the direction, anchoring benign traffic at zero and removing its leading variation directions, with no runtime cost. These findings motivate DART, a runtime framework that detects and attributes representation shifts and intervenes with targeted reminders. Across six models and two multi-turn benchmarks, DART reduces attack success from 84% to 25% on MT-AgentRisk, catching every attack at a mean false-alarm rate of 12%, and from 97% to 52% on ASEval, at costs in benign non-refusal of 8% and 0%, respectively. On MT-AgentRisk, it outperforms ToolShield, the state-of-the-art multi-turn defense, on all six models: under the same protocol, ToolShield reaches only 55%. Denoising is critical: on ASEval, the undenoised monitor catches only 7%-40% of attacks, while the denoised monitor catches 60%-85%. The same monitor covers single-turn indirect injection without modification and adds only 0.14-0.56 s overhead per monitored step without requiring an auxiliary model, making it a lightweight complement to computation-heavy speculative defenses.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CR
Related papers
MACTS-EM: Multi-Agent Collaborative Time Series Forecasting with Emergent Memory
Shared title terminologycs.LGAhmad Shahi, Mamehgol Yousefi
RebaseKV: Hiding Prefill Latency in Multi-Agent LLMs via Optimistic Cache Alignment
Shared title terminologycs.LGJiayu Qin, Ankith M S, Harpreet Kaur et al.
MARO: Multi-Agent Retrieval-Augmented Question Answering over Korean Policy Reports and Its Protocol-Sensitive Evaluation
Shared title terminologycs.LGSaksonita Khoeurn, In Hwan Oh, Sovandara Chhoun et al.
Flowing Faster to Coordinate: One-Step Online Multi-Agent Flow Policies
Shared title terminologycs.LGZhuoran Li, Yunzhan Li, Xun Wang et al.
Quantifying the Impact of Ambulance Ramping: A Multi-Year Analysis of Victorian Emergency Medical Services Cases
Shared title terminologycs.LGAyesha Tanveer, Khandakar Ahmed, Assefa Teshome et al.
SkillSpec: Consensus-Gated Agent Skill Evolution via Representation Specialization
Shared title terminologycs.LGHuancheng Chen, Xiaodi Sun, Zhaoqiong Huang et al.