Persist-3 uses sequential testing to identify unseen jailbreak sources, improving the defense effectiveness of MTK and Prompt Guard 2
Persist-3 detects no unseen jailbreak source with source-wise conformal p-values; at H=1000, KU detection rate is 0.458.
The detector performs sequential testing on the hidden representation stream before the victim model returns a response, with the null hypothesis that the current distribution belongs to one of K known attack sources. The attacker can switch sources at unknown change points; KK switches are not detection targets, only KU switches into unseen sources are. Online, only Xt is used, not the jailbreak success label Yt. Calibration uses only known source data.
- Jailbreak defenses are usually calibrated on fixed known attack methods, and existing detectors degrade when new methods appear. The authors ask: looking only at the representation stream before the victim model returns a response, how can one tell that the current attack does not belong to any known source, and how does the degree of separation determine detection speed? Switches between known sources should not count as targets.
- For each known source, compute a Mahalanobis score and a split conformal p-value. Persist-3 averages over the recent W=10 per source, then takes the minimum, and requires L=3 consecutive threshold crossings, so it depends only on the last 12 observations. Thresholds use only known-source validation streams. After alarm, escalate the stream on the unmodified guardrail.
- At H=1000, Persist-3's KU detection rate is 0.458, SR-DKW full is 0.648, and stationary FPR is 0/1835 for both (Table 1). Layered on MTK or PG2, the authors state block rate increases by 7.0 to 10.0 percentage points (Table 2).
- The authors list asymptotic analysis under more online data as a future direction, and state explicitly that fully adaptive attackers are not covered by the theorems or stress tests. Empirically, there is no registration after verified alarms; stratified comparisons are not budget-matched. Replay is not compared with the stream-level defenses of Piet et al. (2025).
- Evaluated models
- Llama2-7B-chatQwen2.5-7B-InstructGemma-2-9B-itLlama-3.1-8B-Instruct
- Benchmarks
- AdvBench/Harmful BehaviorsHarmBench
- Metrics
- stationary FPRKK alarm rateKU detection rateblock rateyield
The paper proposes Persist-3 to determine, from a stream of attack prompts, whether they come from a source outside the known attack sources. The method computes a conformal p-value for each known source and rejects the null hypothesis only when the evidence against all known sources is strong enough. Theoretical analysis shows that its detection probability approaches 1 exponentially as the observation window grows, so a shorter window suffices to detect unseen sources that are clearly distinguishable from known ones. The authors validate Persist-3 on top of two recent jailbreak defenses, MTK and Prompt Guard 2, and observe a significant enhancement in defense effectiveness.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- 公众号 大模型安全研究cites the paper's id or link大模型安全周报:决策性模型护栏也能被攻击者绕过
Detecting Unseen Jailbreak Sources: A Multi-Source Conformal Detection Perspective(https://arxiv.org/abs/2610.09167)
Paper analysis
What problem does this paper attempt to solve?
The authors frame unseen jailbreak source detection as a sequential test against a known set of sources, and propose the finite-memory detector Persist-3.
To determine from the attack representation stream whether the current distribution falls outside all known jailbreak sources, and how the degree of separation determines detection speed.
- Scenario: The authors state that LLMs have been used for code generation, interactive assistants, and agents that call external tools, and jailbreaks induce them to give harmful responses. Defenses are mostly developed and tested on fixed attack sets; Wang et al. (2025b) found that guardrail performance varies with attack type, and generalization to new strategies remains an open problem in deployment.
- Existing methods: Prompt-level detectors judge each prompt individually and do not judge whether the entire attack stream leaves known methods. Common change-point detection treats any deviation from a relatively single pre-change distribution as a target, so a switch between two known sources is also detected. MDCP requires constructing prediction sets that remain valid for each known source and their mixtures, and does not test whether the current prompt comes from outside the known set.
- Observation: The null hypothesis is the union. If the stream comes from P1, the p-value for P1 is usually large and that for P2 small; a Bonferroni-type combination rejects as long as one known source is rejected, thus alarming when there is no unseen source. The authors reject H0 only when every known source is rejected, i.e., the best-matching known source also cannot explain the stream.
- Proposal: Formulate unseen jailbreak source detection as a sequential test, with the detector Persist-3. It provides detection guarantees that depend only on a finite recent window, and upgrades on top of MTK and Prompt Guard 2.
- Threat model:
- Goal: At each time step, test H0: Qt belongs to {P1,…,PK}, against the alternative that it does not. It does not determine which specific known source it comes from.
- Signal: Online, only the hidden representation Xt before the victim model returns a response is used. The change point is unknown, so all observations in the current segment cannot be pooled. Yt is unavailable when the prompt arrives and is used only for offline evaluation of interventions, and optional registration under the additional assumption of Corollary B.6.
- Switching: The stream is piecewise i.i.d., and the attacker switches sources at change points. A KK switch changes the distribution but remains within H0 and is not a target; only a KU switch is a target.
- System: One attack source is one attack method applied to a given victim model. The detector reads that model's representation stream; after an alarm, the stream can be upgraded on top of existing guardrails.
What related research exists?
The authors place this paper at the intersection of multi-source conformal, sequential change-point detection, and jailbreak representations.
Multi-source and online conformal
- Split conformal (Vovk et al., 2005; Angelopoulos and Bates, 2023): Gives distribution-free finite-sample coverage under exchangeability. Lei et al. (2018) provide the split construction for the regression case.
- Multi-source methods (Liu et al., 2024b; Spjuth et al., 2019; Wong et al., 2025; Yang and Jin, 2026): Discuss predictive validity when calibration data come from multiple distributions; MDCP's guarantee covers each calibrated source and their mixture. The authors state the question here is not whether that coverage still holds, but whether the current segment is generated by one of the calibrated sources.
- Shift and online updates (Tibshirani et al., 2019; Gibbs and Candes, 2021; Zaffran et al., 2022): Adjust thresholds or weights under estimable covariate shift, unknown changes in subgroup proportions, or sequentially. The authors state these methods target prediction sets under a given shift model, whereas this paper uses source-specific p-values to test whether the calibrated source set itself is insufficient.
Jailbreaks, guardrails, and representations
- Attacks and benchmarks: Optimized suffixes, automated black-box search, and iterative prompt generation are in Zou et al. (2023) and Liu et al. (2023). HarmBench (Mazeika et al., 2024) and JailbreakBench (Chao et al., 2024) provide standardized attack success and guardrail evaluations.
- Detection under distribution shift: Piet et al. (2025) do longitudinal evaluation and propose two stream-level defenses: a persistent detector retrained on its own predictions, and active monitoring to see whether a jailbreak makes the model answer known harmful prompts. The authors state this paper keeps source calibration frozen and uses victim-model representations before the response is returned; benchmark replay is not compared with these two procedures, so no empirical superiority over them is claimed. Wang et al. (2025b) emphasize that guardrail performance varies with attacks, and generalization to new strategies remains a deployment challenge.
- Representations: Lin et al. (2024) report that harmful and benign prompts can occupy different regions of aligned models' hidden representations; Gao et al. (2025), He et al. (2024), and Zheng et al. (2024) further discuss safety boundaries, circuits, or internal signals. The authors state this motivates using Xt as a detection signal; the score measures whether Xt is typical under source k, not whether the prompt itself is a successful jailbreak.
Sequential change-point detection
- e-detectors (Shin et al., 2022; Saha and Ramdas, 2026): Use e-processes for nonparametric sequential change-point detection; composite null hypotheses can be handled via an infimum over candidate null distributions, and average run length or false alarm probability are discussed. The authors state that aggregating over K sources is not itself a new device; the difference is that the null hypothesis is a set of calibrated sources, and a shift from Pi to Pj is not a detection target when both are known. Window statistics are used for finite memory and for testing whether one known source can explain the entire recent window. Table 3 compares the null hypothesis, KK switching, memory, and main guarantees.
Baselines and benchmarks
- Baseline methods: Main comparisons are Persist-3, full-history and W=10 SR-DKW, and full-history and W=10 SR-RAW. Short-horizon comparisons also include single threshold crossing, mean-p conformal window, and family min-kNN window. The original Mahalanobis variant has no feasible operating point on the predetermined threshold grid; CUSUM gives 0 KU detections after alignment validation and test lengths, so the authors do not use it as a comparator.
- Benchmarks: AdvBench/Harmful Behaviors and HarmBench; eleven attack sources cover optimized suffixes, automated black-box search, and human-written prompts.
The authors place the contribution at the intersection of the above lines: constructing source-specific conformal evidence from victim-model representations, framing unseen-source detection as a test of a union of source hypotheses, achieving finite memory with a recent window, and connecting alarms to stream-level escalation above prompt-level guardrails.
How does the paper address this problem?
Persist-3 computes conformal p-values for each known source and only raises an alarm when the recent window is atypical for all known sources and continuously exceeds the threshold.
Persist-3 turns each victim model representation into conformal p-values for each known source, and only alarms when the recent window is atypical for all known sources and this occurs consecutively. The comparison detector SR-DKW accumulates the same p-values over full history.
Problem setup
- Data: For each prompt, the victim model hidden representation X is extracted before any response is returned. Y∈{0,1} indicates whether the jailbreak succeeded. P1,…,PK are the distributions of X under K known attack sources, which have calibration data.
- Stream and hypotheses: Following Shin et al. (2022), the stream is piecewise i.i.d.: Xt are independent and Xt∼Qt, with Qt constant between change points, and the interval between two change points is a segment. At each time, test H0: Qt∈{P1,…,PK} against H1: Qt not in that set. KK switches remain under H0; only KU switches are detection targets.
- When decisions are made: Just after a switch, the recent window still contains old-source prompts. Persist-3 waits B=W+L−1 new observations before old sources no longer enter Dt. Online detectors do not use Yt.
- Assumption 4.1: PCA and scores are frozen before seeing the final stream; given training information, calibration samples for each source are conditionally i.i.d., nk≥1 and fixed before viewing. The stream is split by deterministic change points into conditionally i.i.d. segments, and the distribution of a known segment equals some Pj.
Source-wise scores and cross-source aggregation
- Scores: Fit a shared PCA mapping Π on the merged training representations of all known sources, with output dimension at most 32, fixed in advance. Then fit per-source means and Ledoit-Wolf covariances. The nonconformity score is the Mahalanobis distance in the projected space, using the Moore-Penrose inverse when the covariance is not invertible. Larger scores mean farther from that source.
- p-values: Using that source's held-out calibration scores,
pk(x)=(1+∑i=1nk1{Rk,i≥ Sk(x)})/(nk+1). It is roughly the proportion of calibration samples at least as far from source k as x. Small pk argues against source k; evidence is Zk=−log pk.
- Window: A single small p-value may occur by chance, so average over the recent W. Jailbreak evaluations use W=10. Then take the minimum over K sources,
Ctfam=mink Ck,t. It is the evidence for the known source that best explains the recent observations; exceeding the threshold iff every known source's window average exceeds it.
- Order: Average over time first, then take the minimum over sources, so a single known source must explain the entire window. A window mixing two known sources may be inconsistent with each single source, so transition segments after KK switches can alarm (Remark 4.5). SR-DKW first takes the maximum over sources of DKW-adjusted p-values, then feeds them into a Shiryaev–Roberts recursion, accumulating over full history, without requiring a single known source to explain the entire window. Theoretical analysis focuses on Persist-3 because its finite window makes it possible to state when earlier observations no longer affect the current decision.
Persistence, forgetting, and thresholds
- Persistence: A single threshold crossing may still be due to chance. Dt is 1 iff the last L steps of Cfam are all at least the threshold. Jailbreak evaluations use L=3, hence the name Persist-3. L=3 was fixed in advance by a pilot using only known sources, as the smallest L that makes consecutive threshold crossings of length at least L rare on known-source streams. In practice, Algorithm 1 stops and escalates at the first alarm, and later Dt does not undo this escalation.
- Finite forgetting: Dt uses L overlapping windows of length W, depending only on the last B=W+L−1 observations. With W=10, L=3, B=12. Proposition 4.4: after a KK switch, once B full observations arrive and the new segment is still Pj, the decision depends only on Pj observations. If another switch occurs before B observations, there is no decision entirely after the switch, and the proposition does not apply. Full-history SR does not have this property.
- Thresholds: Use only known-source validation streams, not held-out unseen source data or labels. τ̂ is the smallest threshold on a predetermined grid such that validation stationary false alarm rate and KK alarm rate both do not exceed pre-fixed caps. When changing splits, the rule is unchanged, only τ̂ is recalibrated; W, L, scores, and aggregation are not retuned. Persist-3 uses raw split conformal p-values, not the DKW correction of Appendix F. Each observation yields one score and one p-value per known source; Persist-3 stores only the last W values per source.
- Two caps: Long-horizon requires stationary FPR≤0.01 and KK alarm rate≤0.05 on validation streams, selecting thresholds 2.556 for Persist-3, 68.69 for SR-DKW full, 2.84×10^39 for SR-RAW full, and 27.12 and 141.7 when truncated to W=10. The authors state these thresholds are on their own scales and not comparable across methods. Short-horizon frozen experiments use caps 0.031313 and 0.051678, with original split τ̂≈2.386 and robust re-split τ̂=2.374.
How to interface with guardrails after alarm
- Joint action: Gt indicates whether the unmodified prompt-level guardrail intervenes on that prompt. The monitor escalates every prompt from the alarm step onward, including the alarm prompt itself. The joint action is the logical OR of the two: the guardrail continues to filter prompt by prompt, and the monitor only decides from when to escalate the entire subsequent segment. Escalation is not undone when old observations leave the window. The authors state finite forgetting constrains the statistic Dt, not the activated escalation.
- Optional registration: Under the conditional exchangeability of Corollary B.6, after alarm one can use new labeled calibration blocks to register the detected source into the enlarged source family, and discuss coverage of the resulting prediction set. The authors state this is not an efficiency claim and is not part of the empirical claims.
What experiments did the paper conduct?
On the long-horizon KU detection rate, SR-DKW is 0.648 and Persist-3 is 0.458; on MTK the increments are 10.0 and 7.4 percentage points, respectively.
Experimental setup
- Victim models: Llama2-7B-chat, Qwen2.5-7B-Instruct, Gemma-2-9B-it, Llama-3.1-8B-Instruct. The configuration table in Appendix K abbreviates the first three as Llama-2, Qwen, Gemma. The layered replay is written as Llama-2-7B-chat.
- Data and attack sources: AdvBench/Harmful Behaviors and HarmBench. The eleven sources are ADC, AutoDAN-Turbo, Direct Request, Distribution Jailbreak, FlipAttack, GCG, Human Jailbreaks, Jailbreak-Zero, PAIR, SimBAja, TAP. Each time one source is held out as unseen, the rest are known; the held-out source does not enter training, calibration, or validation.
- Scale and splits: Section 5.1–5.2 use 50/25/25 train/calibration/test splits with seeds {0, 7, 11, 23, 42}, giving 330 full leave-one-source-out configurations. An additional 5 configurations with AdvBench, Gemma, and held-out Distribution Jailbreak failed and are not counted. Section 5.3 is a separate 50-configuration offline replay.
- Protocol: The main comparison is long-horizon: each stream has H=1000, with KK and KU streams switching at ν=501. Short-horizon uses 40 observations per segment. Thresholds for each method are frozen before KU evaluation, using only known-source validation streams, and tested on the same streams.
- Metrics: A stationary stream is a single known source with no switch. Stationary FPR is the proportion of stationary streams with any alarm; KK alarm rate is the proportion of KK streams with any alarm; KU detection rate is the proportion of KU streams where the first alarm falls after the switch, i.e., in [ν, H]. Streams that alarm before the switch are not reopened and count as missed. Intervals come from bootstrap over held-out sources.
- Judgment: No LLM judge. Layered evaluation uses cached jailbreak success labels; interception assumes escalation can block harmful responses. The paper does not report human review of this assumption or reviewer and human agreement.
Main results
Table 1 reports by method rather than by victim model. Conditions are H=1000, ν=501; thresholds are selected on known-source validation streams at stationary FPR≤0.01 and KK alarm rate≤0.05. Stationary FPR is given as counts.
Swipe horizontally to read the table
Method Stationary FPR KK alarm rate KU detection rate Persist-3 0/1835 0.006 [0.004, 0.007] 0.458 [0.335, 0.627] SR-DKW full 0/1835 0.003 [0.002, 0.005] 0.648 [0.490, 0.793] SR-RAW full 8/1835 0/10640 0.720 SR-DKW W=10 0/1835 0.003 0.377 SR-RAW W=10 4/1835 0.005 0.545 Intervals for the two SR-RAW rows and the two truncated rows are not given in Table 1. The paper does not break the table down by victim model.
- The authors state that full-history accumulation and finite windows trade off: the former detects more unseen sources, while the latter's decisions depend only on recent observations. SR-RAW has higher KU detection, but its stationary alarm count is not 0.
- The authors state that within the same SR family, truncating the recursion to W=10 reduces KU detection because weak but persistent evidence must accumulate before crossing the threshold.
- Paired-stream checks in Appendix I.3: across 330 configurations, on two streams that differ before the switch and are identical after, Persist-3 makes the same decisions from B=12 steps onward; full-history SR states still differ, with median absolute difference 3.01. The authors state this is consistent with Proposition 4.4, while full-history SR retains pre-switch evidence in its state.
Recent source separation
- What was measured: After freezing the detector, the average −log pk over test prompts estimates the minimum source-wise margin of each held-out source relative to the threshold, against Corollary 4.7: an unseen source close to a known source is harder to detect.
- Results: Across the eleven held-out attack methods, Pearson r=0.98 [0.94, 1.00], Spearman ρ=0.95 [0.70, 1.00]. Robust re-splitting gives Pearson r=0.981 [0.947, 0.995]. The Figure 4 caption writes the original split's Pearson r as 0.981. Appendix I.1 states these are observational associations, not an independent test of the theory.
- Authors' interpretation: The authors state that attack methods with small margin to at least one known source are hard to detect, consistent with Corollary 4.7. Source-level median delay on detected streams is positively correlated with that margin (Pearson r=0.84 [0.70, 0.96]); the authors state this association is selection-influenced and do not treat it as a test of Corollary B.5.
Interception layered on guardrails
- What was measured: Unmodified MTK or Prompt Guard 2, comparing the guardrail alone versus adding Persist-3 or SR-DKW. Offline replay of 50 AdvBench, Llama-2-7B-chat configurations, containing 1,729 originally successful attack occurrences (counted by occurrence, including known-source successes before the switch on KU streams, 18 to 77 per configuration). The paper states the underlying number of distinct prompts could not be determined from saved files. Known-source streams report only escalation frequency; unseen sources look at the proportion of originally successful attacks intercepted on KU streams. Rates are averaged over configurations.
Swipe horizontally to read the table
System block rate extra KU interventions KK interventions yield MTK 39.7% 0.0 62.2% – MTK+Persist-3 47.1% (+7.4 [3.3, 11.8]) 8.0% 63.4% (+1.1) 7.28 MTK+SR-DKW 49.7% (+10.0 [4.1, 16.1]) 10.9% 62.7% (+0.4) 7.66 PG2 30.4% 0.0 31.0% – PG2+Persist-3 37.4% (+7.0 [2.6, 12.6]) 12.1% 32.7% (+1.7) 5.32 PG2+SR-DKW 40.0% (+9.6 [2.8, 18.8]) 16.1% 31.7% (+0.7) 5.83 Per Table 2. Increment intervals are 95% bootstrap intervals. The introduction summarizes the four increments as 7.0 to 10.0 percentage points.
- The authors state all four increment intervals are above 0; in this replay, SR-DKW's KU stream detection is 0.851, Persist-3's is 0.640, and SR-DKW's block rate is 2.6 percentage points higher on both guardrails. Appendix L states these detection rates are not comparable to Table 1. The authors state no intervals were computed for paired differences between the two monitors, so no statistical claim is made on paired comparisons.
- Appendix L.2 states: under monotone or policy-based increments, the increment is non-negative by construction; a positive increment shows the trigger fires on streams still containing successful attacks, but does not by itself show that a source-aware trigger is more valuable than another trigger with the same alarm budget. In Table 13, the inherited Persist-3 validation KK alarm rate is 0.103, above the 0.05 cap imposed on Self-Risk, so Section 5.3 is not budget-matched. Self-Risk has no additional successful interceptions on MTK; on PG2 it has 2 additional KU prompt interventions and no additional successful interceptions, with yield 0. The authors state the calibration is inconsistent, so this does not rule out that a time-based escalation rule under another calibration could also increase protection.
- The history-independent policy comparison in Appendix L.6 uses a different protocol (5720 prompts, 301 previously successful attack prompts, 55 configurations). The authors state it is not a baseline for the Table 2 increments, nor an independent confirmation of Section 5.3.
Other ablations and analyses
- Short-horizon Table 4 (330 configurations, 40 per segment): Persist-3 test KU 0.4663, FPR 0.0000, KK 0.0349; single threshold crossing KU 0.3755; SR-DKW 0.6926; SR-RAW 0.7990; mean-p 0.2148; min-kNN 0.1569. The raw Mahalanobis variant has no feasible point on the predetermined grid; length-aligned CUSUM has KU detection 0.
- L (Table 6, recalibrated by L): L=1 KU 0.207, FPR 0.016; L=3 KU 0.467, mean delay on detected streams 8.94; L=4 KU 0.521, delay 9.99. The authors state L=3 was fixed in advance and not reselected using KU results.
- PCA dimension (Table 7): d=8 KU 0.353, d=32 0.467, d=64 0.465; KK alarm rates range 0.029 to 0.040. The authors state intervals overlap across dimensions, so differences are descriptive; d=32 was fixed in advance.
- Window (Table 5): W=5 test KU 0.5723, FPR 0.0191, KK 0.0593; W=10 KU 0.4663, FPR 0.0000, KK 0.0349. The authors state W=3 and W=5 are not better than W=10 on all three of FPR, KK, and KU, and W is not selected by KU.
- Robust re-splitting (Table 8, τ̂=2.374): stationary alarms 10/2425 (FPR 0.0041), KK alarm rate 0.044, KU detection 0.414 [0.282, 0.589]. The authors state it re-splits the same cached embedding pool, is not independent data, and the two sets of results are not combined.
- Short dwell (Table 9, frozen W=10, L=3, τ̂=2.386): unseen source consecutive switches, D=3 segments detection 0.34, episode detection 0.75; alternating with known sources segment detection 0.08, episode detection 0.61. Figure 5b: in the original split, 507 of 10640 KK episodes have a first alarm after the switch, and 507/507 have d≤11; the paper states 507/10640 is not comparable to Table 8's KK alarm rate of 0.035. The authors state detectability varies across victim models and attack sources (Appendix H.2); the Figure 5a caption shows KU detection for the eleven held-out attack sources, and the main text does not give per-model numbers.
What are some points that can be further explored?
The authors list asymptotic analysis as future work and state that fully adaptive attackers are not within the theorems or stress tests.
Limitations and future directions noted by the authors
- Asymptotic behavior (Section 6): The authors write that a future direction is to analyze the asymptotic behavior of the detector as more online data arrive.
- Fully adaptive attacker (Appendix H.7): The authors state that a fully adaptive attacker who can observe the detector state and switch to break the evidence interval is not covered by the theorems or the stress test.
- Post-alarm registration (Appendix B): The authors state that the empirical claims do not include a validated post-alarm registration evaluation; Corollary B.6 describes conditional downstream use, not an experimentally demonstrated coverage recovery procedure.
Experimental coverage
- The victim models in the source detection experiments are Llama2-7B-chat, Qwen2.5-7B-Instruct, Gemma-2-9B-it, and Llama-3.1-8B-Instruct; the benchmarks are AdvBench/Harmful Behaviors and HarmBench; there are 11 attack sources and 330 full configurations; Appendix K additionally records 5 failed configurations.
- The main comparison uses the long-horizon setting H=1000, ν=501, with thresholds selected on known-source validation streams at stationary FPR≤0.01 and KK alarm rate≤0.05; the short-horizon protocol uses 40 observations per segment. The compared detectors are Persist-3, SR-DKW, and SR-RAW.
- The layered intervention is an offline replay of 50 AdvBench, Llama-2-7B-chat configurations, with guardrails being unmodified MTK and Prompt Guard 2, and the denominator is 1,729 originally successful attack occurrences. Appendix L.1 states that this replay reuses the AdvBench and Llama-2 subsets from the original split, is not independent data collection, and is narrower in scope than the four-model source detection study.
- Appendix C states that the benchmark replay is not compared with the two stream-level defenses of Piet et al. (2025). Appendix L.2 states that experiments re-calibrating Persist-3, SR-DKW, and Self-Risk under the same known-source validation cap and the same escalation policy before evaluating on KU streams are not reported.
- Intervals come from bootstrap over held-out sources; the appendix diagnostics state 5000 iterations, seed 11. Online detection does not use Yt. The paper does not report reviewer and human agreement.
Summarize the main content of the paper
Persist-3 uses a finite window to test whether the attack stream goes beyond known jailbreak sources; its detection rate is lower than the full-history SR-DKW, but decisions depend only on recent observations.
Persist-3 is a finite-memory sequential detector that determines whether the attack representation stream can no longer be explained by any known jailbreak source.
- Problem: New attack methods continue to appear after deployment. The authors test not whether a single prompt is harmful, but whether the current segment's distribution falls outside the known source set; switches among known sources remain under the null hypothesis.
- Approach: Shared PCA (dimension at most 32) and source-specific Mahalanobis scores are applied to hidden representations before the victim model returns a response, then converted to split conformal p-values. Persist-3 averages −log p over the most recent 10 items per source, takes the minimum over sources, and requires that minimum to exceed a threshold calibrated only on known sources for 3 consecutive steps. One decision depends only on the most recent 12 items. SR-DKW instead accumulates DKW-adjusted source-specific evidence along the full history via Shiryaev–Roberts. After an alarm, the stream is escalated above the unchanged guardrails, and the alarm is not revoked when the window slides out.
- Detection: At H=1000, ν=501, with validation caps of stationary FPR≤0.01 and KK alarm rate≤0.05, Persist-3's KU detection rate is 0.458 [0.335, 0.627], SR-DKW full is 0.648 [0.490, 0.793], and both have stationary FPR of 0/1835 (Table 1). Truncating SR-DKW to W=10 lowers the KU detection rate to 0.377.
- Separation and guardrails: Across eleven held-out attack methods, the estimated nearest-source separation and KU detection have Pearson r = 0.98 [0.94, 1.00]. In replay over 50 AdvBench, Llama-2-7B-chat configurations, Persist-3 increases MTK's block rate by 7.4 percentage points and Prompt Guard 2's by 7.0 percentage points; SR-DKW increases them by 10.0 and 9.6 percentage points, respectively (Table 2). The authors state that interception assumes escalation prevents harmful responses.
- Authors' conclusions: Observations before a switch no longer affect Persist-3's decision after W+L−1 steps, and detection power is controlled by the minimum evidence interval over known sources. The authors state that if detecting unseen sources is the priority, use SR-DKW; if decisions must depend only on recent observations, use Persist-3 (Table 11). Future directions include asymptotic analysis as more online data arrive.
Related papers
- Boundary Point Jailbreaking of Black-Box LLMsAttacksarXiv