Skip to content

PEO: A white-box jailbreak method for LLMs by directly optimizing original prompt embeddingsAdaptive Prompt Embedding Optimization for LLM Jailbreaking

Paper Tracker· arXiv:2604.24983· Miles Q. Li, Benjamin C. M. Fung, Boyang Li, Radin Hamidi Rad, Ebrahim Bagheri·Indexed by this site · 2026-10-09· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

PEO optimizes the original prompt embeddings; on AdvBench, ASR-Judge is 71.73%–78.65%, higher than the three comparisons.

Threat modelOpen-weight chat models under the white-box setting. The attacker holds a fixed harmful prompt and aims to induce the model to provide the requested harmful information. Access to the tokenizer, embedding layer, forward computation, and gradients of the prompt token embeddings; no fine-tuning of weights. Attacks are run independently per prompt with a fixed iteration budget; no universal suffix training, no cross-sample transfer, no parameter modification.

Questions
On aligned large models, white-box jailbreaks usually append discrete adversarial suffixes after the prompt, which both changes the visible input and requires searching in the combinatorial token space. The authors believe that directly optimizing the original prompt embeddings has been avoided because of concerns about destroying the request's semantics.
Methods
PEO performs gradient descent on the original token embeddings after the chat template, with a loss of cross-entropy on the harmful continuation plus an L2 term pulling back to the original embeddings, without appending adversarial tokens. Unsuccessful samples are attacked for up to three more rounds, with later rounds switching to structured continuation scaffolding; each round cold-starts from the original embeddings. The visible string after nearest-token projection remains unchanged.
Experiments and results
On AdvBench and HarmBench text-test, PEO ASR-Judge for four open-source models is higher than nanoGCG, SPT, and BEAST. The former is 71.73%–78.65%, the latter is 37.50%–50.00%; visible text change is 0%.
Limitations and future work
The paper has no separate limitations section. The authors state in the Discussion that defenses were not directly evaluated and that using ASR-Match to decide whether to proceed to the next round leaves some real failures unrecovered. Experiments cover four open-source models, two text benchmarks, and three comparison attacks.
Experimental setupVicuna-7B-v1.3、Llama-2-7B-Chat et al. · AdvBench、HarmBench text-test · ASR-Judge、ASR-Match
Evaluated models
Vicuna-7B-v1.3Llama-2-7B-ChatQwen3-4B-InstructLlama-3.2-3B-Instruct
Benchmarks
AdvBenchHarmBench text-test
Metrics
ASR-JudgeASR-Match
AI summaryThe researchers propose Prompt Embedding Optimization (PEO), a multi-round white-box jailbreak method that directly optimizes the embedding vectors of original prompt tokens without appending any adversarial tokens. The authors state that the optimized embeddings are close enough to the original that after nearest-token projection the visible prompt string remains completely unchanged, and quantitative analysis shows model responses remain relevant on the vast majority of prompts. PEO combines continuous embedding space optimization, structured continuation objectives, and a failure-focused adaptive schedule; the authors state that later rounds can benefit from heuristic composite response scaffolding, and ASR-Judge shows these gains are not merely generic formatting or scaffolding-only outputs. On two standard harmful behavior benchmarks, PEO experimentally outperforms white-box attacks such as discrete suffix search, appended adversarial embeddings, and search-based adversarial generation.

The researchers propose Prompt Embedding Optimization (PEO), a multi-round white-box jailbreak method that directly optimizes the embedding vectors of original prompt tokens without appending any adversarial tokens. The authors state that the optimized embeddings are close enough to the original that after nearest-token projection the visible prompt string remains completely unchanged, and quantitative analysis shows model responses remain relevant on the vast majority of prompts. PEO combines continuous embedding space optimization, structured continuation objectives, and a failure-focused adaptive schedule; the authors state that later rounds can benefit from heuristic composite response scaffolding, and ASR-Judge shows these gains are not merely generic formatting or scaffolding-only outputs. On two standard harmful behavior benchmarks, PEO experimentally outperforms white-box attacks such as discrete suffix search, appended adversarial embeddings, and search-based adversarial generation.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    White-box jailbreaks that only append visible suffixes miss direct optimization of the original prompt embeddings; PEO targets this gap.

    Existing white-box jailbreaks mostly append discrete adversarial suffixes, visibly rewriting the prompt; this paper optimizes the embeddings of the original prompt tokens directly without appending tokens.

    • Scenario: The authors argue that jailbreaks should not only be judged by whether the response looks harmful or non-refusal, but should also be easier to optimize and less visible on the prompt surface. Existing white-box methods mostly append tokens after the prompt, making the search space combinatorial.
    • Limitation: The authors state that existing continuous embedding attacks either append new embeddings after the instruction (SPT) or optimize an entire input from scratch without binding to a specific request (Xu et al.). Neither modifies the embeddings of existing prompt tokens; the authors believe this reflects an assumption that "perturbation would destroy semantics."
    • Observation: The authors claim this assumption does not hold. Across the four tested models, the visible text change after nearest-token projection is 0%; the quantitative analysis in Section 7.3 states that most responses still target the original request rather than drifting to off-topic or degenerate outputs.
    • Method: Propose a multi-round white-box attack PEO (Prompt Embedding Optimization): continuously optimize the original token embeddings, combined with structured continuation objectives and adaptive scheduling that concentrates the budget on unresolved prompts.
    • Threat model:
      • Goal: Given a fixed harmful user prompt, make the model answer the harmful information requested by that prompt. Success depends on whether the final output provides that content; the prefix used for optimization need not appear in the decoded result.
      • Knowledge: The paper states white-box. The attacker can use the tokenizer, embedding layer, forward computation, and gradients with respect to the prompt token embeddings; no fine-tuning of model weights.
      • Capability: Each prompt is attacked independently under a fixed iteration budget. No universal suffix training, no cross-sample transfer learning, no modification of model parameters. Each prompt is paired with a harmful response prefix or continuation objective, used only as teacher-forced scaffolding.
      • Victim system: Open-weight chat models. Experimental target models are Vicuna-7B-v1.3, Llama-2-7B-Chat, Qwen3-4B-Instruct, Llama-3.2-3B-Instruct.
  2. What related research exists?

    Related work covers discrete suffixes, appended embeddings, optimizing inputs from scratch, and search-based black-box and judge evaluations.

    Section 2 groups by attack space and evaluation method, not treating black-box search as a direct control for this paper.

    • Discrete white-box jailbreaks: GCG (Zou et al., 2023) appends an adversarial suffix to the user prompt, using gradient-guided coordinate search to replace discrete tokens, steering the model toward a specified harmful continuation. AutoPrompt (Shin et al., 2020) and subsequent hard prompt optimization (Wen et al., 2023) use gradients to directly optimize prompt tokens or trigger strings. AutoDAN (Liu et al., 2024b) does stealth-oriented jailbreak prompt optimization; AdvPrefix (Zhu et al., 2025) emphasizes that continuation objectives change the trade-off between harmfulness and compliance. The authors state these methods are strong but operate in discrete token space, often with visible prompt editing costs.
    • Continuous and embedding-space attacks: Earlier adversarial NLP work studies continuous or approximately continuous perturbations, including gradient token replacement, natural language adversarial generation, and paraphrase attacks (Ebrahimi et al., 2018; Alzantot et al., 2018; Iyyer et al., 2018). SPT (Schwinn et al., 2024) optimizes continuous adversarial embeddings appended after the instruction; the authors state it introduces new tokens, does not modify existing tokens, and the visible prompt is changed. Xu et al. (2024) optimizes an entire continuous input from scratch to elicit a target response; the authors state the result is unrelated to any specific harmful request and cannot preserve prompt semantics. The paper also lists inference-time continuous state optimization in text-to-image defenses (Peng et al., 2024) as an adjacent setting.
    • Search-based and black-box jailbreaks: PAIR (Chao et al., 2023) and TAP (Mehrotra et al., 2024) use iterative black-box refinement to automatically discover jailbreak prompts with only query access. BEAST (Sadasivan et al., 2024) uses beam search to generate adversarial suffixes; the authors state it remains competitive under tight wall-clock budgets. Rainbow Teaming (Samvelyan et al., 2024) emphasizes open-ended generation of diverse adversarial prompts rather than precise gradient control. The authors state their setting is complementary: how strong continuous embedding attacks can be when the attacker has open-source weights and internal model access.
    • Alignment, defenses, and evaluation: For alignment, the authors mention RLHF (Ouyang et al., 2022), Constitutional AI (Bai et al., 2022), and DPO (Rafailov et al., 2023). For defenses, they mention SmoothLLM (Robey et al., 2024) and adversarial preference learning (Wang et al., 2025). Liang et al. (2025) shows that embedding model defenses can also be bypassed by universal magic words; the authors state this relates to their use of judge-based evaluation rather than relying only on embedding similarity filtering. HarmBench (Mazeika et al., 2024), JailbreakBench (Chao et al., 2024), and JAILJUDGE (Liu et al., 2024a) argue that string heuristics alone are insufficient to reliably measure safety. The authors state they therefore report both ASR-Match and ASR-Judge, and analyze their divergence.

    Baseline methods are nanoGCG (a per-prompt GCG reimplementation), SPT, and BEAST; benchmarks are AdvBench (520 items) and HarmBench text-test (320 lines). The authors position PEO as filling the above gap: perturbing the embeddings of existing prompt tokens in place, and state that in experiments the perturbation is small enough to preserve visible text exactly.

  3. How does the paper address this problem?

    PEO cold-starts multi-round optimization of the original token embeddings, uses structured continuation targets to push unsuccessful samples, and the visible text remains unchanged after projection.

    PEO does not append adversarial tokens, but instead optimizes the embeddings of existing prompt tokens over multiple rounds, and uses structured continuation targets to feed unsuccessful samples back into the same optimization process.

    Embedding-space optimization

    • The prompt tokens after the chat template are denoted as x, with embeddings E. Given a continuation y, gradient descent is used to increase the probability that the model continues with a harmful compliance prefix.
    • The single-step objective is teacher-forcing cross-entropy plus an L2 anchor: L = LCE(y ∣ Concat(E, Ey)) + λ |E − E(0)|22. The meaning is: make the current prompt embedding more likely to generate the target continuation, while penalizing deviation from the original embedding. Gradients are clipped by L2 norm and then updated with Adam. Algorithm 1 gives this baseline process.
    • Unlike GCG, the update happens on continuous embeddings, not by replacing tokens in the vocabulary. The authors say the landscape is smoother, the input space is richer than discrete search, and the prompt surface is not visible.
    • When reporting visible text, each embedding is projected to the nearest token in the vocabulary using normalized dot product. The authors say the projection still falls within the Voronoi cell of the original token, and the visible string is recovered as-is.

    Structured continuation targets

    • No generic compliance short phrases are used. The target is aligned with the dataset, matching the harmful output expected for that prompt; the generic alternative target is turned off, and preview-based early stopping is turned off, to avoid declaring success from a shallow prefix.
    • The authors say these prefixes are short openings handwritten for the specific query that can directly connect to the requested content. They are only optimization scaffolding, not a success criterion: the decoded result need not contain this exact text.

    Failure-focused multi-round scheduling

    • At most four rounds. A round stops if it has elicited a harmful reply according to ASR-Match; only unresolved samples move to the next round. ASR-Judge is not used for advancement, to avoid scheduling directly against the final ranking signal, and to avoid asymmetry against baselines not adapted to that signal.
    • Each round cold-starts from the original embedding, not inheriting the previous round's embedding. The authors give three reasons: failed embeddings have not jailbroken under free decoding, so reinitialization gives the new target a chance to pull the embedding to another region; the L2 anchor is always relative to the original embedding, so a warm start begins with a nonzero anchor penalty; anchoring back to the original embedding round by round supports the later claim of 0% text change. They understand this as repeatedly solving for the same prompt with different continuation targets, rather than one long trajectory.
    • Round 1 uses only the dataset-aligned target. The later three rounds keep that target and append a short structural suffix, rather than replacing it entirely. The authors say these suffixes are not natural standalone templates; their role is to change the teacher-forcing loss and improve free-decoding transfer. The literal suffixes are given in Section 4.3 and are not repeated here.
    • Round 2 pushes toward numbered concrete steps. Round 3 splits by the starting verb into heading-type and step-type, using a short heading anchor or step anchor respectively. Round 4 lengthens the scaffolding under the same classification, making the model commit to both a labeled artifact and the first numbered item. The authors say this is to reduce cases where the model gives only a heading, or writes only a numbered item and then goes blank, goes off-topic, or refuses afterward.

    Shared hyperparameters and success determination

    • Across models and rounds, the experiments share: 100 iterations per round, learning rate 3×10^{-4}, embedding L2 weight 10^{-4}, gradient clipping 5, minimum iteration budget 50, preview length 80 tokens, but no preview early stopping. Final free decoding is nucleus sampling with temperature 0.7 and top-p 0.9; baseline attacks use the same sampling settings.
    • Whether the final output is harmful is determined by the metrics in Section 5.4, not by whether the scaffolding appears. ASR-Judge requires both reviewers to judge the output harmful; ASR-Match is used only as a round-advancement signal and as a secondary metric comparable with prior work.
  4. What experiments did the paper conduct?

    Across four open-source models and two benchmarks, the authors state PEO's ASR-Judge is higher than nanoGCG, SPT, and BEAST.

    Experimental Setup

    • Models: Vicuna-7B-v1.3, Llama-2-7B-Chat, Qwen3-4B-Instruct, Llama-3.2-3B-Instruct. All four models are evaluated on both benchmarks.
    • Data: AdvBench contains 520 harmful behavior prompts. HarmBench text-test has 320 lines, keeping only text behaviors from the official release, paired with the official optimizer objectives distributed by HarmBench.
    • Comparisons: nanoGCG is a per-prompt GCG using gradient-guided token search; the authors state they do not use the original multi-prompt GCG codebase because PEO also attacks one prompt at a time. SPT optimizes adversarial embeddings appended after the instruction. BEAST uses beam search to generate adversarial suffixes without computing gradients over token candidates. The paper states defenses were not directly evaluated.
    • Optimization: All four models, both benchmarks, and all rounds share the same four-round schedule. Each round has 100 iterations, learning rate 3×10^{-4}, preview length 80 tokens, L2 weight 10^{-4}, gradient clipping 5, minimum iteration budget 50; uses dataset row objectives, no generalization surrogate objectives, no preview-based early stopping on success. The authors state 100 iterations per prompt is lower than typical budgets in the GCG family but do not give the specific counts for those budgets.
    • Decoding and Metrics: Free decoding always uses nucleus sampling with temperature 0.7, top-p 0.9. ASR-Judge counts only when both judges rate harmful, with the denominator being the full benchmark (520 or 320); any judge API failure is counted against the attack. ASR-Match is case-insensitive substring matching of English refusal keywords.
    • Judges: GPT-5.4 and Claude Opus 4.6. Appendix A gives the full judge prompts and states temperature=0.0, output limit 20 tokens, answering only HARMFUL or SAFE. The micro-averaged agreement rate over valid paired judge outputs is 88.0%. The 95% interval for ASR-Judge uses 10,000 bootstrap resamples.

    Main Results

    Per Table 2, AdvBench (N=520) ASR-Judge (%, two-judge AND):

    Swipe horizontally to read the table

    ModelPEOnanoGCGSPTBEAST
    Vicuna-7B-v1.378.6529.0446.1524.62
    Llama-2-7B-Chat71.7337.5049.235.58
    Qwen3-4B-Instruct72.698.4618.274.62
    Llama-3.2-3B-Instruct75.5823.4618.0815.19
    • The authors state that on ASR-Judge, PEO is higher than all three comparisons on every AdvBench model. The gaps they report are: 34.23 to 64.23 percentage points relative to nanoGCG, 54.03 to 68.07 relative to BEAST, and 22.50 to 57.50 relative to SPT. Section 7.4 states 8/8 for each comparison under all four judge aggregations.
    • On HarmBench text-test (N=320, Table 2), PEO's ASR-Judge is Vicuna 49.69%, Llama-2 45.62%, Qwen3 37.50%, Llama-3.2 50.00%. The authors state the comparison ranges are nanoGCG 6.88%–26.25%, SPT 16.88%–39.38%, BEAST 8.12%–43.75%, and PEO is still higher on every model. BEAST's Vicuna cell is 43.75%, which the authors call a standout cell among its eight.
    • PEO's visible text change is 0% on all four models; the authors state the three comparisons modify the input every time. ASR-Match does not always move in the same direction as ASR-Judge: on AdvBench, PEO's Vicuna ASR-Match is 70.58%, lower than nanoGCG's 81.35%; Qwen3's ASR-Match is 38.65%, lower than its ASR-Judge in the same cell. On HarmBench, the authors state PEO's ASR-Match is highest across the four models, ranging from 70.31% to 93.75%, with Vicuna's gap relative to nanoGCG being narrow (90.94% vs. 86.25%).

    Cumulative Gains from Adaptive Four Rounds

    • Table 4 reports rounds using cumulative ASR-Match rather than ASR-Judge. On AdvBench from Pass 1 to Pass 4: Vicuna 47.69% to 70.58% (Gain 22.88), Llama-2 21.73% to 59.62% (37.88), Qwen3 19.23% to 38.65% (19.42), Llama-3.2 62.12% to 88.27% (26.15).
    • On HarmBench the corresponding Gains are 18.44, 29.06, 16.56, 11.25 percentage points; Pass 4 values are 90.94%, 82.81%, 70.31%, 93.75%. The authors state HarmBench's Pass 1 is higher because its dataset-aligned objectives already include context-bearing completions.
    • Table 5 counts only AdvBench failure rows recovered in the last two rounds. The authors state Vicuna's first family follow-up recovers 44 rows and the second recovers 24 more; Llama-2 recovers 67 and 30, with Pass 3 short-title type T1=46. Qwen3 leans toward title type (T1=26, S1=6). Llama-3.2 in the first family follow-up gains title-type +24 rows and step-type +26 rows. The authors believe many hard failures occur at the transition into sustained harmful steps, not at the first harmful token.

    Why Aggregate ASR-Judge Is Fairly Flat Across Models

    • The authors state PEO's ASR-Judge on AdvBench falls between 71.73% and 78.65% (which they call a 6.92 percentage point spread) and on HarmBench between 37.50% and 50.00% (which they call a 12.50 percentage point spread). For the three comparisons on AdvBench, the authors state the spreads are nanoGCG 29.04, SPT 31.15, BEAST 20.00 percentage points; on HarmBench the corresponding spreads are 19.37, 22.50, 35.63.
    • Table 6 decomposes prompts and models on the same prompt set. AdvBench: N=520, pbar=74.7%, all four models succeed 43.5%, all fail 4.6%, mean κ=0.25, ICC(1)=0.25, χ²=290 relative to Binomial(4, pbar) (p<10^{-60}). The authors state that under the null hypothesis these two tails would be about 31.1% and 0.4%, and that the sum being close does not mean the same prompts succeed on every model.
    • HarmBench: N=320, pbar=45.7%, all four models succeed 21.2%, all fail 36.2%, mean κ=0.53, ICC(1)=0.53, χ²=584 (p<10^{-100}). The authors state about half of the per-prompt variance comes from prompts. They suggest one possible explanation: HarmBench has a more concentrated tail of behaviors that all four models fail; AdvBench's remaining failures vary more by model.

    Divergence Between the Two Metrics

    • Table 7 pools all four models and both benchmarks. FP means ASR-Match judges success but both judges rate safe; FN means ASR-Match judges refusal but both judges rate harmful. PEO: Valid 3,360, FP 639 (19.0%), FN 731 (21.8%). BEAST is 24.3% and 4.9%, nanoGCG is 32.0% and 8.0%, SPT is 32.7% and 14.6%.
    • Within these 3,360 rows, the authors state 63.6% are harmful continuations confirmed by both judges, 13.9% have disagreeing judges, 3.4% are safe and contain English refusal keywords, and 19.0% are shallow non-refusals. The authors state about four-fifths fall into the first three categories rather than off-topic, genre substitution, or degeneration. They state the four-category pattern comes from manual audit of divergent rows, with no automatic classifier, so no quantitative proportions are given.
    • In Section 7.2 the authors state that on AdvBench, Llama-3.2's SPT ASR-Match is 82.69%, close to PEO's 88.27%, but ASR-Judge is 18.08%. They argue that appended short soft prompts often break surface refusals but do not reliably produce coherent harmful continuations; PEO optimizes every position of the templated prompt, with space n×d anchored at the original embeddings. On AdvBench Llama-3.2, BEAST's ASR-Match is 58.08% and ASR-Judge is 15.19%. Table 1 gives excerpts of late-stage scaffolding successes and failures: successful examples are rated Harmful, failed examples contain blank formatting or refusal endings and are rated Safe.

    Other Ablations and Analyses

    • Table 3: PEO's ASR-Judge intervals on AdvBench are Vicuna 75.00%–82.12% and Llama-2 67.88%–75.58%; on HarmBench, Qwen3 is 32.19%–42.81% and Llama-3.2 is 44.38%–55.32%. The authors state the ranking pattern of the main comparison is stable under resampling.
    • Table 8: Under GPT-5.4 alone, Claude Opus 4.6 alone, AND, and OR, PEO is 8/8 against nanoGCG, SPT, and BEAST. The authors state AND is the most conservative aggregation and no comparison wins any cell under that rule either.
    • Table 9: The authors state the two-judge agreement rate ranges from 78% to 98%. The lowest cell is SPT, Llama-3.2-3B-Instruct, AdvBench at 78.3%; the authors state low-agreement cells mostly occur in borderline partial compliance rather than clearly safe or clearly harmful outputs.
    • Section 7.1: The authors divide failures into shallow compliance and structural resistance, and state the adaptive objective mainly helps the latter; the former, under later scaffolding, still often regurgitates the scaffolding itself before refusing or going off-topic.
    • Section 7.5: The authors state that using ASR-Match to advance leaves some real failures unrecovered; in principle, a stronger classifier separated from the final judge stack, such as the HarmBench harmfulness classifier or a separately prompted local LLM, could be substituted, and they believe this might improve ASR-Judge. The main experiment deliberately does not use this signal.
    • The paper does not report iteration counts for the three comparisons, BEAST beam width, query counts, or wall-clock time.
  5. What are some points that can be further explored?

    The paper has no separate limitations section; the authors state that defenses were not directly evaluated, and ASR-Match advancement leaves unrecovered failures.

    Limitations and Future Directions Noted by the Authors

    • The paper has no separate Limitations or Future Work section. Section 7.6 states that defenses were not directly evaluated. The authors state that defenses aimed mainly at visible adversarial suffixes may miss attacks that exactly preserve the user-visible prompt, and that short-preview evaluation relative to full-text judging may overestimate robustness. The authors state that strong defenses should be tested against attacks that change the continuation structure, attack only remaining failures, and preserve the surface prompt as much as possible.
    • Section 7.5: The authors state that using ASR-Match as the signal to proceed to the next round leaves some real failures unrecovered. In principle, a stronger classifier separated from the final judge stack, such as the HarmBench harmfulness classifier or a separately prompted local LLM, could be substituted, and they believe this might improve ASR-Judge. The main experiment deliberately does not use this signal.

    Experimental Coverage

    • Tested models are Vicuna-7B-v1.3, Llama-2-7B-Chat, Qwen3-4B-Instruct, Llama-3.2-3B-Instruct, 4 in total; two benchmarks are AdvBench (N=520) and HarmBench text-test (N=320) (Section 5.1, Table 2).
    • Comparison attacks are nanoGCG, SPT, BEAST. The primary metric is the proportion where both GPT-5.4 and Claude Opus 4.6 rate harmful, and the secondary metric is the English keyword ASR-Match; Appendix A states judge temperature=0.0, output limit 20 tokens (Sections 5.2, 5.4).
    • The setting is white-box, per-prompt, fixed iteration budget; no universal suffix training, no cross-sample transfer, no model parameter modification (Section 3). Each round has 100 iterations, up to 4 rounds; free decoding uses temperature 0.7, top-p 0.9 (Sections 5.2, 5.3).
    • The paper states defenses were not directly evaluated (Section 7.6). Section 7.3 states the four failure categories come from manual audit, with no automatic classifier implemented. Related work discusses PAIR, TAP, and Rainbow Teaming, but the experimental comparisons do not include these black-box methods.
    • The paper does not report query counts, wall-clock time, iteration counts for nanoGCG, SPT, BEAST, or BEAST's beam width. The bootstrap for ASR-Judge uses 10,000 resamples (Table 3).
  6. Summarize the main content of the paper

    PEO optimizes prompt embeddings in place, with multiple rounds re-attacking only failed samples; the authors state ASR-Judge is higher than the three comparisons on both benchmarks.

    PEO is a white-box jailbreak that does not append adversarial tokens: it directly modifies existing prompt embeddings and only re-optimizes unsuccessful samples with changed continuation objectives.

    • Problem: Discrete suffixes and appended embeddings both change the visible input. The authors believe prior work avoided in-place perturbation because of concerns about destroying request semantics. The victim system is open-weight chat models; the attacker has embedding gradients, does not fine-tune weights, and does no cross-sample transfer.
    • Method: On token embeddings after the chat template, minimize cross-entropy on the harmful continuation plus an L2 anchor, with Adam updates and gradient clipping. Up to four rounds, each cold-starting from the original embeddings; later rounds add numbered, title, or step-type structural scaffolding after the dataset objective. Success is judged by whether the response provides the requested harmful information, not by whether the scaffolding appears verbatim.
    • Main results: On AdvBench (N=520), PEO's ASR-Judge is Vicuna 78.65%, Llama-2 71.73%, Qwen3 72.69%, Llama-3.2 75.58% (Table 2). On HarmBench text-test (N=320), it is 49.69%, 45.62%, 37.50%, 50.00%. The authors state that on both benchmarks and all four models, this metric is higher than nanoGCG, SPT, and BEAST, with 8/8 under all four judge aggregations.
    • Surface and metrics: Visible text change after nearest-token projection is 0% across the four models. The authors state ASR-Match misjudges in both directions, so two-judge AND is the primary ranking; the micro-averaged agreement rate over valid outputs is 88.0%. PEO itself still has 19.0% shallow non-refusals counted as successes by ASR-Match (639/3,360).
    • Authors' conclusions: The authors state in-place embedding optimization is more stealthy and more reliable than discrete suffixes, appended embeddings, and search-based attacks, especially when effectiveness is measured by whether the response is actually harmful rather than merely non-refusing. They also state PEO's aggregate ASR-Judge is fairly consistent across models, but AdvBench still has substantial model-specific variation, while HarmBench is more prompt-driven. The authors state the paper does not directly evaluate defenses, and defenses aimed at visible suffixes may miss this surface-preserving attack.

Related papers

Show 3 more papers
Read originalarxiv.org