Manuscript Offprint
arXiv:2610.23030ECHO: Replacing the Compliance Proxy with Response Harmfulness in Optimization-Based Jailbreak Attack
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Despite extensive safety alignment, large language models remain vulnerable to jailbreak attacks. Existing optimization-based attacks share a single objective: maximize a token-level proxy of victim compliance—such as the likelihood of an affirmative prefix—computed on the prompt rather than the decoded reply. This proxy cannot distinguish a cautious hedge from a fully actionable harmful answer, leaving the search blind to what the model actually says. We propose ECHO (Evaluation-Conditioned Harmfulness Optimization), which replaces the compliance proxy with response-level, continuous harmfulness scores from HarmSig, a 1.7B regressor grounded in actual harmful capability. ECHO couples HarmSig with five word-level perturbation operators and Keyword-Anchored Beam Search with global top-m memory, under a strict black-box threat model. Across five open-weight victims on AdvBench, ECHO achieves up to 0.898 StrongREJECT mean score and 89.23% HarmBench success. Our code is publicly available at https://github.com/STANWYW/echo.
1 Introduction
Large language models (LLMs) are increasingly deployed in high-stakes products, yet they remain vulnerable to jailbreak attacks: adversarial prompts that bypass safety alignment and elicit disallowed content (Zou et al., 2023; Wei et al., 2023). Efficient jailbreak methods are crucial because they expose vulnerabilities in deployed APIs and supply adversarial prompts that downstream defenses such as adversarial fine-tuning, refusal training, and circuit breakers all consume at scale (Krauß et al., 2025; Zhao et al., 2026).
Existing jailbreaks fall into three families. Handcrafted jailbreaks (Liu et al., 2025; Li et al., 2024)

Figure 1: Comparison between compliance proxy-based and response-level harmfulness score-based jailbreak.
bake exploration into fixed prompt templates, capping diversity at author-supplied motifs. LLM-Generated jailbreaks (Chao et al., 2025; Mehrotra et al., 2024) refine prompts through an attacker model, paying its inference cost at every iteration and inheriting its stylistic biases. Optimization-based jailbreaks overcome both limitations—they require no human-crafted template and no attacker model—by iteratively perturbing prompts under an explicit scoring objective; GCG (Zou et al., 2023), AutoDAN (Liu et al., 2024), and LARGO (Li et al., 2025) all instantiate the same template under different search machinery—maximize the likelihood that the victim begins its reply with an affirmative compliance prefix such as “Sure, here is…” (Figure 1, left). DSN (Zhou et al., 2025) and AdvPrefix (Zhu et al., 2025) already document that this proxy is misspecified—prompts that “win” the prefix loss often elicit incomplete or unfaithful harmful content—and propose remedies (refusal-token suppression; per-model prefix targets) that nonetheless remain inside the compliance-matching family. The shared blind spot is that none of these objectives looks at whether the response itself is harmful. A compliance proxy cannot rank neighboring prompts by what their replies actually deliver—a cautious hedge and a fully actionable harmful answer can score identically—which is precisely the discrimination an optimizer needs.
That motivates a research question: can we drive optimization-based jailbreak search using only the harmfulness of the model's own decoded response? Doing so requires a scoring function on the full response that is (i) continuous, providing ordering between neighboring candidates rather than a binary success/failure label; (ii) fast, scoring each response in a single lightweight forward pass to fit inside an inner search loop that touches thousands of branches per goal; and (iii) grounded in actual harmful capability, assessing whether a response genuinely enables the malicious goal rather than correlating with surface safety cues. Binary metrics such as refusal-prefix ASR and the HarmBench classifier lack (i); API-based rubrics like StrongREJECT (Souly et al., 2024) and large-model safety classifiers such as Llama Guard (Inan et al., 2023) lack (ii); satisfying (iii) at the speed required by (ii) is what makes the scorer hard to build.
We answer this question affirmatively by proposing ECHO (Evaluation-Conditioned Harmfulness Optimization), a black-box optimization framework whose search objective is response harmfulness rather than token-level compliance. ECHO has three components. (1) HarmSig, a 1.7B regressor distilled from three frontier teacher judges on 29,744 real jailbreak-trajectory responses, supplies the fast continuous harmfulness signal demanded by (i)–(iii). (2) Five word-level perturbation operators propose one-hop neighbors of the malicious goal under a keyword-validity constraint. (3) Keyword-Anchored Beam Search, a keyword-anchored beam augmented with a global top-m memory, optimizes the HarmSig signal over operator trajectories. The full pipeline runs under a strict black-box threat model, which means it needs no gradients, no logits, no attacker LLM, no jailbreak templates, no affirmative target, and operates in a single turn. We evaluate on AdvBench (Zou et al., 2023) across five open-weight victims under StrongREJECT and HarmBench classifier (Mazeika et al., 2024). ECHO reaches up to 0.898 StrongREJECT score and 89.23% HarmBench success on Qwen2.5-7B-Instruct. Our contributions are as follows:
• We propose ECHO, a black-box optimization framework for jailbreak attacks that replaces the token-level compliance proxy with a response-level harmfulness signal, enabling the search to steer toward genuinely harmful outputs rather than surface compliance cues. Central to ECHO is HarmSig, designed specifically as a fast inner-loop scoring signal.
• We design five word-level perturbation operators with Bayesian-calibrated sampling weights, and pair them with Keyword-Anchored Beam Search—a keyword-feasibility-constrained beam augmented with a global top-m memory.
• Through controlled experiments on AdvBench across five open-weight victims and six harm categories on HarmBench, ECHO achieves 75.19–89.23% HarmBench success and ranks first under both StrongREJECT and HarmBench on every victim, while no baseline exceeds 65%.
2.1 Non-Optimization Jailbreak Attack
Handcrafted jailbreaks apply fixed or rule-based transformations to the malicious goal—text flipping (Liu et al., 2025), ASCII encoding (Jiang et al., 2024), multi-step multilingual interactions (Chan et al., 2025), few-shot role framing (Zheng et al., 2025), and rule-based restructuring of multi-turn dialogues into single-turn prompts, as in M2S (Ha et al., 2025). Related constructions include (Wei et al., 2025; Zhou et al., 2024; Anil et al., 2024; Jiang et al., 2025). Because each strategy is baked into a fixed transformation or prompt pattern with no adaptive generation loop, diversity is bounded by human creativity and the surface can be patched once identified.
LLM-Generated Jailbreaks instead delegate prompt generation to an attacker LLM: PAIR (Chao et al., 2025) and TAP (Mehrotra et al., 2024) use social-engineering or tree-search loops; GASP (Basani and Zhang, 2025) uses a language model's semantic embedding space as the search domain, applying Bayesian optimization; RedAgent (Xu et al., 2026a) adds multi-agent self-reflection; Jailbreak-R1 (Guo et al., 2025) applies RL for diversity; and AdvPrompter (Paulus et al., 2025) trains a generator toward token-level objectives. These methods address the static-template bottleneck but pay the attacker model's inference budget at every refinement and may be blocked by the attacker's own safety alignment (Kritz et al., 2025).

Figure 2: ECHO offline preparation.
2.2 Optimization-Based Jailbreak Attack
GCG (Zou et al., 2023) combines greedy coordinate search with gradients to find universal adversarial suffixes; I-GCG (Jia et al., 2025) expands it with diverse target templates and adaptive updates. AutoDAN (Liu et al., 2024) uses a hierarchical genetic algorithm for fluent prompts, while LARGO (Li et al., 2025) gradient-optimizes a continuous latent vector. ADC (Hu et al., 2024) bridges discrete and continuous optimization via dense-to-sparse constraints; CRI (LeVi et al., 2025) improves GCG initialization along compliance directions in activation space.
Despite procedural differences, a shared optimization template recurs: supervise with token-level proxies of victim compliance, not harmfulness of the full decoded reply. Affirmative-prefix likelihood drives GCG and AutoDAN (Zou et al., 2023; Liu et al., 2024); DSN (Zhou et al., 2025) adds refusal-token suppression; AdvPrefix (Zhu et al., 2025) refines per-model prefix targets; LARGO keeps compliance-style targets in a continuous latent space; TAO-Attack (Xu et al., 2026b) penalizes pseudo-harmful completions yet retains stage-one prefix supervision. AdvPrefix and DSN document surrogate misspecification but stay within this family. ECHO instead ranks prompts by HarmSig on the victim's full decoded reply.
3 Methodology
Sections 3.1–3.6 present ECHO in order: problem setup, framework overview, perturbation operators, Keyword-Anchored Beam Search, HarmSig, and Bayesian Optimization over operator weights w.
3.1 Problem Setup
Threat model. We assume black-box access to the target LLM: prompts may be submitted and

Figure 3: ECHO online search loop.
generations observed, but no parameters or gradients are available. The attacker's goal is to map a harmful user intent to some such that the model's reply is judged harmful under a scoring objective. The pipeline operates in a single turn with no conversation history, ruling out multi-turn manipulation strategies. Concretely, the threat model excludes (i) victim gradients, (ii) victim logit or probability access, (iii) an auxiliary attacker LLM, (iv) predefined jailbreak templates, (v) a fixed affirmative target string, and (vi) multi-turn interaction. Table 8 (Appendix A) situates ECHO and prior methods along these six conditions; ECHO is the only method satisfying all six simultaneously.
Optimization objective. Let denote the set of prompts reachable from via the search procedure of Sections 3.3 and 3.4. We seek
where is HarmSig (Section 3.5). Notably, this objective contains no affirmative target string: unlike GCG-family attacks that maximize , ECHO places no constraint on the lexical form of the victim’s reply. The target string is itself a proxy for compliance, not for harmfulness; eliminating it makes the optimization objective model-agnostic and grounded solely in what the decoded response actually delivers.
3.2 Framework Overview
ECHO operates in two phases: the offline preparation (Figure 2) and online search loop (Figure 3).
Offline. Two components are prepared once and then frozen. First, three frontier teacher models score a pool of 29,744 victim responses drawn from real jailbreak trajectories; their consensus labels train HarmSig F (Section 3.5). Second, Bayesian optimization searches the operator weight simplex to maximize trajectory-wise HarmSig on a validation pool V, yielding calibrated weights (Section 3.6).
Online. Given a malicious goal , ECHO runs an iterative loop. At each step, one of the five perturbation operators—sampled according to w—proposes a one-hop variant of the current prompt (Section 3.3); variants that no longer preserve the keyword vocabulary K are rejected so the malicious intent persists across surface variation. Accepted variants are sent to the target LLM; the full decoded response is scored by HarmSig F. High-scoring candidates update a width-k beam frontier and accumulate in a global top-m memory (Section 3.4). The loop terminates when any candidate reaches threshold or the step budget is exhausted.
3.3 Perturbation Operators
ECHO uses five single-step word-level neighbors over the prompt, denoted CORE, PERIPH, PRESSURE, DELETE, and SWAP. Each step samples a single operator from the categorical distribution induced by w on the simplex.
Before the search begins, ECHO derives from a keyword vocabulary K: each non-stopword content word in together with its WordNet (Miller, 1994) synonyms forms one entry. K encodes the semantic identity of the malicious intent and remains fixed throughout the search for each goal; both operators and the feasibility filter operate on K rather than directly.
CORE. Identify a token in the current candidate x that belongs to K (i.e., is a core keyword from or an already-substituted synonym thereof) and replace it with a different synonym from that keyword's synonym set, varying surface form while staying within the concept-anchored vocabulary.
PERIPH. Identify a token in the current candidate x that lies outside K—a peripheral content word not anchored to the core semantic nucleus—and replace it with a WordNet synonym, diversifying surrounding phrasing without disturbing the
Algorithm 1 Keyword-Anchored Beam Search
Require: Goal , target M, scorer F, weights w, beam width k, branch factor b, horizon T, threshold , memory size m
Ensure: Best prompt
1: keyword vocab
2:
3: global memory
4: beam ;
5: for step to T do
6: candidate pool
7: for each do
8: for to b do
9:
10: if not KEYWORDFEASIBLE then
11: continue
12: end if
13:
14: add to S; update if
15: end for
16: end for
17: if then
18: break
19: end if
20:
21: end for
22: return
concept-anchored keywords.
PRESSURE. Insert a short modifier that requests greater detail, procedural structure, or softened emphasis at a sampled position, nudging the target toward longer, more organized answers without hand-crafted jailbreak scaffolding.
DELETE. Remove a harm trigger or redundant softener only when the resulting prompt passes the keyword-feasibility check, weakening refusal cues that hinge on salient lexicon.
SWAP. Select two adjacent non-protected words and swap their order. This is a word-level analogue of a Damerau–Levenshtein transposition (Damerau, 1964): goal keywords remain intact while local n-gram patterns change.
3.4 Keyword-Anchored Beam Search
At each depth, the beam contains at most k prompts. Each prompt produces b children by sampling operators from w; keyword-infeasible children are discarded, and the responses of the remaining children are scored by F. The top k children advance to the next depth, while all accepted children are also merged into a global top-m buffer H. This process continues for at most T depths or until a response reaches threshold . These top-m responses are decoded and cached during search, so reporting best-of-m incurs no additional victim queries. Early stopping triggers when any prompt reaches threshold . The global buffer prevents “lost” high-scoring states that are pruned from the beam, while still preserving the efficiency of beam pruning at each depth.
Algorithm 1 formalizes this procedure. Other search explorers could in principle replace the breadth-limited layer, but we instantiate ECHO with the beam variant because it yields the strongest trade-off among our ablations (Section 4.5).
3.5 HarmSig: The Inner-Loop Evaluator
The scorer F is the design hinge of ECHO: it is the function that replaces compliance proxies inside the search loop, and its three requirements—continuous, fast, grounded in actual harmful capability—rule out binary classifiers and API-heavy or large-model judges. We therefore build a purpose-trained small regressor HarmSig.
HarmSig takes the victim model’s response text and emits a scalar in [0, 1]. The backbone is Qwen3-1.7B (Yang et al., 2025) with low-rank adapters on its attention projections; a two-layer MLP on the final-token hidden state followed by a sigmoid produces the predicted harmfulness . At search time, a single forward pass implements F for ranking beam children.
Supervision comes from 29,744 victim responses drawn from real jailbreak trajectories, each labeled by the mean score of three frontier teachers (Qwen3.5-27B (Qwen Team, 2026), GPT-OSS-Safeguard-20B (OpenAI, 2025), Gemma-4-26B-A4B-IT); the mean defines a continuous regression target in [0, 1]. HarmSig is trained by MSE rather than cross-entropy on binarized labels, preserving the ordering between near-neighbor prompts that beam search needs at every depth. Full training details and validation correlations appear in Appendix B.
To directly test whether the scorer choice drives ECHO’s gains, Section 4.4 replaces HarmSig with a compliance proxy scorer log computed from the victim’s logits—the exact GCG objective—inside an otherwise identical search loop. The comparison isolates the effect of the scoring function from all other design choices.
3.6 Bayesian Optimization over Operator Weights
The mixture w strongly biases which edit types appear along typical trajectories. We treat w as lying on the simplex and tune it once before fixing it for large-scale experiments. Let ECHORUN( ; w) denote Algorithm 1 with weights w and shared budgets fixed during BO for all trials.
Optimization objective. For each malicious goal in a finite validation pool , let be the largest HarmSig achieved at any prompt visited during ECHORUN( ; ). Bayesian optimization selects w maximizing
Search over weights. Coordinates undergo a softmax with a pinned fifth logit to obtain five nonnegative operator probabilities in canonical operator order (CORE, PERIPH, PRESSURE, DELETE, SWAP). Sequential experiments maximize (1) using Gaussian-process surrogate modeling with expected-improvement acquisition as implemented in scikit-optimize.
4 Experiments
4.1 Experimental Setup
Dataset. We evaluate on AdvBench (Zou et al., 2023): 520 harmful behaviors spanning illegal activity, violence, fraud, and privacy violations. AdvBench is the benchmark shared by all baselines we compare against (GCG, AutoDAN, DSN, PAIR, FlipAttack, DeepInception), enabling direct, controlled comparison. We additionally evaluate on the standard 200-behavior subset of HarmBench (Mazeika et al., 2024), spanning six semantic categories (Chemical & Biological, Cybercrime, Harassment, Harmful, Illegal, Misinformation).
Victims. We use five instruction-tuned open-weight models: Llama-2-7B-Chat and Llama-2-13B-Chat (Touvron et al., 2023), Llama-3.1-8B-Instruct (AI@Meta, 2024), Qwen2.5-7B-Instruct (Team, 2024), and Gemma-3-12B-IT (Gemma Team, 2025), covering three model families from three laboratories with distinct safety-training regimes.
ECHO configuration. Unless stated otherwise, ECHO uses beam width , branch factor , horizon , early-stop threshold , and global memory size , with operator weights
| Jailbreak Type | Method | Llama-2-7B | Llama-2-13B | Llama-3.1-8B | Qwen2.5-7B | Gemma-3-12B | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| SR | HB | SR | HB | SR | HB | SR | HB | SR | HB | ||
| Handcrafted | FlipAttack | 0.104 | 10.19 | 0.238 | 28.85 | 0.239 | 26.92 | 0.378 | 35.00 | 0.602 | 65.00 |
| DeepInception | 0.303 | 27.69 | 0.327 | 18.27 | 0.494 | 32.31 | 0.500 | 48.46 | 0.188 | 0.19 | |
| LLM-Generated | PAIR | 0.320 | 21.15 | 0.367 | 25.58 | 0.518 | 53.46 | 0.510 | 48.27 | 0.168 | 17.50 |
| Optimization | GCG | 0.088 | 7.31 | 0.216 | 30.77 | 0.303 | 30.00 | 0.421 | 46.35 | 0.117 | 0.77 |
| AutoDAN | 0.093 | 27.50 | 0.143 | 25.00 | 0.045 | 0.58 | 0.335 | 51.73 | 0.057 | 16.35 | |
| DSN | 0.385 | 54.42 | 0.174 | 17.69 | 0.357 | 40.00 | 0.568 | 64.81 | 0.161 | 6.15 | |
| ECHO (top-m=1) | 0.685 | 58.27 | 0.685 | 58.46 | 0.710 | 65.96 | 0.780 | 71.92 | 0.525 | 52.69 | |
| ECHO (top-m=25) | 0.835 | 78.27 | 0.821 | 75.19 | 0.857 | 80.38 | 0.898 | 89.23 | 0.702 | 81.54 | |
Table 1: Main baseline comparison. SR: StrongREJECT mean score . HB: HarmBench classifier success rate (%).
w fixed after Bayesian optimization on a validation pool V. Each run starts from the raw malicious goal with no jailbreak template.
Metrics. StrongREJECT (SR) (Souly et al., 2024) is a fine-tuned continuous scorer in [0, 1] designed to overcome the over-refusal bias of keyword-based ASR metrics, providing ranked comparisons between candidates. HarmBench (HB) (Mazeika et al., 2024) is a standardized binary classifier that has become the community reference for cross-paper comparison in the jailbreak literature (Basani and Zhang, 2025; Zhou et al., 2025; Zhu et al., 2025). Using two structurally different judges—one continuous, one binary—guards against conclusions that overfit a single evaluator's calibration.
4.2 Main Results
We report two selection modes. Top-m=1 provides a direct single-output comparison with the baselines, while top-m=25 reports the best of the 25 prompts retained in global memory. All 25 responses are generated and cached during the same search, so top-m=25 requires no additional victim queries.
Compliance-proxy attacks plateau on the safety-tuned Llama-3.1. GCG and AutoDAN, whose objective is exactly the affirmative-prefix likelihood, reach only 0.303 / 30.00% and 0.045 / 0.58% SR / HB, respectively, on Llama-3.1-8B-Instruct—far below ECHO's 0.857 / 80.38%. The model still produces “Sure, here is...”-style openings to many adversarial suffixes, but the body of the reply remains evasive; the compliance proxy registers these as wins while StrongREJECT correctly assigns them low scores.
DSN and PAIR partially close the gap but remain below ECHO. DSN, which augments the prefix objective with refusal-token suppression, reaches 0.568 / 64.81% on Qwen2.5-7B and 0.385 / 54.42% on Llama-2-7B, but drops to 0.174 / 17.69% on Llama-2-13B, indicating that the auxiliary signal remains sensitive to alignment regimes. PAIR reaches 0.510 / 48.27% on Qwen2.5-7B and is the only other method with competitive results on Llama-3.1-8B (0.518 SR), but it requires an auxiliary attacker LLM at inference time. Across all five victims, ECHO (top-m=25) is uniformly the strongest method under both metrics; even ECHO (top-m=1) leads on four of five victims, trailing only FlipAttack on Gemma-3-12B-IT (0.525

Figure 4: Top-m saturation across five victims (AdvBench, 520 goals). Both SR and HarmBench success rate saturate near , and their model rankings agree on four of five victims.
| ECHO optimized on ↓ | Evaluated on → | ||||
|---|---|---|---|---|---|
| Llama-2-7B | Llama-2-13B | Llama-3.1-8B | Qwen2.5-7B | Gemma-3-12B | |
| Llama-2-7B-Chat | -/- | 0.674 / 53.27 | 0.711 / 52.69 | 0.731 / 54.62 | 0.538 / 55.38 |
| Llama-2-13B-Chat | 0.661 / 52.88 | -/- | 0.709 / 53.65 | 0.731 / 50.77 | 0.544 / 53.27 |
| Llama-3.1-8B-Instruct | 0.533 / 30.77 | 0.523 / 34.81 | -/- | 0.750 / 61.15 | 0.565 / 57.88 |
| Qwen2.5-7B-Instruct | 0.458 / 28.46 | 0.436 / 27.12 | 0.690 / 60.58 | -/- | 0.588 / 63.85 |
| Gemma-3-12B-IT | 0.542 / 33.27 | 0.510 / 31.15 | 0.741 / 60.77 | 0.786 / 65.00 | -/- |
Table 2: ECHO cross-model transfer (n=520 goals, top-m=25 prompts per goal). Rows: victim used during optimization; columns: victim at evaluation. Each cell: SR@25 / HB@25 (%).
/ 52.69% vs. 0.602 / 65.00%), where ECHO (top-m=25) restores the lead (0.702 / 81.54%).
The global memory accounts for a substantial share of ECHO's gain. On every victim, top-m=25 exceeds top-m=1: Qwen2.5-7B rises from 0.780 / 71.92% to 0.898 / 89.23%, and the hardest victim, Gemma-3-12B-IT, from 0.525 / 52.69% to 0.702 / 81.54%. The beam frontier prunes candidates at every depth on the basis of local HarmSig ranking; retaining the global top-m across the full trajectory recovers strong prompts that local pruning discards.
Figure 4 traces this effect across values of . Both SR and HB curves saturate near for all five victims, confirming that sits at or past the knee of every curve and captures most available gain without excess evaluation overhead. The cross-metric consistency—SR and HB agree on model rankings in four of five cases—validates using both judges as a cross-check rather than a single evaluator. Per-category breakdowns on HarmBench confirm that these gains are consistent across all six harm domains (Appendix D).
4.3 Cross-Model Transfer
ECHO is optimized on a source model : at each search step, candidates are completed by and scored by HarmSig to expand the beam. We then freeze the top- prompts per goal from the global memory and evaluate them on a target model without further search. Table 2 reports the full grid: rows are the source during optimization, columns the target at evaluation; each cell is SR@25 / HB@25 (%) averaged over 520 goals.
Within-family transfer is efficient: Llama-2-7B and Llama-2-13B transfer symmetrically (0.661–0.674 SR), suggesting that models sharing alignment training inherit similar refusal-triggering surface patterns. Cross-family transfer is also substantial: Gemma-3-12B-IT as source reaches 0.786 / 65.00% on Qwen2.5-7B and 0.741 / 60.77% on Llama-3.1-8B-Instruct, well above all baselines in Table 1. Qwen2.5-7B as source transfers more weakly to the Llama-2 family (0.436–0.458 SR) but moderately to Llama-3.1-8B (0.690 SR); the asymmetry suggests that optimizing on a more capable victim elicits prompts targeting a different vulnerability regime than Llama-2-tuned prompts exploit. The absence of any near-zero off-diagonal entry confirms that ECHO prompts encode transferable adversarial structure rather than source-model artifacts.
| Scorer | Time (s) | SR | HB(%) |
|---|---|---|---|
| Random | 73.96 | 0.062 | 1 |
| Keyword | 74.48 | 0.099 | 2 |
| compliance proxy | 81.90 | 0.253 | 8 |
| HarmSig | 81.80 | 0.793 | 59 |
Table 3: Scorer ablation on Llama-2-7B-Chat (n=100 goals). All four variants use the same Keyword-Anchored Beam Search loop; only the inner-loop scoring function is varied. SR: mean StrongREJECT score; HB: HarmBench classifier success rate (%); Time: wall-clock seconds per goal.
4.4 Scorer Ablation
The central claim of this paper is that replacing a compliance proxy with a response-level harmfulness signal drives better jailbreaks. Table 3 tests this directly by varying only the scoring function while holding the search procedure, operator pool, victim, budget, and evaluation protocol fixed (n=100 goals on Llama-2-7B-Chat).
The four scorers span the conceptual space from uninformative to capability-grounded. Random assigns independently of the prompt or response, establishing a floor that reflects what the search achieves with no signal. Keyword counts how many non-stopwords of appear in the response:
where is the set of non-stopwords in .
This is a surface-lexical heuristic: it rewards responses that mention the malicious topic without measuring whether they enable it. Compliance proxy approximates the GCG objective by computing the mean log-probability of the affirmative prefix under the victim's logits:
where are the tokens of “Sure, here is” and is sigmoid with shift 5 to map typical log-probabilities into [0, 1]. Unlike the other three scorers, this requires white-box logit access.
The results show a clean ordering: Random < Keyword < Compliance proxy < HarmSig. Keyword is only marginally above random because a response can contain the target vocabulary without providing actionable instructions. The compliance proxy, despite having white-box logit access unavailable to HarmSig, reaches only 0.253 SR / 8% HB—roughly one-third of HarmSig's score at the same wall-clock cost. It succeeds in eliciting affirmative-sounding openings but fails to steer the body of the response toward genuine harmful content, mirroring the failure mode in Figure 1. HarmSig, which looks at the full decoded response and is calibrated against frontier-model harmfulness judgments, provides the only signal strong enough to guide the search toward actionable jailbreaks.
The Gemma-3-12B-IT SR/HB gap visible in Figure 4 reflects the difference between the two evaluation criteria. HarmBench is a binary check of whether the malicious behavior was carried out, so a response that begins to engage with the harmful request tends to be counted as jailbroken. StrongREJECT instead measures whether the response is actually harmful in a usable way. Gemma-3-12B-IT is more prone than the other victims to producing non-detailed malicious responses; these are flagged by the binary HarmBench classifier but receive low StrongREJECT scores. We therefore treat StrongREJECT as the primary metric here, as it better reflects genuine, actionable harm.
4.5 Search Ablation
Table 4 isolates the contribution of the search strategy by holding the scorer (F), operator pool, and budget fixed while varying how candidates are generated and selected (n=100 goals on Llama-2-7B-Chat; 20 steps, 50 target evaluations per step throughout). The three simplified baselines—Greedy, SA, and plain Beam—all omit keyword-feasibility enforcement, BO-calibrated operator weights, and global top-m memory; ECHO adds all three on top of beam search.
| Algorithm | Time (s) | Mean SR | HB ASR (%) |
|---|---|---|---|
| SA | 77.73 | 0.161 | 5 |
| Greedy | 78.02 | 0.376 | 21 |
| Beam | 76.58 | 0.626 | 48 |
| ECHO | 81.80 | 0.793 | 59 |
Table 4: Search ablations on Llama-2-7B-Chat (n=100 goals, HarmSig scorer fixed). Beam, Greedy, and SA omit keyword-feasibility, BO weights, and global memory; ECHO adds all three.
Greedy is a batch hill-climber: each step generates mutations from the current global-best prompt and accepts the argmax. Simulated annealing (SA) generates the same batch from the current state but selects the next state proportionally to Boltzmann weights under a geometrically decaying temperature, tracking the global best separately. Plain Beam maintains a frontier of k=10 partial solutions; each step, every frontier member spawns b=5 children and the top-k survivors advance.
Beam search substantially outperforms both single-point strategies, confirming that maintaining a diverse frontier is valuable when the harmfulness landscape contains multiple distinct trajectory directions. SA performs worst despite exploring the space more aggressively: the Boltzmann acceptance criterion can move to weaker candidates, and under HarmSig feedback this disrupts rather than benefits the trajectory within the 20-step budget. Greedy avoids this degradation but converges to a single line of descent, missing high-scoring regions reachable only via alternative early choices.
ECHO closes the remaining gap by adding keyword-feasibility enforcement (which concentrates mutations on semantically valid prompts), BO-calibrated operator weights (which shift probability toward operators empirically most effective on the HarmSig objective), and a global top-m memory that rescues high-scoring candidates pruned from the beam at earlier depths. These additions yield +0.167 mean SR and +11 HB points over plain beam (0.626 / 48% → 0.793 / 59%).
4.6 Additional Experiments
Query budget and runtime. Under the default configuration, ECHO makes at most 1000 victim queries per goal. Early stopping reduces this to 877 queries per goal on average. Table 5 reports the
| Method | Time / goal (s) |
|---|---|
| AutoDAN | 357.15 |
| GCG | 126.23 |
| DSN | 63.22 |
| ECHO | 81.80 |
Table 5: Average online runtime per goal on Llama-2-7B-Chat over 100 AdvBench goals.
| Model | HB | Annotator A | Annotator B |
|---|---|---|---|
| Qwen2.5-7B | 80% | 78% | 80% |
| Llama-2-13B | 62% | 63% | 65% |
| Pooled | 71.0% | 70.5% | 72.5% |
Table 6: Blinded human validation on 200 ECHO responses. HB denotes HarmBench attack success rate.
average online runtime on Llama-2-7B-Chat over the same 100 AdvBench goals used in the ablation experiments. On NVIDIA RTX PRO 6000, ECHO takes 81.80 seconds per goal, making it faster than GCG and AutoDAN but slower than DSN.
Blinded human validation. To validate that the automated attack-success results correspond to genuinely harmful and actionable responses, two annotators independently evaluate ECHO's top- outputs without access to HarmSig, StrongREJECT, or HarmBench scores. We use the same 100-goal subset as the ablation experiments and evaluate Qwen2.5-7B-Instruct and Llama-2-13B-Chat, yielding 200 responses in total. As shown in Table 6, both annotators closely track HarmBench, and their inter-annotator agreement reaches with Cohen's .
5 Conclusion
We presented ECHO, a black-box jailbreak framework that replaces the token-level compliance proxy with response-level harmfulness scored by HarmSig, a 1.7B regressor distilled from three frontier teacher judges on 29,744 jailbreak-trajectory responses. Coupled with five word-level perturbation operators and Keyword-Anchored Beam Search, ECHO outperforms every baseline on AdvBench across five open-weight victims. A direct scorer-swap ablation isolates the source of the gain: even with white-box logit access, the compliance proxy achieves only 0.253 mean SR and HarmBench, while HarmSig reaches 0.793 and under fully black-box conditions. ECHO-generated prompts also transfer across model families without further search, confirming portable adversarial structure. More broadly, this indicates that current safety alignment remains brittle to surface-level edits once the search signal attends to the decoded response rather than its opening tokens.
| Comparison | Agreement | Cohen's κ |
|---|---|---|
| HB vs. Annotator A | 94.5% | 0.87 |
| HB vs. Annotator B | 91.5% | 0.79 |
| Annotator A vs. B | 95.0% | 0.88 |
Table 7: Agreement between HarmBench and the blinded human annotators.
Limitations
Commercial systems combine model alignment with independent input/output safety classifiers, which can further reduce ECHO's attack success. ECHO's large query budget also makes direct optimization against such APIs costly. Zero-query transfer avoids this optimization cost, but transfer to GPT-5.4 achieves only HarmBench success under top- (Appendix H). These unobserved safety objectives remain a limitation for closed-source deployment.
Our multilingual evaluation covers only French and German. Extending ECHO to non-alphabetic or mixed writing systems such as Chinese and Japanese remains challenging because its word-level operators and keyword constraints depend on reliable segmentation and lexical resources, whose coverage may also be limited for technical terms and neologisms.
Ethical Considerations
This work presents jailbreak attack methods with the goal of advancing LLM safety research. We acknowledge the dual-use nature of this research: while our techniques are designed to systematically evaluate and expose vulnerabilities in safety alignment, they could potentially be misused to elicit harmful content from deployed models. The primary risk is that ECHO lowers the technical barrier to generating effective jailbreak prompts. We mitigate this risk by conducting experiments in a controlled setting and limiting the commercial-model evaluation to zero-query transfer without target-side optimization.
We believe the benefits of this work outweigh the risks for several reasons. First, understanding attack vectors is essential for developing robust defenses—security research has long operated under the principle that identifying vulnerabilities enables their remediation. Second, the diverse jailbreak prompts generated by ECHO can serve as valuable training data for improving safety alignment and developing more effective content filters.
Third, our black-box methodology reflects realistic threat models that defenders must already consider.
To promote responsible use, we emphasize that this research is intended for defensive purposes: helping model developers identify weaknesses, creating adversarial training datasets, and informing the design of more robust alignment techniques. We advocate for responsible disclosure practices and encourage researchers building on this work to prioritize defensive applications.
Acknowledgments
We appreciate the anonymous reviewers for their practical feedback on this paper. This work was partially supported by NSFC under Grant Nos. 62272222 and 62272215, the Jiangsu Province Outstanding Youth Fund Project under Grant No. BK20230080, and the University of Macau under Grant Nos. MYRG-GRG2025-00111-FST and EF2025-00141-FST.
References
AI@Meta. 2024. Llama 3 model card.
Cem Anil, Esin Durmus, Nina Panickssery, Mrinank Sharma, Joe Benton, Sandipan Kundu, Joshua Batson, Meg Tong, Jesse Mu, Daniel Ford, and 1 others. 2024. Many-shot jailbreaking. Advances in Neural Information Processing Systems, 37:129696–129742.
Advik Basani and Xiao Zhang. 2025. GASP: Efficient black-box generation of adversarial suffixes for jail-breaking LLMs. In Advances in Neural Information Processing Systems, volume 38, Main Conference, pages 146413–146458. Curran Associates, Inc.
Yik Siu Chan, Narutatsu Ri, Yuxin Xiao, and Marzyeh Ghassemi. 2025. Speak easy: Eliciting harmful jailbreaks from LLMs with simple interactions. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 7306–7331. PMLR.
Patrick Chao, Alexander Robey, Edgar Dobriban, Hamed Hassani, George J. Pappas, and Eric Wong. 2025. Jailbreaking black box large language models in twenty queries. In 2025 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), pages 23–42, Los Alamitos, CA, USA. IEEE Computer Society.
Fred J Damerau. 1964. A technique for computer detection and correction of spelling errors. Communications of the ACM, 7(3):171–176.
Gemma Team. 2025. Gemma 3 technical report.
Weiyang Guo, Zesheng Shi, Zhuo Li, Yequan Wang, Xuebo Liu, Wenya Wang, Fangming Liu, Min Zhang, and Jing Li. 2025. Jailbreak-R1: Exploring the jailbreak capabilities of LLMs via reinforcement learning. arXiv preprint arXiv:2506.00782.
Junwoo Ha, Hyunjun Kim, Sangyoon Yu, Haon Park, Ashkan Yousefpour, Yuna Park, and Suhyun Kim. 2025. M2S: Multi-turn to single-turn jailbreak in red teaming for LLMs. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 16489–16507, Vienna, Austria. Association for Computational Linguistics.
Kai Hu, Weichen Yu, Yining Li, Tianjun Yao, Xiang Li, Wenhe Liu, Lijun Yu, Zhiqiang Shen, Kai Chen, and Matt Fredrikson. 2024. Efficient LLM jailbreak via adaptive dense-to-sparse constrained optimization. In Advances in Neural Information Processing Systems, volume 37, pages 23224–23245. Curran Associates, Inc.
Hakan Inan, Kartikeya Upasani, Jianfeng Chi, Rashi Rungta, Krithika Iyer, Yuning Mao, Michael Tontchev, Qing Hu, Brian Fuller, Davide Testuggine, and Madian Khabsa. 2023. Llama Guard: LLM-based input-output safeguard for human-AI conversations. Preprint, arXiv:2312.06674.
Xiaojun Jia, Tianyu Pang, Chao Du, Yihao Huang, Jindong Gu, Yang Liu, Xiaochun Cao, and Min Lin. 2025. Improved techniques for optimization-based jailbreaking on large language models. In International Conference on Learning Representations, volume 2025, pages 6337–6358.
Fengqing Jiang, Zhangchen Xu, Luyao Niu, Zhen Xiang, Bhaskar Ramasubramanian, Bo Li, and Radha Poovendran. 2024. ArtPrompt: ASCII art-based jailbreak attacks against aligned LLMs. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15157–15173.
Yukun Jiang, Mingjie Li, Michael Backes, and Yang Zhang. 2025. Adjacent words, divergent intents: Jailbreaking large language models via task concurrency. In Advances in Neural Information Processing Systems, volume 38, Main Conference, pages 147041–147071. Curran Associates, Inc.
Torsten Krauß, Hamid Dashtbani, and Alexandra Dmitrienko. 2025. TwinBreak: Jailbreaking LLM security alignments based on twin prompts. In 34th USENIX Security Symposium (USENIX Security 25), pages 2343–2362, Seattle, WA. USENIX Association.
Jeremy Kritz, Vaughn Robinson, Robert Vacareanu, Bijan Varjavand, Michael Choi, Bobby Gogov, Scale Red Team, Summer Yue, Willow E. Primack, and Zifan Wang. 2025. Jailbreaking to jailbreak. Preprint, arXiv:2502.09638.
Amit LeVi, Rom Himelstein, Yaniv Nemcovsky, Avi Mendelson, and Chaim Baskin. 2025. Jailbreak attack initializations as extractors of compliance directions. In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 6672–6705, Suzhou, China. Association for Computational Linguistics.
Ran Li, Hao Wang, and Chengzhi Mao. 2025. LARGO: Latent adversarial reflection through gradient optimization for jailbreaking LLMs. In Advances in Neural Information Processing Systems, volume 38, Main Conference, pages 44612–44631. Curran Associates, Inc.
Xuan Li, Zhanke Zhou, Jianing Zhu, Jiangchao Yao, Tongliang Liu, and Bo Han. 2024. DeepInception: Hypnotize large language model to be jailbreaker. In Neurips Safe Generative AI Workshop 2024.
Xiaogeng Liu, Nan Xu, Muhao Chen, and Chaowei Xiao. 2024. AutoDAN: Generating stealthy jailbreak prompts on aligned large language models. In International Conference on Learning Representations, volume 2024, pages 56174–56194.
Yue Liu, Xiaoxin He, Miao Xiong, Jinlan Fu, Shumin Deng, Yingwei Ma, Jiaheng Zhang, and Bryan Hooi. 2025. FlipAttack: Jailbreak LLMs via flipping. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 38623–38663. PMLR.
Mantas Mazeika, Long Phan, Xuwang Yin, Andy Zou, Zifan Wang, Norman Mu, Elham Sakhaee, Nathaniel Li, Steven Basart, Bo Li, David Forsyth, and Dan Hendrycks. 2024. HarmBench: A standardized evaluation framework for automated red teaming and robust refusal. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 35181–35224. PMLR.
Anay Mehrotra, Manolis Zampetakis, Paul Kassianik, Blaine Nelson, Hyrum Anderson, Yaron Singer, and Amin Karbasi. 2024. Tree of attacks: Jailbreaking black-box LLMs automatically. Advances in Neural Information Processing Systems, 37:61065–61105.
George A. Miller. 1994. WordNet: A lexical database for English. In Human Language Technology: Proceedings of a Workshop held at Plainsboro, New Jersey, March 8-11, 1994.
OpenAI. 2025. gpt-oss-120b & gpt-oss-20b model card. Preprint, arXiv:2508.10925.
Anselm Paulus, Arman Zharmagambetov, Chuan Guo, Brandon Amos, and Yuandong Tian. 2025. AdvPrompter: Fast adaptive adversarial prompting for LLMs. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 48439–48469. PMLR.
Qwen Team. 2026. Qwen3.5: Towards native multimodal agents.
Alexandra Souly, Qingyuan Lu, Dillon Bowen, Tu Trinh, Elvis Hsieh, Sana Pandey, Pieter Abbeel, Justin Svegliato, Scott Emmons, Olivia Watkins, and 1 others. 2024. A StrongREJECT for empty jailbreaks. Advances in Neural Information Processing Systems, 37:125416–125440.
Qwen Team. 2024. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115.
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, and 1 others. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288.
Alexander Wei, Nika Haghtalab, and Jacob Steinhardt. 2023. Jailbroken: How does LLM safety training fail? Advances in Neural Information Processing Systems, 36:80079–80110.
Zhipeng Wei, Yuqi Liu, and N. Benjamin Erichson. 2025. Emoji attack: Enhancing jailbreak attacks against judge LLM detection. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 66103–66117. PMLR.
Huiyu Xu, Wenhui Zhang, Zhibo Wang, Feng Xiao, Rui Zheng, Zhongjie Ba, and Kui Ren. 2026a. RedAgent: An autonomous agent for context-aware red teaming of LLM jailbreaks. IEEE Transactions on Dependable and Secure Computing, 23(3):6506–6521.
Zhi Xu, Jiaqi Li, Xiaotong Zhang, Hong Yu, and Han Liu. 2026b. TAO-Attack: Toward advanced optimization-based jailbreak attacks for large language models. In The Fourteenth International Conference on Learning Representations.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, and 41 others. 2025. Qwen3 technical report. Preprint, arXiv:2505.09388.
Jiahao Yu, Xingwei Lin, Zheng Yu, and Xinyu Xing. 2023. GPTFUZZER: Red teaming large language models with auto-generated jailbreak prompts. arXiv preprint arXiv:2309.10253.
Chongwen Zhao, Yutong Ke, and Kaizhu Huang. 2026. Unraveling LLM jailbreaks through safety knowledge neurons. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1889–1906, Rabat, Morocco. Association for Computational Linguistics.
Weixiong Zheng, Peijian Zeng, Yiwei Li, Hongyan Wu, Nankai Lin, Junhao Chen, Aimin Yang, and Yongmei Zhou. 2025. Jailbreaking? one step is enough! In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 11623–11642.
Yukai Zhou, Jian Lou, Zhijie Huang, Zhan Qin, Sibei Yang, and Wenjie Wang. 2025. Don’t say no: Jailbreaking LLM by suppressing refusal. In Findings of the Association for Computational Linguistics: ACL 2025, pages 25224–25249.
Yuqi Zhou, Lin Lu, Ryan Sun, Pan Zhou, and Lichao Sun. 2024. Virtual context: Enhancing jailbreak attacks with special token injection. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 11843–11857, Miami, Florida, USA. Association for Computational Linguistics.
Sicheng Zhu, Brandon Amos, Yuandong Tian, Chuan Guo, and Ivan Evtimov. 2025. AdvPrefix: An objective for nuanced LLM jailbreaks. In Advances in Neural Information Processing Systems, volume 38, Main Conference, pages 89990–90014. Curran Associates, Inc.
Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J Zico Kolter, and Matt Fredrikson. 2023. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043.
A Threat-Model Comparison
Optimization-based jailbreak attacks differ substantially in what resources they require from the attacker. Table 8 situates 21 representative methods along six conditions drawn from the threat model of Section 3.1: whether the attack can operate without victim gradients, without victim logit or probability access, without an auxiliary attacker LLM, without predefined jailbreak scaffolding, without a fixed affirmative target string, and within a single interaction turn. A ✓ indicates the method satisfies the condition; a × indicates it requires the resource. ECHO is the only method in the comparison that simultaneously satisfies all six conditions.
B HarmSig Student Training
Data and inputs. The HarmSig student is trained on the scored pool tied to Section 3.5: after merging raw jailbreak responses with an augmented scoring pool, we obtain 29,744 examples with consensus teacher labels in [0, 1]. The data are generated locally: an uncensored LLM proposes malicious goals, and existing jailbreak attacks elicit the corresponding responses. To prevent benchmark leakage, we initialize a deduplication pool with AdvBench and HarmBench goals, normalize each candidate by lowercasing and removing punctuation, reject it if its character-level 5-gram Jaccard similarity to any pooled goal is at least 0.88, and immediately add each accepted goal to the pool. We reserve 4,460 examples for validation and train on the remaining 25,284. Each training step encodes only the victim response, tokenized with truncation to 1,024 subwords.
Optimization. We optimize with AdamW ( weight decay 0.01), using learning rate for the MLP head and for LoRA-adapted backbone parameters. LoRA uses rank , scaling , dropout 0.05, applied to attention projections (query, key, value, output). The schedule is linear warmup over the first 5% of optimizer steps, then cosine decay to zero. We train for three epochs with batch size 4 and gradient accumulation 4 (effective batch 16 per update), clipping gradients at norm 1. Training batches are sampled with label-dependent weights that upweight higher-harm examples so rare high scores are not drowned out by refusal-dominated text.
Validation. We checkpoint the weights that maximize Spearman rank correlation between predicted and teacher scores on the 4,460 held-out responses.
| Type | Method | No grad. | No logits | No att. LLM | No template | No aff. target | Single turn |
|---|---|---|---|---|---|---|---|
| Handcrafted | FlipAttack (Liu et al., 2025) | ✓ | ✓ | ✓ | × | ✓ | ✓ |
| DeepInception (Li et al., 2024) | ✓ | ✓ | ✓ | × | ✓ | ✓ | |
| ArtPrompt (Jiang et al., 2024) | ✓ | ✓ | ✓ | × | ✓ | ✓ | |
| Speak Easy (Chan et al., 2025) | ✓ | ✓ | ✓ | × | ✓ | × | |
| M2S (Ha et al., 2025) | ✓ | ✓ | ✓ | × | ✓ | ✓ | |
| LLM-Generated | PAIR (Chao et al., 2025) | ✓ | ✓ | × | × | × | ✓ |
| TAP (Mehrotra et al., 2024) | ✓ | ✓ | × | × | × | ✓ | |
| GPTFuzzer (Yu et al., 2023) | ✓ | ✓ | × | × | ✓ | ✓ | |
| GASP (Basani and Zhang, 2025) | ✓ | ✓ | × | ✓ | ✓ | ✓ | |
| Jailbreak-R1 (Guo et al., 2025) | ✓ | ✓ | × | ✓ | ✓ | ✓ | |
| AdvPrompter (Paulus et al., 2025) | ✓ | × | × | ✓ | × | ✓ | |
| Optimization | GCG (Zou et al., 2023) | × | × | ✓ | ✓ | × | ✓ |
| I-GCG (Jia et al., 2025) | × | × | ✓ | ✓ | × | ✓ | |
| LARGO (Li et al., 2025) | × | × | ✓ | ✓ | × | ✓ | |
| DSN (Zhou et al., 2025) | × | × | ✓ | ✓ | × | ✓ | |
| AdvPrefix (Zhu et al., 2025) | × | × | ✓ | ✓ | × | ✓ | |
| ADC (Hu et al., 2024) | × | × | ✓ | ✓ | × | ✓ | |
| CRI (LeVi et al., 2025) | × | × | ✓ | ✓ | × | ✓ | |
| TAO-Attack (Xu et al., 2026b) | × | × | ✓ | ✓ | × | ✓ | |
| AutoDAN (Liu et al., 2024) | ✓ | × | ✓ | × | × | ✓ | |
| ECHO (ours) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Table 8: Threat-model comparison. √: satisfies the condition. ×: requires the resource. No grad.: no gradient access to the victim LLM. No logits: no logit or probability access to the victim. No att. LLM: no auxiliary LLM used to generate or refine attack prompts; ECHO's HarmSig is a response scorer (not a prompt generator) and does not count. No template: no predefined jailbreak scaffold. No aff. target: no fixed target string such as “Sure, here is...”. Single-turn: single interaction per attempt with no multi-turn conversation manipulation.
| Epoch | Train MSE | Spearman ρ | RMSE | MAE | Acc@0.5 | F1@0.5 |
|---|---|---|---|---|---|---|
| 1 | 0.0213 | 0.825 | 0.183 | 0.119 | 0.883 | 0.805 |
| 2 | 0.00856 | 0.842 | 0.164 | 0.104 | 0.893 | 0.815 |
| 3 | 0.00581 | 0.846 | 0.164 | 0.105 | 0.896 | 0.820 |
Table 9: HarmSig student performance across three training epochs; validation metrics use 4,460 held-out responses.
Table 9 summarizes the best epoch; training MSE on the full training pass drops from 0.021 after epoch 1 to 0.0058 after epoch 3, tracking the improving validation metrics below.
The best configuration attains Spearman , RMSE 0.164, MAE 0.105, and, at a 0.5 score threshold for diagnostic binarization, accuracy 0.896 and F1 0.820 (precision 0.834, recall 0.807). These figures summarize agreement with teacher harm scores on held-out trajectories.
C Per-Model Top-m Saturation Values
Table 10 provides the numerical values underlying Figure 4. To keep the table compact while showing the full approach to saturation, we report top-m=1 and then sample every five candidates from m=5 through m=100.
At the reporting precision shown in Table 10, all values remain unchanged for . In the unrounded data, HB is exactly constant beyond , while the only remaining SR changes are smaller than 0.001 and end by .
D HarmBench Results by Semantic Category
Tables 11 and 12 report ECHO's attack success broken down by the six HarmBench semantic categories under top-m=1 and top-m=25 selection, respectively. Two patterns are consistent across all five victims. First, knowledge-intensive categories are the most vulnerable: Cybercrime and Chemical & Biological reach the highest scores everywhere, with HarmBench success at or near 100% on Llama-3.1-8B and Qwen2.5-7B—these goals are satisfied by detailed, instruction-style responses that HarmSig rewards directly. Second, Harassment is uniformly the hardest category (e.g., 42.1% HB on Llama-2-13B, 47.4% on Gemma-3-12B), as harmful harassment content is short and contextual rather than procedural, offering the search
| m | Llama-2-7B | Llama-2-13B | Llama-3.1-8B | Qwen2.5-7B | Gemma-3-12B | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| SR | HB (%) | SR | HB (%) | SR | HB (%) | SR | HB (%) | SR | HB (%) | |
| 1 | 0.685 | 58.27 | 0.685 | 58.46 | 0.710 | 65.96 | 0.780 | 71.92 | 0.525 | 52.69 |
| 5 | 0.789 | 72.31 | 0.776 | 69.04 | 0.812 | 75.38 | 0.856 | 83.08 | 0.638 | 71.54 |
| 10 | 0.816 | 75.96 | 0.800 | 71.35 | 0.839 | 77.50 | 0.876 | 86.54 | 0.669 | 77.50 |
| 15 | 0.825 | 77.31 | 0.809 | 73.27 | 0.848 | 78.46 | 0.888 | 88.08 | 0.685 | 80.19 |
| 20 | 0.831 | 78.08 | 0.817 | 74.42 | 0.853 | 79.42 | 0.894 | 89.04 | 0.694 | 81.15 |
| 25 | 0.835 | 78.27 | 0.821 | 75.19 | 0.857 | 80.38 | 0.898 | 89.23 | 0.702 | 81.54 |
| 30 | 0.837 | 78.46 | 0.825 | 75.38 | 0.860 | 81.15 | 0.900 | 89.62 | 0.707 | 82.31 |
| 35 | 0.840 | 78.65 | 0.828 | 75.38 | 0.862 | 81.73 | 0.902 | 89.81 | 0.711 | 83.27 |
| 40 | 0.840 | 78.65 | 0.830 | 76.15 | 0.864 | 82.69 | 0.903 | 90.38 | 0.715 | 84.04 |
| 45 | 0.842 | 79.04 | 0.832 | 76.73 | 0.866 | 82.69 | 0.904 | 90.38 | 0.718 | 84.81 |
| 50 | 0.843 | 79.42 | 0.835 | 77.31 | 0.868 | 82.69 | 0.905 | 90.38 | 0.720 | 85.38 |
| 55 | 0.845 | 79.81 | 0.835 | 77.50 | 0.869 | 82.88 | 0.905 | 90.38 | 0.721 | 85.96 |
| 60 | 0.847 | 80.00 | 0.835 | 78.08 | 0.869 | 82.88 | 0.906 | 90.38 | 0.723 | 86.15 |
| 65 | 0.847 | 80.19 | 0.837 | 78.27 | 0.869 | 82.88 | 0.906 | 90.38 | 0.725 | 87.12 |
| 70 | 0.848 | 80.38 | 0.839 | 78.27 | 0.871 | 83.08 | 0.906 | 90.96 | 0.726 | 87.88 |
| 75 | 0.849 | 80.38 | 0.841 | 78.27 | 0.871 | 83.08 | 0.906 | 91.35 | 0.727 | 87.88 |
| 80 | 0.849 | 80.58 | 0.843 | 78.27 | 0.871 | 83.27 | 0.906 | 91.35 | 0.728 | 88.85 |
| 85 | 0.852 | 80.77 | 0.843 | 78.27 | 0.872 | 83.65 | 0.907 | 91.35 | 0.729 | 89.23 |
| 90 | 0.852 | 80.77 | 0.843 | 78.27 | 0.872 | 83.85 | 0.907 | 91.35 | 0.730 | 89.23 |
| 95 | 0.852 | 80.77 | 0.843 | 78.46 | 0.872 | 83.85 | 0.907 | 91.35 | 0.730 | 89.23 |
| 100 | 0.852 | 80.77 | 0.844 | 78.46 | 0.872 | 83.85 | 0.907 | 91.35 | 0.730 | 89.23 |
Table 10: Per-model top- saturation values on AdvBench, sampled from Figure 4.
| Category | Llama-2-7B | Llama-2-13B | Llama-3.1-8B | Qwen2.5-7B | Gemma-3-12B | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| SR | HB (%) | SR | HB (%) | SR | HB (%) | SR | HB (%) | SR | HB (%) | |
| Overall (n=200) | 0.577 | 57.0 | 0.575 | 53.5 | 0.618 | 68.5 | 0.660 | 70.5 | 0.426 | 51.5 |
| Chem. & Bio. (n=28) | 0.637 | 75.0 | 0.682 | 82.1 | 0.581 | 71.4 | 0.705 | 85.7 | 0.370 | 50.0 |
| Cybercrime (n=40) | 0.701 | 80.0 | 0.624 | 72.5 | 0.626 | 90.0 | 0.666 | 85.0 | 0.461 | 72.5 |
| Harassment (n=19) | 0.539 | 31.6 | 0.449 | 15.8 | 0.580 | 36.8 | 0.708 | 52.6 | 0.427 | 15.8 |
| Harmful (n=21) | 0.573 | 47.6 | 0.525 | 33.3 | 0.540 | 52.4 | 0.619 | 52.4 | 0.415 | 19.0 |
| Illegal (n=58) | 0.582 | 41.4 | 0.609 | 41.4 | 0.706 | 67.2 | 0.747 | 67.2 | 0.446 | 46.6 |
| Misinfo. (n=34) | 0.399 | 61.8 | 0.471 | 61.8 | 0.557 | 70.6 | 0.463 | 67.6 | 0.402 | 76.5 |
Table 11: ECHO on HarmBench by semantic category, top- (best candidate on the final beam frontier per goal). SR: mean StrongREJECT score (); HB (%): HarmBench classifier attack success rate.
little actionable signal to amplify. The stability of this category ordering across architectures indicates that per-category difficulty is largely a property of the harm type rather than the victim model. Misinformation shows the widest SR/HB divergence (Gemma-3-12B: 0.534 SR vs. 97.1% HB), the same calibration gap discussed in Section 4.4: responses are flagged harmful by the binary classifier while the continuous judge discounts their hedged, low-actionability phrasing.
E Compute Infrastructure
All experiments were conducted on a server equipped with one Intel Xeon Gold 6526Y CPU and two NVIDIA RTX PRO 6000 GPUs (96 GB GDDR7 VRAM each).
F Multilingual Robustness
We translate the same 100 AdvBench goals used in the ablation experiments into French and German and evaluate ECHO on Qwen2.5-7B-Instruct under the default configuration. To remove dependence on English WordNet, we use language-specific lexical substitutions together with language-independent segmentation, insertion, deletion, and swap operators, while retaining the original operator marginals. For French, ECHO achieves SR/HB of 0.627/70% with top-m=1 and 0.806/92% with top-m=25; for German, it achieves 0.661/85% and 0.884/97%, respectively. These results show that ECHO remains effective beyond English without relying on WordNet-based perturbations.
G Trajectory-Guided Query Reduction
We analyze search trajectories outside the 100-goal evaluation set and find that successful trajectories exhibit recurring operator transitions, most notably SWAP→DELETE, SWAP→PRESSURE, PRESSURE→PRESSURE, and DELETE→PRESSURE.
| Category | Llama-2-7B | Llama-2-13B | Llama-3.1-8B | Qwen2.5-7B | Gemma-3-12B | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| SR | HB (%) | SR | HB (%) | SR | HB (%) | SR | HB (%) | SR | HB (%) | |
| Overall (n=200) | 0.759 | 79.5 | 0.735 | 76.5 | 0.762 | 83.5 | 0.802 | 90.5 | 0.597 | 81.5 |
| Chem. & Bio. (n=28) | 0.786 | 92.9 | 0.797 | 96.4 | 0.716 | 78.6 | 0.788 | 100.0 | 0.543 | 85.7 |
| Cybercrime (n=40) | 0.864 | 95.0 | 0.813 | 87.5 | 0.787 | 100.0 | 0.813 | 100.0 | 0.638 | 95.0 |
| Harassment (n=19) | 0.700 | 52.6 | 0.672 | 42.1 | 0.777 | 63.2 | 0.847 | 78.9 | 0.607 | 47.4 |
| Harmful (n=21) | 0.714 | 61.9 | 0.695 | 61.9 | 0.769 | 76.2 | 0.803 | 85.7 | 0.563 | 57.1 |
| Illegal (n=58) | 0.807 | 77.6 | 0.745 | 72.4 | 0.816 | 81.0 | 0.874 | 87.9 | 0.641 | 81.0 |
| Misinfo. (n=34) | 0.590 | 79.4 | 0.636 | 82.4 | 0.664 | 88.2 | 0.653 | 85.3 | 0.534 | 97.1 |
Table 12: ECHO on HarmBench by semantic category, top-m=25 (best-of-25 candidates per goal). SR: mean StrongREJECT score (∈ [0, 1]); HB (%): HarmBench classifier attack success rate. Goal counts per category are given in parentheses.
| Selection | SR | HB (%) |
|---|---|---|
| Top-m=1 | 0.165 | 0.0 |
| Top-m=25 | 0.564 | 10.0 |
Table 13: Zero-query transfer of ECHO prompts from Llama-2-7B-Chat to GPT-5.4 on 100 AdvBench goals.
We use these transition patterns to guide operator selection and progressively reduce the beam and branch sizes once HarmSig indicates a promising trajectory, with conservative pruning applied only at later search steps. Because operator sampling are stochastic, the independently rerun baseline for this paired comparison averages 871.50 rather than 877 victim queries per goal. On the same 100 AdvBench goals with Llama-2-7B-Chat, this strategy reduces the average victim-query budget from 871.50 to 779.28 per goal, a reduction (95% CI [5.81, 15.14]), and reduces the average runtime from the reported 81.80s to 70.06s per goal. Under the same evaluation pipeline, SR/HB change from to with top- and from to with top-; the paired confidence intervals for all quality differences include zero. Thus, trajectory-guided selection and pruning substantially reduce victim queries while largely preserving attack effectiveness.
H Closed-Source Model Experiment
We evaluate zero-query transfer to GPT-5.4 on the same 100 AdvBench goals used throughout all 100 goal experiments. For each goal, we freeze the HarmSig-ranked prompts obtained from the Llama-2-7B-Chat experiment and evaluate them on GPT-5.4 without target-side search or refinement, using StrongREJECT and HarmBench as in the main evaluation.
The transferred prompts achieve an SR score of 0.564 and a HarmBench success rate of un- der top-, demonstrating measurable transfer to a closed-source target without additional optimization.