arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.10416cs.CLcs.AI
收藏

SuperMerge:一种基于梯度的模型合并方法

SuperMerge: An Approach For Gradient-Based Model Merging

University of Minnesota(明尼苏达大学);Amazon Web Services(亚马逊网络服务)

Haoyu Yang, Zheng Zhang, Saket Sathe

AI总结:

针对任务专用模型部署后需不断适配新任务而完全重训成本高的问题,本文提出基于梯度的轻量快速模型合并方法 SUPERMERGE,并通过分层策略降低峰值空间需求,在 NLP 与 CV 任务上优于现有合并方法。

摘要:

诸如 ChatGPT、Claude 或 LLaMA 之类的大型语言模型规模庞大、结构单一,并且拥有同时支持数千项任务的超强能力。然而,高吞吐量应用通常更倾向于使用较小的任务专用模型,因为它们具有更低的延迟和成本。使用任务专用模型的一个挑战是,在模型已经针对现有任务部署之后,会不断出现解决更新任务的需求。一种直接的解决方案需要针对现有任务和新任务再次微调模型,这在计算上代价高昂且耗时。为了解决这一问题,我们提出了一种名为 SUPERMERGE 的基于模型合并的方法。SUPERMERGE 是一种基于梯度的方法,用于系统性地合并多个在现有任务和新任务上训练的微调模型。SUPERMERGE 被设计为轻量且快速的,并且合并后的模型在所有任务上都能取得与完全微调模型相似的性能。此外,我们提出了一种分层模型合并策略,以在不牺牲合并模型性能的情况下降低峰值空间需求。我们通过实验证明,SUPERMERGE 在常见的自然语言处理和计算机视觉任务上优于现有的模型合并方法。

英文摘要:

Large language models, such as ChatGPT, Claude, or LLaMA, are gigantic, monolithic, and possess the superpower to simultaneously support thousands of tasks. However, high-throughput applications often prefer smaller task-specific models because of their lower latency and cost. One challenge of using task-specific models is the incremental need for solving newer tasks after the model is already deployed for existing tasks. A straightforward solution requires fine-tuning the model again for both existing and new tasks, which is computationally expensive and time-consuming. To address this issue, we propose a model merging based approach called SUPERMERGE. SUPERMERGE is a gradient-based method to systematically merge several fine-tuned models trained on existing and new tasks. SUPERMERGE is designed to be lightweight and fast, and the merged model achieves similar performance to fully fine-tuned models on all tasks. Furthermore, we proposed a hierarchical model merging strategy to reduce the peak space requirement without sacrificing the performance of the merged model. We experimentally demonstrate that SUPERMERGE outperforms existing model merging methods on common natural language processing and computer vision tasks.

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

↑