Manuscript Offprint

arXiv:2610.23030

ECHO: Replacing the Compliance Proxy with Response Harmfulness in Optimization-Based Jailbreak Attack

Yuanwei Wu, Lingdong Huang, Yunlong Mao, Kanye Ye Wang, Jingyu Hua, Sheng Zhong

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

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%.

References (17)