cs.LGOct 27, 2026

Preserving Safety During Sequential Fine-Tuning: A Factorial and Geometric Analysis of Replay

Authors: George Ruellan, Diana Benavides-Prado

Organizations: School of Electronic Engineering and Computer Science, Queen Mary University of London, London, United Kingdom

Abstract

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

Explore similar work

CardsList
  1. RefusalGuard: Geometry-Preserving Fine-Tuning for Safety in LLMs

    May 3, 2026Sadia Asif, Mohammad Mohammadi AmiriFine-TuningLLM Fine-Tuning

  2. When Safety Routing Breaks: Understanding Alignment Fragility under Benign Fine-Tuning

    Sep 1, 2026Yitong Guo, Xiaoyi Chen, Siyuan Zhang +2LLM Fine-TuningLLM Safety Alignment

  3. Safety Offset Learning: When Benign Fine-Tuning Misaligns LLMs

    Oct 19, 2026Jesson Wang, Zhanhao Hu, Minghao Lin +3LLM Fine-TuningLLM Safety Alignment