[Paper Review] AdaMerging: Adaptive Model Merging for Multi-Task Learning
AdaMerging proposes an adaptive, unsupervised model merging method that automatically learns optimal merging coefficients for task vectors in multi-task learning without requiring original training data. By using entropy minimization on unlabeled test data as a surrogate objective, it improves performance by 11% over state-of-the-art methods, with superior generalization and robustness to distribution shifts.
Multi-task learning (MTL) aims to empower a model to tackle multiple tasks simultaneously. A recent development known as task arithmetic has revealed that several models, each fine-tuned for distinct tasks, can be directly merged into a single model to execute MTL without necessitating a retraining process using the initial training data. Nevertheless, this direct addition of models often leads to a significant deterioration in the overall performance of the merged model. This decline occurs due to potential conflicts and intricate correlations among the multiple tasks. Consequently, the challenge emerges of how to merge pre-trained models more effectively without using their original training data. This paper introduces an innovative technique called Adaptive Model Merging (AdaMerging). This approach aims to autonomously learn the coefficients for model merging, either in a task-wise or layer-wise manner, without relying on the original training data. Specifically, our AdaMerging method operates as an automatic, unsupervised task arithmetic scheme. It leverages entropy minimization on unlabeled test samples from the multi-task setup as a surrogate objective function to iteratively refine the merging coefficients of the multiple models. Our experimental findings across eight tasks demonstrate the efficacy of the AdaMerging scheme we put forth. Compared to the current state-of-the-art task arithmetic merging scheme, AdaMerging showcases a remarkable 11\% improvement in performance. Notably, AdaMerging also exhibits superior generalization capabilities when applied to unseen downstream tasks. Furthermore, it displays a significantly enhanced robustness to data distribution shifts that may occur during the testing phase.
Motivation & Objective
- To address the performance degradation in task vector-based model merging due to suboptimal merging coefficients.
- To eliminate reliance on original training data for merging multiple fine-tuned models.
- To develop an automatic, unsupervised method that learns task-wise or layer-wise merging coefficients.
- To improve generalization and robustness to data distribution shifts in multi-task learning.
- To outperform existing task arithmetic-based merging methods in accuracy and stability.
Proposed method
- AdaMerging uses entropy minimization on unlabeled test samples as a surrogate objective to optimize merging coefficients.
- It learns task-wise coefficients by iteratively refining the weights of each task vector in the merged model.
- It extends to layer-wise merging, learning distinct coefficients for each layer of each task vector.
- The method operates without access to original training data, relying only on unlabeled test data during optimization.
- It employs an iterative optimization process that minimizes prediction entropy across multiple tasks.
- The approach is applicable to both ViT and BERT-based models, demonstrating flexibility across architectures.
Experimental results
Research questions
- RQ1Can an adaptive, unsupervised method learn optimal merging coefficients for task vectors without access to original training data?
- RQ2How does entropy minimization on unlabeled test data improve model merging performance in multi-task learning?
- RQ3Does learning layer-wise coefficients lead to better performance and robustness compared to fixed or shared coefficients?
- RQ4Can AdaMerging generalize to unseen downstream tasks and maintain performance under data distribution shifts?
- RQ5How does AdaMerging compare to state-of-the-art merging methods like Task Arithmetic and Ties-Merging in accuracy and robustness?
Key findings
- AdaMerging achieves an 11% performance improvement over the current SOTA method, Task Arithmetic, on eight benchmark tasks.
- On average, AdaMerging improves accuracy by 8.2% compared to Task Arithmetic across all tasks.
- AdaMerging shows superior robustness, with performance gains of 11.2% on Motion Blur, 10.1% on Contrast, and 9.8% on JPEG Compression corruptions.
- The learned merging coefficients are task-specific and layer-dependent, with deeper layers relying more on task-specific weights than shallow layers.
- AdaMerging generalizes better to unseen downstream tasks, demonstrating enhanced out-of-distribution robustness.
- Layer-wise AdaMerging shows that shallow layers use smaller coefficients, indicating greater reliance on pre-trained weights, while deep layers use larger coefficients for task-specific feature learning.
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.