Mitigating Forgetting in LLM Supervised Fine-Tuning and Preference Learning

Heshan Devaka Fernando, Han Shen, Parikshit Ram, Yi Zhou, Horst Samulowitz, Nathalie Baracaldo, Tianyi Chen · DOI

Introduction

The standard pipeline for post-training Large Language Models (LLMs) typically involves two distinct stages: Supervised Fine-Tuning (SFT) to instill instruction-following capabilities, followed by preference alignment (e.g., DPO or RLHF) to ensure safety and helpfulness. While this sequential approach is common practice, it is fundamentally flawed. As the model aligns with human preferences, it inevitably "forgets" the optimal instruction-following state achieved during SFT. This paper provides a rigorous theoretical foundation for this empirical observation and introduces two joint training frameworks, ALRIGHT and MAXRIGHT, to mitigate this forgetting with negligible computational overhead.

The Problem: Sequential Optimization Gaps

The core issue lies in shifting data distributions and conflicting objectives between SFT and preference learning. Even with KL-divergence regularization, sequential training fails to maintain the gains from the first stage. The authors provide a theoretical proof (Theorem 3.3) that sequential training suffers from a non-diminishing optimality gap; it can never reach the Pareto front—the set of solutions where one objective cannot be improved without degrading the other. This "forgetting" is not just an empirical nuisance but a mathematical certainty in sequential optimization.

Proposed Frameworks: ALRIGHT and MAXRIGHT

To address this, the authors propose joint training through alternating objectives, which approximates a full multi-objective "Mix" approach without the prohibitive memory cost of maintaining two computational graphs.

  1. ALRIGHT (ALternating supeRvised fIne-tuninG and Human preference alignmenT): A stochastic method that randomly selects between an SFT or a DPO update at each step based on a fixed probability ($\lambda$).
  2. MAXRIGHT (MAXimum supeRvised fIne-tuninG and Human preference alignmenT): An adaptive version of ALRIGHT that evaluates which objective is currently "lagging" further behind its individual optimum and prioritizes that update.

Key Results and Performance

The joint post-training frameworks demonstrate clear superiority over sequential methods across diverse models (Pythia-1b, Llama3-8b, OPT-1.3b) and datasets. On Llama3-8b, the framework achieved up to a 23% overall performance improvement across standard benchmarks compared to sequential training.

Trajectory comparison of different training paradigms in the SFT vs. RLHF objective space. Sequential training fails to reach the ideal point, while ALRIGHT and MAXRIGHT approach the Pareto front.

As shown in the trajectory plots, sequential models tend to swing toward the most recent objective, whereas ALRIGHT and MAXRIGHT consistently land closer to the "Ideal Point"—the theoretical maximum for both objectives. This is quantified by the "Ideal Distance" metric, which measures the Euclidean distance in objective space to the perfectly optimized state.

Efficiency and Resource Usage

A critical advantage of these alternating methods is their resource efficiency. While a naive "Mix" approach (linearly combining losses) is effective, it increases GPU utilization by over 35%. In contrast, ALRIGHT and MAXRIGHT maintain a resource profile nearly identical to standard sequential training.

Comparison of performance metrics (optimality gaps, ideal distance) and resource usage (runtime, GPU utilization) across training methods.

As illustrated in the performance comparison, MAXRIGHT consistently achieves the lowest Ideal Distance and RLHF optimality gap. Furthermore, the frameworks effectively balance safety and utility, outperforming sequential models on safety benchmarks like SORRY-Bench without the "over-refusal" issues often seen in heavily aligned models.

Conclusion

By treating LLM post-training as a multi-objective optimization problem, ALRIGHT and MAXRIGHT provide a mathematically sound and computationally efficient alternative to sequential training. These methods bridge the gap between instruction following and preference alignment, ensuring that models remain both capable and safe without sacrificing performance in either domain.

Summary updated

BibTeX
@misc{fernando2024mitigating,
  author = {Heshan Devaka Fernando and Han Shen and Parikshit Ram and Yi Zhou and Horst Samulowitz and Nathalie Baracaldo and Tianyi Chen},
  title = {{Mitigating Forgetting in LLM Supervised Fine-Tuning and Preference Learning}},
  year = {2024},
  eprint = {2410.15483},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15483},
}
Figure