TraceGuard: Defending Multi-Turn Jailbreak Attacks via Prompt-Response Risk Signal Tracking
Hongyi Li, Yufei Wang, Chengxuan Zhou, Qinlin Xie, Yanting Chen, Jiawei Ye, Wu Jie
NeurIPS page · Open on the map
Category: AI Safety, Security & Alignment › LLM Safety Attack Strategies · Type: new method · Keywords: multi-turn jailbreak defense, risk signal tracking, black-box safety, LLM security, cross-turn detection
Areas: Safety & Security › Language Model Security › Jailbreak Defense
Summary
TraceGuard is an online black-box defense that tracks prompt and response risk signals to detect multi-turn jailbreak attacks, capturing cross-view representations, their evolution across turns, and adapting to dynamic attack patterns.
Explained to a 5-year-old
Big computer programs called language models can talk to us like friends. Sometimes people try to trick them by asking many small questions that slowly lead to bad answers. These tricks are called jailbreak attacks. Existing safety tools only look at one question at a time, so they miss the slow tricks. The researchers built a new system that watches how the computer thinks during the conversation. It looks at the words you say and the answers you get, noticing when something feels wrong. This helps keep the computer safe while still letting it answer normal questions nicely.
Explained to a 5-year-old, longer
Big computer programs called language models can talk to us like friends. Sometimes people try to trick them by asking many small questions that slowly lead to bad answers. These tricks are called jailbreak attacks. Existing safety tools only look at one question at a time, so they miss the slow tricks. The researchers looked at how the computer thinks when it sees these tricks. They found that the computer's hidden thoughts change a little each time you talk. These changes happen in the words you say and the answers you get. The changes grow bigger as the conversation goes on. The researchers built a new system that watches these changes over time. It watches both what you say and what the computer replies. The system can tell when the changes look like a trick, even if the trick changes its style. This helps keep the computer safe and lets it still answer normal questions nicely.
For a technical reader
TraceGuard continuously extracts risk representations from both prompts and model responses, building a cross-view signal that evolves across conversation turns. It includes a mode that captures these evolving signals and another that adapts to new attack distributions using few-shot learning. By operating entirely in a black-box setting, it can detect subtle, multi-turn jailbreak attempts without needing access to model internals. The system is designed to be lightweight, preserving the utility and latency of the underlying LLM service.
Problem
Large language models deployed as black-box APIs are vulnerable to multi-turn jailbreak attacks where harmful intent is built gradually across interactions, and existing defenses are insufficient for such scenarios.
Method
The approach analyzes harmful intent by extracting representation-space risk signals across prompts, responses, and turns, then tracks these signals online to detect evolving attack patterns. It includes two detection modes: one that captures cross-view risk representations and their evolution, and another that adapts to dynamic attacks using distribution-aware few-shot learning.
Results
The approach demonstrates superior multi-turn jailbreak detection across benchmarks and target LLMs, preserves utility and efficiency, and generalizes to unseen attacks.
Contributions
The paper provides an analysis of harmful intent signals in multi-turn jailbreak interactions and introduces an online black-box defense that tracks these signals across turns, including cross-view representation capture and distribution-aware few-shot adaptation.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction