Benign fine-tuning can erode safety alignment in large language models, and sequential adaptation substantially compounds this risk. Prior work mitigates this erosion by replaying harmful-prompt refusals and benign-compliance examples, while other work instead matches base-model logits via distillation. However, the individual contributions of supervised exposure and distillation to safety behavior and refusal geometry during sequential adaptation remain unclear. We factor these two strategies apart and study their behavioral and geometric effects during sequential LoRA fine-tuning of Mistral-7B and Llama-3-8B across diverse task sequences (code generation, German-language summarization, and science question-answering). Behaviorally, supervised replay exposure yields the largest reduction in HarmBench attack success rate (ASR) on Mistral, averaging 51.1 points below base, but at a substantial over-refusal cost, averaging 53.4 points above base on OR-Bench-hard. Logit distillation, without any supervised replay loss, largely prevents safety erosion at a fraction of this cost: an average 5.4-point ASR reduction against only a 5.1-point rise in over-refusal. Llama shows the same asymmetry between the two strategies. Combining exposure and distillation moderates exposure's over-refusal while leaving downstream task scores largely unaffected. Geometrically, the two models diverge: on Mistral, distillation preserves the base refusal direction more closely than exposure does, whereas on Llama, refusal behavior after exposure largely survives ablation of the extracted refusal direction. This dissociation between models indicates that preserving the base refusal direction is not a reliable proxy for behavioral safety.
Figures & tables
Ordering
Task 1
Task 2
Task 3
O1
code
sum
qa
O2
qa
sum
code
O3
sum
code
qa
O4
code
qa
sum
O5
sum
qa
code
O6
qa
code
sum
TABLE I: Task sequences for ordering labels O1–O6. Code denotes Py150, sum denotes 20Minuten and qa denotes ScienceQA.
Fig. 1: HarmBench DirectRequest ASR trajectories under Plain ( n=240 ) for Mistral (left) and Llama (right), with orderings colored by first task and dashed M0 baselines.
Model
Ordering
M0
M1
M2
M3
Δ
Mistral-7B
O1
52.1
59.2
72.5
76.2
+24.2
O2
52.1
65.4
72.9
57.9
+5.8
O3
52.1
68.3
66.2
74.6
+22.5
O4
52.1
59.2
75.0
73.8
+21.7
O5
52.1
68.3
75.8
67.1
+15.0
O6
52.1
65.4
62.5
62.5
+10.4
TABLE II: HarmBench ASR (%) under Plain across six task orderings and checkpoints M0 – M3 ; Δ=M3−M0 .
Model
M0
M1
M2
M3
Δ
Mistral-7B
52.1
72.1
72.1
69.6
+17.5
Llama-3-8B
5.8
34.2
37.9
28.7
+22.9
TABLE III: HarmBench ASR (%, n=240 ) over three Py150 shards at seed 42.
Fig. 2: HarmBench ASR versus OR-Bench-hard ORR over O1–O3, seed 42 (lower is better on both axes). Faint points show orderings, bold points their means and stars the base models.
Model
Method
HarmBench ASR
XSTest ORR
ORB-hard ORR
Mistral-7B
M0
52.1
4.8
13.0
Plain
69.6 ± 10.1
2.8 ± 0.7
3.9 ± 1.8
Matched Plain
71.2 ± 10.5
2.5 ± 1.2
4.9 ± 1.9
ER
1.0 ± 0.9
28.0 ± 2.8
66.4 ± 2.8
DER
46.7 ± 3.8
7.9 ± 0.8
18.1 ± 2.3
DER++
7.1 ± 1.1
17.3 ± 0.5
60.5 ± 3.5
TABLE IV: Final- M3 ASR and ORR (%), mean ± sample s.d. over O1–O3 at seed 42.
Fig. 3: Final HarmBench ASR under Plain and DER++ across O1–O6 for Mistral (left) and Llama (right) ( n=240 , excluding copyright behaviors); dashed lines show M0 .
Fig. 4: Downstream task performance at O3 M3 (left) and mean forgetting over available orderings (right), with Mistral in the top row and Llama in the bottom row.
Model
Method
sum
code
qa
Forgetting
(ROUGE-L)
(edit sim.)
(acc)
Mistral-7B
M0
18.7
9.8
67.2
—
Plain
21.4 ± 0.9
54.1 ± 1.2
87.0 ± 4.2
2.3 ± 1.9
ER
22.7 ± 0.5
53.2 ± 0.6
89.1 ± 1.8
1.2 ± 0.7
DER
22.1 ± 0.2
53.9 ± 0.6
90.8 ± 2.6
1.1 ± 1.3
DER++
22.4 ± 0.6
53.6 ± 0.3
89.6 ± 1.3
1.0 ± 0.6
TABLE V: Final-checkpoint M3 task performance and forgetting, mean ± s.d. over available orderings with complete evaluation chains. Lowest mean forgetting per model in bold.
Model
Ordering
HarmBench ASR
XSTest
ORB-hard
Mistral-7B
O1
6.2
16.8
58.2
O2
8.3
17.6
58.8
O3
6.7
17.6
64.6
O4
6.2
17.6
56.0
O5
8.3
17.6
63.8
O6
8.8
22.4
67.8
TABLE VI: DER++ final- M3 HarmBench ASR and XSTest/ORB-hard ORR (%) by ordering, with mean ± s.d. over O1–O6.
Model
Metric
M0
Plain
DER
ER
DER++
Mistral-7B
HarmBench ASR
52.1
68.7 ± 7.4
46.7 ± 3.8
1.0 ± 0.9
7.4 ± 1.2
AdvBench ASR
35.8
66.3 ± 5.6
30.3 ± 1.8
0.0 ± 0.0
0.7 ± 0.4
JBB ASR
41.0
73.5 ± 8.4
39.0 ± 4.4
0.3 ± 0.6
1.0 ± 0.6
ORB-toxic ASR
43.1
75.8 ± 2.8
37.4 ± 2.4
2.0 ± 0.5
8.3 ± 2.5
XSTest ORR
4.8
2.7 ± 0.6
7.9 ± 0.8
28.0 ± 2.8
18.3 ± 2.1
ORB-hard ORR
13.0
4.0 ± 1.6
18.1 ± 2.3
66.4 ± 2.8
61.5 ± 4.5
TABLE VII: Final- M3 ASR and ORR (%) at seed 42, mean ± s.d. over O1–O6 for Plain/DER++ and O1–O3 for ER/DER.
Metric (Mistral-7B)
O2 70:30
O2 50:50
O3 70:30
O3 50:50
HarmBench ASR
8.3
13.8
6.7
7.9
XSTest ORR
17.6
16.0
17.6
16.8
ORB-hard ORR
58.8
48.0
64.6
50.0
TABLE VIII: Final-checkpoint M3 ASR and ORR (%) for the 70:30 and 50:50 buffers on Mistral O2/O3.
Model
Method
cos
∥r∥
Refusal
Δ Refusal
Mistral-7B
M0
1.000
2.89
0.72
0.42
Plain
0.737
2.08
0.15
0.15→−0.16→−0.29
ER
0.718
2.44
0.99
0.16→0.24→0.19
DER
0.976
2.92
0.70
0.33→0.28→0.32
DER++
0.960
2.85
0.94
0.28→0.31→0.30
Llama-3-8B
M0
1.000
2.77
0.97
0.69
TABLE IX: Refusal geometry and ablation effects, means over O1–O3 at M3 , except the Δ Refusal chain ( M1→M2→M3 ). Negative Δ Refusal indicates increased refusal after ablation; no cells are bolded as these metrics have no preferred direction.
Fig. 5: Final-checkpoint cosine similarity to the base refusal direction versus HarmBench ASR (faint: orderings, bold: means, stars: M0 ).
Fig. 6: Refusal geometry across O1–O3 for Mistral (left) and Llama (right), with magnitude normalized to each trajectory’s base and each arrow representing one task step.
Fig. 7: M3 cosine similarity to the base refusal direction versus relative magnitude over O1–O3 (faint: orderings; bold: model–method means).
Model
Method
HarmBench ASR
XSTest ORR
ORB-hard ORR
Mistral-7B
M0
52.1
4.8
13.0
Plain
75.3 ± 1.3
2.9 ± 0.5
5.9 ± 1.3
ER
1.1 ± 1.0
27.5 ± 2.0
67.7 ± 3.8
DER
45.4 ± 1.8
7.1 ± 0.6
18.5 ± 2.0
DER++
8.3 ± 2.1
17.9 ± 1.2
57.7 ± 3.8
Llama-3-8B
M0
5.8
4.8
72.4
TABLE X: O1 final- M3 ASR and ORR (%), mean ± s.d. over seeds 42–44. Lowest mean per measure and model in bold.
Model
Method
Δ Refusal
Mistral-7B
M0
0.42
Plain
− 0.26 ± 0.36
ER
0.20 ± 0.03
DER
0.28 ± 0.03
DER++
0.27 ± 0.04
Llama-3-8B
M0
0.69
TABLE XI: O1 final- M3Δ Refusal, mean ± s.d. over seeds 42–44.
Method
HarmBench ASR
XSTest ORR
ORB-hard ORR
M0
2.1
16.0
79.0
Plain
15.4
18.0
60.6
ER
1.2
26.8
91.6
DER
2.1
17.2
82.4
DER++
2.5
16.8
78.6
TABLE XII: Gemma O1 factorial ASR and ORR at M3 (%).
Setting
Harmful / total
ASR (%)
M0
125/240
52.1
τ=0.1
186/240
77.5
τ=0.3
175/240
72.9
τ=0.5
186/240
77.5
τ=1.0
121/240
50.4
TABLE XIII: SafeLoRA threshold sensitivity on Mistral O1 at seed 42.
β=0
β=1
α=0
Plain
ER
Lower base cosine
Lower base cosine
ASR above base
ASR below base
α=1
DER
DER++
Higher base cosine
Higher base cosine
ASR near base
ASR below base
TABLE XIV: Descriptive (α,β) factorial summary; α : distillation, β : replay exposure, cosine: similarity to the base refusal direction, ASR: HarmBench.
Measurement
Conditions
Checkpoints
Primary HarmBench
Plain/DER++ O1–O6; ER/DER O1–O3; seed 42
M0 – M3
Primary held-out ASR and ORR
Same method/ordering sets
M0 , M3
Matched Plain control
Primary models, O1–O3, seed 42
M0 , M3 ASR/ORR
Primary geometry/ablation
Four methods, O1–O3, seed 42
M0 – M3
Primary seed replication
Four methods, O1, seeds 42–44
ASR/geometry chains; held-out ASR/ORR endpoints
Gemma check
Plain/DER++ O1–O6; four methods at O1; seed 42
ASR chains and ORR endpoints; geometry O1–O3 for Plain/DER++ and O1 for ER/DER
TABLE XV: Reported evaluation coverage by measurement, training condition and model checkpoint.
Fine-tuning safety-aligned language models for downstream tasks often leads to substantial degradation of refusal behavior, making models vulnerable to adversarial misuse. While prior work has shown that safety-relevant features are encoded in structured representations within the model's activation space, how these representations change during fine-tuning and why alignment degrades remains poorly understood. In this work, we investigate the representation-level mechanisms underlying alignment degradation. Our analysis shows that standard fine-tuning induces systematic drift in safety-relevant representations, distorts their geometric structure, and introduces interference between task optimization and safety features. These effects collectively lead to increased harmful compliance. Motivated by these findings, we introduce REFUSALGUARD, a representation-level fine-tuning framework that preserves safety-relevant structure during model adaptation. Our approach constrains updates in hidden representation space, ensuring that safety-mediating components remain stable while allowing task-specific learning in complementary directions. We evaluate REFUSALGUARD across multiple model families, including LLaMA, Gemma, and Qwen, on adversarial safety benchmarks such as AdvBench, DirectHarm4, and JailbreakBench, as well as downstream utility tasks. Our approach achieves attack success rates comparable to base safety-aligned models while maintaining competitive task performance, significantly outperforming baselines.
Sadia Asif, Mohammad Mohammadi Amiri
Department of Computer Science Rensselaer Polytechnic Institute Troy, NY, USA
Benign fine-tuning severely weakens the safety alignment of large language models (LLMs), so we study why refusal behavior is so fragile. While prior work often attributes this failure to gradient conflict, we propose a fundamentally different Fisher-geometric explanation: safety Fisher is low-rank, and alignment makes the safety geometry flatter while preserving an output-routing pathway. After 100 benign fine-tuning examples, this pathway is selectively re-sharpened in output-side MLP modules, explaining the asymmetric fragility: safety can collapse to high attack success rates, while general utility degrades mildly. The routing view also explains why few safety examples can restore refusal behavior, indicating that internal safety-relevant representations are preserved. Finally, we show that LoRA and ASAM mitigate early collapse by suppressing output-side sharpness, but their protection weakens at larger fine-tuning scales. Overall, safety failure is best understood as a disruption of a low-rank output-routing mechanism
Yitong Guo, Xiaoyi Chen, Siyuan Zhang +2
Indiana University Bloomington · Tsinghua University · Nanyang Technological University
Safety risks from fine-tuning are commonly characterized by the harmfulness of the training data:harmful fine-tuning is considered dangerous, while benign fine-tuning is often assumed to preservealignment. We argue that this view misses a more fundamental factor-the behavioral transition inducedby supervision. Harmful fine-tuning and safety-degrading benign fine-tuning can both be understoodas learning the same refusal-to-compliance transition, but on different data distributions. We studywhether such a transition learned on benign inputs can generalize to harmful requests. We constructbenign examples that an aligned model initially tends to refuse and pair them with their originalharmless responses, creating a discrepancy between the model's initial refusal and the supervisedanswer. Fine-tuning on these examples increases harmful compliance, but only when two conditionshold together: the discrepancy is large enough, and it cannot be resolved through a narrow surface-levelshortcut. With the induced discrepancy matched, varying only whether it is localized changes harmfulcompliance by an order of magnitude; raising the discrepancy does not help while a shortcut remainsavailable, and removing the shortcut does not help while the discrepancy is small. Building on thisobservation, we introduce SAFEOFF, a dataset of benign instructions rewritten to raise the alignedmodel's refusal likelihood and paired with their original answers. Across three aligned LLMs and threesafety benchmarks, SAFEOFF substantially weakens safety alignment despite containing no explicitharmful supervision, suggesting that fine-tuning safety depends not only on what data a model sees, butalso on which behavioral boundary the supervision moves.
Jesson Wang, Zhanhao Hu, Minghao Lin +3
University of Southern California · University of California, Berkeley · University of Washington