NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mitigating Parameter Interference in Model Merging via Sharpness-Aware Fine-Tuning

Yeoreum Lee, Jinwook Jung, Sungyong Baik

Mitigating Parameter Interference in Model Merging via Sharpness-Aware Fine-Tuning

TL;DR

Model merging allows us to combine multiple task-specific models into one without expensive retraining, but "parameter interference" usually degrades performance. This paper introduces Sharpness-Aware Fine-Tuning (SAFT), demonstrating that fine-tuning models to find "flat minima" makes them naturally more compatible for merging, significantly boosting the accuracy of the final multi-task model.

The Challenge of Parameter Interference

The current AI paradigm involves taking a massive "foundation model" (like CLIP or a Large Language Model) and fine-tuning it for specific downstream tasks. Ideally, we’d like to merge these specialized models into a single multi-task model using simple parameter arithmetic, such as adding "task vectors."

However, a major hurdle exists: parameter interference. When you add the weights of a model trained for Task A to a model trained for Task B, the updates often conflict. This "noise" pushes the parameters into regions of the loss landscape where performance on both tasks collapses. While previous research tried to fix this during the merging step or by forcing the model to be more linear, these solutions often crippled the performance of the individual specialized models before they were even merged.

The SAFT Approach

The authors propose a shift in perspective: instead of fixing the merge, let's fix the fine-tuning. They derive a new objective function designed to minimize the performance gap between a merged model and its specialized components.

Surprisingly, they discovered that this "merge-friendly" objective is mathematically almost identical to Sharpness-Aware Minimization (SAM). SAM is an optimization technique that seeks out "flat minima"—regions of the loss landscape where small perturbations in weights don't cause a massive spike in error.

The core method, SAFT (Sharpness-Aware Fine-Tuning), works as follows:

  1. Objective: During fine-tuning, the model doesn't just look for the lowest loss; it looks for the lowest loss in a neighborhood of parameters.
  2. Implementation: They primarily use Adaptive SAM (ASAM), which scales perturbations based on parameter magnitude, making it particularly effective for large-scale foundation models.
  3. Theory: The authors provide a theoretical proof showing that SAFT reduces the dominant eigenvalues of the Hessian matrix. In plain English: it ensures the loss landscape is a wide, shallow bowl rather than a narrow, steep canyon.

Key Insights and Ideas

  • Flatness equals Robustness: The "Aha!" moment is realizing that merging is essentially a form of parameter perturbation. If a model is at a flat minimum, the "interference" from another task's weights won't push it out of the low-loss zone.
Loss landscapes comparing standard fine-tuning (w/o ASAM) and SAFT (w/ ASAM). SAFT creates noticeably broader, flatter regions of low loss, making the model more robust to parameter shifts during merging.
  • Weight Disentanglement: The paper shows that SAFT leads to better "weight disentanglement." This means the task vector for Task A has a localized influence; it changes the model's behavior for Task A inputs without accidentally changing its behavior for Task B inputs.
  • Cross-Task Linearity (CTL): SAFT-tuned models exhibit higher linearity across their layers. This makes the simple arithmetic of model merging much more predictable and effective.
  • Orthogonality: SAFT isn't a competitor to existing merging methods like TIES or Task Arithmetic. Instead, it’s a "pre-processing" step. You can use SAFT to fine-tune your models and then use TIES to merge them for even better results.

Experimental Validation and Results

The researchers validated SAFT across two major domains:

  • Computer Vision: Eight diverse datasets (Cars, DTD, EuroSAT, GTSRB, MNIST, RESISC45, SUN397, and SVHN) using CLIP ViT-B/32 and ViT-B/16 backbones.
  • Natural Language Processing (NLP): Four GLUE benchmark tasks (CoLA, MRPC, RTE, and SST-2) using the Flan-T5-base model.

Key Findings: * Superior Multi-task Accuracy: On the ViT-B/32 benchmark across 8 tasks, SAFT improved the average absolute accuracy of merged models compared to standard SGD. When combined with other specialized fine-tuning methods like FTTS, it reached 79.38% absolute accuracy (up from 78.35%). * NLP Resilience: In the NLP experiments, standard merging often caused performance on the RTE task to crash to near-zero. SAFT-tuned models remained robust, maintaining high accuracy where other methods failed. * Hyperparameter Robustness: Merging usually requires tedious tuning of a "scaling coefficient" ($\alpha$). SAFT-tuned models performed well across a much wider range of $\alpha$ values, making them easier to deploy in the real world.

Limitations and Future Work

  • Training Cost: The main trade-off is computational. SAM requires two forward/backward passes per training step, roughly doubling the training time compared to standard SGD (though VRAM usage remains similar).
  • Interaction with Linear Methods: The authors noted that when combining SAFT with certain linear fine-tuning methods and complex merging algorithms (like TIES), the benefits can sometimes overlap or conflict. They suggest further research is needed to optimize these specific combinations.
  • Broader LLM Scaling: While tested on Flan-T5, the paper does not explore merging the largest-scale LLMs (e.g., 70B+ parameters), where the loss landscapes might behave differently.

Summary updated

BibTeX
@inproceedings{lee2025mitigating,
  author = {Yeoreum Lee and Jinwook Jung and Sungyong Baik},
  title = {{Mitigating Parameter Interference in Model Merging via Sharpness-Aware Fine-Tuning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=eaTqsptDPL},
}
Figure