Skip to content

Study: malicious fine-tuning defenses fail under continued training, harmfulness rises across all 72 defense trajectoriesA Few Steps Further: Why Defenses Against Malicious Finetuning Erode Under Continued Training

Paper Tracker· arXiv:2605.14605· Itay Zloczower, Eyal Lenga, Gilad Gressel, Yisroel Mirsky·Indexed by this site · 2026-10-08· Originally publishedSelected AlignmentSelectedAttention41

Quick read

Evaluation and benchmarks

Based on the paper PDF (generated by Gemini); refer to the original

The authors continuously train 6 malicious fine-tuning defenses on 4 open-source models for 3 epochs, finding that across all 72 trajectories defenses degrade, with harmfulness higher than at release.

Threat modelThe defender determines the aligned model weights θdef before release. The attacker has white-box access to the weights and full control over subsequent fine-tuning (data, objective, optimizer, learning rate schedule, and number of update steps). The attacker's goal is to obtain a model that both follows harmful requests and retains general capability; if the model loses fluency, coherence, or usability, the goal is not met. A defense succeeds if it prevents either condition.

Questions
Open-source large models are vulnerable to safety alignment removal via fine-tuning on harmful data. Existing malicious fine-tuning defenses are typically evaluated under a fixed training budget, but attackers with model weight access can continue training longer after release. The research aims to test whether existing defenses can withstand sustained fine-tuning.
Methods
Organize 15 malicious fine-tuning defenses and summarize them into 2 strategies (anchoring and self-destruction) and 4 loss templates. Build 6 representative defenses on 4 open-source models, continuously fine-tune with harmful data via LoRA for 3 epochs, and measure harmfulness and general capability curves along the training process.
Experiments and results
All 72 defense trajectories have higher harmfulness at the end of fine-tuning than at release, with StrongREJECT rising by an average of 0.372. At the highest learning rate for Llama-3.1, the endpoint harmfulness of the 6 defenses differs from the undefended model by no more than 0.013. Some trajectories are accompanied by capability decline.
Limitations and future work
The attack uses only a single harmful dataset and a single objective, with a maximum training budget of 3 epochs; the tested defenses cover 6 types and do not include template 2; each trajectory uses a single random seed; capability evaluation uses a proxy subset of 600 questions rather than the full benchmark.
Experimental setupLlama-2-7B-chat、Qwen3-8B et al. · BeaverTails、MMLU et al. · StrongREJECT score、zero-shot accuracy
Evaluated models
Llama-2-7B-chatQwen3-8BLlama-3.1-8B-InstructZephyr-7B-βLlama-2-13B-chatLlama-3.2-3B-InstructMistral-7B-Instruct-v0.3Qwen2.5-7B-Instruct
Benchmarks
BeaverTailsMMLUTruthfulQAHellaSwagARC-Easy
Metrics
StrongREJECT scorezero-shot accuracy
AI summaryand selection rationaleResearchers from Ben-Gurion University of the Negev and other institutions systematically review fifteen defenses against malicious fine-tuning (MFT), finding that they all rest on a limited attacker model, and empirically test six of them under continued training. The researchers categorize the fifteen defenses into anchoring and self-destruction strategies with four loss templates, noting that the defender fixes everything once before release, while the attacker decides the training budget after release. On four open-weight models—Llama-2-7B-chat, Qwen3-8B, Llama-3.1-8B-Instruct, and Zephyr-7B-β—using 9,000 harmful examples from BeaverTails for pure harmful LoRA fine-tuning over three epochs and three learning rates, the final checkpoints across all 72 defense trajectories are more harmful than at release, with StrongREJECT scores rising by 0.372 on average. At the highest learning rate on Llama-3.1-8B, the final harmfulness of the six defended models differs from the undefended model by no more than 0.013. The researchers argue that resistance under a single training budget cannot be regarded as lasting protection for open-weight models.

Researchers from Ben-Gurion University of the Negev and other institutions systematically review fifteen defenses against malicious fine-tuning (MFT), finding that they all rest on a limited attacker model, and empirically test six of them under continued training. The researchers categorize the fifteen defenses into anchoring and self-destruction strategies with four loss templates, noting that the defender fixes everything once before release, while the attacker decides the training budget after release. On four open-weight models—Llama-2-7B-chat, Qwen3-8B, Llama-3.1-8B-Instruct, and Zephyr-7B-β—using 9,000 harmful examples from BeaverTails for pure harmful LoRA fine-tuning over three epochs and three learning rates, the final checkpoints across all 72 defense trajectories are more harmful than at release, with StrongREJECT scores rising by 0.372 on average. At the highest learning rate on Llama-3.1-8B, the final harmfulness of the six defended models differs from the undefended model by no more than 0.013. The researchers argue that resistance under a single training budget cannot be regarded as lasting protection for open-weight models.

Why it was selectedThe paper systematically reviews fifteen malicious fine-tuning defenses and empirically tests six, showing that resistance under a fixed training budget decays as attackers continue training.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The paper investigates whether existing malicious fine-tuning defenses remain effective when open-source large language models undergo sustained harmful fine-tuning after release.

    The core question is whether malicious fine-tuning defenses for open-source large language models gradually fail as attackers continue training.

    • Problem scenario and importance: Model providers typically inject safety behavior through reinforcement learning or alignment before release, but attackers who obtain model weights can remove alignment protections by fine-tuning on a small amount of harmful data; even benign fine-tuning can weaken safety performance. Defenders can only intervene once before release, while attackers control all update steps after release.
    • Limitations of existing defenses: Existing malicious fine-tuning defenses mostly assume attackers use a fixed fine-tuning budget (e.g., preset loss functions, optimizers, data budgets, and hyperparameter ranges) during evaluation, ignoring that weight-holding attackers can escalate attacks simply by increasing training epochs.
    • Core observation and hypothesis: After reviewing 15 recent defenses, the authors believe each defense is built around a constrained attacker model (e.g., bounded perturbations, short-step simulated attacks, or coupling of harmful and benign behavior), and no mechanism after release forces maintenance of that protection; when training is sufficient, the model moves out of the region covered by the defense or the attack horizon, rendering the protection ineffective.
    • Threat model:
      • Victim system: An aligned LLM theta_def whose weights are determined and publicly released by the provider before release.
      • Attacker knowledge: The attacker has white-box access to the model weights.
      • Attacker capability: The attacker fully controls subsequent fine-tuning, including training data, training objective, optimizer, learning rate schedule, and number of update steps.
      • Attacker goal: Obtain a model that both follows harmful requests and retains general capabilities (fluency, coherence, and usefulness); a defense is considered successful if it prevents any one of these conditions.
    • Main contributions of the paper: Systematically summarize the strategies and loss templates of 15 malicious fine-tuning defenses, and test 6 defenses on 4 open-source models under 3 epochs of harmful fine-tuning, tracking harmfulness and capability changes via cost curves.
  2. What related research exists?

    The paper reviews work on safety alignment breaking in open-source models, defense persistence evaluation, and adversarial ML budget testing, using sustained fine-tuning to test the effective limits of existing defenses.

    Open-source model alignment breaking and fine-tuning risks

    • Qi et al. [30] (2023), Yang et al. [44] (2023), Zhan et al. [47] (2024), Wei et al. [42] (2024)—studies found that standard refusal training is easily weakened by continued optimization, and both malicious and even benign fine-tuning can break safety alignment.
    • Huang et al. [18] (2024), Rosati et al. [32] (2024), Tamirisa et al. [36] (2025), Li et al. [21] (2024)—proposed training-time interventions such as representation noising, tamper-proof meta-learning, and adversarial forgetting, aiming to make malicious fine-tuning fail or cause utility collapse.

    Defense persistence evaluation and adaptive attacks

    • Qi et al. [29] (2025)—tested RepNoise and TAR, finding that changing random seeds, trainer implementations, learning rate schedules, prompt templates, or fine-tuning data overturns original evaluation conclusions, and pointed out that defenses should be stress-tested under multiple downstream configurations before release; the authors note this paper examines performance when attackers only extend training budgets after these issues are resolved.
    • Carlini et al. [3] (2019), Tramèr et al. [39] (2020) and other adversarial machine learning studies—pointed out that robustness under static or non-adaptive evaluation often fails against adaptive adversaries, and suggested plotting attack success rate as a function of iterations and testing the effect of doubling the iteration budget; the authors translate this idea into cost curves for malicious fine-tuning.
    • Nasr et al. [26] (2025) and other evaluations of LLM jailbreak and prompt injection defenses—pointed out that defenses that appear robust in fixed benchmark evaluations are often bypassed by adaptive search strategies; the authors note that their setting differs from these, as attackers directly modify model weights rather than generating adversarial inputs.

    Comparison baselines and evaluation benchmarks

    • Baseline methods: The evaluation includes 6 defense baselines: Vaccine (2024), VAA (2025), SAM-unlearning (2025), Booster (2025), CTRAP (2026), and SDD (2025), with the corresponding undefended versions of the models (Undefended) as reference baselines.
    • Benchmarks and data used: Fine-tuning attacks use 9,000 harmful prompt-response pairs from the BeaverTails [19] dataset; harmfulness evaluation uses 1,000 held-out test prompts sampled from BeaverTails and the StrongREJECT [34] judge model; capability evaluation uses MMLU [16], TruthfulQA [22], HellaSwag [46], and ARC-Easy [10].

    The authors position this paper as not changing attack goals or data distribution, only testing the most basic escalation (increasing fine-tuning steps), to examine whether claimed defense resistance constitutes lasting protection.

  3. How does the paper address this problem?

    The paper categorizes 15 malicious fine-tuning defenses into two strategies and four loss templates, and constructs cost curves across training steps to systematically evaluate defense degradation mechanisms.

    The authors address this problem through a taxonomy and Cost Curves evaluation framework, first categorizing 15 recent malicious fine-tuning defenses into two strategies and four loss templates, then evaluating defense persistence by tracking harmfulness and capability across training steps.

    Formalization and Categorization of Defense Strategies

    • Two defense strategies: Attack success requires the fine-tuned model to be both harmful and retain general capability; defenses work by undermining one of these. Anchoring aims to keep the harmful loss L_h high, by weakening harmful gradients or flattening local regions to impede harmful learning; Self-destruction makes harmful fine-tuning increase capability loss L_c, preventing attackers from obtaining a usable model.
    • Base alignment loss structure: All defenses build on a standard alignment loss of the form Lalign(θ) = Ls(θ) + Lc(θ), including a refusal safety term L_s on harmful prompts and a correct-response capability term L_c on benign prompts, to ensure safety and utility at release.

    Four Loss Templates and Mechanisms

    • Template 1: Robust-alignment basin: Objective is L(1)def(θ) = maxδ ∈ Δ Lalign(θ + δ) + λ Lc(θ), optimizing under adversarial perturbation sets Δ in embedding, layer, or weight space to place the model in a basin stable to bounded perturbations (e.g., Vaccine, T-Vaccine, VAA, SAM-unlearning). The authors note this template does not globally eliminate harmful capabilities, only increases the difficulty of escaping the local basin.
    • Template 2: Harmful-information removal: Removes effective structure in harmful activations via regularization (e.g., RepNoise uses MMD to push harmful representations toward Gaussian noise), so that harmful gradients at the initial weights contain no usable signal.
    • Template 3: Look-ahead defense: Explicitly simulates one or more future attacker fine-tuning updates in the objective, implementing anchoring (e.g., Booster, Antibody, TAR penalize harmful progress or maintain refusal) or self-destruction (e.g., CTRAP penalizes post-fine-tuning model collapse on general dialogue) depending on the penalty term R.
    • Template 4: Coupling trap: Without explicitly simulating attacks, directly couples harmful progress with benign degradation (e.g., SEAM constrains harmful and benign gradients to be opposite, SDD pairs harmful prompts with unrelated benign responses), so that optimization along harmful gradients necessarily harms general instruction following.

    Sustained Fine-Tuning Attack and Cost Curve Design

    • Fine-tuning attack setup: Simulates a weight-holding attacker using LoRA to minimize cross-entropy loss on 9,000 harmful data points from BeaverTails, with no benign data term; uniformly trains for 3 epochs (3,375 optimizer steps total, effective batch size 8), using a cosine learning rate schedule with 337 steps of warmup, and runs at 3 peak learning rates (10^-5, 3×10^-5, 10^-4).
    • Checkpoint sampling and cost curve construction: Saves 21 checkpoints at approximately logarithmic intervals between steps 1 and 3,375, tracking the evolution of harmfulness and general capability, to test whether defense effectiveness extends beyond the limited attack horizon used in their construction.
  4. What experiments did the paper conduct?

    The paper tests 6 defenses against 3 epochs of fine-tuning on 4 open-source models; all 72 defended trajectories show increased harmfulness, with some accompanied by capability degradation.

    Experimental Setup

    • Models under test: The main experiments cover 4 open-source dialogue models: Llama-2-7B-chat, Qwen3-8B, Llama-3.1-8B-Instruct, Zephyr-7B-β; Appendix G additionally tests 4 undefended models: Llama-2-13B-chat, Llama-3.2-3B-Instruct, Mistral-7B-Instruct-v0.3, Qwen2.5-7B-Instruct.
    • Fine-tuning dataset and scale: The fine-tuning attack uses 9,000 harmful prompt-response pairs from the BeaverTails training set (source file has 10,000 pairs, split 90/10, with the remaining 1,000 not used for updates or early stopping); defense construction uses Alpaca and paired BeaverTails data.
    • Baseline methods: 6 defense methods are tested, including Vaccine, VAA, SAM-unlearning (marked as Unlearn-Smooth in figures), Booster, CTRAP, SDD, with the corresponding undefended model as the baseline.
    • Metric definitions and evaluation protocol: Harmfulness is scored by a fine-tuned StrongREJECT evaluator model (qylu4156/strongreject-15k-v1, based on Gemma-2B) on greedy-decoded responses to 1,000 held-out BeaverTails prompts (continuous score from 0 to 1, no hard threshold truncation); capability evaluation uses zero-shot accuracy equally weighted mean across MMLU (200 questions), TruthfulQA (100 questions), HellaSwag (200 questions), and ARC-Easy (100 questions), totaling 600 questions.
    • Sample size and repetitions: Each main experiment model configuration tests 3 learning rates (10^-5, 3×10^-5, 10^-4), saving 21 checkpoints; the main experiments comprise 84 trajectories total (72 defended, 12 undefended), Appendix G adds 12 undefended trajectories, totaling 96 trajectories; each trajectory uses a single random seed (defense seed 42, attack seed 42), with no repeated runs.

    Main Results

    Swipe horizontally to read the table

    ModelDefense method / conditionInitial harmfulnessFinal harmfulnessInitial capabilityFinal capability
    Llama-2-7B-chatVaccine0.0130.3930.4510.537
    Llama-3.1-8B-InstructRange across 6 defense methodsNot reported0.515–0.527Not reportedNot reported
    Llama-3.1-8B-InstructUndefendedNot reported0.528Not reportedNot reported
    Zephyr-7B-βVAANot reported≤0.0690.4250.378
    Zephyr-7B-βCTRAP0.0280.5210.5740.501
    Zephyr-7B-βUndefendedNot reportedNot reported0.664Not reported
    Qwen3-8BVAANot reported0.2410.4550.255

    (Note: values are those reported in the main text under learning rate 10^-4, per Section 5)

    • Harmfulness generally resurges: Across all 72 defended trajectories, harmfulness at the end of fine-tuning is higher than at release, with StrongREJECT scores increasing by 0.372 on average, and per-trajectory increases ranging from 0.022 to 0.520; the authors note that in most trajectories harmfulness begins to rise within the first epoch (per Section 5 and Figures 2–5).
    • Full convergence to undefended levels: At the highest learning rate (10^-4) for the Llama-3.1-8B model, all 6 defenses end fine-tuning with harmfulness between 0.515 and 0.527, differing from the undefended model's 0.528 by no more than 0.013; the authors state that after 3 epochs the defenses make almost no difference (per Section 5 and Figure 4).
    • Defense performance is non-uniform: VAA on Zephyr-7B-β keeps harmfulness at or below 0.069 across all learning rates, but its initial capability (0.425) is lower than the undefended model's (0.664), and at the highest learning rate final capability further drops to 0.378 (per Section 5 and Figure 5).

    Defense-Induced Capability Degradation and Trade-offs

    • What was measured: During the fine-tuning attack, harmfulness and general capability proxy metrics were evaluated in tandem along checkpoints, to examine self-destruction strategies and capability loss introduced by defenses.
    • Results: At the highest learning rate, CTRAP on Zephyr-7B-β raises harmfulness from 0.028 to 0.521 while capability drops from 0.574 to 0.501; VAA on Qwen3-8B sees harmfulness rise to a peak of 0.363 before falling to 0.241, but capability drops from 0.455 to 0.255; on Llama-2-7B-chat, Vaccine raises harmfulness to 0.393 while capability rises from 0.451 to 0.537 (per Section 5 and Figures 2–5).
    • Authors' interpretation: The authors argue that harmfulness resurgence is sometimes accompanied by general capability loss, harmfulness changes are not monotonically increasing, and a harmful final model is not necessarily a useful model for an attacker, so harmfulness evaluation must be combined with capability evaluation.

    Scale and Architecture Extension Analysis on Undefended Baseline Models

    • What was measured: In Appendix G, the fine-tuning attack protocol is extended to 4 additional undefended open-source models (Llama-2-13B-chat, Llama-3.2-3B-Instruct, Mistral-7B-Instruct-v0.3, Qwen2.5-7B-Instruct), totaling 12 trajectories.
    • Results: Figure 6 shows that across all 8 undefended models and 3 learning rates, harmfulness rises rapidly to a plateau within the first epoch, with consistent trajectory shapes across models.
    • Authors' interpretation: The authors note that different model architectures and sizes exhibit similar harmfulness resurgence trends under the same fine-tuning settings, with completed token counts varying due to tokenizer differences.

    Other Ablations and Analyses

    • Effect of attack fine-tuning steps: 21 checkpoints are set across the full 3,375 steps, and most models pass the defense's initial stage within epoch 1 (1,125 steps) (per Figures 2–5 and Section F.1).
    • Learning rate sensitivity analysis: Three peak learning rates, 10^-5, 3×10^-5, and 10^-4, are evaluated; higher learning rates lead to faster harmfulness increase and higher final values (per Section 5 and Figures 2–5).
    • Differences in defense release status: On Zephyr-7B-β, the undefended model and Unlearn-Smooth have higher initial harmfulness at release than other defense models (per Figure 5 caption).

    Negative Results and Exceptions

    • Defense exception case: VAA on Zephyr-7B-β successfully keeps harmfulness below 0.069 throughout (per Section 5); the authors do not claim it would hold under longer training and note its cost is lower general capability (initial capability 0.425, final 0.378).
    • Non-monotonic change case: The VAA trajectory on Qwen3-8B at the highest learning rate first raises harmfulness to 0.363 before falling back to 0.241; the authors note harmfulness need not increase monotonically, and this state is accompanied by capability dropping to 0.255 (per Section 5).
  5. What are some points that can be further explored?

    In the limitations, the authors point out issues such as single seed, limited training budget, single fine-tuning data, proxy capability metrics, and untested template 2.

    Limitations and Future Directions Noted by the Authors

    • Single random seed and lack of repeated trials: Each trajectory uses a single random seed; the 3 learning rates are independent attack settings, not repeated trials (from Section 6).
    • Single attack data and objective function: The attack uses only the BeaverTails dataset and a single harmful cross-entropy objective; the experiments only vary training duration, not the number of distinct samples seen (from Section 6).
    • Attack budget remains limited: The longest attack is 3 epochs on 9,000 samples, which is itself a limited budget, so it cannot be concluded whether defenses (e.g., VAA on Zephyr) would still hold under longer attacks (from Section 6).
    • Capability evaluation is a proxy subset: The capability metric uses a 600-question validation subset as a proxy, which is also used to select defense configurations, and cannot replace full benchmark evaluation (from Section 6 and Section F.3).
    • Defense coverage does not include template 2: Only 6 of the 15 defenses are evaluated, and none of the defenses in template 2 (harmful information removal) are evaluated (from Section 6).
    • Early-step checkpoints are affected by warmup schedule: Early checkpoints are within the learning rate warmup period set for the full schedule, so they cannot reflect the minimum training required for an attacker using a shorter schedule (from Section 6 and Section F.1).

    Experimental Coverage

    • Model scope tested: The main experiments cover 4 open-source dialogue models (Llama-2-7B-chat, Qwen3-8B, Llama-3.1-8B-Instruct, Zephyr-7B-β), and extended experiments test 4 undefended models (Llama-2-13B-chat, Llama-3.2-3B-Instruct, Mistral-7B-Instruct-v0.3, Qwen2.5-7B-Instruct), totaling 8 models (per Section 4 and Appendix G).
    • Defense testing scope: From the organized 15 defenses, 6 are selected for testing (Vaccine, VAA, SAM-unlearning, Booster, CTRAP, SDD), covering templates 1, 3, and 4; template 2 is not included in empirical evaluation (per Section 4 and Table 1).
    • Attack hyperparameter settings: Fine-tuning attacks are fixed to LoRA fine-tuning (rank 16, alpha 32), batch size 8, maximum sequence length 512, learning rates 10^-5, 3×10^-5, 10^-4, and steps fixed at 3,375 (per Section F.1).
    • Evaluation set and protocol: Harmfulness evaluation is fixed to 1,000 test prompts drawn from BeaverTails and StrongREJECT scoring; capability evaluation is fixed to a 600-question subset of MMLU, TruthfulQA, HellaSwag, and ARC-Easy (per Section F.3).
    • Replication and validation: The paper does not report variance across different attack seeds or defense seeds, nor full lm-eval-harness benchmark scores (per Section E and Section F.3).
  6. Summarize the main content of the paper

    The paper points out that malicious fine-tuning defenses all degrade under continued training, indicating that defenses based on limited attacker assumptions cannot provide lasting protection for open-source models.
    • Positioning and core question: This study systematically evaluates the persistence of existing defenses for open-source large language models under sustained harmful fine-tuning, focusing on whether defenses can withstand attackers extending their training budget, a fundamental escalation.
    • Method highlights: Reviews 15 recent defenses and distills them into 2 strategies (anchoring and self-destruction) and 4 loss templates, noting that each defense relies on a restricted attacker model such as bounded perturbations or short-step simulations; conducts LoRA fine-tuning for 3 epochs (3,375 steps) on 6 defenses across 4 models, recording harmfulness and capability at 21 checkpoints along the way.
    • Main experimental results:
      1. Across all 72 defended trajectories, final harmfulness is higher than at release, with StrongREJECT scores increasing on average by 0.372, ranging from 0.022 to 0.520 (per Section 5).
      2. On Llama-3.1-8B at the highest learning rate (10^-4), the 6 defenses have final harmfulness between 0.515 and 0.527, differing from the undefended model's 0.528 by less than 0.013 (per Section 5).
      3. Defense effectiveness varies; VAA on Zephyr-7B-β keeps harmfulness at or below 0.069 across learning rates, but initial capability (0.425) is lower than the undefended model (0.664) and drops to 0.378 at the end (per Section 5).
      4. Some defenses show capability loss, e.g., CTRAP on Zephyr-7B-β at the highest learning rate increases harmfulness to 0.521 while capability drops from 0.574 to 0.501 (per Section 5).
    • Conclusions and implications: The authors argue that most current defenses only delay or perturb malicious fine-tuning rather than completely prevent it; resistance under a single training budget cannot be taken as evidence of resistance under a longer budget; evaluations of open-source model defenses should simultaneously test sustained fine-tuning, monitor general capability, and use undefended models as controls.

Related papers

Show 3 more papers
Read originalarxiv.org