AdaMerging: Adaptive Model Merging for Multi-Task Learning

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Yang, Enneng, Wang, Zhenyi, Shen, Li, Liu, Shiwei, Guo, Guibing, Wang, Xingwei, Tao, Dacheng
Formato: Preprint
Publicado: 2023
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917677253001216
author Yang, Enneng
Wang, Zhenyi
Shen, Li
Liu, Shiwei
Guo, Guibing
Wang, Xingwei
Tao, Dacheng
author_facet Yang, Enneng
Wang, Zhenyi
Shen, Li
Liu, Shiwei
Guo, Guibing
Wang, Xingwei
Tao, Dacheng
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2310_02575
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle AdaMerging: Adaptive Model Merging for Multi-Task Learning
Yang, Enneng
Wang, Zhenyi
Shen, Li
Liu, Shiwei
Guo, Guibing
Wang, Xingwei
Tao, Dacheng
Machine Learning
Computer Vision and Pattern Recognition
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.
title AdaMerging: Adaptive Model Merging for Multi-Task Learning
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2310.02575