SkillSafe-Bench: Static safety of skill-merged models cannot predict adaptive jailbreak robustnessWhen Skills Meet Safety: Benchmarking and Characterizing the Adaptive Jailbreak Robustness of Skill-Merged LLMs
Quick read
Evaluation and benchmarksBased on the paper PDF (generated by Gemini); refer to the original
The authors evaluate the adaptive jailbreak robustness of skill-merged models and find that static safety does not reflect dynamic robustness; for example, the Qwen math merged model achieves a GCG ASR of 0.280.
- Model merging is commonly used to give aligned models new skills, but existing safety evaluations generally rely on static refusal tests. Since safety alignment is mainly concentrated in the first few tokens of generation, static evaluation cannot reflect a model's vulnerability under adaptive attacks.
- The authors propose the SkillSafe-Bench benchmark, which evaluates static and adaptive jailbreak performance under a grid of multiple base models, skills, and merging methods, using a dual-judge AND rule; and propose SubSafe-Merge, which removes overlapping components of the safety subspace via projection.
- Static safety and adaptive robustness are decoupled: on Qwen and Gemma, static-safe math-merged models show increased ASR under adaptive attacks (Qwen rises from static 0.100 to GCG 0.280); while Llama and Phi-4 remain robust. SubSafe-Merge can eliminate static degradation caused by same-recipe erasure.
- Safety subspace estimation depends on a specific ablation model and can only detect same-recipe ablations, not SFT uncensoring; adaptive ASR is limited by a fixed compute budget and constitutes a lower bound on vulnerability; weight-space geometric metrics cannot predict the base model's adaptive vulnerability.
- Evaluated models
- Qwen2.5-7B-InstructLlama-3.1-8B-InstructMistral-7B-Instruct-v0.3Qwen2.5-14BPhi-4-miniGemma-2-9Bhuihui-ai abliterated-v2Orion-zhen/Qwen2.5-7B-Instruct-UncensoredGoekdeniz-Guelmez/Josiefied-Qwen2.5-7B-Instruct-abliterated v1Goekdeniz-Guelmez/Josiefied-Qwen2.5-7B-Instruct-abliterated v2jeffmeloy nerd-uncensored-v1.0jeffmeloy nerd-uncensored-v1.1
- Benchmarks
- HarmBenchJailbreakBenchGSM8KMMLUHumanEvalIFEval
- Metrics
- Static ASRAdaptive ASRStatic–Adaptive GapGSM8K accuracy
The researchers propose SkillSafe-Bench, evaluating static refusal, adaptive jailbreak robustness, and capability retention on a controlled grid of merging methods, transferred skills, base models, and merging coefficients, using a dual-judge AND rule with the HarmBench classifier and Llama Guard 3. Across six open-source base models (five model families, two scales), static safety cannot predict adaptive robustness: Qwen2.5-7B and Llama-3.1-8B, equally safe under static screening, show math skill-merged models jailbroken 66%–76% for Qwen and 22%–24% for Llama under semantic template attacks; Gemma-2-9B, statically the safest, is jailbroken 60%, while Phi-4-mini remains robust. The study also finds that the static safety effect of merging depends on base alignment strength, and proposes a data-free geometric signal—the overlap of task vectors with the safety subspace—that can distinguish same-recipe abliteration-style refusal removal from real skills, leading to the SubSafe-Merge projection method that eliminates such erosion while preserving capabilities.
Why it was selectedThe paper uses a controlled grid to compare static refusal and adaptive attack performance, providing a reproducible benchmark design for evaluating safety risks after model merging.
Paper analysis
What problem does this paper attempt to solve?
The paper notes that static refusal evaluation cannot reflect the true safety of skill-merged models, and aims to systematically evaluate and mitigate the vulnerability of merged models under adaptive jailbreak attacks.
The core problem the paper attempts to solve is that evaluation methods based on static refusal tests overestimate the safety of skill-merged large models and fail to reflect their true vulnerability under adaptive jailbreak attacks.
- Scenario and importance: Model merging has become a common way to inject domain skills such as math and code into aligned base models, combining task vectors without retraining, but this process may damage the base model's original safety alignment.
- Shortcomings of existing evaluation: Existing merging research mainly relies on fixed harmful prompts for static refusal tests. The authors point out that safety alignment is shallow, usually concentrated in the first few generated tokens, causing merged models with good static refusal performance to be broken by adaptive attacks that bypass the initial refusal.
- Core observation and hypothesis: The authors hypothesize that model merging may preferentially destroy deeper alignment components that resist adaptive attacks while preserving the shallow refusal layer; and that model vulnerability is often inherited from the base model itself rather than created by the merging operation.
- Threat model: Set in an open-weight environment. The attacker's goal is to induce the merged model to generate compliant harmful responses to harmful behaviors; in terms of knowledge and capability, the attacker has access to interact with the model and can run adaptive attack algorithms such as GCG, PAIR, or Crescendo under a fixed compute budget; the paper explicitly does not consider attackers directly editing weights, closed-source models, or multimodal inputs; the victim system is a skill-merged model built by benign practitioners.
- Proposed solution: The authors propose a controlled evaluation benchmark, SkillSafe-Bench, for the adaptive jailbreak robustness of benign skill-merged models (which they claim is, to their knowledge, the first controlled study), and design a data-independent geometric signature-based subspace projection defense method, SubSafe-Merge.
What related research exists?
The paper reviews work on model merging, alignment vulnerability, adaptive jailbreaks, and safety-aware merging, and points out that existing research on merged-model safety generally lacks adaptive attack testing.
The paper discusses four main directions of related work:
Model merging methods: Wortsman et al. (2022) and Ilharco et al. (2023) established weight averaging and Task Arithmetic; Yadav et al. (2023) proposed TIES-Merging to reduce interference; Yu et al. (2024) proposed DARE for parameter sparsification and rescaling. The authors note that these methods aim to optimize task capability retention and parameter conflict, not safety alignment.
Fragility and shallow features of safety alignment: Qi et al. (2024) and Lermen, Rogers-Smith, and Ladish (2023) found that benign fine-tuning or LoRA fine-tuning harms the safety of aligned models; Qi et al. (2025) proposed that alignment is shallow, with refusal mainly carried by the first few tokens; Wei et al. (2024) found that safety-related parameters are sparse and decoupled from capabilities; Arditi et al. (2024) reported that refusal in activation space is mediated by a near-one-dimensional direction.
Adaptive jailbreak attacks and benchmarks: Tramer et al. (2020) established in adversarial robustness the standard that defenses must be tested against attacks adapted to them; specific attacks include GCG (Zou et al. 2023), PAIR (Chao et al. 2023), and Crescendo (Russinovich, Salem, and Eldan 2025); standardized evaluation tools include HarmBench (Mazeika et al. 2024) and JailbreakBench (Chao et al. 2024).
Safety-aware merging research: SafeMERGE (Djuhera et al. 2026), domain and alignment interpolation (Thakkar et al. 2025), safety subspace masking (Yang et al. 2025), LED-Merging (Ma et al. 2025), and RESTA (Bhardwaj, Do, and Poria 2024) have explored safe merging. The authors note that these works mostly use static tests and evaluate on narrower model or skill sets; Hammoud et al. (2024) found that naive merging breaks safety, but their evaluation is based on Llama-Guard static classification and the repair relies on synthetic data re-optimization.
Baseline methods and benchmark datasets: The merging baselines compared include Linear merging (Wortsman et al. 2022), Task Arithmetic (Ilharco et al. 2023), TIES (Yadav et al. 2023), DARE-TIES (Yu et al. 2024), Model Soup with diluted task vectors, and the layer-selective merging method SafeMERGE (Djuhera et al. 2026). Evaluation datasets use HarmBench and JailbreakBench, and capability benchmarks use GSM8K, MMLU, HumanEval, and IFEval.
Positioning relative to existing work: The authors position this paper as a controlled factorial benchmark evaluating benign merged models under input-space adaptive jailbreak attacks, and provide a training-data-free geometric signature and projection repair mechanism, contrasting with prior work relying on static tests or synthetic fine-tuning data.
How does the paper address this problem?
The paper proposes the SkillSafe-Bench controlled evaluation benchmark and designs the SubSafe-Merge defense method based on projection onto the orthogonal complement of the safety subspace.
The authors construct a controlled evaluation benchmark, SkillSafe-Bench, to systematically evaluate different base models, skills, and merging methods under static and adaptive attacks, and propose a data-free geometric signature-based projection algorithm, SubSafe-Merge, to eliminate safety erosion.
Problem Setting and Model Merging Formalization
- Task vectors and merging formula: Let the aligned base model parameters be θbase, and the parameters after fine-tuning on skill i be θi. The task vector is defined as τi = θi − θbase. The merged model parameters are computed as follows: θmerge = θbase + ∑i λi f(τi) where λi is the merging coefficient and f is the processing function of the specific merging algorithm (Task Arithmetic is the identity mapping, TIES is parameter pruning and sign selection, DARE is random dropping and rescaling, and Model Averaging corresponds to uniform averaging).
Construction and Geometric Validation of the Safety Subspace
- Safety subspace definition: Define the alignment vector τsafe = θbase − θunsafe, where θunsafe is taken from the publicly available abliterated model corresponding to the base model, requiring no harmful training data. At each layer ℓ, the safety subspace S(ℓ) is the space spanned by the top k left singular vectors of τsafe(ℓ), and PS and PS⊥ denote projections onto S and its orthogonal complement, respectively.
- Effectiveness validation: The authors validate on Qwen2.5-7B the effect of projecting base parameters onto the orthogonal complement PS⊥; after removing the first principal direction (k=1), static ASR rises from 0.20 to 0.64, while GSM8K (from 0.80 to 0.79) and MMLU (from 0.74 to 0.73) remain stable, which the authors claim confirms that S is an effective safety subspace decoupled from general capabilities.
- Geometric overlap signature: By computing the energy proportion of task vectors within S (subspace overlap), it is possible to identify same-recipe abliteration-type uncensoring vectors before merging (overlap about 0.99), while benign task vectors for math, code, medicine, finance, law, etc., are nearly orthogonal to S (overlap about 0.001).
SkillSafe-Bench Evaluation Protocol Design
- Controlled factorial grid: The benchmark covers base models (Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct, Mistral-7B-Instruct-v0.3), skill types (math, uncensoring, and code and domain fine-tuning), merging methods (Linear, Task Arithmetic, TIES, DARE-TIES), and merging coefficients λ ∈ {0.2, 0.4, 0.6, 0.8, 1.0}.
- Dual-classifier AND decision rule: Each response is judged by both the HarmBench classifier (HarmBench-Llama-2-13b-cls) and Llama Guard 3; an attack is counted as successful only when both judges mark it unsafe. Human spot checks show a Cohen's κ of 0.66 between this rule and human evaluation, reducing false positives.
- Attack and capability metrics: Static evaluation uses 400 standard harmful behaviors from HarmBench; adaptive attacks run GCG (100 and 500 steps), Best-of-6 prompt templates, PAIR, and multi-turn Crescendo on a fixed subset of 50 behaviors; capability retention is evaluated with GSM8K, MMLU, HumanEval, and IFEval, avoiding apparent safety at the cost of capability collapse.
SubSafe-Merge Projection Repair Mechanism
- Orthogonal complement projection mechanism: To address safety erosion from same-recipe abliteration-type task vectors, SubSafe-Merge projects the task vectors processed by each method onto the orthogonal complement of the safety subspace at each layer before merging: θmerge = θbase + ∑i λi PS⊥(f(τi)) This formula removes the component of the task vector that overlaps with the safety subspace while retaining the orthogonal practical capabilities. The default rank is set to k=8 (estimated using randomized low-rank SVD), and the authors report that the method is insensitive across k=1 to k=8.
What experiments did the paper conduct?
Experiments find that static safety and adaptive robustness are decoupled; some models show increased jailbreak rates under attack; SubSafe-Merge can effectively repair the erosion caused by same-recipe erasure.
Experimental Setup
- Models tested: The main experiments include 3 open-source base models (Qwen2.5-7B-Instruct, Llama-3.1-8B-Instruct, Mistral-7B-Instruct-v0.3), with extended replication covering Qwen2.5-14B, Phi-4-mini, and Gemma-2-9B, totaling 6 models.
- Datasets and scale: Static evaluation uses the HarmBench standard text behavior set (400 behaviors across 7 harm categories); adaptive attacks use a fixed random seed subset of 50 behaviors; capability evaluation uses GSM8K (5-shot strict match), MMLU, HumanEval, and IFEval.
- Baseline methods: Unmerged base model (Base), plain task arithmetic merging (plain), Linear merging, TIES, DARE-TIES, Model Soup with dilution coefficients, and layer-selective merging SafeMERGE.
- Evaluation metrics: Static ASR, adaptive ASR (GCG, Template, PAIR, Crescendo), Static–Adaptive Gap (adaptive ASR minus static ASR), and GSM8K accuracy.
- Judgment protocol: HarmBench classifier and Llama Guard 3 form a dual-judge AND rule (both must flag a violation for success); 100 human-audited samples show Cohen's κ = 0.66.
- Attack parameters: GCG search for 100 steps (500 steps in supplementary experiments), search width=128, topk=256; Crescendo maximum 10 turns and 10 backtracks; merging coefficient λ covers 5 levels from 0.2 to 1.0.
Main Results
The table below shows static and adaptive attack results for three base models in unmerged state and representative merge configurations (λ=0.6) (from Table 1, Task Arithmetic, 50-behavior subset, dual-judge AND rule):
Swipe horizontally to read the table
Model and configuration (task-arith.) Static ASR GCG ASR Static–Adaptive Gap Qwen2.5-7B Base 0.240 0.480 +0.24 Qwen2.5-7B +math (λ=0.6) 0.100 0.280 +0.18 Qwen2.5-7B +uncens. (λ=0.6) 0.520 0.540 +0.02 Llama-3.1-8B Base 0.200 0.220 +0.02 Llama-3.1-8B +math (λ=0.6) 0.060 0.120 +0.06 Llama-3.1-8B +uncens. (λ=0.6) 0.300 0.340 +0.04 Mistral-7B-v0.3 Base 0.500 0.500 +0.00 Mistral-7B-v0.3 +math (λ=0.6) 0.640 0.540 -0.10 - Static and adaptive safety decouple: The authors state that Qwen and Llama both appear safe in static tests (base static ASR 0.240 and 0.200, respectively, dropping to 0.100 and 0.060 after math merging), but under GCG attack, Qwen's math-merged model reaches an ASR of 0.280 (average gap +20 percentage points), while Llama's math-merged model stays below 0.120 (average gap about +3 percentage points).
- Effect of merging on static safety depends on base alignment strength: Strongly aligned bases (Qwen, Llama) show lower static ASR than the base after incorporating benign math skills, while weakly aligned Mistral shows static ASR above the base after merging math or uncensoring skills (0.51–0.65, from Table S1).
- Slight improvement in static refusal from benign merging is a judgment artifact: The authors found that the slight decrease in static ASR after math skill merging is mainly due to misclassification of copyright-related behaviors by the judge; after rechecking with official MinHash verbatim reproduction, no actual copyright violations were found, and the authors consider it not a genuine safety gain.
Cross-Family and Scale Replication of Adaptive Vulnerability
- Evaluation design: Under a representative math merge setting (λ=0.6), the test is extended to Qwen2.5-14B, Phi-4-mini, and Gemma-2-9B, using 6 public jailbreak templates (Best-of-6 Template) as a unified probe (from Table S2).
- Experimental results: Qwen2.5-14B math-merged model has a static ASR of 0.14, rising to 0.70 under template attack; Gemma-2-9B math-merged model has a static ASR of only 0.02, rising to 0.60 under template attack; Phi-4-mini math-merged model has a static ASR of 0.14, remaining 0.14 under template attack (from Table S2).
- Author interpretation: The authors state that vulnerability (Qwen series, Gemma) and robustness (Llama, Phi-4) exist across families under similar static safety, ruling out a single-model artifact; they also note that Gemma's vulnerability stems from the base model itself (unmerged base template ASR is already 0.64), not from merging.
SubSafe-Merge Defense Effectiveness and Boundary Analysis
- Defense repair effect: On Qwen2.5-7B merging a same-recipe uncensored model (λ=0.6, k=8), regular merging raises static ASR to 0.460 and GCG to 0.54; SubSafe-Merge restores static ASR to 0.182 and GCG to 0.36, while GSM8K capability remains at 0.80 (from Table 3); on Llama, it also restores to base level (static 0.180, GCG 0.16, GSM8K 0.71).
- Base inherent vulnerability boundary: On weakly aligned Mistral, SubSafe-Merge restores static ASR from 0.590 to the base level of 0.480, but GCG ASR remains as high as 0.66 (base itself is 0.50) (from Table 3); the authors note that the method can only eliminate merging-introduced erosion, not repair the base model's inherent adaptive vulnerability.
- Out-of-subspace erosion boundary: Against out-of-distribution SFT uncensored models (Orion, overlap only 0.001), regular merging has static ASR 0.47 and GCG 0.62; SubSafe-Merge cannot eliminate the erosion (static 0.45, GCG 0.60, from Table S4); against Alpaca fine-tuning, static ASR after SubSafe-Merge is 0.29 (regular merging 0.28, base 0.20, from page 9).
Attack Modalities and Baseline Comparisons
- Attack invariance: Comparing GCG, Template, and PAIR on Qwen and Llama, the relative ordering of Qwen being vulnerable and Llama robust remains consistent; increasing GCG steps to 500 keeps Llama at 0.12 while Qwen rises to 0.40 (from page 7).
- Multi-turn Crescendo results: Running Crescendo on Qwen base/plain merge/SubSafe, base ASR is 0.20, plain merge 0.14, SubSafe 0.16 (from Table S8); the authors state that merging does not add multi-turn adaptive risk beyond the base model itself.
- Comparison with SafeMERGE baseline: In the same-recipe uncensoring merge task, SafeMERGE and SubSafe-Merge perform comparably on static ASR (0.165 vs. 0.182), template ASR (0.74 vs. 0.76), and GSM8K (0.81 vs. 0.80) (from Table S8); SafeMERGE's lower GCG ASR (0.24) is not significant in paired tests (McNemar p=0.24) and is not replicated under template attacks, which the authors consider a measurement artifact of optimization difficulty.
Other Ablations and Analyses
- Merging algorithm impact: On three base models, the static ASR differences among Task Arithmetic, Linear, TIES, and DARE-TIES are within 0.035 and the ordering is consistent (Table S1).
- Sensitivity to subspace projection rank k: Qwen uncensoring merges show similar static safety recovery at k=1 and k=8 (page 10).
- Real skill subspace overlap: On Qwen, code is 0.0012, medicine 0.0011, finance 0.0011, law 0.0012, all around the 0.001 baseline (Table S5).
- Survey of public uncensored weight overlap: Among 6 Qwen checkpoints, only the same-recipe version has overlap 0.99, two others are 0.29–0.32, and three are as low as 0.001–0.003 (Table S6).
- Repair effect on partially overlapping checkpoints: Merging Josiefied v2 with overlap 0.32, regular merging raises static ASR to 0.62, and SubSafe only partially repairs to 0.42 (Table S7).
- Paired significance tests: The flip of Qwen math merge at λ=0.6 from static-safe to adaptive-unsafe is significant (McNemar p=0.008, text after Table S8).
What are some points that can be further explored?
The authors explicitly point out limitations such as the subspace estimation depending on a specific source, the adaptive ASR being a lower bound, automatic judge errors, and the lack of weight geometry interpretation.
Limitations and Future Directions Noted by the Authors
- Safety subspace estimation depends on a specific source: The safety subspace is estimated from public abliterated models, and its quality determines the effectiveness of the geometric signal and repair method; it is only effective for same-recipe ablations and cannot cover out-of-subspace erosion forms such as SFT uncensoring (Section 8 and Section 7).
- Adaptive ASR is only a lower bound on vulnerability: The evaluation uses a fixed compute budget; stronger compute or better attacks could push up the absolute jailbreak rate, so the measured adaptive ASR only bounds the true vulnerability from below (Section 8).
- Model scale and skill diversity need expansion: The experiments mainly cover 7–8B-scale base models and two main skills, math and uncensoring; extension to models above 14B and more skill types is left for future work (Section 8).
- Automatic judges have residual error: The dual-judge AND rule has a Cohen's κ of 0.66 on 100 human-annotated samples; although it mitigates single-classifier bias, it does not fully eliminate judgment error (Section 8).
- Lack of weight-geometric mechanisms to predict base vulnerability: Among the 5 base models analyzed, weight-space geometric metrics such as the effective rank or singular value gap of the safety subspace do not monotonically predict the base model's adaptive vulnerability (Section 8).
- Quantitative risk predictor not yet established: At the current scale of 3 base models × 2 skills, the Spearman correlation from leave-one-base-out cross-validation is not significantly different from a permutation random distribution, so a valid quantitative prediction model could not be built (Section 6).
Experimental Coverage
- Models tested: The experiments cover 6 open-source base models (Qwen2.5-7B-Instruct, Llama-3.1-8B-Instruct, Mistral-7B-Instruct-v0.3, Qwen2.5-14B, Phi-4-mini, Gemma-2-9B), spanning 5 model families and 2 parameter scales (7–9B and 14B) (Section 4 and Section 5).
- Skills and fine-tuning domains: The factorial grid tests math LoRA and uncensoring fine-tuning; geometric overlap tests include 5 domain skills: code, medicine, finance, law, and Alpaca instruction fine-tuning (Section 4, Section 6, and Section S5).
- Merging methods and coefficients: Evaluates four general merging algorithms—Linear, Task Arithmetic, TIES, DARE-TIES—and the safety baseline SafeMERGE, with merging coefficients λ covering five levels: 0.2, 0.4, 0.6, 0.8, 1.0 (Section 4 and Section 7).
- Attack configurations: Includes GCG with 100 and 500 steps, Best-of-6 prompt templates, local small-model PAIR, and multi-turn Crescendo with a 10-turn cap and 10 backtracking cap (Section 4, Section 5, and Sections S2, S5).
- Unreported information: The paper does not test closed-source models, multimodal inputs, or white-box direct modifications of model weights (Section 3).
Summarize the main content of the paper
The paper reports the disconnect between static safety and adaptive jailbreaks in skill-merged large models, and proposes an evaluation benchmark and a data-free subspace projection repair method.
This study addresses the safety evaluation blind spot in the skill merging process of open-source language models, systematically evaluating and characterizing the vulnerability of merged large models under adaptive jailbreak attacks.
- Problem identification: Targeting the common industry practice of merging domain skills using methods like task arithmetic while relying on static refusal evaluation for safety, it points out that the shallow nature of safety alignment means static safety performance cannot guarantee safety under dynamic attacks, easily creating a false sense of security.
- Core method: Proposes a controlled factorial evaluation benchmark, SkillSafe-Bench, using a dual-judge AND rule to evaluate static and adaptive jailbreak robustness; and based on public abliterated models, extracts a safety subspace, proposing a data-free pre-merge detection metric and an orthogonal complement projection algorithm, SubSafe-Merge.
- Key experimental results:
- Static and adaptive safety decouple: Under a representative math merge (λ=0.6), Qwen2.5-7B has a static ASR of only 0.100 but reaches 0.280 under GCG attack (Table 1) and 0.70 under Best-of-6 template attack (Table S8); Llama-3.1-8B remains at 0.060 and 0.120 on the two metrics, respectively (Table 1).
- Cross-family and scale replication: Gemma-2-9B math-merged model has a static ASR of only 0.02, rising to 0.60 under template attack; Qwen2.5-14B has 0.14 static and 0.70 under template attack; Phi-4-mini is 0.14 on both tests (Table S2).
- Discriminative power of geometric overlap: Same-recipe uncensoring vectors have an energy proportion in the safety subspace of 0.993, while real skills like math and code have overlap around 0.001 (Table 2).
- Defense repair and boundaries: SubSafe-Merge reduces the static ASR of Qwen same-recipe uncensoring merges from 0.460 to 0.182 and GCG to 0.36 (Table 3), but cannot repair the base model's inherent vulnerability (Mistral GCG remains 0.66) nor defend against SFT out-of-distribution uncensoring erosion with overlap of only 0.001 (Table S4).
- Conclusion and implications: The authors argue that adaptive evaluation is a necessary rather than optional standard for skill-merged models; models with the strongest apparent static safety often harbor significant adaptive jailbreak risk; and defense methods can repair targeted damage introduced by merging, but the model's robustness ceiling remains constrained by the base model's alignment quality.