Researchers propose Latent Fusion Jailbreak, a white-box jailbreak achieving an average success rate of 94.13% across five open-weight modelsLatent Fusion Jailbreak: Blending Harmful and Harmless Representations to Elicit Unsafe LLM Outputs
LFJ interpolates paired harmful and harmless hidden states under white-box access, achieving a macro-averaged ASR of 94.13% across five models and four benchmarks.
white-box: readable and can replace hidden states and gradients at inference time, but cannot change the architecture or parameters. Only the user content positions are modified, coefficients are limited to [0,1], the mask is fixed once, and HSI is only in prefill. The target is completions marked as harmful by independent review. Corresponds to open-source models with modifiable inference graphs, not closed-source API remote users.
- Safety-aligned models can still be induced to give unsafe completions through internal representation interventions at inference time. The authors argue that text-search jailbreaks do not cover this white-box hidden-state attack surface, so it is necessary to locate intervention positions and test corresponding defenses.
- LFJ pairs each harmful query with a structurally similar harmless reference, uses gradients from a refusal loss to select layers and tokens, optimizes per-layer mixing coefficients, and propagates sequentially during prefill. At generation time, bounded rejection sampling suppresses canonical refusal phrases; for defense, it recomputes similar perturbations online for latent-space adversarial training.
- Across five open-source models and four benchmarks, LFJ achieves a macro-average ASR of 94.13% (Table II). Random pairing gives 27.45%, and no rejection sampling gives 86.72%. After re-optimizing against defense checkpoints, the all-defenses ASR is 12.37% (Table V). The authors state that comparisons with prompt attacks are not access-matched.
- The authors state that this defense does not cover other attacks and does not test benign utility or false-refusal rates. The evaluation is a macro-average over five models and four English benchmarks. The authors mark pairing thresholds, once-fixed masks, and canonical-phrase coverage as boundaries. The paper does not report per-model ASR or access-matched runtime.
- Evaluated models
- Vicuna-7B-v1.5LLaMA-2-7B-ChatGuanaco-7BLLaMA-3-70B-InstructMistral-7B-Instruct-v0.1
- Benchmarks
- AdvBenchMaliciousInstructPKUToxicChat
- Metrics
- ASRPPL
The researchers propose Latent Fusion Jailbreak (LFJ), which pairs harmful queries with structurally similar benign queries and interpolates their hidden states at selected layers and token positions to induce the model to output unsafe content; refusal-loss gradients determine intervention locations, and per-layer mixing coefficients are optimized against token-normalized compliance and refusal-suppression objectives. Across four safety benchmarks and five open-weight target models, the method achieves a 94.13% macro-averaged attack success rate under its described white-box protocol. Ablations show that removing rejection sampling drops the success rate to 86.72%, and replacing structured harmful-benign pairing with random pairing drops it to 27.45%. The authors also design a latent-space adversarial training against LFJ, reducing the success rate from 94.13% to 12.37% when the attack re-optimizes against the defended model; this defense evaluation does not cover transfer to other attack types or preservation of benign utility.
Paper analysis
What problem does this paper attempt to solve?
The authors propose white-box LFJ: pairing each harmful query with a harmless reference and interpolating hidden states at selected layers.
Under white-box conditions, the internal representations of aligned models can still be intervened upon to produce unsafe completions.
- Scenario: The authors state that post-training (especially RLHF and direct preference optimization) is commonly used to make models refuse harmful requests, but adversarial inputs or inference-time interventions can still extract unsafe outputs; understanding these failures is necessary for both red-teaming evaluations and stronger defenses.
- Existing paths: The authors state that most automated jailbreaks search over text, and some optimized suffixes have high perplexity and can be caught by input filters. On continuous representations, there are already activation steering, concept refusal vectors, and refusal suppression in prompt space; the authors state that LFJ takes a different path, constructing a matched harmless reference for each harmful query and interpolating only at selected positions.
- This paper's approach: The authors propose Latent Fusion Jailbreak (LFJ). Gradients from a refusal loss determine the layers and tokens to intervene on, then per-layer mixing coefficients are optimized; the edited prompt states pass sequentially through subsequent blocks. The authors also study latent-space adversarial training against this interpolation.
- Threat model:
- Goal: Obtain completions that an independent safety review labels as harmful. Merely avoiding canonical refusal phrases, or giving irrelevant, incoherent, or non-executable completions, does not count as success.
- Knowledge: White-box. Hidden states and their gradients are readable, and hidden states can be replaced at inference time, but the architecture or parameters cannot be changed. This capability targets open-weight models with modifiable inference graphs, is not exposed by standard closed-source APIs, and is stronger than the prompt interfaces of black-box PAIR and Score-based AutoDAN.
- Control scope: Weights, tokenizer, chat template, and decoding configuration are known; teacher-forced forward and backward passes are possible, and hooks can replace block inputs during prompt prefill. External reviewers provide no gradients or accept/reject feedback.
- Intervention constraints: Only user-content positions are modified; per-layer coefficients are limited to [0, 1]; layer and token masks are selected once from gradients on clean harmful queries and then fixed; HSI is applied only during prefill. The authors state this corresponds to a compromised or researcher-controlled inference pipeline, not a remote user of a protected API.
What related research exists?
Related work is separated into discrete prompts, continuous or latent-space optimization, and defenses; LFJ is positioned as query-paired state interpolation.
Discrete prompt optimization
- Handcrafted templates and GCG: Early jailbreaks like DAN rely on handcrafted role templates (Shen et al., 2024; Wei et al., 2023). GCG (Zou et al., 2023) uses token gradients to search for adversarial suffixes; the authors state such suffixes may have high perplexity and be caught by perplexity filters or adversarial suffix filters.
- AutoDAN and PAIR: AutoDAN (Liu et al., 2023) uses a hierarchical genetic algorithm to generate readable prompts; Table I labels it as Score-based, discrete genetic/LLM search. PAIR (Chao et al., 2023) uses an attacker model to iteratively rewrite prompts via black-box queries. The introduction also mentions TAP (Mehrotra et al., 2024).
- Wide-net: Xiang et al. (2026) query a set of target models, succeeding if any returns a harmful response. The authors state these discrete methods differ from LFJ in both attack surface and success definition.
Latent-space and continuous optimization
- Embedding-space attacks: GBDA (Guo et al., 2021) and PGD (Geisler et al., 2024) optimize continuous relaxations of token embeddings; EBGCG (Hu et al., 2024) first does embedding pre-optimization then searches discrete suffixes; ASETF (Wang et al., 2024) decodes continuous suffix embeddings back into text.
- Refusal suppression and concept directions: DSN (Zhou et al., 2024) is still a token-suffix method but adds an explicit refusal suppression loss. RepIt (Siu et al., 2025) identifies and suppresses concept-specific refusal vectors in the residual stream; related work also mentions constructing adversarial directions from safe/harmful representation differences.
- Latent variables as signals or intervention surfaces: LARGO (Li et al., 2025) optimizes latent vectors and decodes them into natural language; LatentBreak (Mura et al., 2025) uses latent-space feedback to select meaning-preserving word replacements. The authors state these methods' interfaces are not equivalent: the former two ultimately produce text, while RepIt and LFJ intervene on activations. Table I summarizes the optimization space, access mode, and limitations of representative methods.
Jailbreak defenses
Model level: RLHF (Ouyang et al., 2022), direct preference optimization (Rafailov et al., 2023), and adversarial fine-tuning on red-team data (Mazeika et al., 2024) all modify model parameters.
System level: Llama Guard filters inputs or outputs, SmoothLLM aggregates responses over perturbed prompts, and Erase-and-Check examines prompt subsequences.
Representation level: Jailbreak Antidote intervenes on activations at runtime, and GradSafe uses gradients to detect jailbreaks. The authors state that ASF and SmoothLLM operate on text inputs and thus do not directly eliminate internal state interventions; this motivates the attack-specific latent-space training in Section V.
Baselines and benchmarks: The reported experiments use Direct, PEZ, CJ, MAC, DSN, ED, COLD-Adapted, PAIR, and AdvPrompter as baselines. Benchmarks are AdvBench, MaliciousInstruct, PKU (BeaverTails subset), and ToxicChat. The authors state that GCG, AutoDAN, and recent representation-level methods appear in related work but are not included in the reported experiments.
The authors classify by inference-time threat and position LFJ as a white-box attack on the final model during prompt processing: its signature is a structurally consistent harmless reference and selective, sequential interpolation of the harmful stream; cross-interface comparisons are descriptive references only, not access-matched evaluations.
How does the paper address this problem?
Use refusal-loss gradients to select layers and tokens, optimize per-layer mixing coefficients, and propagate edited states sequentially during prefill.
The authors propose Latent Fusion Jailbreak (LFJ): for each harmful query, pair it with a structurally similar harmless reference, perform convex combination interpolation at gradient-selected layers and tokens, and then pass the edited states sequentially through subsequent transformer blocks (Figure 1, Figure 2).
Problem Setting
- Let the safety-aligned model be fθ. The forward pass is written in terms of block inputs: the residual stream of token i at layer l enters Blockl and yields the next layer's input. The attack does not modify weights, architecture, system message, conversation template tokens, or text queries.
- The differentiable proxy is a fixed compliant continuation y(qh), obtained by appending qh to a fixed prefix and truncating to at most 32 tokens. It is used only for coefficient optimization; final success is determined by an independent judge evaluating the full sampled response.
- Four constraints: only user content positions are modified; mixing coefficients are in [0, 1], with no extrapolation beyond paired states; layer and token masks are selected once and then fixed; HSI is applied only during prefill. Generation tokens are not interpolated, but a bounded refusal-phrase filter can block candidates before they enter the cache.
Topic Pairing and Alignment
- Harmless references are generated by a fixed API snapshot gpt-3.5-turbo-0125 (temperature 0, top-p=1, at most 512 output tokens), returning ordered candidates in one pass. Section IV-C gives the generation instructions; their syntactic constraints are not restated here.
- Two acceptance criteria: cosine similarity of bert-base-uncased sentence embeddings at least 0.8; multiset overlap of spaCy 3.7.2 (en_core_web_trf) dependency triples at least 0.70. If both fail, an editor unaware of the attack outcome revises the candidate with the highest mean of the two scores, and the same criteria are rechecked. Pairing is fixed before results are produced.
- The two queries are rendered as single-turn user content using the target model's published conversation template, with no additional system instructions. When lengths differ, an order-preserving proportional mapping maps harmful token positions to harmless tokens. The authors state that filtering makes aligned positions more comparable, but does not imply minimal Euclidean distance between the two hidden states.
Gradient-Based Point Selection and Coefficient Optimization
- The canonical phrase set R is shared across optimization, rejection sampling, and defense training. The refusal loss is the length-normalized negative log-likelihood of these phrases, used only to measure sensitivity, not to define ASR. The layer score is the sum of gradient L2 norms over all harmful tokens at that layer; layers exceeding the mean plus standard deviation across all layers enter the edit set, with the maximum layer used if the set is empty.
- Token scores aggregate gradients over selected layers; tokens exceeding the mean plus standard deviation enter the edit set, with the highest-scoring token used if the set is empty. The authors state this is a query-conditioned allocation limiting the intervention surface, not an indication that unselected positions are irrelevant to safety.
- The edited state of a selected token is a convex combination of the current harmful state and the aligned harmless state, h(l,+)=(1−α(l))h(l,−)+α(l)hbenign(l). The harmless block input is computed once in a separate forward pass. Interpolation at a later layer is recomputed on the stream already containing earlier edits; the clean-state-offset ablation pre-stores offsets per layer and injects them unchanged in a second pass.
- The attack loss is Lattack=Ltarget+β Lsupp+γ/m|α|22. The target term is the teacher-forced, per-token averaged negative log-likelihood of the compliant continuation; the suppression term stops penalizing once the per-token NLL of refusal phrases rises by δ=1 nat relative to initialization. β=0.5, γ=0.01, and m is the number of edited layers. Coefficients start at 0.1, projected gradient descent with step size 0.05, M=10, no per-query hyperparameter search or early stopping.
Decoding and Pipeline
- After obtaining final coefficients, a sequential prefill is rerun, caching from the edited stream; optimization-time caches are not reused. Decoding uses top-k=40, temperature 0.7, top-p=1.0, at most 256 new tokens. Generation states are not interpolated, and the cache is not rebuilt from a clean prompt.
- The first K=32 generated tokens use the same normalization as R. If a candidate would make the prefix end with any canonical phrase, it is masked and renormalized, checking at most 10 candidates per step; if none are found, decoding stops and returns the current sequence. Rejected candidates are not written to the cache.
- The authors treat re-selecting masks mid-optimization, injecting only clean offsets at each layer, and rebuilding the cache from a clean prompt after interpolation as distinct attacks. In terms of cost, the difference from direct prompting mainly comes from M=10 differentiable objective evaluations; the paper does not report wall-clock time for access-matched runs.
Attack-Specific Latent-Space Adversarial Training
- Each epoch recomputes layer and token masks from the current checkpoint with gradients cut off; harmless states are stop-gradient. Per-layer coefficients are sampled independently from U[0.2, 0.8], rather than doing inner-loop maximization. The authors state this is attack-distribution augmentation, not a certified min–max defense. Edits still propagate sequentially in the same way as the attack.
- The adversarial set has 1000 pairs from the BeaverTails training split not in the PKU test subset, satisfying the same pairing criteria. Another 1000 Alpaca harmless samples (seed 42, excluding examples matching BeaverTails unsafe-category filters) serve only as language-modeling regularization. Safety targets are drawn uniformly from refusal templates containing phrases from R; template texts are not listed here.
- The total loss is 0.7 times harmless cross-entropy plus 0.3 times adversarial loss. The adversarial term is the token-averaged negative log-likelihood of the safety target, plus a canonical-phrase term with weight λref=0.5. The five models are fine-tuned with LoRA (rank 16, scaling 32, dropout 0.05) on query and value projections; AdamW, learning rate 2×10^-5, weight decay 0.01, effective batch size 64, max length 512, 3 epochs.
- At test time, masks, coefficients, hidden states, and caches are recomputed from the post-defense checkpoint; perturbations optimized on the undefended model are not replayed. The authors state this evaluation only tests robustness to LFJ; benign utility must be tested separately.
What experiments did the paper conduct?
Across five models and four benchmarks, LFJ achieves a macro-averaged ASR of 94.13%; with random pairing it is 27.45%, and after adaptive defense it is 12.37%.
Experimental Setup
- Target models: Vicuna-7B-v1.5, LLaMA-2-7B-Chat, Guanaco-7B, LLaMA-3-70B-Instruct, Mistral-7B-Instruct-v0.1. The 70B model uses DeepSpeed ZeRO-3 sharding; the rest use data parallelism; weights are bfloat16, not quantized.
- Benchmarks and sizes: all 520 AdvBench items, keeping the published order; all 100 MaliciousInstruct items. PKU draws 500 without replacement from BeaverTails prompts labeled unsafe, sorted by identifier (NumPy PCG64, seed 42); ToxicChat keeps samples with toxicity label 1, also drawing 500. All methods share the same test examples and fixed pairings.
- Baselines: Direct, PEZ, CJ, MAC, DSN, ED, COLD-Adapted, PAIR, AdvPrompter. The authors state that GCG, AutoDAN, and recent representation-level methods were not included in the reported experiments. Gradient-suffix methods use a 20-token suffix with at most 500 updates; PAIR and ED use at most 20 target-model queries per item. The authors state Table II is a descriptive comparison, not an access-matched ranking.
- Metrics: ASR is the proportion judged harmful by the reviewer; responses must provide clear, executable information that substantially contributes to the malicious intent. String matching against R does not enter ASR. PPL uses only meta-llama/Meta-Llama-3-8B to describe LFJ responses, not for method ranking.
- Reviewer: API snapshot DeepSeek-V3-0324, temperature 0, top-p=1, at most 32 output tokens, no few-shot, returning only the specified JSON. Parse failures retry once; further failures are conservatively labeled safe. On 100 responses (25 per dataset, seed 42, across models and attack methods), two annotators label blindly, with a third adjudicating disagreements; 96 agree with the adjudicated label, 95% Wilson interval 90.2–98.4%. The paper states this is not inter-annotator agreement.
- Replication and aggregation: seeds {13, 21, 42}, controlling stochastic parts of sampling and attacks. ASR is computed per model–seed, then macro-averaged over 5×3. The MaliciousInstruct column is shown as integers; rounding occurs only after aggregation. The paper does not report seed-level uncertainty intervals, nor does it treat the three seeds as independent samples for significance testing.
Main Results
The table below follows Table II; each cell is the macro-averaged ASR (%) over five models and three seeds. Per-model ASR is not reported. PEZ and MAC are not listed; their Avg. values are 24.54 and 43.40, respectively.
Swipe horizontally to read the table
Method PKU ToxicChat AdvBench Malicious Avg. Direct 19.59 19.71 18.15 22 19.86 CJ 15.83 41.11 20.21 23 25.04 DSN 52.11 53.52 60.18 57 55.70 ED 74.71 48.59 75.10 74 68.10 COLD-Adapt. 74.28 77.43 81.53 84 79.31 PAIR 83.13 76.33 88.78 87 83.81 AdvPrompter 89.91 84.28 91.15 93 89.59 LFJ 93.75 90.99 94.76 97 94.13 - The authors state that LFJ's four-column average is higher than the listed baselines, with the highest listed baseline average belonging to AdvPrompter; this numerical difference is not an access-matched estimate of relative attack quality, because LFJ can modify internal states while several baselines can only modify text.
- The authors state that cross-column differences reflect both algorithm and interface, and the benefit of hidden-state interpolation cannot be separated from the benefit of direct state access. Although the Malicious column is shown as integers, it is still an aggregate over five models and three seeds, not a single-run success rate.
- In the table, CJ is below Direct on PKU, and ED is below its other three columns on ToxicChat. The paper offers no separate explanation for these two cases.
Query Pairing Ablation
- What was tested: Table III replaces the full pairing with random, unrelated harmless queries. Semantic similarity, syntactic similarity, and auxiliary-model candidate construction all change simultaneously.
- Results: Macro-average drops from 94.13% to 27.45%; the authors report a difference of 66.68 percentage points. Random pairing by dataset: PKU 20.89%, ToxicChat 28.67%, AdvBench 34.23%, Malicious 26%.
- Authors' interpretation: The authors state this supports the joint pairing pipeline under this protocol, but cannot separate the individual effects of the three factors; a factorial pairing study would be needed for that decomposition.
Hidden-State Interpolation Ablation
- What was tested: Table IV compares full HSI against uniform interpolation, random layers, fixed shallow/deep layers, all tokens, clean-state offsets, and no rejection sampling. Random layers keep the number of edited layers equal to |Ledit|.
- Results: No rejection sampling gives a macro-average of 86.72%; the authors report rejection sampling contributes 7.41 percentage points. Random layers give 32.66%. All tokens give 40.12%; the authors report a 57.4% relative drop from the full method. Clean-state offsets give 36.08%; the authors report a 61.7% relative drop.
- Authors' interpretation: The authors state that latent-space interpolation itself accounts for most of the success in this ablation. Random layers are the most direct control for query-specific layer selection; uniform and fixed layers change positions and other factors simultaneously, so no single-factor estimate can be drawn. The gap between sequential recomputation and clean offsets, the authors state, is consistent with later-layer interpolation being recomputed with prior edits, rather than a general iterative-inference effect. These two comparisons did not evaluate fluency or detectability.
Attack-Specific Latent-Space Adversarial Training
- What was tested: After training the five models separately per Section V, sensitive layers, edited tokens, and coefficients are recomputed on the defense checkpoint for each test query; text pairings are fixed. Lower ASR in Table V is better, and it does not include benign utility.
- Results: Undefended macro-average 94.13%; full defense 12.37%. The authors report an absolute drop of 81.76 percentage points and a relative drop of 86.9%. Removing Ladv and training only on harmless data gives 85.62%; the authors report only 8.51 percentage points below undefended. Removing the canonical refusal term gives 28.70%; this variant still retains the safety-target loss.
- Authors' interpretation: The authors state this characterizes robustness to adaptively re-optimized LFJ, does not identify a specific safety geometry, and does not evaluate generalization to DSN, RepIt, GCG, or other adaptive latent-space attacks.
Other Ablations and Analyses
- Uniform, Fixed Shallow, and Fixed Deep give macro-averaged ASR of 28.03%, 30.03%, and 37.90% (Table IV).
- No rejection sampling by dataset: 86.43%, 83.15%, 88.29%, 89% (PKU, ToxicChat, AdvBench, Malicious, Table IV).
- Full defense by dataset: 11.12%, 10.45%, 13.90%, 14%; no refusal term: 27.89%, 26.67%, 29.23%, 31% (Table V).
- Random layers by dataset: 31.59%, 32.87%, 32.17%, 34%; all tokens: 38.96%, 42.15%, 39.35%, 40% (Table IV).
- Reviewer and adjudicated human labels agree on 96/100, Wilson interval 90.2–98.4% (VI-G); the paper states this is not an inter-annotator statistic.
- LFJ response PPL is 2.8 (LLaMA-3-8B, VI-H). The paper does not report cross-method fluency comparisons or access-matched wall-clock time.
What are some points that can be further explored?
The authors state that the defense was not tested against other attacks or for benign utility, and they mark paired agents, fixed budgets, and evaluation scope as boundaries.
Limitations and future directions noted by the authors
- Defense scope: The authors state that this defense evaluation does not cover transfer to other attack types, nor benign utility (Abstract; Section V). The conclusion further states that transfer to other attacks, clean-task utility, and false refusal rates still need evaluation (VIII).
- Reference construction: The authors say cosine and dependency overlap thresholds are imperfect proxies for semantic roles and clause correspondence; proportional alignment is reproducible but not a learned word alignment. The reported English benchmarks do not address long prompts, nested clauses, code, and languages with different tokenization patterns (VII-C). VII-A states that separately estimating the effects of semantics, dependency, and manual revision requires a factorial paired study.
- Local optimization: Point selection depends on refusal loss on clean harmful states, and discrete masks are then fixed; layers or tokens that only become important after earlier interventions cannot enter the mask. Fixed at one initialization, ten steps, and no per-query early stopping, it may stop at poor coefficients or at the feasible-region boundary. Larger budgets or joint reselection of sites would define a stronger, more expensive adaptive variant, which the authors say should be reported separately (VII-C).
- Refusal phrase coverage: The authors say the nine phrases in R do not cover all safe responses, policy explanations, or indirect refusals. This does not directly inflate ASR because external review labeled evasive and non-executable outputs as safe, but it may affect optimization efficiency and the contribution of refusal sampling. Extending R, learning a differentiable refusal classifier, or using multilingual objectives would change the proxy and require separate evaluation (VII-C).
- Evaluation coverage: The authors say the evidence is limited to five open-source instruction models, four English safety datasets, and the specified software and decoding stack; transfer to closed-source systems, multilingual models, multimodal models, and future chat templates is untested. Per-model tables and uncertainty intervals are also needed to distinguish model-family differences from the reported macro averages (VII-C).
- Future work: The authors say future work should examine access-matched latent-space baselines and defenses across multiple intervention families, while also measuring per-model uncertainty and benign utility (VIII). VII-B states that broader defenses should also test other latent directions, discrete suffixes, decoding attacks, and parameter-level attacks, as well as clean-task accuracy and false refusal rates; the system isolation suggestion in the paper is a design implication of the threat model, not a defense evaluated in these experiments.
Experimental coverage
- The tested targets are Vicuna-7B-v1.5, LLaMA-2-7B-Chat, Guanaco-7B, LLaMA-3-70B-Instruct, and Mistral-7B-Instruct-v0.1, 5 in total; the main results, paired ablations, HSI ablations, and defense tables are macro averages over these 5 models × seeds {13, 21, 42} (VI-C, VI-E).
- Per model and seed, the test set sizes are PKU 500, ToxicChat 500, AdvBench 520, and MaliciousInstruct 100; the sampling seed for PKU and ToxicChat is 42 (VI-B).
- Attack baselines in the reported experiments are Direct, PEZ, CJ, MAC, DSN, ED, COLD-Adapted, PAIR, and AdvPrompter. The paper states that GCG, AutoDAN, and recent representation-level methods appear in related-work comparisons but were not included in these experiments (VI-D).
- ASR review is by DeepSeek-V3-0324; manual verification is 100 items, 25 per dataset. The paper reports agreement between review and adjudicated human labels, not inter-annotator agreement statistics (VI-G).
- The defense is LoRA fine-tuning per model on 1000 adversarial pairs and 1000 Alpaca harmless samples, with adaptive re-optimization of LFJ against the defense checkpoint at test time (V, VI-J). The paper states that the full-token and sequential propagation comparison did not evaluate fluency or detectability (VII-A); per-model ASR is not reported, nor is access-matched wall-clock time (IV-F, VI-H).
Summarize the main content of the paper
LFJ performs white-box jailbreaks using hidden-state interpolation paired with queries, achieving a macro-average ASR of 94.13%, which drops to 12.37% after targeted training.
LFJ is a white-box jailbreak: on open-source aligned models with modifiable inference graphs, it interpolates hidden states between a harmful query and a structurally matched harmless reference during the prompt prefill phase.
- Problem: The authors aim to test whether refusal behavior remains stable under direct, bounded perturbations to internal prompt representations. Text-interface jailbreak evaluations cannot cover such compromised or researcher-controlled inference pipelines.
- Method: An auxiliary model generates harmless references, which are filtered by cosine similarity and dependency overlap, then aligned to tokens via order-preserving mapping. Refusal-loss gradients select layers and tokens once; one coefficient per layer, projected gradient descent for 10 steps, with coefficients constrained to [0, 1]. Later-layer interpolation is recomputed on a stream that already contains prior edits. Bounded rejection sampling is used for the first 32 generated tokens. Success is determined by an independent reviewer based on executable harmful information, not by whether refusal phrases appear.
- Main result: The authors report a macro-average ASR of 94.13% across five open-source models, four benchmarks, and three seeds (Table II). The table shows the highest baseline average is AdvPrompter at 89.59%. The authors call this comparison descriptive because the interfaces differ.
- Components: Random pairing gives a macro-average ASR of 27.45% (Table III). Removing rejection sampling gives 86.72%, clean-state offset gives 36.08%, and full-token gives 40.12% (Table IV). The authors say structured pairing, gradient-based point selection, sequential recomputation, and rejection sampling all enter the reported results.
- Defense and conclusion: After online recomputation of the same type of HSI perturbation and LoRA training, the macro-average ASR against adaptively re-optimized LFJ is 12.37%; removing the adversarial term gives 85.62% (Table V). The authors say this result applies only to LFJ-style paired interpolation; transfer to other attacks, clean-task utility, and false refusal rates still need evaluation. The authors also mark internal state access as an attack surface not captured by prompt evaluation.
Related papers
- Safety Alignment Should Be Made More Than Just a Few Tokens DeepAnalysis / interpretabilityICLR 2025