Alignment Dynamics in LLM Fine-Tuning

Yuhan Huang, Huanran Chen, Yinpeng Dong

TL;DR

Large Language Model (LLM) alignment is notoriously fragile under subsequent fine-tuning. This paper introduces a unified mathematical framework that models alignment evolution as a tug-of-war between an intrinsic "Rebound Force" and an external "Driving Force." Crucially, it reveals a "Rehearsal Priming Effect," showing that prior alignment leaves a hidden imprint in the model's posterior structure that enables ultra-fast re-alignment upon re-exposure.

What Problem Does This Paper Address?

Aligning LLMs with human values (such as safety and helpfulness) via supervised fine-tuning (SFT) or reinforcement learning works well initially, but this alignment is incredibly fragile. Fine-tuning an aligned model on just a small amount of harmful—or even completely benign—data can easily break its safety guardrails.

Why does this happen? Existing theories look at gradient geometry or output distribution shifts, but they fail to bridge the gap between parameter-space optimization and function-space behavior. This paper provides a rigorous, quantitative framework to explain how alignment evolves, degrades, and recovers during the fine-tuning process.

Methods

The authors define a mathematically tractable Alignment Score ($S$)—the expected probability of a model generating an aligned completion. By leveraging the empirical Neural Tangent Kernel (eNTK) framework and the Relatively Stable Kernel (RSK) assumption, they derive a closed-form equation for how this score changes during SFT.

The framework elegantly decomposes alignment updates into two competing forces:

  1. Rebound Force ($F_{rebound}$): An intrinsic self-interaction term representing "distributional inertia." The model's current policy naturally resists further shifts.
  2. Driving Force ($F_{drive}$): The external pull from the fine-tuning data, determined by how well the training distribution matches the model's outcome-conditioned posteriors.
Figure 1: Illustration of alignment dynamics in LLM fine-tuning. (a) Rebound Force: The strength of the intrinsic rebound effect is determined by the narrowness of the posterior distribution, with lower diversity leading to stronger rebound force. (b) Driving Force: Alignment evolution is governed by the relative alignment of the fine-tuning distribution p with the outcome-conditioned posteriors ˜π+ and ˜π−over aligned and non-aligned completions. (c) Rehearsal Priming Effect: Prior fine-tuning reshapes the posterior structure, which amplifies the effective driving force upon re-exposure and leads to faster re-alignment.

To test this dynamically, they use a multi-stage SFT paradigm: Stage 1 (Forward alignment), Stage 2 (Reverse perturbation), and Stage 3 (Re-exposure). They also introduce a strict score-matching protocol to ensure that models starting Stage 3 have identical surface alignment scores, isolating the effect of latent structural changes.

Datasets

The authors validate their framework across several distinct settings:

  • BeaverTails & HEx-PHI: Used for safety alignment and evaluating safety degradation.
  • Emergent Misalignment: Used to study how narrow fine-tuning unexpectedly triggers broad, harmful behaviors.
  • IMDb Movie Reviews: Used for bidirectional sentiment shifts (positive vs. negative) to prove the framework applies generally beyond safety.
  • Alpaca-cleaned: Used for initial model instruction-following warm-up and task-agnostic reverse fine-tuning.

Key Insights and Ideas

  • Bidirectional Instability: The Rebound Force works both ways. Just as safety-aligned models easily degrade when exposed to bad data, misaligned models rapidly revert to benign behavior when retrained on clean data. Both states are inherently unstable.
  • The Danger of Low Diversity: The strength of the Rebound Force is directly modulated by the "narrowness" (lack of diversity) of the target distribution. Fine-tuning on repetitive, low-diversity templates makes the resulting alignment significantly more fragile.
  • The Hidden Imprint (Rehearsal Priming): Even if subsequent fine-tuning completely erases the visible alignment score (e.g., making a safe model unsafe again), a latent residue remains in the posterior distribution. This residue amplifies the Driving Force upon re-exposure, acting like a cognitive "priming" effect that accelerates recovery.

Key Results

  • Rapid Rebound: Across Llama-3.1-8B, Gemma-2-2B, and Qwen3-8B-Base, models quickly reverted to baseline performance during reverse fine-tuning, regardless of how long they were initially aligned in Stage 1.
Figure 2: Analysis of rebound dynamics. (a) Results on the Beavertails dataset. (b) Results on the Emergent Misalignment dataset. Black lines represent the initial forward fine-tuning (Stage 1), while colored lines denote the subsequent reverse fine-tuning (Stage 2). The distinct colors indicate varying fine-tuning steps of Stage 1 training prior to the onset of Stage 2. We observe a rapid rebound to the baseline performance across all checkpoints, regardless of the number of forward fine-tuning steps.
  • Narrowness Speeds Up Degradation: Controlled experiments showed that models trained on a "Fixed Template" (lowest diversity) experienced much faster safety degradation during reverse fine-tuning than those trained on "Style-Diversified" data.
Figure 3: Impact of distribution narrowness on rebound force. Results are shown for (a) Llama3.1- 8B and (b) Gemma-2-2b. “Stage 2 Reverse (Alpaca)” denotes the application of the alpaca-cleaned dataset for stage 2 reverse fine-tuning. The narrowness of dataset distribution increases across four levels: Fixed Template (highest), Diversified Template, Standard, and Style-Diversified (lowest). Lighter colors indicate higher dataset diversity (lower distribution narrowness).
  • Accelerated Re-alignment: In Stage 3, models with deeper initial alignment (more Stage 1 steps) re-aligned significantly faster, confirming the Rehearsal Priming Effect across safety, sentiment, and misalignment tasks.
Figure 4: Dynamics of alignment score S during Stage 3 (Re-exposure). Subplots (a) and (b) present results on the IMDb dataset, initialized with Stage 1 fine-tuning on positive and negative sen- timents, respectively. Subplots (c) and (d) show results for BeaverTails and Emergent Misalignment. The color gradient represents the duration of Stage 1 fine-tuning, where lighter lines denote a higher number of training steps. The results demonstrate that prolonged Stage 1 fine-tuning significantly accelerates the fine-tuning speed in Stage 3.

Limitations and Future Work

  • eNTK Assumptions: The analysis relies on a relatively stable empirical Neural Tangent Kernel, which may not perfectly capture the highly non-linear dynamics of massive models trained at industrial scales.
  • SFT Focus: The closed-form dynamics are derived specifically for Supervised Fine-Tuning (SFT). While intermediate token-level decompositions are general, extending the full evolutionary framework to preference optimization methods like DPO and RLHF remains an important direction for future work.

Summary updated

BibTeX
@inproceedings{huang2026alignment,
  author = {Yuhan Huang and Huanran Chen and Yinpeng Dong},
  title = {{Alignment Dynamics in LLM Fine-Tuning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=iRH7xi46GH},
}
Figure