Efficient Model Development through Fine-tuning Transfer

Pin-Jie Lin, Rishab Balasubramanian, Fengyuan Liu, Nikhil Kandpal, Tu Vu

TL;DR

This paper introduces a novel method for transferring fine-tuning updates between different versions of large language models (LLMs) by extracting and applying "diff vectors." This approach significantly boosts target model performance, often matching or exceeding fully fine-tuned models, without requiring additional training, thereby reducing computational costs and accelerating LLM development.

What Problem Does This Paper Address?

Developing and fine-tuning large language models (LLMs) is an incredibly resource-intensive process. As new base model versions are released, developers often have to repeat expensive fine-tuning and alignment procedures for each new version, especially for domain- or language-specific applications. This repetitive cost is a major bottleneck for continuous LLM development. The paper addresses this by proposing a way to "transfer" the knowledge gained during fine-tuning from one model version to another, bypassing the need for re-training.

Methods

The core of the proposed method is diff vector transfer.

  1. Diff Vector Extraction: For a source model version, the authors compute a "diff vector" ($\Delta_s$) by subtracting the parameters of the base model ($m_s$) from its fine-tuned counterpart ($m'_s$). This $\Delta_s$ captures the task-specific knowledge or updates learned during fine-tuning.
  2. Diff Vector Application: This extracted $\Delta_s$ is then directly added to the parameters of a different target base model ($m_t$), resulting in a new model $m_t + \Delta_s$. This operation is performed without any gradient-based training.
  3. Transferring-then-Finetuning: The paper also explores using the merged model ($m_t + \Delta_s$) as a more effective starting point for subsequent fine-tuning, showing it leads to faster convergence and better performance.
  4. Iterative Recycling-then-Finetuning: For continuous development, they propose an iterative approach where diff vectors from previous versions are progressively incorporated and fine-tuned.

Datasets

The paper uses a variety of datasets for evaluation, including:

  • General Knowledge: MMLU, Global MMLU
  • Math: GSM8K, MATH, MATH500, GPQADiamond
  • Reasoning: ARCC, GPQA
  • Code Generation: HumanEval+, MBPP+, LiveCodeBench, BigCodeBench
  • Multilingual: Aya dataset (for Malagasy and Sinhala), InstrucTurca dataset (for Turkish)

The paper does not introduce new benchmarks but evaluates on existing ones.

Key Insights and Ideas

  • Fine-tuning is Decoupled from Base Models: The results strongly suggest that much of the "intelligence" or task-specific capabilities of LLMs reside in the fine-tuning updates rather than being solely dependent on the base model architecture.
  • Linear Mode Connectivity is Key: The effectiveness of diff vector transfer is significantly higher when the source and target models are "linearly connected" in parameter space, meaning they can be reached from each other via a relatively smooth path. This implies that models developed sequentially or from similar training procedures are better candidates for this transfer.
  • Transferring Knowledge, Not Just Weights: The diff vector isn't just a simple weight shift; it effectively encodes learned behaviors and reasoning patterns that can be applied to a new base model.
  • Step-by-Step Reasoning Transfer: The method can even transfer the ability to perform step-by-step reasoning, as observed in math and logic problems.
  • Efficiency Gains: The approach offers substantial reductions in computational cost by avoiding full fine-tuning for every new model version.

Key Results

  • Performance Boost: Transferring diff vectors from Llama 3.0 to Llama 3.1 resulted in a 46.9% accuracy improvement on IFEval and 15.7% on LiveCodeBench, surpassing the Llama 3.1 Instruct model without further training.
  • Multilingual Gains: In multilingual settings, the method achieved improvements like 4.7% for Malagasy and 15.5% for Turkish on Global MMLU.
  • Comparable to Fine-Tuning: In many cases, the merged model ($m_t + \Delta_s$) performed comparably to its fully fine-tuned counterpart.
  • Faster Convergence: Using the merged model as a starting point for fine-tuning ("transferring-then-finetuning") led to faster convergence and improved performance.
  • Iterative Improvement: The iterative recycling approach showed consistent improvements in both training efficiency and model performance.

Limitations and Future Work

  • Focus on Supervised Fine-Tuning: The current study primarily evaluates supervised fine-tuning for math reasoning. Future work should explore other post-training methods like RLHF, preference optimization, and merging techniques.
  • Broader Task Evaluation: A wider range of downstream tasks is needed to fully assess generalization capabilities.
  • Model Shift Impact: The effect of model shifts (weight movement, loss landscape changes) on diff vector transferability needs further investigation.
  • Ethical Considerations: Reusing fine-tuning updates could inadvertently transfer biases or undesirable behaviors. Responsible implementation and ethical implications across different architectures and training approaches require further research.
  • Cross-Architecture Transfer: While some initial experiments were conducted, transferring fine-tuning across significantly different model architectures remains challenging and is left for future work.

Summary updated

BibTeX
@inproceedings{lin2025efficient,
  author = {Pin-Jie Lin and Rishab Balasubramanian and Fengyuan Liu and Nikhil Kandpal and Tu Vu},
  title = {{Efficient Model Development through Fine-tuning Transfer}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure