[Paper Review] Dataless Knowledge Fusion by Merging Weights of Language Models
This paper proposes Regression Mean (RegMean), a dataless model merging method that fuses fine-tuned language models by minimizing prediction differences in parameter space using a closed-form solution. It significantly outperforms baselines like Fisher-weighted averaging and ensembling, achieving superior in-domain and out-of-domain generalization without requiring training data.
Fine-tuning pre-trained language models has become the prevalent paradigm for building downstream NLP models. Oftentimes fine-tuned models are readily available but their training data is not, due to data privacy or intellectual property concerns. This creates a barrier to fusing knowledge across individual models to yield a better single model. In this paper, we study the problem of merging individual models built on different training data sets to obtain a single model that performs well both across all data set domains and can generalize on out-of-domain data. We propose a dataless knowledge fusion method that merges models in their parameter space, guided by weights that minimize prediction differences between the merged model and the individual models. Over a battery of evaluation settings, we show that the proposed method significantly outperforms baselines such as Fisher-weighted averaging or model ensembling. Further, we find that our method is a promising alternative to multi-task learning that can preserve or sometimes improve over the individual models without access to the training data. Finally, model merging is more efficient than training a multi-task model, thus making it applicable to a wider set of scenarios.
Motivation & Objective
- Address the challenge of fusing knowledge from multiple fine-tuned language models when training data is unavailable due to privacy or IP constraints.
- Develop a computationally efficient method to merge models in parameter space without retraining or access to original data.
- Improve both in-domain performance and out-of-domain generalization by combining models trained on diverse data sets.
- Provide a scalable alternative to multi-task learning that preserves or enhances performance without requiring data access.
- Demonstrate the feasibility and advantages of model merging as a practical solution for knowledge fusion in real-world NLP deployment scenarios.
Proposed method
- Propose Regression Mean (RegMean), a novel model merging algorithm inspired by optimal linear regression that minimizes ℓ² distance between the merged model and individual models.
- Formulate the merging problem as a weighted least-squares optimization over model parameters, yielding a closed-form solution that avoids iterative training.
- Use a small number of in-domain and out-of-domain examples to estimate Fisher information matrices for improved merging performance.
- Apply the method to merge multiple fine-tuned models (e.g., RoBERTa, T5, DeBERTa) with identical architecture and pre-trained weights.
- Integrate permutation matching techniques to align model weights across different models, improving merging quality.
- Evaluate merging efficiency and parameter efficiency across multiple model types and data distributions.
Experimental results
Research questions
- RQ1Can model merging in parameter space achieve better performance than ensembling or simple averaging when training data is unavailable?
- RQ2Does the proposed RegMean method improve generalization on out-of-domain data compared to individual fine-tuned models?
- RQ3How does the performance of RegMean compare to Fisher-weighted averaging and other merging baselines across diverse NLP tasks and data sets?
- RQ4To what extent can dataless merging serve as a practical alternative to multi-task learning in scenarios with private or proprietary training data?
- RQ5What is the impact of using a small number of in-domain examples for estimating Fisher information on merging performance and data leakage risks?
Key findings
- RegMean significantly outperforms Fisher-weighted averaging and model ensembling across all evaluation settings, including in-domain and out-of-domain generalization.
- The merged model achieves higher performance than the best individual model on out-of-domain data, demonstrating strong generalization capability.
- RegMean maintains high inference speed and adds minimal parameter overhead, making it more efficient than training a multi-task model from scratch.
- The method is robust even with limited in-domain examples (e.g., 10–50) for estimating Fisher information, reducing data dependency.
- Model merging via RegMean preserves or improves performance across diverse architectures (RoBERTa, T5, DeBERTa) and tasks, indicating broad applicability.
- The approach enables knowledge fusion across models trained on private data, offering a viable alternative to multi-task learning in data-constrained environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.