arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11385cs.CL
收藏

MetaGPT:使用模型独占任务算术合并大型语言模型

MetaGPT: Merging Large Language Models Using Model Exclusive Task Arithmetic

Baichuan Inc.(百川智能)

Yuyan Zhou, Liang Song, Bingning Wang, Weipeng Chen

AI总结:

本文提出模型独占任务算术方法MetaGPT,通过利用LLMs的局部线性和任务向量正交性分离数据项与缩放系数,在保护数据隐私且无需繁重搜索的前提下合并GPT规模模型,实现多任务学习的最优性能。

摘要:

GPT-4等大型语言模型(LLMs)的出现催化了对多任务学习(MTL)的探索,其中单一模型在多样任务中展现出熟练度。任务算术已成为MTL的一种高性价比方法。它通过将相应的任务向量添加到预训练模型中,实现跨多个任务的性能提升。然而,目前缺乏一种能同时实现最佳性能、计算效率和数据隐私的方法,这限制了它们在LLMs上的应用。在本文中,我们提出了模型独占任务算术用于合并GPT规模模型,该方法将模型合并的目标形式化为多任务学习框架,旨在最小化合并模型与每个独立任务模型之间的平均损失差异。由于数据隐私限制了多任务训练数据的使用,我们利用LLMs的局部线性和任务向量的正交性来分离数据项和缩放系数项,并推导出模型独占任务算术方法。我们提出的MetaGPT与数据无关,并绕过了繁重的搜索过程,使其对LLMs具有成本效益且易于实现。大量实验表明,MetaGPT在任务算术方面取得了改进,并在多个任务上实现了最先进的性能。

英文摘要:

The advent of large language models (LLMs) like GPT-4 has catalyzed the exploration of multi-task learning (MTL), in which a single model demonstrates proficiency across diverse tasks. Task arithmetic has emerged as a cost-effective approach for MTL. It enables performance enhancement across multiple tasks by adding their corresponding task vectors to a pre-trained model. However, the current lack of a method that can simultaneously achieve optimal performance, computational efficiency, and data privacy limits their application to LLMs. In this paper, we propose \textbf{M}odel \textbf{E}xclusive \textbf{T}ask \textbf{A}rithmetic for merging \textbf{GPT}-scale models, which formalizes the objective of model merging into a multi-task learning framework, aiming to minimize the average loss difference between the merged model and each individual task model. Since data privacy limits the use of multi-task training data, we leverage LLMs' local linearity and task vectors' orthogonality to separate the data term and scaling coefficients term and derive a model-exclusive task arithmetic method. Our proposed MetaGPT is data-agnostic and bypasses the heavy search process, making it cost-effective and easy to implement for LLMs.Extensive experiments demonstrate that MetaGPT leads to improvements in task arithmetic and achieves state-of-the-art performance on multiple tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑