JEDI: Real-Time Jailbreak Defense for LLMs via In-Generation Detection and Intervention
Ruilin Xie, Bixin Li, Xinyu Chen, Yongqiang Tian, Wang Lulu
NeurIPS 2026
TL;DR. JEDI safeguards streaming LLMs against jailbreak attacks by leveraging representation engineering and CUSUM-based monitoring to preemptively detect and steer harmful generation trajectories into a safe subspace with negligible latency overhead.
Abstract. Large Language Models remain vulnerable to jailbreak attacks, and streaming generation can expose harmful prefixes before a completed response is moderated. We present JEDI, an in-generation defense that monitors hidden-state risk and selectively steers ongoing generation. A Condition Vector measures harmful-compliance drift, a Cumulative Sum (CUSUM) statistic accumulates persistent evidence, and a separate, orthogonalized Intervention Vector applies risk-adaptive refusal steering after an alarm. Across six publicly available models and eleven attack methods, JEDI achieves 95.7% mean Defense Success Rate, with model-level rates of 93.6%-99.4%, and adds 0.003 seconds to average Time To First Token. Comparisons with periodic buffered guards, conditional activation steering, and trajectory monitoring characterize the safety-utility-latency trade-off. A matched visible-prefix audit reports both raw detector-positive onsets and evaluator-consensus leakage, showing substantial reductions while identifying residual exposure. Controlled component ablations support distinct roles for accumulated risk, orthogonalization, and dynamic intervention. JEDI targets self-hosted or model-developer deployments with hidden-state access and decoding control. Code and experimental results are available at https://github.com/samxrl/JEDI.
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:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper presents a new real-time jailbreak defense for LLMs. The basic idea is to monitor the LLM’s internal semantic drift, identify persistent harmful intent before it manifests in the output, and dynamically injects a steering vector to redirect the generation trajectory towards a safe subspace.
The reviewers recognize the following advantages:
- The proposed defense framework is coherent.
- The evaluation is comprehensive.
- The proposed solution is lightweight.
However, they also pointed out the following major concerns:
- The theoretical justification is limited.
- Missing important baseline solutions for comparisons.
- The threat model is restricted, as it requires the defender to access the model internals.
- Some experiment results need further validation or explanation.
The authors are suggested to focus on these comments when preparing the rebuttal.
Final justification
During the author rebuttal period, the authors provided detailed responses to the reviewers, with additional experiment results. Most of their concerns have been addressed, and the scores are adjusted accordingly. This paper is recommended for acceptance.
Read meta-review
Meta-review
This paper presents a new real-time jailbreak defense for LLMs. The basic idea is to monitor the LLM’s internal semantic drift, identify persistent harmful intent before it manifests in the output, and dynamically injects a steering vector to redirect the generation trajectory towards a safe subspace.
The reviewers recognize the following advantages:
- The proposed defense framework is coherent.
- The evaluation is comprehensive.
- The proposed solution is lightweight.
However, they also pointed out the following major concerns:
- The theoretical justification is limited.
- Missing important baseline solutions for comparisons.
- The threat model is restricted, as it requires the defender to access the model internals.
- Some experiment results need further validation or explanation.
The authors are suggested to focus on these comments when preparing the rebuttal.
Final justification
During the author rebuttal period, the authors provided detailed responses to the reviewers, with additional experiment results. Most of their concerns have been addressed, and the scores are adjusted accordingly. This paper is recommended for acceptance.
1 comment
- 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
JEDI is a real-time, in-generation jailbreak defense for streaming LLMs that targets prefix exposure. Offline it extracts a Condition Vector (harmful drift) and an Intervention Vector (refusal); online it projects each hidden state onto the Condition Vector, accumulates risk with CUSUM, and on alarm injects the Intervention Vector with adaptive strength to steer toward refusal. Across 6 models and 11 attacks it reaches 93.6–99.4% DSR (95.7% avg), beats five baselines, preserves utility, and adds ~0.003s TTFT overhead. Code is provided anonymously.
Strengths and weaknesses
The paper addresses a real gap (defense under streaming/prefix exposure) with a well-motivated design and a thorough evaluation (6 models, 11 attacks, 5 baselines, utility/over-refusal benchmarks, latency, adaptive attacks, and ablations). Comments, mostly minor and fixable:
- Reproducibility (positive). The anonymized GitHub is appreciated.
- Research gaps. State the gap more explicitly and add 2–3 literature-driven research questions.
- Calibration/test isolation (please confirm). Confirm the prefix set and JustEval benign prompts are disjoint from XSTest/OR-Bench (only AlpacaEval is explicitly excluded), and that the four calibration-seen attacks don't inflate results. (DSR on those four is actually lower than on the seven unseen attacks - worth stating.)
- Model selection. Give the rationale for the six models (based on what criteria you define these test models?).
- Limitations placement. A Limitations section exists but is in Appendix E; move it to the main text per the NeurIPS checklist. https://neurips.cc/public/guides/PaperChecklist
Questions
- Confirm no calibration -> test leakage - that the prefix set and JustEval prompts are disjoint from XSTest and OR-Bench, not just AlpacaEval?
- Can you state the research gap explicitly and add a few research questions based on the literature review?
- What drove the choice of these six models (why this model and not another? Did you also have some hardware constraints which you forgot to mention?)?
Limitations
Present (Appendix E) and reasonably candid; please relocate to the main text per the NeurIPS checklist.
Final justification
I thank the authors for the thorough rebuttal, which addresses all four of my concerns.
Research gaps: The three literature-driven RQs (Earliness, Selectivity, Efficiency) clearly sharpen the paper's positioning — please fold this into the Introduction.
Calibration/test isolation: Satisfactorily confirmed — cross-dataset construction, a normalized overlap audit, and the finding that seen-attack DSR is actually lower than unseen-attack DSR (89.7% vs. 99.1%) together support no leakage. This analysis should be added to the paper, as it preempts an obvious concern.
Model selection: The compute-vs-methodology rationale (7B–14B scope, within-family scaling, lineage diversity) is reasonable; the corresponding scope limitation should appear in the main text, not just the rebuttal.
Limitations placement: Relocation to the main text resolves this.
Formatting concerns
N/A
1 comment
Rebuttal
Response to Reviewer
Thank you for the constructive comments and for noting our evaluation and reproducibility. We clarify the research gap, verify calibration--test isolation, explain model selection, and move Limitations to the main text.
Research gaps. State the gap more explicitly...
Can you state the research gap explicitly...
We agree that the current manuscript motivates the gap and design principles but does not present a sufficiently explicit literature-to-question chain. The Introduction identifies prefix exposure and the latency limitations of input-side, post-hoc, and auxiliary-model defenses, while §2.3 synthesizes prior work as a safety–utility–efficiency trilemma. We will state the remaining gap more precisely: existing defenses address individual dimensions of the problem, but jointly achieving early in-generation detection, selective intervention under noisy token-level signals, and low online overhead in streaming generation remains underexplored.
We will then recast our existing Earliness, Selectivity, and Efficiency principles as three literature-driven research questions, retaining the citations already associated with each:
RQ1 (Earliness): Can pre-decoding hidden states provide an early signal of harmful semantic drift for in-generation intervention?
RQ2 (Selectivity): Can evidence accumulated across decoding steps support selective intervention despite noisy token-level risk signals?
RQ3 (Efficiency): Can detection and activation-level intervention be integrated into the decoding loop with low online overhead while preserving benign utility and streaming responsiveness?
These questions reorganize rather than expand the paper's scope. The existing evidence maps to them: Condition Vector separability and detection-delay analyses characterize the early signal and response timing; CUSUM calibration, XSTest/OR-Bench, and the safety–utility sweep evaluate system-level selectivity; and DSR, AlpacaEval, TTFT, and total-generation-time results jointly characterize the safety–utility–efficiency trade-off. We will also link the closing synthesis of §2.3 directly to these questions.
Calibration/test isolation (please confirm)...
Confirm no calibration -> test leakage...
Yes. Calibration and evaluation are isolated at both dataset and sample levels. The 100 harmful calibration prompts come from HarmBench, whereas all 1,100 attack-evaluation prompts come from PandaGuard. For GCG, PAIR, AutoDAN, and TAP, “seen” denotes overlap only in the attack-generation method: their evaluation prompts come from a different dataset and are non-overlapping samples. The other seven methods are absent from calibration. The 100 benign calibration prompts come from JustEval, while XSTest and OR-Bench are evaluation-only. A normalized exact-overlap audit (Unicode/case/whitespace normalization) found zero matches between either the selected JustEval prompts or the compliance/refusal prefix set and XSTest/OR-Bench. AlpacaEval-source items were also excluded. Thus, none of these evaluation prompts contributes to vector extraction, layer selection, or threshold/CUSUM calibration.
The main DSR table provides an additional check against a systematic advantage for the calibration-seen methods. Because each attack has the same test-set size, their averages are directly comparable: JEDI obtains 89.7% mean DSR on the four seen methods and 99.1% on the seven unseen methods, making the seen group 9.4 percentage points lower. The unseen group is not easier: without defense, its mean DSR is 48.9%, versus 60.6% for the seen group; lower undefended DSR indicates more successful attacks. Relative to these baselines, JEDI improves DSR by 29.1 points on the seen group and 50.2 points on the unseen group. Thus, the unseen attacks start from a less safe baseline yet obtain both a higher final DSR and a larger absolute improvement. This pattern provides no empirical indication that shared attack-family names inflate the seen results.
Theoretically, attack-family exposure does not create a family-specific detector in JEDI. For each target model, the four calibration methods jointly contribute to one pooled harmful-compliance distribution, from which JEDI extracts a single Condition Vector and calibrates shared detector parameters; it does not learn per-attack vectors or use attack labels at test time. If denotes the mean harmful-compliance shift for family , the pooled direction can be viewed as , while the detectable signal for a test trajectory depends on its projection and the temporal persistence of that projection. Being included in the mixture contributes to the estimate of , but does not guarantee that independently generated test instances from that family align strongly with it. A seen family may have heterogeneous or family-specific latent components that are weakly represented by the pooled direction, whereas an unseen family may strongly express the cross-attack harmful semantics captured by . In other words, “seen attack method” does not necessarily mean “in-distribution latent trajectory.”
End-to-end DSR also combines detection and correction: CUSUM requires persistent projected drift, and the subsequent correction uses one shared Intervention Vector rather than an attack-specific response. Therefore, attack success against an undefended model and detectability/steerability under JEDI are different quantities. An unseen attack may jailbreak the base model effectively but still produce an explicit, persistent harmful-compliance trajectory that JEDI can readily detect and redirect; a seen method can contain harder test instances with weaker, less persistent, or less redirectable trajectories.
We interpret this result conservatively: the lower seen-method DSR shows no empirical signature of a systematic seen-family advantage and is consistent with transferable cross-attack detection, but it is not itself proof of isolation. The no-leakage conclusion rests on the cross-dataset, sample-disjoint construction and the normalized overlap audit above.
Model selection. Give the rationale for the six models...
What drove the choice of these six models (why this model and not another? Did you also have some hardware constraints which you forgot to mention?)?
Yes. Compute constrained the upper model-size scope, while methodological coverage determined which model families to include. Because JEDI reads and modifies per-token hidden states during decoding, we first restricted evaluation to publicly available checkpoints that support these white-box hooks. Within that feasible set, Vicuna-7B/13B and Qwen2.5-7B/14B provide two within-family scale comparisons; Mistral-7B broadens model-lineage coverage; and Qwen3-8B adds a newer release generation at a comparable scale. We limited the present study to 7B–14B so that the full six-model, 11-attack, five-baseline, utility, and latency evaluation remained tractable and reproducible on the single NVIDIA H100 setup reported in Appendix C. Thus, compute limited the evaluated scale range rather than determining the included families. Accordingly, our claims are limited to the evaluated, publicly available 7B–14B models and do not extend to larger or proprietary API models. Within this scope, JEDI achieves 93.6–99.4% DSR across all six models, indicating that the observed effectiveness is not confined to one tested family or size. We will add these criteria and this scope statement to the Experimental Setup.
Limitations placement. A Limitations section exists but is in Appendix E...
Present (Appendix E) and reasonably candid; please relocate to the main text...
Thank you for pointing this out. We agree that the limitations should be visible in the main paper. In the revised manuscript, we will relocate the standalone “Limitations and Future Work” section from Appendix E to the end of the main text, before the references. It will retain its discussion of difficult-to-detect harmful trajectories, possible benign-utility degradation, white-box hidden-state and decoding access, and proxy deployment as future work.
- 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
JEDI proposes an inference-time defense for streaming LLM generation. It extracts a condition vector that distinguishes harmful from benign compliance and an intervention vector that represents a shift from compliance toward refusal. During decoding, JEDI projects each token’s hidden state onto the condition direction, accumulates evidence using CUSUM, and injects the intervention direction with adaptive strength once the statistic exceeds a calibrated threshold.
JEDI reports a 95.7% average defense success rate across six open-source LLMs, eleven jailbreak attacks, five defense baselines, utility and over-refusal benchmarks, adaptive attacks, and several ablations, compared with 90.4% for the strongest baseline under the reported aggregate metric.
Strengths and weaknesses
The paper studies an important deployment problem: a streaming model may expose unsafe content before a completed response can be moderated. Separating detection from intervention is intuitive, and using CUSUM rather than reacting to individual noisy activations is a sensible design choice.
For weaknesses:
-
The latency analysis reports only the number of tokens generated before intervention. These measurements do not establish whether unsafe content was already emitted before the alarm.
-
JEDI reduces average AlpacaEval win rate from 84.21% to 77.18%, lowers XSTest compliance from 95.1% to 91.1%, and raises OR-Bench FPR from 8.8% to 12.5%. These costs may be acceptable, but baselines are largely evaluated at recommended configurations rather than at matched DSR, false-positive rate, or compliance.
-
The condition-triggered refusal-steering structure is closely related to conditional activation steering, which the paper cites. JEDI adds whitening, CUSUM, orthogonalization, and dynamic intervention, but there is no direct comparison nor ablation with an adapted version of that method.
-
The calibration data are built from only 100 unique harmful and 100 unique benign prompts, expanded through many prefixes. It is unclear whether vector extraction, layer selection, parameter calibration, and the near-perfect separability results use independent prompt-level partitions. The reported standard deviations mostly describe variation across models or attacks, not uncertainty over sampled prompts; prompt-level confidence intervals would be more informative. The size and protocol of the HarmBench classifier audit are also unspecified.
-
The paper evaluates SafeDecoding and Activation Probe and qualitatively discusses several recent methods, but it lacks an experimental comparison with representative approaches from closely related categories: conditional activation steering, streaming hidden-state or in-decoding detection, and serving-integrated continuous guardrailing. Relevant examples include CAST, TrajGuard, SafeProbing, Trust The Typical, SelfDefend, etc.
Questions
-
Can the authors directly measure harmful-prefix leakage? For each attacked generation, please identify the first harmful token or span and compare it with the alarm position. Example useful metrics can be the fraction of generations with zero harmful tokens exposed, the number of harmful tokens emitted before intervention, and median and p95 leakage by attack and model.
-
Does JEDI improve the safety–utility Pareto frontier? Please compare JEDI and the strongest baselines at matched DSR, OR-Bench FPR, or XSTest compliance, or provide operating curves for the baselines. Can the authors also broaden the comparison to representative recent online guardrails and report metrics such as harmful-prefix leakage, safety at matched benign false-positive rates, and throughput under batched serving? For instance, TrajGuard, SafeProbing, Trust The Typical, SelfDefend (Assume implementations are publicly available, if not, let me know).
-
Which components are responsible for the gains? Please provide a direct comparison with an appropriately adapted conditional activation-steering baseline and ablations for whitening, CUSUM versus instantaneous triggering, Gram-Schmidt orthogonalization, and dynamic versus fixed intervention strength. Note that a no-orthogonalization ablation should report both safety and benign utility.
-
How are calibration and validation data separated? i.e., the prompt-level splits used for vector extraction, layer selection, threshold and CUSUM calibration, and table 5.
Limitations
The paper should acknowledge that full-response DSR does not establish the absence of harmful prefix leakage, that calibration uses relatively few unique prompts, that the adaptive evaluation does not expose all detector internals to the attacker, and that batched-serving throughput has not been measured.
Final justification
After the rebuttal and follow-up discussion, I am raising my score from borderline reject to borderline accept.
My main concern in the original review was that the paper’s central motivation is prefix exposure in streaming generation, but the original evaluation mainly used final-response DSR and alarm delay. The authors have addressed this concern directly by a harmful-prefix leakage audit. They also reported the raw visible-stream unsafe-onset rate separately from the final HarmBench harmful rate and their intersection after my follow-up question.
By my request, the added baseline comparisons further improve the paper. CAST, TrajGuard, and Qwen3Guard-Gen-16/32 are reasonable representatives in relevant domains. The authors showed that Qwen3Guard gives slightly better leakage/DSR but with much higher latency and lower utility, while CAST and TrajGuard are weaker on safety and/or over-refusal. This mostly addresses my weak-baseline and safety-utility concerns.
The new ablations also address my concern on component attribution. The instantaneous-risk, no-orthogonalization, and fixed-beta variants make the roles of CUSUM accumulation, Gram-Schmidt orthogonalization, and dynamic intervention much more convincing.
Some limitations remain. The raw prefix-onset signal is based on Qwen3Guard and is not ground-truth harmful-content leakage. The gap between raw unsafe onsets and evaluator-consensus leakage may contain both false positives and real transient unsafe prefixes.
The comparison is still not a strict Pareto-frontier study, and batched/concurrent serving throughput is still unmeasured. Calibration also still uses a relatively small number of unique prompts expanded through prefixes. Nevertheless, I now consider them as limitations rather than reasons to reject, presuming the authors state clearly in the revision.
Formatting concerns
None.
4 comments
Rebuttal
Response to Reviewer
Thank you for the detailed feedback and constructive suggestions. We audit harmful-prefix leakage, add online baselines and near-matched safety--utility comparisons, clarify component attribution and data separation, and state the remaining limitations.
The latency analysis reports only...
Can the authors directly measure harmful-prefix leakage?...
Figure 4 reports alarm position, not whether unsafe text was released. We therefore added a token-level audit of the user-visible stream.
We evaluate 3,975 matched model–attack cases whose undefended response contains a Qwen3Guard-Stream-8B Unsafe onset. Qwen3Guard processes each assistant prefix in its own tokenizer; decoded-text alignment maps alarm, intervention, and release boundaries to the same coordinates. We count leakage only when it finds an Unsafe onset in the visible stream and HarmBench classifies the method’s final response as harmful. A 100-case manual audit agreed in 98 cases; both errors were conservative false positives.
Zero Harmful Leakage Rate (ZHLR) is the fraction with no consensus leakage; Conditional Harmful Prefix Leakage (cHPL) is the visible span from the first unsafe onset to the end of the evaluation view, conditional on leakage; Pre-Intervention Harmful Prefix Length (PI-HPL) is the Qwen-token span from the first Unsafe onset to the effective intervention boundary. Alarm-Before-Onset Rate (ABOR) tests whether alarm precedes the matched undefended onset, counting no alarm as failure.
| Defense | ZHLR ↑ | cHPL median / p95 ↓ | PI-HPL median / p95 ↓ | ABOR ↑ |
|---|---|---|---|---|
| Undefended | 30.21% | 198 / 251 | — | — |
| JEDI (ours) | 95.14% | 196 / 250 | 1 / 54.9 | 86.36% |
| CAST | 60.13% | 186 / 248 | 0 / 0 | 93.56% |
| TrajGuard | 65.38% | 202 / 249 | 48 / 196.85 | 17.74% |
| Qwen3Guard-Gen-16 | 99.60% | 187.5 / 242.75 | 113 / 171.2 | 76.28% |
| Qwen3Guard-Gen-32 | 99.55% | 186 / 242.45 | 96.5 / 169.25 | 76.98% |
JEDI has higher ZHLR than non-buffered CAST and TrajGuard. CAST's high ABOR but much lower ZHLR shows that early triggering alone is insufficient; the intervention must also prevent or redirect unsafe continuation. The Qwen3Guard baselines attain higher ZHLR because they buffer each chunk before release; JEDI instead detects early enough to steer the trajectory without buffering the output stream, preserving much lower TTFT and higher utility at the cost of a small residual leakage rate. Similar conditional cHPL shows that JEDI mainly reduces leakage frequency, not the severity of every residual failure. We will add model- and attack-stratified tables, retain Figure 4 as auxiliary responsiveness evidence, and revise our claim to substantially reducing, not eliminating, evaluator-consensus leakage.
JEDI reduces average AlpacaEval win rate...
The condition-triggered refusal-steering structure...
The paper evaluates SafeDecoding and Activation Probe...
Does JEDI improve the safety–utility Pareto frontier?...
Which components are responsible for the gains?...
Fig. 2 sweeps only JEDI’s , so it is a within-method curve; strict cross-method matching would require method-specific sweeps, and we do not claim global Pareto optimality.
Across six models, we add CAST (conditional activation steering), TrajGuard (streaming hidden-state detection), and Qwen3Guard-Gen-8B with buffered 16/32-token cumulative-prefix checks. CAST uses the official activation-steering implementation with pca_pairwise extraction and disjoint vector-training and condition-calibration splits; it decides once during prefill and applies fixed-strength steering. Unlike JEDI, CAST does not use whitening, CUSUM accumulation, Gram–Schmidt decoupling, token-level risk updates, or dynamic intervention strength. We adapt TrajGuard to the same cached-decoding stack and document the choices. Qwen3Guard checks cumulative prefixes and withholds each chunk pending classification.
| Method | DSR ↑ | Alpaca Win ↑ | TTFT (s) ↓ | Gen. time (s) ↓ | XSTest CR ↑ | OR-FPR ↓ |
|---|---|---|---|---|---|---|
| Undefended | 53.10 | 84.21 | 0.021 | 7.98 | 95.10 | 8.80 |
| JEDI (ours) | 95.70 | 77.18 | 0.024 | 8.89 | 91.10 | 12.50 |
| Activation Probe | 90.40 | 66.15 | 0.025 | 8.49 | 85.20 | 13.70 |
| Qwen3Guard-Gen-16 | 98.48 | 60.94 | 0.447 | 18.52 | 84.26 | 15.50 |
| Qwen3Guard-Gen-32 | 98.41 | 60.88 | 0.450 | 13.43 | 85.28 | 14.67 |
| CAST | 71.68 | 60.91 | 0.024 | 9.36 | 92.70 | 16.88 |
| TrajGuard | 75.82 | 63.17 | 0.021 | 7.74 | 90.00 | 30.65 |
CAST and TrajGuard obtain 92.7% and 90.0% XSTest CR, bracketing JEDI's 91.1%. At this similar compliance level, JEDI improves DSR by 24.02 and 19.88 points, AlpacaEval Win Rate by 16.27 and 14.01 points, and OR-Bench FPR by 4.38 and 18.15 points. Because these configurations were not tuned to identical compliance, this is a near-matched check, not a strictly matched operating-point experiment; nevertheless, it tests whether JEDI's gain is explained solely by stronger refusal.
At the aggregate configuration, JEDI also improves over Activation Probe in DSR (95.7 vs. 90.4), Win Rate (77.18 vs. 66.15), XSTest CR (91.1 vs. 85.2), and OR-Bench FPR (12.5 vs. 13.7).
The submitted tables also contain two near-matched DSR checks against Activation Probe. In the order DSR/Win/CR/FPR, JEDI versus Activation Probe is 93.6/93.5, 55.04/44.18, 87.6/71.6, and 11.8/11.3 on Vicuna-13B; on Qwen2.5-7B it is 94.0/93.8, 89.07/73.98, 94.8/92.4, and 8.5/9.9. These checks do not replace operating curves but avoid comparing utility only at substantially different safety.
Qwen3Guard-Gen-16/32 has higher DSR but lower utility, higher FPR, and greater latency. Its 0.447/0.450 s first-release latency includes chunk formation, guard queueing, and inference; generation takes 18.52/13.43 s versus JEDI’s 8.89 s. No reported configuration jointly dominates JEDI in safety, utility, over-refusal, and latency. We claim only a non-dominated high-safety point among evaluated configurations, not uniform dominance.
CAST compares fixed prompt-conditioned steering with JEDI’s complete token-level loop. The / sweeps characterize selectivity/strength trade-offs, and the Qwen3-8B single-vector variant lowers DSR from 94.8% to 87.5%, supporting separate Condition and Intervention Vectors. Together, these results support the contribution of the full output-conditioned control loop, although they do not provide a fine-grained causal attribution for every implementation component.
Within the rebuttal window, we prioritized the completed CAST, TrajGuard, and Qwen3Guard comparisons. We do not report SafeProbing, Trust The Typical, SelfDefend, or concurrent batched-serving throughput, and make no claims about those untested settings.
The calibration data are built from only 100 unique harmful and 100 unique benign prompts...
How are calibration and validation data separated?...
All splits precede prefix expansion. Vector/whitening extraction, layer selection, and calibration of are not mutually partitioned: they jointly use , containing 100 harmful HarmBench and 100 benign JustEval base prompts. independently samples another 100+100 prompts with zero overlap; with the layer, , , and frozen, it only computes Table 5 scores. uses disjoint PandaGuard and AlpacaEval/XSTest/OR-Bench prompts. Table 5 is therefore out-of-sample for prompts and offline decisions.
The prefix bank is shared deliberately: JC and BC use identical compliance prefixes, balancing prefix identity. Prompt–prefix crossing creates correlated augmentations, not independent prompts; the test is unseen harmful/benign content under fixed prefixes, not unseen templates.
The reported Std. measures cross-model/attack variation, not prompt uncertainty. We averaged each prompt’s 100 variants and bootstrapped the 100 harmful and 100 benign prompt scores (10,000 replicates). All models give AUROC/AUPRC [1.000, 1.000]; the weakest effects are Vicuna-13B [2.772, 3.466] and Fisher Ratio [3.842, 6.008]. This complete-cluster analysis complements Table 5’s filtered instance-level estimates and conditions on frozen offline quantities and prefixes.
The classifier audit was completed during the original evaluation; only its protocol was underdocumented. We randomly sampled 1,000 method–model–attack outputs and split them into ten disjoint 100-item sets for ten software-engineering/computer-science master’s students. Given only prompt and response, they judged harmful content; HarmBench–human agreement was 972/1,000 (97.2%). We will add these split, uncertainty, and audit details. The 200-prompt basis limits calibration-size evidence; it was chosen to balance evaluation cost, open-data availability, and reproducibility, while broader calibration data may improve coverage.
The paper should acknowledge that full-response DSR ...
We will state four boundaries in the main-text Limitations. First, full-response DSR cannot establish zero user-visible leakage; the audit supports substantial reduction, not elimination. Second, 10,000 calibration samples are correlated expansions of 100 harmful and 100 benign prompts, so calibration-scale generalization is limited. Third, our “worst-case/white-box” wording was too broad: the adaptive attacker receives the mechanism, alarm status, first-alarm time, and peak , but not all learned internals or unrestricted per-token signals; this is a feedback-adaptive, partial-information evaluation, and fully informed attacks remain open. Fourth, we measured single-H100 per-response TTFT and generation time, not concurrent batched-serving tokens/s or requests/s; production throughput is unmeasured.
Additional Evidence on JEDI Component Attribution
Thank you for the constructive suggestion to provide direct evidence on the contributions of JEDI’s individual components. In this follow-up, we report controlled ablations of CUSUM accumulation, Gram–Schmidt orthogonalization, and dynamic intervention strength on Vicuna-7B-v1.5 and Qwen2.5-7B-Instruct, complementing the CAST comparison in our submitted response.
Each variant uses the same frozen extraction artifacts, prompts, generation settings, and evaluators as full JEDI.
Vicuna-7B-v1.5
| Variant | DSR ↑ | XSTest CR ↑ | OR-FPR ↓ | Safety trigger | Alarm med/p95 (0-based) ↓ |
|---|---|---|---|---|---|
| Full JEDI | 98.20% | 86.40% | 13.30% | 97.91% | 0.0 / 53.0 |
| Instantaneous | 76.64% | 83.60% | 11.30% | 96.91% | 0.0 / 58.8 |
| No orthogonalization | 97.55% | 76.80% | 16.20% | 97.91% | 0.0 / 53.0 |
| Fixed beta | 59.91% | 83.20% | 11.80% | 97.91% | 0.0 / 53.0 |
Qwen2.5-7B-Instruct
| Variant | DSR ↑ | XSTest CR ↑ | OR-FPR ↓ | Safety trigger | Alarm med/p95 (0-based) ↓ |
|---|---|---|---|---|---|
| Full JEDI | 94.00% | 94.80% | 8.50% | 99.55% | 1.0 / 22.0 |
| Instantaneous | 79.91% | 90.00% | 6.70% | 98.91% | 1.0 / 48.0 |
| No orthogonalization | 92.91% | 85.20% | 8.50% | 99.55% | 1.0 / 22.0 |
| Fixed beta | 66.00% | 86.00% | 7.90% | 99.55% | 1.0 / 22.0 |
CUSUM vs. instantaneous risk. The instantaneous variant replaces accumulated risk with single-step risk for both alarming and risk-scaled intervention strength. Its threshold is calibrated on the same benign sequences to match the full detector’s sequence-level benign alarm FPR: 0.03% vs. 0.03% on Vicuna and 5.00% vs. 5.00% on Qwen2.5. Despite safety trigger rates differing by only 1.00 and 0.64 points, full JEDI improves DSR by 21.56 and 14.09 points and reduces the p95 alarm position by 5.8 and 26 generated-token steps. Sequential accumulation therefore improves both defense success and tail detection earliness rather than merely increasing trigger frequency.
Gram–Schmidt orthogonalization. We reconstructed the raw Intervention Vector from the same samples and used it directly without subtracting its projection onto the Condition Vector. Orthogonalization improves XSTest CR by 9.60 points on both models while also improving DSR by 0.65/1.09 points. It lowers OR-FPR by 2.90 points on Vicuna and preserves the same OR-FPR on Qwen2.5. These results show that orthogonalization improves selectivity and preserves benign utility while maintaining high safety.
Dynamic vs. fixed intervention strength. With the detector and orthogonalized vector unchanged, fixing after alarm leaves trigger rates and alarm positions unchanged but reduces DSR by 38.29 points on Vicuna and 28.00 points on Qwen2.5. Dynamic control also improves XSTest CR by 3.20 and 8.80 points. This is the largest safety reduction among the tested ablations, showing that adapting intervention strength to accumulated risk is essential for reliably redirecting harmful trajectories after detection.
Together with the adapted CAST comparison in our submitted response, these controlled ablations identify distinct roles for JEDI’s main components: CUSUM converts persistent drift into earlier and more effective detection, Gram–Schmidt orthogonalization preserves benign utility, and dynamic intervention strength provides the corrective force needed after an alarm. The consistent patterns across both target models directly support JEDI’s complete output-trajectory-conditioned control loop.
Thanks for the detailed response. I think the rebuttal addresses majority of my original comments.
The added harmful-prefix leakage audit is great. I also appreciate the added CAST, TrajGuard, and Qwen3Guard-Gen baselines. They make the safety/utility/latency tradeoff clearer. The extra component ablations are useful as well. Given these additions, I feel comfortable raising my score to 4 now (assuming the new experiments and clarified limitations are added to the final paper).
I still have one question though about the leakage definition. As I understand it, leakage is counted only when Qwen3Guard finds an unsafe onset in the visible stream and HarmBench also labels the final response as harmful. This is a useful high-confidence leakage metric, but it may miss the case I was originally worried about, i.e., an unsafe prefix appears briefly, but the final response is later steered into a refusal and classified as safe. Can you also report the raw prefix-level unsafe-onset rate in the visible stream, without conditioning on the final HarmBench label? Even a small table with raw prefix unsafe-onset, final HarmBench harmful rate, and their intersection would make the prefix-exposure result significantly clearer.
Supplemental Response on the Leakage Definition
Thank you for this precise suggestion and for updating your assessment. We agree that the unconditioned prefix-level signal should be reported separately. The table uses the same 3,975 matched attacked generations as our previous audit. This set was selected because every undefended visible stream contains a Qwen3Guard-Stream-8B Unsafe onset, so the 100.00% raw-onset rate for Undefended is by construction; all defenses are evaluated on the same prompt–model cases.
| Defense | Raw visible-stream unsafe-onset rate ↓ | Final-response HarmBench harmful rate ↓ | Raw onset ∩ final harmful ↓ |
|---|---|---|---|
| Undefended | 100.00% | 69.79% | 69.79% |
| JEDI (ours) | 26.61% | 6.30% | 4.86% |
| CAST | 61.97% | 43.32% | 39.87% |
| TrajGuard | 55.46% | 39.18% | 34.62% |
| Qwen3Guard-Gen-16 | 6.10% | 2.74% | 0.40% |
| Qwen3Guard-Gen-32 | 5.46% | 2.65% | 0.45% |
For JEDI, Qwen3Guard flags an onset in 26.61% of visible streams, HarmBench labels 6.30% of final responses harmful, and 4.86% satisfy both conditions. Thus, JEDI reduces the raw detector-positive onset rate by 73.39 percentage points relative to the selected undefended cases. We do not, however, equate every raw onset with verified harmful-content leakage.
We selected Qwen3Guard-Stream-8B because, among the models we identified, it was the closest available fit to per-token harmfulness detection during streaming generation, despite the nonzero false-positive rate observed in our setting.
We originally used the intersection because Qwen3Guard-Stream-8B conditions each streaming decision on the preceding conversation, including the harmful user request. In our error analysis, this sometimes caused a generic compliance marker (e.g., “Sure, here is...”) to be labeled Unsafe even when no harmful payload followed and the response resolved into a refusal. Such a marker alone is not harmful-content exposure. HarmBench agreement and the sampled manual audit (98/100 agreement; both discrepancies were conservative false positives) were therefore used to improve precision.
Your concern is nevertheless correct: conditioning on the final HarmBench label can exclude a genuinely unsafe span that is later redirected into a safe refusal. We therefore interpret the intersection as a high-precision but non-exhaustive leakage measure, and the raw onset as a more sensitive detector-positive measure rather than ground truth. For JEDI, the 21.75-point raw-onset/intersection gap is the Qwen-positive/HarmBench-safe pool; it may contain both transient unsafe prefixes and Qwen false positives and is not a verified 21.75% leakage rate.
In the revised manuscript, we will incorporate the additional baselines, component ablations, clarified limitations, and harmful-prefix leakage metrics reported in our earlier response, together with this three-way table and the clarified distinction between raw detector-positive onsets and evaluator-consensus leakage.
- 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 addresses jailbreak defense for LLMs in streaming generation. Existing defenses mainly work before generation (prompt filtering) or after generation (output moderation), but they do not prevent harmful tokens from being displayed during streaming (prefix exposure). The proposed method, JEDI, performs continuous defense during generation. It first builds an offline contrastive dataset composed of jailbreak and benign prompts with compliance and refusal prefixes. From the model activations, it extracts two latent directions: a Condition Vector, which represents the direction of harmful content generation, and an Intervention Vector, which represents refusal behavior. Unlike a standard linear probe, JEDI does not train a supervised classifier on hidden activations. Instead, it computes these vectors as geometric directions in the activation space. During inference, JEDI projects the hidden states of each generated token onto the Condition Vector. A CUSUM detector accumulates the risk scores over time to detect persistent harmful drift. When a threshold is reached, the Intervention Vector is injected into the hidden states to steer the generation toward a safe response before harmful content is exposed.
Strengths and weaknesses
Strengths:
-
The paper proposes a coherent framework for continuous jailbreak defense in streaming LLMs. The combination of hidden-state monitoring, sequential detection with CUSUM, and activation steering provides an elegant and lightweight solution to intervene during generation before harmful tokens are displayed.
-
The experimental evaluation is comprehensive. JEDI is evaluated on several open-source LLMs and multiple jailbreak attacks while considering not only defense success rate, but also utility, over-refusal, and latency.
-
The proposed method is lightweight to deploy, with access to the model hidden states. It does not require retraining or modifying the LLM parameters, but only an offline calibration phase followed by inference-time intervention. The reported latency overhead is very small, making the approach compatible with streaming applications.
Weaknesses:
-
The paper mainly provides empirical evidence, while the theoretical justification of the learned latent directions and of the proposed detection mechanism remains limited.
-
The paper does not compare JEDI with a simple streaming baseline, such as periodically applying an external safety classifier (e.g., HarmBench/LlamaGuard every 16 or 32 generated tokens). Although such a baseline does not completely solve prefix exposure, it could provide a good trade-off between simplicity, cost, and safety. This comparison would help better quantify the benefit of the proposed approach.
-
The practical applicability of JEDI is somewhat limited. The method requires access to the model hidden states and decoding process, making it suitable for model developers or self-hosted deployments, but not for applications relying on proprietary LLM APIs. This limitation could be discussed more explicitly.
-
The construction of the Intervention Vector relies on trajectories generated from manually designed compliance and refusal prefixes. The paper shows that this vector works well empirically, but it does not provide direct evidence that the learned vector captures an intrinsic refusal mechanism rather than effects induced by the selected prefixes.
Questions
Q1. The paper compares JEDI with several existing defenses, but not with a simple streaming baseline such as periodically applying HarmBench or LlamaGuard every 16 or 32 generated tokens before displaying the next chunk. Could the authors include such a baseline to better quantify the benefit of JEDI?
Q2. How dependent is JEDI on the quality of the initial alignment? For example, how would JEDI perform on models trained only with SFT, on weakly aligned models, or on pretrained models without RLHF?
Q3. The Intervention Vector is learned from trajectories generated with manually designed refusal and compliance prefixes. How do the authors justify that the learned vector captures the model intrinsic refusal mechanism rather than the effect of these prefixes? Could the authors evaluate the robustness of the Intervention Vector with different refusal/compliance prefixes, or with naturally occurring refusals instead of manually forced prefixes?
Q4. Could the authors clarify the novelty of JEDI with respect to recent representation-level and activation-steering defenses such as JBShield and AdaSteer?
Limitations
yes
Final justification
The detailed rebuttal and additional experiments substantially strengthen the empirical positioning of JEDI. In particular, the newly added periodic streaming baselines are informative and make the safety–utility–latency trade-off much clearer. The rebuttal also clarifies the white-box deployment scope, the dependence on initial alignment, and the intended local and functional interpretation of the learned vectors.
I nevertheless retain some reservations. The robustness of the Intervention Vector to held-out prefix banks or to extraction from naturally occurring refusals remains untested, so its dependence on the chosen calibration prefixes is still an open question. In addition, the distinction from JBShield and, especially, AdaSteer is clearer conceptually after the rebuttal, notably through JEDI’s output-trajectory-conditioned and event-triggered control loop. However, no direct comparison with either method is provided. Since AdaSteer uses closely related harmfulness and rejection directions, such a comparison, together with targeted ablations, would help better assess the specific contribution of token-level monitoring, CUSUM accumulation, and dynamic intervention.
Overall, the rebuttal strengthens the paper and addresses several of my main concerns. At this stage, I maintain my current borderline-accept rating, while encouraging the authors to incorporate these clarifications, comparisons, and limitations clearly in the revised manuscript.
Formatting concerns
no
3 comments
Rebuttal
Response to Reviewer
Thank you for the constructive feedback. We address the theoretical basis and prefix dependence, add the Qwen3Guard-Gen-16/32 periodic streaming baselines, clarify JEDI's white-box scope and initial-alignment dependence, and distinguish it from related steering defenses.
The paper mainly provides empirical evidence, while the theoretical justification...
JEDI assumes only locally exploitable linear directions on the calibration distribution, not global linearity or Gaussianity.
Condition direction. Let and let be the benign covariance. Maximizing
gives . Since and , Eq. (4) is
Thus, is optimal only in this standardized linear mean-separation class, not Bayes-optimal or globally valid. Eq. (4) is a projection, not cosine similarity, because only is normalized. Appendix B reports AUROC/AUPRC of -- across all six models; the weakest case has Cohen's and Fisher Ratio . This supports the local premise in the evaluated setting, not unrestricted generalization.
Intervention direction. In whitened coordinates, minimizes ; Gram--Schmidt gives its condition-orthogonal solution under . Equivalently, it is the best constant, condition-orthogonal displacement from harmful-compliance to refusal-associated states on the calibration distribution; this functional statement identifies neither a unique causal mechanism nor prefix invariance.
Sequential detection. The 95th-percentile threshold zeros approximately 95% of calibration benign scores after rectification; it does not guarantee zero risk throughout a benign generation. JEDI then estimates residual benign risk and calibrates under an FPR constraint. Its statistic is
which resets after negative evidence and accumulates persistent drift. If centered increments are conditionally -sub-Gaussian, benign drift is at most , and post-change harmful drift is at least , then
for , conditional on no earlier alarm. These bounds formalize the false-alarm/delay trade-off. Because learned scores are autoregressively dependent and not log-likelihood ratios, we do not claim classical CUSUM minimax optimality. We will correct the whitening, projection, and quantile descriptions and state these assumptions and failure conditions.
The paper does not compare JEDI with a simple streaming baseline...
The paper compares JEDI with several existing defenses, but not with a simple streaming baseline...
We implemented the requested periodic external-guard baseline at 16- and 32-token intervals using Qwen3Guard-Gen-8B. Each block is buffered while the guard classifies the original prompt plus the cumulative assistant prefix. Safe blocks are released; an unsafe decision suppresses the current block, terminates generation, and appends a fixed refusal to any earlier released prefix. The final incomplete block is also checked, and the resulting user-visible response is judged by the same HarmBench classifier used in the main evaluation. We additionally include CAST and TrajGuard as representatives of conditional activation steering and trajectory-based decoding-time detection. CAST decides once during prompt prefill, whereas TrajGuard monitors smoothed decoding trajectories and invokes semantic adjudication when risk persists.
| Method | DSR (%) | First alarm/check (median/P95 tokens) | AlpacaEval (%) | TTFT (s) | Gen. time (s) | XSTest CR (%) | OR-Bench FPR (%) |
|---|---|---|---|---|---|---|---|
| Undefended | 53.10 | -- | 84.21 | 0.021 | 7.98 | 95.10 | 8.80 |
| JEDI (ours) | 95.70 | 1 / 51 | 77.18 | 0.024 | 8.89 | 91.10 | 12.50 |
| Qwen3Guard-Gen-16 | 98.48 | 16 / 96 | 60.94 | 0.447 | 18.52 | 84.26 | 15.50 |
| Qwen3Guard-Gen-32 | 98.41 | 32 / 128 | 60.88 | 0.450 | 13.43 | 85.28 | 14.67 |
| CAST | 71.68 | 0 / 0 (prefill) | 60.91 | 0.024 | 9.36 | 92.70 | 16.88 |
| TrajGuard | 75.82 | 43 / 221 | 63.17 | 0.021 | 7.74 | 90.00 | 30.65 |
Qwen3Guard-Gen-16/32 has higher DSR than JEDI but raises TTFT from 0.024 to about 0.45 s and generation time from 8.89 to 18.52/13.43 s, while reducing AlpacaEval and XSTest utility. JEDI precedes the periodic checks and has the highest AlpacaEval Win Rate and lowest OR-Bench FPR among added defenses. CAST has the highest XSTest compliance but 71.68% DSR; TrajGuard has lower DSR, later detection, and higher OR-Bench FPR. Thus, periodic guards prioritize safety, whereas JEDI better balances safety, utility, and latency. Harmful-prefix leakage is reported in our response to Reviewer DeoT.
The practical applicability of JEDI is somewhat limited...
JEDI requires read/write access to per-token hidden states inside decoding. It therefore targets model developers and self-hosted deployments, not standard proprietary APIs that expose neither activations nor activation-level control. We will move this limitation from Appendix E to the main text, state the access assumptions explicitly, and label proxy deployment only as future work.
The construction of the Intervention Vector relies on trajectories generated from ...
The Intervention Vector is learned from trajectories generated with manually designed refusal and compliance prefixes.
Our claim is functional: is a model-specific direction fitted on the extraction distribution, not a unique intrinsic or causal refusal mechanism. We have not tested held-out prefix banks or natural-refusal extraction and therefore do not claim prefix invariance.
and pair the same harmful prompt and attack context with opposite refusal/compliance stances, reducing prompt- and attack-specific confounding. This matched design is a controlled counterfactual, not a lexical definition of refusal; unmatched natural outcomes could introduce selection bias. Estimating from the stance-bearing Prefix Sequence and from the following Content Sequence further separates their behavioral and semantic roles. Natural refusals are useful complementary validation but require behavior labeling and matched trajectory segmentation, rather than being a drop-in replacement.
Extraction uses 100 diverse refusal/compliance prefixes and 10,000 synthetic samples, not one phrase pair. Used only offline, they are absent from evaluation on 1,100 disjoint PandaGuard prompts across six models and 11 attacks, including seven families unseen in calibration; JEDI attains 95.7% mean DSR. On Qwen3-8B, replacing with lowers DSR from 94.8% to 87.5% and raises its across-attack standard deviation from 6.0 to 8.3. This supports transfer and a distinct steering signal, but not prefix invariance. We will state this boundary and identify held-out-prefix and natural-refusal extraction as future validation.
How dependent is JEDI on the quality of the initial alignment? ...
Across the evaluated instruction-tuned models, JEDI remains effective when initial jailbreak robustness is weak but is not alignment-agnostic. Using undefended DSR only as a proxy, the six models span 34.1%--69.8%; JEDI raises them to 93.6%--99.4%, gains of 25.0--59.9 points.
Vicuna v1.5 uses SFT-only post-training: JEDI raises DSR from 50.8% to 98.2% (7B) and 41.4% to 93.6% (13B). Mistral-7B-Instruct-v0.2 is instruction-fine-tuned but has no moderation mechanism; JEDI raises 34.1% to 94.0%, 19.7 points above its strongest baseline. Thus, strong pre-existing robustness is not required within this scope.
Extraction does not require spontaneous refusal: prefix-conditioning estimates the -- contrast, while the Condition Vector contrasts harmful and benign compliance. It still requires a distinguishable, steerable refusal/compliance contrast. We have not tested a purely pretrained, instruction-unaligned checkpoint; there JEDI would supply inference-time safety alignment rather than restore a bypassed safety policy. We will state this boundary.
Could the authors clarify the novelty of JEDI with ...
JEDI does not claim novelty in linear directions, difference-in-means extraction, activation addition, or adaptive steering. Its two contrasts are conceptually related, up to sign and extraction details, to AdaSteer's Rejection and Harmfulness Directions.
The distinction is temporal and architectural. JBShield detects and manipulates toxic/jailbreak concepts from the input. AdaSteer derives input-dependent coefficients but does not update them from the evolving output. JEDI scores each current pre-decoding state and accumulates persistent evidence with CUSUM. The Condition Vector is only the sensor; a separate orthogonalized Intervention Vector acts after alarm, with strength recomputed from as risk evolves. JEDI also calibrates to minimize Average Detection Delay under a benign-FPR constraint. Its contribution is an output-trajectory-conditioned, event-triggered loop deciding when and how to intervene during streaming generation. Unlike input-adaptive steering, JEDI therefore updates both its decision statistic and intervention magnitude within the same response.
The ablation that replaces the Intervention Vector with the Condition Vector supports this sensor--intervention separation, but does not establish superiority over JBShield or AdaSteer.
The detailed rebuttal and additional experiments substantially strengthen the empirical positioning of JEDI. In particular, the newly added periodic streaming baselines are informative and make the safety–utility–latency trade-off much clearer. The rebuttal also clarifies the white-box deployment scope, the dependence on initial alignment, and the intended local and functional interpretation of the learned vectors.
I nevertheless retain some reservations. The robustness of the Intervention Vector to held-out prefix banks or to extraction from naturally occurring refusals remains untested, so its dependence on the chosen calibration prefixes is still an open question. In addition, the distinction from JBShield and, especially, AdaSteer is clearer conceptually after the rebuttal, notably through JEDI’s output-trajectory-conditioned and event-triggered control loop. However, no direct comparison with either method is provided. Since AdaSteer uses closely related harmfulness and rejection directions, such a comparison, together with targeted ablations, would help better assess the specific contribution of token-level monitoring, CUSUM accumulation, and dynamic intervention.
Overall, the rebuttal strengthens the paper and addresses several of my main concerns. At this stage, I maintain my current borderline-accept rating, while encouraging the authors to incorporate these clarifications, comparisons, and limitations clearly in the revised manuscript.
Additional Evidence on Held-out Prefix-Bank Robustness and JEDI Component Attribution
Thank you for the careful follow-up and for recognizing that our rebuttal and additional experiments strengthen JEDI. Because the discussion period was limited, our initial response did not include the following focused follow-up results, which we completed afterward.
“The robustness of the Intervention Vector to held-out prefix banks … remains untested…”
We directly evaluated prefix-bank sensitivity with grouped five-fold experiments on Qwen2.5-7B-Instruct and Vicuna-7B-v1.5. The 100 compliance and 100 refusal prefix entries were normalized and grouped so that duplicate prefixes could not cross folds. In each fold, we held out 20 entries from each bank and re-estimated the Intervention Vector from the remaining 80. Directional agreement was evaluated using both held-out prefixes and held-out calibration prompts. To isolate the prefix-bank question, we kept the whitening transforms, Condition Vector, selected layer, CUSUM parameters, and intervention rule fixed.
| Metric | Qwen2.5-7B-Instruct | Vicuna-7B-v1.5 |
|---|---|---|
| Train vs. joint held-out intervention-effect cosine | 0.9500 0.0075 [0.9417, 0.9586] | 0.9391 0.0083 [0.9246, 0.9451] |
| Pairwise cosine among fold-trained intervention effects | 0.9964 0.0008 [0.9953, 0.9977] | 0.9953 0.0008 [0.9935, 0.9967] |
| DSR on the fixed 11-attack test set | 93.25% 0.17% [93.00%, 93.45%] | 98.35% 0.34% [97.91%, 98.73%] |
Brackets show the observed range. The values are sample standard deviations: five folds for the joint held-out cosine and DSR, and ten fold pairs per model for the pairwise cosine; they are not confidence intervals. Each fold used the same 1,100-response online test set.
The high held-out and cross-fold directional agreement, together with stable online DSR, shows that the Intervention Vector is robust to the tested grouped prefix-bank resampling under fixed whitening, layer selection, detector calibration, and intervention rule. The consistent results on Qwen2.5-7B-Instruct and Vicuna-7B-v1.5 further show that this stability holds across both evaluated model families.
“Since AdaSteer uses closely related harmfulness and rejection directions, such a comparison, together with targeted ablations, would help…”
CAST (prompt-conditioned fixed steering) and TrajGuard (streaming trajectory monitoring) provide category-level nearest-neighbor controls along the two most relevant design axes. To address the underlying component-attribution question, we completed controlled ablations on the same two models while keeping the extraction artifacts, prompts, generation settings, and evaluators fixed.
Replacing CUSUM accumulation with instantaneous token-level risk, with the instantaneous threshold calibrated to the same sequence-level benign alarm FPR, reduced DSR by 21.56 points on Vicuna and 14.09 points on Qwen2.5; full JEDI also reduced the p95 alarm position by 5.8 and 26 generated-token steps. Replacing risk-adaptive intervention with fixed left the detector, trigger rates, and alarm positions unchanged but reduced DSR by 38.29 and 28.00 points, establishing a substantial contribution from risk adaptation under matched detection behavior. Removing Gram--Schmidt orthogonalization lowered XSTest compliance by 9.60 points on both models without improving DSR.
Together with the CAST comparison and the submitted single-vector ablation, these results identify distinct and measurable contributions from JEDI's main components: CUSUM improves persistent-risk detection and tail earliness, Gram--Schmidt orthogonalization preserves benign compliance while maintaining safety, and risk-adaptive intervention provides substantial corrective strength after an alarm. The consistent patterns across both target models strengthen the evidence for JEDI's complete output-trajectory-conditioned control loop.
We hope these additional results address your remaining concerns about prefix-bank robustness and the distinct contributions of JEDI’s main components.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to the AC Meta Review
Thank you for synthesizing the reviews and recognizing JEDI's coherent, comprehensive, and lightweight design. Below we summarize how the four highlighted concerns are addressed; the reviewer-specific responses provide the full derivations, experimental settings, quantitative results, and limitations.
Theoretical justification and vector validity. Our theoretical claim is that the Condition Vector realizes standardized local mean separation on the calibration distribution, the Intervention Vector represents a condition-orthogonal displacement toward refusal-associated states, and CUSUM formalizes the trade-off between persistent-drift detection and false alarms under stated assumptions. The six-model separability and intervention analyses support these functional interpretations in the evaluated transfer setting. Held-out prefix banks and natural-refusal extraction define the next validation step. Please see our responses to Reviewer 8c7w on the theoretical justification and on the use of manually designed refusal/compliance prefixes for the derivations, assumptions, empirical evidence, and failure boundaries.
Missing baselines, matched comparisons, and novelty. We added Qwen3Guard-Gen-16/32, CAST, and TrajGuard, covering periodic streaming guards, conditional activation steering, and trajectory-based decoding-time detection. We evaluated their safety--utility--latency trade-offs and provided near-matched comparisons. The results position JEDI as a non-dominated high-safety point among the evaluated configurations and show that its gains persist at comparable compliance or safety levels. No evaluated baseline simultaneously outperforms JEDI on full-response safety, harmful-prefix leakage, benign utility, over-refusal, and latency. Our novelty claim is the output-trajectory-conditioned control loop that connects persistent token-level detection with separate, dynamically adjusted intervention; the existing ablations support this sensor--actuator separation. Please see our responses to Reviewer 8c7w on the streaming-classifier baseline and novelty relative to representation-level defenses, and to Reviewer DeoT on recent online baselines, safety--utility comparison, and component attribution.
Threat-model scope. JEDI's validated deployment scope is model-developer and self-hosted systems with white-box hidden-state access and decoding control. We now state these assumptions explicitly throughout the paper and position proxy deployment as a future extension for proprietary-API settings. Please see our response to Reviewer 8c7w on practical applicability for the complete scope statement and revision commitment.
Experimental validation and explanation. We supplemented full-response DSR and alarm timing with a direct harmful-prefix-leakage audit, clarified the calibration/separability/evaluation split logic, added prompt-level uncertainty and classifier-audit details, and specified the adaptive attacker's feedback access. These checks support substantial reduction in evaluator-consensus leakage, out-of-sample separation, prompt-level robustness, and high human--classifier agreement, while also quantifying residual leakage and calibration-scale boundaries. Please see our responses to Reviewer DeoT on harmful-prefix leakage, calibration protocol, uncertainty, classifier auditing, and limitations, together with our response to Reviewer RXrV on calibration/test isolation and seen-versus-unseen attack evaluation.
Overall, the reviewer-specific responses establish JEDI as a white-box, in-generation control loop for streaming/prefix exposure with conditional theoretical grounding, representative online comparisons, and direct leakage- and prompt-level validation. They also clarify initial-alignment dependence in our response to Reviewer 8c7w, and the research gap, research questions, model-selection rationale, and main-text placement of Limitations in our response to Reviewer RXrV. We will consolidate these clarifications, new comparisons, validation analyses, and limitation statements in the revision.