Latent-space safety alignment without target answers: unsupervised adversarial training improves LLM jailbreak robustnessTarget-free Latent Safety Alignment
Target-free LAT learns target-free multi-direction latent interventions on three instruction models; the authors state that jailbreak SR decreases while utility remains close to the original model.
Aligned instruction LLMs. HarmBench covers white-box and black-box jailbreaks: GCG, AutoDAN, GPTFuzz, TAP, FewShot, plus Multilingual and CodeChameleon. The inner adversary has no jailbreak prior and only intervenes on shallow hidden states. SR is the StrongREJECT score; lower is more robust.
- Existing latent-space adversarial training constructs adversarial examples using a fixed harmful target or a single refusal direction, resulting in narrow behavior patterns that cannot cover the diverse harmful responses of real jailbreaks. The authors aim to elicit diverse harmful behaviors from directly harmful queries without a prior on jailbreak strategies and use them for alignment.
- Target-free LAT injects multiple sets of unit-norm interventions at each token in shallow layers, forms a behavior shift matrix at deeper layers and maximizes its nuclear norm, making each intervention shift strong and consistent across prompts while being low-redundancy with each other. The outer layer uses LoRA to fit refusal under all interventions and applies a KL constraint with the original model on benign prompts.
- Three instruction models compared against Targeted LAT, ReFAT, Deep-Refusal, and DAT. The authors state that overall defense is strongest on Qwen and Mistral and remains competitive on Llama; in Table 1, Llama's FewShot and Mistral's FPR are not the lowest. AlpacaEval and lm-eval are close to the original model.
- The authors state in Appendix B that additive latent interventions only explore local linear directions, and multi-direction remains a limited local approximation; real jailbreaks may lie on a nonlinear manifold. The experiments cover three open-source instruction models and seven attacks; causal ablations and hyperparameter analysis are stated to be on Qwen. The paper does not report the number of review models or attack samples.
- Evaluated models
- Qwen2.5-7B-InstructLlama-3-8B-InstructMistral-7B-Instruct-v0.2
- Benchmarks
- HarmBenchMultilingualCodeChameleonOR-BenchAlpacaEval-2.0ARC-ChallengeGSM8KTruthfulQAAdvBenchUltraChat
- Metrics
- StrongREJECT score (SR)ASRFPRAlpacaEval win ratelm-eval average accuracysemantic entropy
To address the problem that existing adversarial training relies on fixed harmful targets or fixed benign–harmful data pairs for targeted activation ablation, resulting in homogeneous adversarial example behaviors, the researchers propose a target-free adversarial training framework, Target-free Latent Safety Alignment, which unsupervisedly amplifies and diversifies behavior-level shifts in the model's latent space to generate semantically diverse adversarial examples. The method uses semantic entropy as an output-level measure of adversarial behavior diversity, elicits multiple harmful behaviors on the target model, mitigates behavior narrowing, and improves robustness against jailbreak attacks.
Related events and news
1 events · 0 news mentions
- This event's paper
无目标潜在安全对齐防御越狱
Paper analysis
What problem does this paper attempt to solve?
Without a prior on jailbreak strategies, target-free latent interventions cover multiple harmful behaviors to mitigate LAT's behavior narrowing.
The adversarial examples of existing latent-space adversarial training are behaviorally narrow and cannot cover the diverse harmful behaviors elicited by real jailbreaks.
- Scenario: The authors argue that jailbreak prompts bypass alignment and bring about cyber abuse, harmful instruction generation, and policy evasion, so jailbreak robustness is a core issue for safe LLM deployment (Section 1).
- Limitations of existing work: LAT injects interventions into the intermediate-layer hidden states of harmful queries and then fine-tunes the model to refuse under the same intervention. The authors argue that existing examples are either optimized toward fixed harmful completions or ablated along a single refusal direction, making behaviors homogeneous and mismatched with direct compliance, role-playing, hypothetical scenarios, coding, and multilingual bypasses.
- Core question: Without a jailbreak strategy prior, can diverse harmful responses be elicited from directly harmful queries alone, in a target-free and unsupervised manner, thereby expanding the behavioral coverage of adversarial training?
- Proposed approach: target-free latent-space adversarial training. The shallow layers learn multiple sets of source interventions, amplify and disperse deeper behavioral shifts, and then safety alignment is performed under these interventions; semantic entropy measures output-side diversity.
- Threat model:
- Victim system: An LLM that has undergone safety alignment. The experimental subjects are three open-source instruction models.
- Attack goal: Adversarial prompts induce harmful responses and bypass alignment defenses. The real patterns the authors enumerate include direct compliance, role-playing, hypothetical scenarios, coding, and multilingual bypasses.
- Attacks in evaluation: HarmBench covers white-box optimization-based and black-box feedback-guided jailbreaks, listed as GCG, AutoDAN, GPTFuzz, TAP, and FewShot; Multilingual and CodeChameleon use the same harmful prompts as HarmBench. The paper does not itemize the knowledge type of each attack.
- Training-time adversary: The inner adversary does not use a jailbreak strategy prior and does not optimize toward a fixed harmful completion; it optimizes shallow source interventions and injects them into hidden states. The evaluation reports the StrongREJECT score SR; lower means more robust.
What related research exists?
Related work focuses on refusal direction manipulation and single-mode LAT; the authors criticize the latter for narrow behavior coverage.
Jailbreak attacks
- Prompt jailbreaks: The introduction cites Zou et al. (2023), Liu et al. (2023), Perez et al. (2022), Mehrotra et al. (2023), Chao et al. (2023), Deng et al. (2024), and Lv et al. (2024) as attacks that can bypass alignment and elicit a variety of harmful responses. Yi et al. (2024) is cited as a survey of jailbreak attacks and defenses.
- Behavior spectrum: The authors use these works to show that real jailbreaks can elicit direct compliance, role-playing, hypothetical scenarios, coding, and multilingual bypasses, and on this basis criticize training-time adversarial examples as too narrow.
Representation-level refusal control
- Single refusal direction: Arditi et al. (2024) studies that refusal can be mediated by a single direction. Appendix C states that this low-rank structure makes refusal controllable.
- Vector steering: CAST, Antidote, and AlphaSteer (Lee et al., 2025; Shen et al., 2024; Sheng et al., 2025) perform vector-steering-style alignment. The paper notes that CAST and Antidote do not rely on real jailbreak samples but instead increase the refusal tendency for arbitrary inputs, thus over-refusing; AlphaSteer relies on real jailbreak samples to distinguish benign from harmful inputs but is vulnerable to unseen jailbreaks.
Latent-space adversarial training
- Fixed targets: TLAT (Sheshadri et al., 2024) and LATPC (Yi et al., 2025) optimize latent representations toward fixed harmful outputs. Section 2 describes such methods as maximizing the log probability of predefined harmful completions.
- Refusal ablation: ReFAT (Yu et al., 2025) does not use explicit target completions; it obtains an intervention via difference-in-means on harmful/benign contrastive pairs. The paper notes that it still tends to elicit direct compliance rather than a variety of harmful behaviors.
- Distribution-aware: DAT (Hu et al., 2026) uses the reverse process of diffusion language models to generate diverse prompts. The paper notes that these prompts are ultimately still optimized toward fixed harmful targets and fail to elicit diverse harmful behaviors.
Baselines and benchmarks
- Baseline methods: Targeted LAT, ReFAT, Deep-Refusal (Xie et al., 2025; randomly ablating refusal directions at different layers and token positions), and DAT. Each method uses the corresponding base model and the same LoRA configuration.
- Benchmarks: Robustness is measured with GCG, AutoDAN, GPTFuzz, TAP, and FewShot on HarmBench, plus Multilingual and CodeChameleon. Utility is measured with AlpacaEval-2.0 and lm-eval (ARC-Challenge, GSM8K, TruthfulQA). Over-refusal is measured with OR-Bench. Training harmful data comes from OR-Bench Toxic and AdvBench, and benign data from UltraChat.
The authors position this paper beyond single-intervention LAT: it does not rely on output supervision, uses deep latent shifts as a proxy for behavioral shifts, and branches multiple harmful behaviors from one harmful prompt within the same step.
How does the paper address this problem?
Shallow multi-directional interventions with a nuclear norm objective; the outer layer learns refusal under all interventions and constrains benign KL.
Target-free LAT changes the inner adversary from "one intervention and one harmful pattern per harmful prompt" to learning multiple sets of target-free interventions at once, then uses outer alignment to pull these trajectories back to refusal.
Bi-Level Setup
- Unified form: Section 2 writes existing LAT as bi-level optimization. Given a harmful prompt and source-layer hidden states, the inner level finds interventions, and the outer level updates the model on the intervened representations. Existing methods construct only one intervention vector per step.
- This paper's set: The inner level directly optimizes V, containing K source interventions. Main experiments use K=64, each vector with unit norm.
- Injection location: Inspired by prior results that shallow layers are more semantic and deep layers more behavioral-decision oriented (Voita et al., 2019; Geva et al., 2021; Gu et al., 2025), the authors add interventions at each token in shallow layer s and read shifts at deeper behavioral layer t. Main experiments use s=10, t=20.
- Injection form: For prompt x and intervention v_k, h′s(x)=hs(x)+λ vk. λ is model-specific: 1.5 for Llama-3-8B-Instruct and Mistral-7B-Instruct-v0.2, 15 for Qwen2.5-7B-Instruct (Table 5).
Inner Nuclear Norm Adversary
- Behavior shift: The shift at layer t is the difference between hidden states with and without intervention. Each intervention is averaged over the harmful batch to form a column vector; K columns are stacked into the behavior shift matrix C(V).
- Objective: The inner level maximizes the nuclear norm, Linner(V)=||C(V)||∗. The paper connects this to both column norms and inter-column inner products: diagonal terms correspond to the strength of each average shift, off-diagonal terms to redundancy between interventions.
- Consistency: The paper decomposes a single column norm into the magnitude of each prompt's shift and an alignment term between prompt pairs. For the column norm to be large, both individual shifts must be large and the shift directions of the same intervention across different harmful prompts must be consistent.
- Diversity: The paper writes that the nuclear norm does not exceed the sum of column norms and equals it only when the columns are mutually orthogonal. Maximizing it is therefore described as increasing each column while pushing different interventions into low-redundancy behavior patterns. Appendix D additionally gives an effective rank analysis when directly performing nuclear norm ascent on the matrix; the network-induced C(V) is not guaranteed to be monotonic.
Outer Alignment Objective
- Harmful refusal: For harmful prompts and all source interventions, the outer level maximizes the log-probability of refusal responses, denoted L_harm. The paper states this maps multiple potentially harmful trajectories back to refusal, rather than recovering one adversarial pattern per step. How the refusal responses are obtained is not written in the paper.
- Benign preservation: For benign prompts, uses token-wise KL with the original aligned model so that generation under interventions is close to the original model's responses, denoted L_benign.
- Combination: L_outer is the sum of the two terms; the paper does not write additional weights.
Training Implementation and Diversity Metrics
- Procedure: Each round resamples harmful and benign prompts and randomly initializes V as unit vectors (Algorithm 1). The inner level optimizes V using only harmful prompts; the outer level updates only LoRA, with other parameters frozen. LoRA rank 16, alpha 32, applied to all layers.
- Steps: Inner level 10 steps, inner harmful batch size 8; outer level 20 steps per round, learning rate 2×10^-5 (Table 5). The total number of training rounds is not given in Table 5.
- Data: Harmful training set combines OR-Bench Toxic and AdvBench, 1000 entries total, deduplicated against the HarmBench evaluation set. Benign is 1000 entries from UltraChat. Additionally, 1000 boundary prompts are sampled from OR-Bench, disjoint from the evaluation split; the paper does not write which loss these 1000 entries enter.
- Diversity metrics: For each prompt, outputs are generated under all source interventions, embedded with bge-m3, then clustered with DBSCAN without presetting the number of clusters. Semantic entropy is the entropy of the empirical cluster distribution; dataset statistics are the average of per-prompt entropy and cluster count. DBSCAN's specific parameters are not given in the paper. Evaluation success is measured with StrongREJECT's SR, lower is more robust.
What experiments did the paper conduct?
The authors state Qwen and Mistral have the strongest defenses; in Table 1, Llama's FewShot and Mistral's FPR are not the lowest.
Experimental Setup
- Models: Qwen2.5-7B-Instruct, Llama-3-8B-Instruct, Mistral-7B-Instruct-v0.2. All three are fine-tuned with LoRA; the comparison methods use the same base model and the same LoRA configuration.
- Jailbreaks: GCG, TAP, AutoDAN, GPTFuzz, FewShot on HarmBench, as well as Multilingual and CodeChameleon. The paper does not report the number of prompt entries for each attack.
- Utility and over-refusal: AlpacaEval-2.0 reports win rate. lm-eval reports the average accuracy across ARC-Challenge, GSM8K, and TruthfulQA, not listed separately. OR-Bench reports the over-refusal rate FPR, lower is better.
- Baselines: Targeted LAT, ReFAT, Deep-Refusal, DAT. The original model is included as a reference in Table 1, not as a training-based defense.
- Evaluation: Responses are generated with vLLM, harmful compliance is assessed with StrongREJECT, and the average SR is reported, lower is more robust. The evaluation model is not specified in the paper. In the following text, ASR is the proportion of SR > 0.3. The SR in Table 1 and the Mean SR in Table 4 are written differently; the paper does not state whether they are on the same scale.
- Implementation environment: Appendix A states a default single NVIDIA RTX PRO 6000, PyTorch 2.10.0, CUDA 12.8, Transformers v5.5.4, vLLM v0.19.1. The number of repetitions is not reported in the paper.
Main Results
The table below only excerpts part of Table 1. Lower SR and FPR are better, higher Alpaca WR is better. Values are as in the original table, without percentage signs. Rows for Targeted LAT, ReFAT, and Deep-Refusal are omitted, as well as DAT for Mistral.
Swipe horizontally to read the table
Model Method GCG CodeChameleon FPR Alpaca WR Qwen2.5-7B-Instruct Original model 49.94 23.34 5.58 50 Qwen2.5-7B-Instruct DAT 4.01 19.42 15.35 47.26 Qwen2.5-7B-Instruct Ours 1.32 6.33 12.48 48.53 Llama-3-8B-Instruct Original model 29.79 22.34 9.97 50 Llama-3-8B-Instruct DAT 3.33 18.96 27.43 47.82 Llama-3-8B-Instruct Ours 2.15 8.32 19.52 47.55 Mistral-7B-Instruct Original model 63.34 25.87 1.21 50 Mistral-7B-Instruct Ours 3.15 8.88 4.15 48.47 - Authors' overall assessment: The authors state that Ours has the strongest overall defense on Qwen and Mistral, and remains competitive on Llama, and that the gains are more pronounced on GCG, AutoDAN, GPTFuzz, FewShot, and CodeChameleon. A counterexample in Table 1 is Llama's FewShot: Ours is 7.48, higher than Targeted LAT's 6.75 and DAT's 6.84. On AutoDAN, Ours is Qwen 2.18, Llama 0.11, Mistral 0.30, while the original models are 38.81, 3.04, 74.67, respectively.
- Two types of heterogeneous attacks: The authors state that existing LAT baselines already reduce SR on Multilingual, but have limited reduction on CodeChameleon. Ours on Multilingual is 3.66, 3.45, 6.20 (Qwen, Llama, Mistral). On CodeChameleon, the lowest values among training baselines are Qwen's ReFAT 18.94, Llama's ReFAT 18.73, and Mistral's DAT 21.41.
- Refusal and utility: The authors state that on OR-Bench, Ours has the lowest FPR among training-based defenses on Qwen and Llama, but not on Mistral. On Mistral, DAT's FPR is 3.33, lower than Ours' 4.15. lm-eval average accuracy: Qwen Ours 76.8, original model 79.4; Llama 63.1 and 63.9; Mistral Ours and DAT both 57.3, original model 58.1. The Alpaca WR for all three original model rows is 50; the paper does not explain this value.
Inner Dynamics and Semantic Patterns
- What was measured: Section 5 tracks the magnitude and cross-prompt consistency of target layer shifts, then uses SR, ASR, semantic entropy, and the number of semantic clusters to examine outputs. Figure 2 does not specify the model in the caption; specific endpoints on the axes are not read here.
- Table 4: Ten-step inner trajectory with K=64, model not specified in the paper. Effective rank drops from 55.43 at step 0 to 22.14 at step 1, and is 42.34 at step 9. Mean SR goes from 0.11 to 0.52; harmful-only entropy from 0.07 to 0.70; the proportion of SR > 0.3 from 0.17 to 0.67, with steps 2 and 8 at 0.72.
- Authors' interpretation: The authors state that step 1 first enhances the average shift that can elicit harmful outputs, with a temporary drop in effective rank; after continued optimization, multiple shift directions recover. Table 2 labels the optimized directions as v31 multilingual (Chinese), v62 role-playing, v37 coding, v9 direct compliance; random initialization rarely jailbreaks. Appendix H provides stepwise DBSCAN plots; the authors state that outputs leave the initial refusal region and split into multiple clusters. Harmful text is not reproduced.
Multi-Direction Causal Ablation
- Setup: Only on Qwen2.5-7B-Instruct. V contains 512 directions, comparing supervised fine-tuning without latent adversaries, single-direction targeted-LAT, taking the 64 least similar directions, and using all 512 directions. All other factors remain unchanged.
- Metrics: Figure 3 reports full-V NLL, training loss, and StrongREJECT scores. full-V NLL is the negative log-likelihood of refusals on all turned adversarial samples; the authors treat it as a proxy for vulnerability, higher means more susceptible to latent interventions. Endpoint values in the figure are not given in table form in the paper.
- Authors' interpretation: The authors state that without latent adversaries, training loss is lowest and converges fastest, but full-V NLL and StrongREJECT are higher; single-direction is better than no adversary, but both vulnerability metrics remain relatively high. The 64 diverse directions are comparable to all 512 directions on these two metrics. The authors argue that what drives robustness is behavioral coverage, not the raw number of directions.
Other Ablations and Analyses
- K (Appendix F, Qwen2.5-7B-Instruct): Values 16, 32, 64, 128, 512. The authors state that mean SR and semantic entropy increase monotonically from 16 to 512, with diminishing returns after 64; the main drop in jailbreak SR occurs between 16 and 64.
- λ: Values 5, 10, 15, 20, 30. The authors state that from 5 to 15, mean SR and semantic entropy increase; beyond 15, mean SR decreases while entropy continues to increase, and they state that around 15 gives the best balance.
- Inner batch: Values 2, 4, 8, 16, 32. The authors state that from 2 to 8, both inner metrics improve, then decline beyond 8, with jailbreak SR lowest around 8.
- Table 3: Directly optimizing a 4096×64 matrix with initial values all 10^-5, 100 steps of SGD. With nuclear norm and step size 10^-5, effective rank goes from 1.00 to 4.76 at step 10 and 47.56 at step 100; Frobenius norm stays at 1.00. With step size 10^-2, nuclear norm is 64.00 at step 10, Frobenius norm still 1.00.
- Table 6: Single-adversary construction: Targeted LAT is 2 per step, total 2T, 0.85s; ReFAT is 1 forward pass, 0.24s; Ours is 2T/K. The authors state that with T=10, K=64, it is about 0.31 times, 0.012s. The hardware at test time is not specified in that table.
What are some points that can be further explored?
The authors note that additive latent interventions only explore local linear directions.
Limitations and Future Directions Noted by the Authors
- Local linearity: Appendix B states that LAT, including this paper, relies on additive latent perturbations, which in practice only explores locally linear directions near the representation.
- Still an approximation: The same section states that the multi-directional form expands behavior coverage but remains a limited local approximation.
- Nonlinear manifold: The authors believe real jailbreak behavior is likely located on a complex nonlinear manifold that cannot be fully covered by linear perturbations alone.
- Future modeling: The direction proposed in Appendix B is to model nonlinear jailbreak manifolds in representation space, such as higher-order interactions or adaptive adversaries that vary with input.
- Geometric problem: The authors call the geometry of harmful behavior in latent space an open problem for robust alignment.
- Shift in conclusion: Section 6 writes that the results shift the focus of LAT from sheer adversarial strength to behavior coverage, and encourage broader exploration of adversarial behavior in representation space.
Experimental Coverage
- Models: The tested models are Qwen2.5-7B-Instruct, Llama-3-8B-Instruct, Mistral-7B-Instruct-v0.2, called three open-source instruction models in Section 4.1.
- Attacks and metrics: Jailbreaks are GCG, AutoDAN, GPTFuzz, TAP, FewShot on HarmBench, plus Multilingual and CodeChameleon; the main metric is StrongREJECT's SR (Table 1).
- Utility and refusal: Also reports OR-Bench FPR, AlpacaEval-2.0 win rate, and average accuracy on ARC-Challenge, GSM8K, TruthfulQA.
- Comparisons and ablations: Training baselines are Targeted LAT, ReFAT, Deep-Refusal, DAT. The direction ablation in Figure 3 and the hyperparameter analysis in Appendix F are stated to be on Qwen2.5-7B-Instruct.
- Settings not reported in the paper: The number of prompt entries per attack, the number of repetitions, and the evaluation models for StrongREJECT and AlpacaEval are not reported. The ten-step inner trajectory in Table 4 and Figure 2 do not specify the model. The total number of training rounds is not given in Table 5.
Summarize the main content of the paper
Target-free LAT uses target-free multi-directional latent interventions to expand behavior coverage; the authors claim it improves jailbreak robustness while preserving utility.
Target-free LAT is a latent-space adversarial alignment that does not supervise harmful outputs. The problem it addresses is that existing LAT mostly constructs only one harmful behavior per step, which does not match patterns such as direct compliance, role-playing, coding, and multilingual in real jailbreaks.
- Method: Learns multiple sets of unit-norm interventions simultaneously in shallow layers, aggregates them into a behavior shift matrix at deeper layers, and maximizes the nuclear norm so that each shift is strong and consistent across prompts, with different interventions being low-redundancy. The outer layer learns refusal under all interventions and constrains benign generation with KL to the original model; only LoRA is updated.
- Main evaluation: Three open-source instruction models, seven jailbreaks, plus OR-Bench, AlpacaEval-2.0, and lm-eval average accuracy. Comparisons are Targeted LAT, ReFAT, Deep-Refusal, and DAT.
- Qwen: In Table 1, Ours's GCG SR is 1.32 and CodeChameleon is 6.33; the original model is 49.94 and 23.34. OR-Bench FPR is 12.48, lower than other training-based defenses in the same table.
- Llama and Mistral: On Llama, Ours's AutoDAN SR is 0.11 and CodeChameleon is 8.32; FewShot is 7.48, higher than Targeted LAT's 6.75. On Mistral, GCG is 3.15 and CodeChameleon is 8.88; FPR is 4.15, higher than DAT's 3.33.
- Authors' conclusion: The authors state that the robustness improvement does not come at the cost of utility collapse, and regard behavior coverage rather than sheer adversarial strength as the key factor in latent-space alignment. Appendix B also states that additive interventions still only cover locally linear directions.
Related papers
Show 3 more papers
- Adversarial Self-DistillationDefensesarXiv