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 2026
Abstract. Large Language Models (LLMs) have made remarkable progress and are increasingly deployed as black-box API services. However, they remain vulnerable to jailbreak attacks that bypass safeguards and elicit harmful content, especially in multi-turn settings where harmful intent is gradually constructed over the interaction. Existing defenses primarily target single-turn scenarios or require access to model internals, making them insufficient against black-box multi-turn jailbreak attacks with weak single-turn discriminability, cross-turn dependency, and dynamic attack patterns. To bridge this gap, we first analyze harmful intent in multi-turn jailbreak interactions through representation-space risk signals inspired by the Linear Representation Hypothesis. Our analysis reveals that these signals are fragmented across prompts, responses, and turns, progressively evolve over the interaction, and exhibit attack-dependent temporal patterns. Motivated by this, we propose TraceGuard, an online black-box defense framework that detects multi-turn jailbreak attacks by tracking prompt and response risk signals as the interaction unfolds. Specifically, TraceGuard operates in two modes: TraceGuard-S captures cross-view risk representations and their cross-turn evolution, while TraceGuard-A further enables distribution-aware few-shot adaptation to dynamic attack patterns. Extensive experiments across multiple benchmarks and target LLMs demonstrate that TraceGuard achieves superior multi-turn jailbreak detection while preserving utility, maintaining efficiency, and generalizing to unseen attacks.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper introduces TraceGuard, an online detection framework designed to defend against multi-turn jailbreak attacks on LLMs. The authors propose that harmful intent in multi-turn interactions can be tracked using "risk signals" derived from the representation space of an auxiliary encoder. TraceGuard uses GRUs to track these prompt and response risk trajectories turn-by-turn. The framework includes TraceGuard-S for cross-turn evolution and TraceGuard-A, which utilizes few-shot prototype-based adaptation for unseen attacks. The authors evaluate their method across multiple datasets and target models, claiming superior detection accuracy compared to single-turn detectors and guard models while preserving benign performance. The reviewers note the strengths of the paper include (1) tackling multi-turn jailbreaks is a timely, practical, and critical problem, especially for API-based LLMs, where intent is distributed across multiple interactions, (2) the framing of the problem as a trajectory of fragmented risk signals in representation space is sensible and well-motivated, and (3) The empirical evaluation covers a wide array of settings, including 12 datasets (both jailbreak and benign), 5 target models (open and closed-source), and various ablations. The reviewers also raises weaknesses that can be addressed, such as potential unfair baseline comparison, suspicious baseline results, weak adaptive attack evaluation, and overstated claims. These concerns can be addressed during the rebuttal.
Final justification
The authors have addressed the major concern from the reviewers.
- Final justification
- The authors have addressed the major concern from the reviewers.
Read meta-review
Meta-review
The paper introduces TraceGuard, an online detection framework designed to defend against multi-turn jailbreak attacks on LLMs. The authors propose that harmful intent in multi-turn interactions can be tracked using "risk signals" derived from the representation space of an auxiliary encoder. TraceGuard uses GRUs to track these prompt and response risk trajectories turn-by-turn. The framework includes TraceGuard-S for cross-turn evolution and TraceGuard-A, which utilizes few-shot prototype-based adaptation for unseen attacks. The authors evaluate their method across multiple datasets and target models, claiming superior detection accuracy compared to single-turn detectors and guard models while preserving benign performance. The reviewers note the strengths of the paper include (1) tackling multi-turn jailbreaks is a timely, practical, and critical problem, especially for API-based LLMs, where intent is distributed across multiple interactions, (2) the framing of the problem as a trajectory of fragmented risk signals in representation space is sensible and well-motivated, and (3) The empirical evaluation covers a wide array of settings, including 12 datasets (both jailbreak and benign), 5 target models (open and closed-source), and various ablations. The reviewers also raises weaknesses that can be addressed, such as potential unfair baseline comparison, suspicious baseline results, weak adaptive attack evaluation, and overstated claims. These concerns can be addressed during the rebuttal.
1 comment
- Rating
- 3/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
TraceGuard targets multi-turn jailbreak attacks against black-box LLM APIs. Building on the Linear Representation Hypothesis, the authors use an auxiliary encoder to extract intent-concept risk signals from prompts and responses, model their cross-turn trajectories with GRUs for per-turn online detection, and support few-shot prototype adaptation to unseen attacks. It is evaluated on 12 datasets and 5 target models, reporting detection above prompt-based and guard-model baselines with about 96% benign preservation.
Strengths and weaknesses
-
S1. Empirically driven design. The motivation is clear and well-articulated.
-
S2. Black-box method. It does not touch target-model internals.
-
S3. Broad empirical coverage. 12 datasets, 5 target models, and multiple seeds, with additional checks on closed-source transfer, alternative encoders, and over-safety.
-
W1. Insufficient adaptive-attack evaluation, and the threat model does not define attacker capability. Although the authors acknowledge in the limitations the method's dependence on the auxiliary encoder and predefined intent concepts.
-
W2. The main multi-turn baseline is used in a retrained, weakened form, so the 9.7% gain is not robust.
-
W3. The main comparison table reports no variance and no significance test.
-
W4. Unseen-attack test sets are small and same-sourced. ActorAttack and Crescendo each contain only 520 interactions, both generated by GPT-3.5-Turbo from the single AdvBench corpus; although the authors remove target-model overlap, the single source still limits diversity.
-
W5. The few-shot comparison has no external baseline. Citing confounders, the authors compare only against their own backbone, so the adaptation gain is always a self-comparison and its real effect cannot be seen.
Questions
Does the intent-concept space remain applicable in other domains such as multilingual, medical, or educational settings, and how transferable are these concept directions? What justified choosing Llama3-8B as the auxiliary encoder, and how does this choice affect applicability across target-model families?
Limitations
yes
Final justification
Thank the authors for their response. The clarifications have improved the quality of the paper to some extent; however, the core concerns remain insufficiently addressed.
Formatting concerns
No
2 comments
Rebuttal
We thank the reviewer for the constructive comments. We address the individual comments raised by the reviewer below.
(W1) Threat model and adaptive attacks
Our response: We specify the attacker’s access constraints and objectives in Sec. 3.1. Specifically, we consider a black-box attacker who can iteratively query the target LLM, while having no access to model parameters and gradients, or TraceGuard. We will make the attacker’s capabilities and access constraints more explicit in the revised manuscript.
To address the reviewer’s concern, we conduct additional evaluations against adaptive attacks that go beyond our default threat model. These attacks are used only for evaluation and are not included in the training or calibration of either TraceGuard-S or TraceGuard-A. The experiments are based on Crescendo with 30 seed questions, using GPT-3.5-Turbo as the attack generator, GPT-4o-mini as the target model, and GPT-4o as the attack success rate (ASR) evaluator.
1. Score-aware adaptive attack. We assume the attacker can access TraceGuard-S predictions and adapt the attack trajectory by selecting low- candidates while keeping the original Crescendo harmful goal unchanged. At each turn, the attacker generates three candidate prompts, prefers candidates with , and otherwise selects the lowest- candidate with up to three-turn backtracking. We report the H-ACC of TraceGuard and the ASR under different adaptive settings:
| Attack Setting | ASR (%) | TraceGuard-S H-ACC (%) | TraceGuard-A H-ACC (%) |
|---|---|---|---|
| Crescendo (original) | 56.7 | 96.7 | 96.7 |
| Adaptive () | 0.0 | 26.7 | 40.0 |
| Adaptive () | 3.3 | 56.7 | 63.3 |
| Adaptive () | 6.7 | 60.0 | 73.3 |
| Adaptive () | 10.0 | 73.3 | 83.3 |
The results show that adaptive attackers can reduce intermediate risk signals through trajectory manipulation, but this evasion substantially decreases jailbreak success, revealing an inherent trade-off between evasion and attack effectiveness.
2. Trajectory-disruption adaptive attack. We consider a black-box attacker without access to TraceGuard predictions. The attacker inserts benign-looking turns (e.g., ethical discussion, safety reminders, or refusal statements) into the interaction to disrupt trajectory-level risk evolution. We evaluate four strategies by inserting three benign-looking turns into different positions of the interaction: alternating insertion (every other turn), middle-block insertion (three consecutive turns in the middle), sandwich insertion (before and near the final attack turns), and prefix insertion (benign turns at the beginning).
| Attack Setting | ASR (%) | TraceGuard-S H-ACC (%) | TraceGuard-A H-ACC (%) |
|---|---|---|---|
| Alternating | 6.7 | 96.7 | 96.7 |
| Middle-block | 13.3 | 100.0 | 100.0 |
| Sandwich | 3.3 | 90.0 | 96.7 |
| Prefix | 6.7 | 96.7 | 96.7 |
These strategies weaken jailbreak effectiveness but fail to evade TraceGuard, as inserted benign-looking turns disrupt local risk evolution but cannot eliminate harmful intent expressed across the interaction trajectory.
(W2) Baseline fairness
Our response: For the multi-turn baseline NBF, we follow its original training procedure and retrain it on our training split for a fair comparison. We additionally report the officially released model results in Appendix C.4. The retrained version achieves 17.5% higher Overall ACC than the official model, suggesting that retraining provides a stronger baseline in our evaluation setting.
(W3) Statistical reliability
Our response: Our trainable methods are already evaluated over five random seeds with mean ± standard deviation (Table 9), while deterministic guard baselines use fixed inference settings. We will additionally include significance tests against baselines in the revised manuscript.
(W4) Unseen-attack evaluation diversity
Our response: We acknowledge the reviewer’s concern regarding source diversity. For multi-turn jailbreak detection, diversity is reflected not only in seed questions but also in attack strategies and generated prompts. ActorAttack and Crescendo are automated attack frameworks that generate new multi-turn jailbreak prompts through different attack procedures rather than directly reusing prompts. Each interaction requires extensive model queries (20--25 for Crescendo and 25--30 for ActorAttack), indicating that the diversity arises from iterative attack generation rather than simple prompt rewriting. Beyond AdvBench-derived attacks, we also evaluate on CoSafe, which follows a different data construction process and provides complementary cross-source evidence. We will clarify this limitation in the revised manuscript.
(W5) External baselines for few-shot adaptation
Our response: To address the concern that the adaptation gain may be backbone-specific, we further evaluate our approach on NBF with Llama3-8B as the target model under a 10-shot setting. Specifically, we apply the same distribution-aware adaptation strategy to NBF, replacing TraceGuard-specific representation and prediction components with those of NBF. We compare with two standard few-shot adaptation baselines: classifier-head fine-tuning (FT, freezing the backbone and updating only the classifier) and ProtoNet [1]. All methods are adapted using the same support set, and no method-specific threshold tuning is performed.
| Method | H-ACC Seen (%) | H-ACC Unseen (%) | B-ACC Seen (%) | B-ACC Unseen (%) |
|---|---|---|---|---|
| NBF | 80.4 | 50.2 | 67.8 | 55.9 |
| NBF + FT | 97.5 | 94.2 | 42.7 | 28.0 |
| NBF + ProtoNet | 96.2 | 91.8 | 57.1 | 41.1 |
| NBF + Our Adaptation | 82.0 | 76.2 | 87.2 | 70.2 |
The results demonstrate that our distribution-aware adaptation strategy generalizes to an external detector backbone and achieves a better harmful–benign accuracy trade-off than standard few-shot adaptation baselines.
[1] Snell et al. “Prototypical Networks for Few-shot Learning”
(Q1) Transferability of intent concept space
Our response: We have acknowledged the limitation that predefined intent concepts may not fully cover domain-specific or emerging harms (Lines 380--382). However, these concepts are designed to capture general harmful intent patterns rather than domain-specific knowledge, suggesting that they may transfer to domains sharing similar safety semantics.
Cross-Lingual Transferability. We translate 50 harmful Crescendo trajectories and 50 benign LMSYS samples into Chinese and Japanese, and apply the same concept directions without recalibration. TraceGuard-A achieves AUCs of 0.847 and 0.609, compared with 0.929 in English, indicating partial transferability limited by the auxiliary encoder’s multilingual capability.
Cross-Domain Transferability. We further evaluate cross-domain transfer on 50 MedSafetyBench [2] harmful samples and 50 EduHarm [3] educational grey-area samples using Crescendo attack. On GPT-4o-mini, TraceGuard achieves 82--86% detection accuracy on medical samples but 56% on educational cases, where ambiguous policy boundaries (e.g., academic integrity) differ from explicit harmful intent captured by current concepts.
We will clarify this transferability scope and limitation in the revised manuscript, and leave broader domain-specific concept expansion as future work.
[2] Han et al. “MedSafetyBench: Evaluating and Improving the Medical Safety of Large Language Models”
[3] Yi et al. “Unified Defense for Large Language Models against Jailbreak and Fine-Tuning Attacks in Education”
(Q2) Auxiliary encoder selection
Our response: We choose Llama3-8B as the auxiliary encoder under the LRH assumption that LLM representations encode safety-related semantic differences between benign and harmful content. Its open-source nature, accessible hidden states, and strong semantic representation capability make it a practical and reproducible choice.
To evaluate the robustness of this choice, we replace Llama3-8B with alternative auxiliary encoders in Appendix D.5 (Table 12). The results show that safety signals remain transferable across target models, while performance differences mainly arise from auxiliary encoders’ capability in representing safety concepts and separating harmful-benign semantics.
Official Comment by Authors
Dear Reviewer qEgX,
As the author–reviewer discussion is coming to an end, we would greatly appreciate any feedback on whether our response and the additional results have addressed your concerns. Please do not hesitate to let us know if further clarification is needed. Thank you once again for your valuable time and thoughtful consideration.
Best regards,
Authors of Submission 5615
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper goes after multi-turn jailbreaks on black-box LLM APIs — the case where harmful intent gets assembled across several turns instead of packed into one prompt. The authors define "risk signals" in representation space (cosine alignment between an auxiliary encoder's hidden states and harmful-intent directions) and argue these signals are spread across turns and views, build up over the conversation, and look different from one attack to the next. From that they build TraceGuard: each turn's prompt and response get turned into risk representations, two GRUs track those across turns, and the model outputs a per-turn harmfulness score. TraceGuard-S is the supervised version; TraceGuard-A bolts on prototype-based few-shot adaptation for unseen attacks. They test on six jailbreak and six benign datasets, three open and two closed target models, against single-turn detectors, NBF, and three guard models.
Strengths and weaknesses
The problem is real and the framing is practical — an online detector that decides turn by turn is what you'd actually want. The evaluation is also genuinely broad: lots of datasets, several target models, an over-safety set, latency numbers, an encoder-swap check, and a sensitivity table the authors didn't have to include. The prompt-plus-response split is sensible and the paper reads cleanly. My problems are mostly with the evidence. The big one is baseline fairness. TraceGuard is trained on these datasets; the guard models it's compared against are zero-shot and never adapted. Unsurprisingly they fall apart — single-digit H-ACC on several attacks — and that's what produces the eye-catching +9.7% Overall and +44.9% H-ACC headline. Only NBF is retrained. Until at least one guard model is fine-tuned on the same data, it's hard to know how much of the gain is the trajectory idea and how much is just "this one got to train." Related: RedQueen comes out at exactly 100.0 ± 0.0, on every model and every budget. Perfect accuracy with zero variance, on an attack that's in the training pool, usually means overfitting or leakage rather than a strong method. And since the reported averages lean on saturated cases like this, the number that actually matters — unseen-attack H-ACC — is a lot more ordinary (CoSafe ~70–81%, ActorAttack ~73–79%). The observations that motivate the whole design (1–3) aren't really validated. They rest on 100 samples per dataset, one encoder, and two layers picked by hand, with no significance tests and no layer-sensitivity check. Appendix D.5 cuts the other way too: swap the encoder and Overall ACC drops 5–7 points, mostly on unseen attacks — which undercuts the "generalizable risk dynamics" story. A couple of smaller things. The "black-box" label is generous: the method needs white-box access to an auxiliary encoder's hidden states, so it's black-box with respect to the target only. Table 10 has failure regions right next to the chosen settings (B-ACC dropping to 0.1%, Overall ACC to 45%) — fine if you know the right knobs, less comforting for a safety component deployed where you don't. Code and data are withheld, which is reasonable for jailbreak work, but combined with author-generated, hand-filtered attacks it means nobody can check the core results from outside. And the method itself is more assembly than invention — JBShield concepts, WildGuard categories, GRUs, ProtoNet adaptation — with the trajectory framing as the new part.
Questions
1.Can you fine-tune at least one guard model on your training pool and rerun the comparison under the same online protocol? This is the single thing that would tell us whether the win comes from trajectory modeling or just from training. A solid result here would move my score up. 2.RedQueen is 100.0 ± 0.0 everywhere — can you confirm there's no shared template or seed between its train and test splits, and show results after deduplication? 3.Could you add significance tests for Observations 1–3 and a sensitivity analysis for the layer-24/32 choice? 4.Given the cliffs in Table 10, how would someone pick γ and m in practice without a validation set from the deployment distribution? 5.Can you state the access assumptions plainly and quantify how much performance rides on the auxiliary encoder?
Limitations
Encoder dependence and limited concept coverage are acknowledged, which is good. Two things I'd add: the white-box auxiliary-encoder requirement, since it qualifies the black-box claim, and the failure regions in Table 10, which matter for anyone actually deploying this.
Formatting concerns
No issues were detected.
2 comments
Rebuttal
We appreciate the reviewer's valuable and insightful feedback. We hope the proposed revisions and clarifications would address the concerns raised.
(Q1) Comparison with adapted guard baselines
Our response: We agree that comparing with fine-tuned guard baselines provides a stronger evaluation of whether the gain comes from trajectory modeling rather than the advantage of task-specific fine-tuning. Following the reviewer’s suggestion, we fine-tune Qwen3-Guard on the same training split and evaluate it under the identical online prefix protocol. To further isolate the contribution of trajectory modeling from fine-tuning, we additionally fine-tune a safety classifier based on the same Llama3-8B backbone and training data as TraceGuard-S, while removing trajectory-level modeling components.
All methods are evaluated at a matched benign accuracy operating point (B-ACC=95.0%) on the Llama3-8B target model. The corresponding harmful detection results are reported below.
| H-ACC(%) | RedQueen (Seen) | XTeam (Seen) | SafeDialBench (Seen) | CoSafe (Unseen) | ActorAttack (Unseen) | Crescendo (Unseen) |
|---|---|---|---|---|---|---|
| Qwen3-Guard FT | 100.0 | 100.0 | 96.0 | 68.2 | 54.2 | 85.5 |
| Llama3-8B FT | 100.0 | 100.0 | 99.0 | 65.5 | 48.5 | 81.0 |
| TraceGuard-S | 100.0 | 92.3 | 94.7 | 80.0 | 76.8 | 88.1 |
Fine-tuned baselines perform well on seen attacks but generalize less effectively to unseen attacks, with 12.3% and 16.6% lower average unseen H-ACC than TraceGuard-S for Qwen3-Guard FT and Llama3-8B FT, respectively. These results suggest that TraceGuard’s improvement is not attributable solely to additional training, but also benefits from its trajectory-level formulation for modeling safety-signal evolution across multi-turn interactions.
(Q2) Verification on RedQueen
Our response: We confirm that RedQueen’s saturated performance is not solely explained by seed/template overlap, and further analysis reveals highly consistent trajectory-level risk patterns that are captured by TraceGuard.
RedQueen split verification. We rechecked the RedQueen data split following the reviewer’s concern and confirmed that no harmful origin prompts are shared between the training and test sets. However, RedQueen combines harmful origin prompts with 10 manually designed scenario templates, and the original interaction-level split does not explicitly evaluate generalization to unseen templates.
Template-disjoint evaluation. To address potential template overlap, we perform a template-disjoint evaluation by splitting the 10 RedQueen templates into 5 templates for training and 5 templates for testing, with validation samples restricted to the training templates while keeping other settings unchanged. TraceGuard-S and TraceGuard-A still achieve 100% H-ACC across evaluated target models, suggesting that the performance is not solely due to shared templates.
Trajectory consistency analysis. We further analyze RedQueen trajectories in the concept space. The 10 templates show highly consistent risk dynamics, with pairwise cosine similarities above . The mean pairwise cosine similarity between trajectories within RedQueen is , compared with for XTeam and for SafeDialBench. This observation suggests that RedQueen contains highly structured attack trajectories, which aligns with TraceGuard’s ability to capture trajectory-level risk dynamics.
We will include these additional analyses and provide more detailed experimental descriptions in the revised manuscript.
(Q3) Statistical validation and sensitivity
Our response:
Statistical validation of Observations. We conduct statistical tests to validate the three observations regarding risk separation, trajectory evolution, and attack-dependent dynamics. For Observation 1, Mann–Whitney U tests show significant harmful–benign separation for prompt-side and response-side risk signals, with multi-turn interactions yielding and , respectively. For Observation 2, interaction-level permutation tests confirm significant trajectory differences between jailbreak and benign interactions for the prompt-side, response-side, and combined signals . For Observation 3, Kruskal–Wallis tests reveal significant differences across attack strategies , supporting the consistency of the observed attack-dependent dynamics.
Layer selection sensitivity. As described in Sec 3.1 (Lines 118--119) and Appendix A, the selected layers are not manually specified but determined by maximizing harmful–benign separability on the calibration set. We further repeat the layer selection procedure on the Llama3-8B auxiliary encoder with different calibration budgets (5/10/20 samples per category) and consistently identify L24 for prompt representations and L32 for response representations, demonstrating the stability of the L24/L32 selection under different calibration budgets.
We will include these statistical validations and the layer selection sensitivity analysis in the revised manuscript.
(Q4) Practical calibration of TraceGuard-A and hyperparameters
Our response: In TraceGuard-A, balances few-shot classification against benign-aware regularization, while specifies the margin at which the benign constraint becomes active. The sharp transitions in Table 10 arise because changes in alter which support samples activate the constraint, whereas directly controls the strength of the resulting regularization.
TraceGuard-A is intended for settings in which a small amount of reliable target-distribution supervision can be obtained. If no trusted labeled data from the deployment distribution are available, we do not recommend deployment-specific tuning of and . Instead, practitioners can use the default configuration selected during development and fixed before deployment, or deploy TraceGuard-S without adaptation. In practice, representative interactions can be collected from the target environment, with TraceGuard-S assisting in identifying potentially harmful samples. These interactions are then verified by human annotators to form a small calibration set containing both harmful and benign examples. The values of and can then be selected on this set according to a predefined safety–utility requirement, such as a target B-ACC.
We will clarify this deployment assumption and the corresponding limitation of TraceGuard-A in the revised manuscript.
(Q5) Access assumptions and auxiliary encoder dependency
Our response:
Access assumptions. TraceGuard requires only black-box access to the target LLM, including user inputs and responses, without target-model parameters or hidden states. It additionally uses a white-box auxiliary encoder to extract hidden representations for risk signal construction, but does not fine-tune the encoder. We will further specify this access assumption in Section 3.1 of the revised manuscript.
Auxiliary encoder sensitivity. As analyzed in Appendix D.5, replacing Llama3-8B with alternative auxiliary encoders leads to an Overall ACC drop of 4.8–6.6%, mainly on unseen attacks. In contrast, using the same auxiliary encoder across different target models yields consistent performance, suggesting that the observed variation mainly comes from the auxiliary encoder itself rather than target-model dependency. We attribute this degradation to differences in safety-related semantic representations and harmful–benign separability across encoders, which affect the quality of extracted risk signals used for trajectory modeling.
Official Comment by Authors
Dear Reviewer 9aA2,
As the author–reviewer discussion is coming to an end, we would greatly appreciate any feedback on whether our response and the additional results have addressed your concerns. Please do not hesitate to let us know if further clarification is needed. Thank you once again for your valuable time and thoughtful consideration.
Best regards,
Authors of Submission 5615
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes a black-box online detector for multi-turn jailbreak attacks. The key idea is to represent each turn through prompt-side and response-side risk signals derived from auxiliary-encoder concept directions, then track how these signals evolve over the conversation. TraceGuard-S uses recurrent trajectory modeling for online detection, while TraceGuard-A adds few-shot prototype-based adaptation for unseen attack distributions. The paper evaluates the method across several multi-turn jailbreak and benign dialogue datasets, multiple target models, closed-source models, and ablations.
Strengths and weaknesses
Strength
They study an important and timely problem: multi-turn jailbreaks where harmful intent is distributed across turns and may not be visible in any single prompt. I appreciate the paper’s focus on black-box deployment constraints, since this is a realistic setting for many API-based LLM systems. The representation-space analysis is intuitive and motivates the method well: prompt and response risk signals are fragmented, evolve over turns, and differ across attack styles. The proposed detector is also practically appealing, since it is lightweight relative to LLM-as-judge defenses and gives an interpretable trajectory-level signal rather than only a final binary decision.
Weakness
-
Main concern: strongest claims depend heavily on evaluation protocol and baseline calibration. Some guard-model baselines have extremely low harmful accuracy while almost perfectly preserving benign interactions, which suggests a possible thresholding or protocol mismatch. Since these models may be optimized for different input-output moderation formats, it would be important to show ROC/AUC, PR curves, or results at matched false-positive rates. Accuracy alone makes it hard to tell whether TraceGuard is genuinely more discriminative or simply operating at a more favorable threshold.
-
Robustness to adaptive adversaries: The paper evaluates dynamic or adaptive-prompt attacks, but it is less clear whether these adversaries are adaptive to TraceGuard’s actual feature space. Since the detector uses fixed auxiliary-encoder concept directions and response-side behavior concepts, an attacker might try to shape the trajectory to look benign, mix refusal-like language, or keep individual turns below risk thresholds while preserving harmful cross-turn intent. This is especially important because the paper’s motivation is security against evolving jailbreaks.
-
adaptation setting: TraceGuard-A assumes a small support set from the target unseen distribution and uses local/global prototypes. In practice, new attacks may be heterogeneous, unlabeled by attack type, or deliberately designed to poison/update a deployed detector. The paper would be stronger if it clarified how support examples are selected, labeled, and trusted in deployment.
Questions
Please see the weakness above. Reiterating some:
-
Why do several guard models show near-zero harmful accuracy while almost perfectly preserving benign interactions? Is this due to label mapping, prompt format, the online prefix protocol, or the definition of a positive detection?
-
Can the authors evaluate a stronger adaptive adversary that explicitly tries to evade TraceGuard’s concept-risk signals or trajectory score, rather than only using dynamic multi-turn attack generation?
-
For TraceGuard-A, how are support examples obtained and labeled in practice? What happens if the support set mixes several attack types, contains mislabeled examples, or includes poisoning attempts?
-
How sensitive is the method to the auxiliary encoder, concept calibration data, and last-token representation choice? The appendix suggests degradation with other encoders, so it would help to clarify when this dependence becomes a deployment bottleneck.
Limitations
The paper mentions dependence on auxiliary encoder quality and predefined intent concepts, but the limitations section should more explicitly discuss adaptive evasion, threshold calibration, and the assumptions behind few-shot adaptation. It should also discuss risks from updating the detector with newly observed attacks, including possible poisoning or distribution-mixing issues.
Formatting concerns
N/A
2 comments
Rebuttal
We thank the reviewer for the constructive feedback on our work. Our detailed responses to the reviewer’s comments are provided below.
(Q1&W1) Evaluation Protocol and Baseline Calibration
Our response: After rechecking the label mappings, official prompt formats, online-prefix construction, and interaction-level positive-detection rule, we find no evidence of an implementation or protocol mismatch. The near-zero H-ACC is best explained by the fact that, under their official label semantics and the online-prefix setting, several guard models rarely classify intermediate attack turns as harmful. Their default moderation behavior therefore favors benign preservation but has limited sensitivity to harmful intent distributed across multi-turn trajectories, resulting in very high B-ACC but low H-ACC.
Protocol Consistency. We clarify the guard baseline evaluation settings in Appendix C.3 and summarize them here. All guard models follow their official HuggingFace chat templates and recommended inference formats during evaluation. Under our online detection protocol, all methods receive the same observed prefix , including previous responses and the current user query while excluding the current response. We follow each guard model’s official label mapping and treat unsafe/policy-violating outputs as harmful and safe outputs as benign. An interaction is considered harmful if any turn is detected as harmful.
Matched-B-ACC Comparison. To investigate the impact of threshold selection, we adjust the TraceGuard detection threshold to achieve the same benign accuracy as each guard model and compare harmful detection accuracy under matched operating points.
- Matched to ShieldGemma at B-ACC = 99.9%
| Method | Seen H-ACC (%) | Unseen H-ACC (%) |
|---|---|---|
| ShieldGemma | 4.7 | 3.8 |
| TraceGuard-S | 30.6 | 16.6 |
| TraceGuard-A | 51.9 | 23.1 |
- Matched to Qwen3-Guard at B-ACC = 99.6%
| Method | Seen H-ACC (%) | Unseen H-ACC (%) |
|---|---|---|
| Qwen3-Guard | 38.4 | 47.1 |
| TraceGuard-S | 68.2 | 50.7 |
| TraceGuard-A | 77.7 | 55.1 |
- Matched to Llama4-Guard at B-ACC = 97.7%
| Method | Seen H-ACC (%) | Unseen H-ACC (%) |
|---|---|---|
| Llama4-Guard | 14.2 | 8.3 |
| TraceGuard-S | 89.6 | 69.8 |
| TraceGuard-A | 89.3 | 70.1 |
The results on the Llama3-8B target model show that TraceGuard maintains substantially higher harmful detection accuracy across matched benign accuracy levels, indicating that the performance gap is not due to a more favorable threshold.
(Q2) Robustness against adaptive adversaries
Our response: We discuss this concern in detail in our response to Reviewer qEgX (W1), including the experimental settings and results of stronger adaptive attacks. Briefly, we evaluate two stronger adaptive adversaries under the Crescendo attack setting:
- a score-aware attacker that leverages TraceGuard-S predictions to select lower-risk candidates while preserving the jailbreak objective;
- a black-box trajectory-disruption attacker that inserts benign-looking turns to manipulate risk accumulation.
These results show that adaptive strategies either reduce jailbreak effectiveness or remain detectable by TraceGuard.
(Q3) TraceGuard-A Deployment
Our response: We clarify that TraceGuard-A assumes access to a small set of reliable labeled support interactions from the target distribution, following the common few-shot adaptation setting. Its goal is to efficiently adjust the detection boundary for newly observed attack distributions without requiring large-scale retraining.
Support Set Construction and Attack-Type Generalization. In realistic deployment scenarios where newly emerging attack distributions contain heterogeneous patterns without predefined attack-type labels, TraceGuard-S can first screen potential high-risk interactions from the target environment, which are then verified by human annotators to construct the harmful/benign support set. In this setting, the support set contains heterogeneous attacks but only binary safety labels (harmful/benign), without attack-type annotations. Therefore, TraceGuard-A adaptation under this setting operates on the global harmful and benign prototypes rather than attack-specific categories. This corresponds to the global prototype adaptation case in Appendix D.3, which remains stable without attack-type information.
Robustness to Label Noise. We further evaluate robustness to support-label noise for TraceGuard-A with Llama3-8B as the target model, following the same 10-shot support-set and evaluation protocol as in the main experiments. We randomly flip support labels and report the overall performance across the seen and unseen harmful and benign test sets. The results show that 1% label noise has limited impact (Overall AUC: 0.965→0.946; Overall ACC: 0.910→0.902), while larger corruption causes noticeable degradation (AUC/ACC: 0.734/0.729 under 10% noise), consistent with the dependence of few-shot adaptation on reliable supervision.
We will clarify the TraceGuard-A assumption and limitation in the revised manuscript, while leaving robustness against adversarially poisoned support sets for future work.
(Q4) Sensitivity and Dependency
Our response:
Auxiliary encoder sensitivity. We acknowledge that the auxiliary encoder affects TraceGuard performance. In Appendix D.5, we replace Llama3-8B with alternative encoders and observe an Overall ACC drop of 4.8–6.6%, with the degradation mainly occurring on unseen attacks. Meanwhile, the same auxiliary encoder shows consistent performance across different target models, suggesting that the observed variation mainly comes from the choice of auxiliary encoder rather than target-model dependency. This difference is likely related to variations in safety-related semantic representations and harmful-benign separability across encoders.
Concept calibration sensitivity. Following JBShield, our default setting uses 30 calibration samples per concept category as discussed in Appendix A. We further recompute concept spaces with 5/10/20 samples per category. Results on Llama3-8B show that TraceGuard remains stable under different calibration budgets. For example, with only 5 query-side samples, TraceGuard-S achieves 92.3%/74.5% H-ACC on seen/unseen attacks, compared with 94.0%/76.5% under the 30-sample setting, while preserving over 96% benign accuracy. Similar trends are observed for response-side calibration, where different calibration budgets cause only minor performance variations. We will include the complete calibration sensitivity analysis and results in the revised manuscript.
Last-token representation. We adopt the last-token representation following prior probing studies [1,2]. In decoder-only Transformers, the final hidden state encodes contextual information from the observed prefix through causal attention, enabling efficient online detection without additional pooling. We acknowledge that alternative aggregation strategies may affect absolute performance and will clarify this limitation.
[1] Zhang et al. “JBShield: Defending Large Language Models from Jailbreak Attacks through Activated Concept Analysis and Manipulation”
[2] He et al. “JailbreakScope: Interpreting Jailbreak Mechanism through Representation and Circuit Analyses”
Official Comment by Authors
Dear Reviewer JVQ4,
As the author–reviewer discussion is coming to an end, we would greatly appreciate any feedback on whether our response and the additional results have addressed your concerns. Please do not hesitate to let us know if further clarification is needed. Thank you once again for your valuable time and thoughtful consideration.
Best regards,
Authors of Submission 5615
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to the Meta Review
We thank the Area Chair for recognizing the significance, motivation, and extensive evaluation of our work. Below, we summarize how we address the four concerns, with details in the corresponding reviewer responses.
Comparison with fine-tuned baselines (Reviewer 9aA2, Q1). We additionally fine-tune Qwen3-Guard and a non-trajectory Llama3-8B safety classifier using the same training split as TraceGuard-S. At a matched B-ACC of 95.0%, TraceGuard-S achieves 12.3% and 16.6% higher average unseen H-ACC than the two baselines, showing that the gains are not due to fine-tuning alone.
External Few-Shot Validation (Reviewer qEgX, W5). We additionally apply our few-shot adaptation strategy to NBF and compare it with classifier-head fine-tuning and ProtoNet using the same 10-shot support set. Our method achieves a substantially better trade-off between harmful and benign accuracy, demonstrating that the adaptation strategy is not specific to the TraceGuard backbone.
NBF implementation (Reviewer qEgX, W2). For a fair comparison, we retrain NBF on our training split following its original procedure and use this stronger retrained version in the main experiments. The official checkpoint is also reported in Appendix C.4, while the retrained model achieves 17.5% higher Overall ACC.
Baseline Calibration and Matched-B-ACC Comparison (Reviewer JVQ4, Q1&W1). We recheck the inference protocol, prefix construction, label mapping, and interaction-level positive-detection rule for all guard baselines and find no protocol mismatch. The near-zero H-ACC of some guards reflects conservative behavior that preserves benign accuracy but is less sensitive to distributed multi-turn intent. We additionally compare TraceGuard with each guard model at the same B-ACC operating point, where it achieves substantially higher seen and unseen H-ACC, ruling out threshold selection as the source of its advantage.
RedQueen Verification(Reviewer 9aA2, Q2). We confirm that RedQueen’s saturated performance is not caused by seed or template overlap. No harmful origin prompts are shared between the training and test sets, and TraceGuard-S/A still achieve 100% H-ACC under a stricter template-disjoint split with training and unseen test templates. Further analysis reveals highly structured risk trajectories in RedQueen, with a mean pairwise cosine similarity of 0.996±0.004, consistent with TraceGuard’s trajectory-level modeling capability.
We construct two adaptive Crescendo variants and evaluate them on 30 seed questions. A score-aware attacker uses TraceGuard-S predictions to select lower-risk candidates; although it reduces detection accuracy, the ASR drops from 56.7% to 0–10.0%, revealing a clear trade-off between evasion and attack effectiveness. A black-box trajectory-disruption attacker inserts benign-looking turns to manipulate risk evolution; across four strategies, the ASR decreases to 3.3–13.3%, while TraceGuard retains 90.0–100.0% H-ACC. These results show that adaptive manipulation either substantially weakens the jailbreak or remains detectable from the overall interaction trajectory.
We will revise the corresponding claims as follows.
Access Assumptions (Reviewer 9aA2, Q5). TraceGuard requires black-box access to the target LLM but white-box access to an auxiliary encoder.
Few-Shot Adaptation Assumptions (Reviewer JVQ4, Q3; 9aA2, Q4). TraceGuard-A requires a small, reliably labeled target-domain support set. Additional analysis shows limited impact from 1% label noise but clear degradation at higher rates. We will clarify this deployment assumption and leave adversarial support-set poisoning for future work.
Auxiliary-Encoder Dependency (Reviewer qEgX, Q2; JVQ4, Q4; 9aA2, Q5). Appendix D.5 shows that replacing Llama3-8B reduces Overall ACC by 4.8–6.6%, mainly on unseen attacks, while performance remains stable across target models when the encoder is fixed. This indicates that TraceGuard is less sensitive to the target model than to the auxiliary encoder’s safety-semantic representation capability. We will state this dependency more explicitly.
Unseen-Attack Evaluation Scope (Reviewer qEgX, W4). Our evaluation across distinct attack procedures and CoSafe provides evidence of generalization within the tested settings, but not to all emerging attacks. We will revise our claims to reflect this scope.
Additional Sensitivity and Transferability Analyses. (Reviewer JVQ4, Q4; 9aA2, Q3; qEgX, Q1). We further provide statistical validation, concept calibration and layer-selection stability across budgets, and clarify the last-token choice. Cross-lingual and cross-domain results show partial intent-concept transferability; we will incorporate this analysis and clarify its implications in the revised manuscript.