组合多个机器学习模型长期以来一直是一种提升性能的技术,特别是在分布式环境中。传统方法(如模型集成)效果很好,但在内存和计算方面成本高昂。最近,基于平均模型参数的方法在某些环境中取得了良好结果并获得了普及。然而,合并初始化不同且不共享部分训练轨迹的模型,即使在对齐其神经元之后,其结果可能比仅使用基础模型更差。在本文中,我们引入了一种新颖的方法,即非均匀参数级模型合并(Non-uniform Parameter-wise Model Merging,简称 NP Merge),该方法通过基于梯度的优化来学习每个参数对最终模型的贡献,从而实现模型合并。我们实证证明了我们的方法在多种环境中合并各种架构模型的有效性,超越了以往的方法。我们还扩展了 NP Merge 以处理多个模型的合并,展示了其可扩展性和鲁棒性。
英文摘要:
Combining multiple machine learning models has long been a technique for enhancing performance, particularly in distributed settings. Traditional approaches, such as model ensembles, work well, but are expensive in terms of memory and compute. Recently, methods based on averaging model parameters have achieved good results in some settings and have gained popularity. However, merging models initialized differently that do not share a part of their training trajectories can yield worse results than simply using the base models, even after aligning their neurons. In this paper, we introduce a novel approach, Non-uniform Parameter-wise Model Merging, or NP Merge, which merges models by learning the contribution of each parameter to the final model using gradient-based optimization. We empirically demonstrate the effectiveness of our method for merging models of various architectures in multiple settings, outperforming past methods. We also extend NP Merge to handle the merging of multiple models, showcasing its scalability and robustness.
Towards Minimizing Feature Drift in Model Merging: Layer-wise Task Vector Fusion for Adaptive Knowledge Integration
Key Laboratory of Big Data & Artificial Intelligence in Transportation, Beijing, China(大数据与人工智能交通实验室,北京,中国);School of Computer Science and Technology, Beijing Jiaotong University, Beijing, China(北京交通大学计算机科学与技术学院,北京,中国);Frontiers Science Center for Smart High-Speed Railway System, Beijing Jiaotong University, Beijing, China(智能高速铁路系统前沿科学中心,北京交通大学,北京,中国);College of Computing and Data Science, Nanyang Technological University, Singapore(南洋理工大学计算与数据科学学院,新加坡)
Scalable Model Merging with Progressive Layer-wise Distillation
Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);School of Computer Science, Beijing Institute of Technology(北京理工大学计算机学院);Shanghai Qizhi Institute(上海启智研究院)
Merging Smarter, Generalizing Better: Enhancing Model Merging on OOD Data
College of Artificial Intelligence, Jilin University(吉林大学人工智能学院);Rensselaer Polytechnic Institute(拉特盖尔理工学院);College of applied Science, Taiyuan University of Science and Technology(太原科技大学应用科学学院);CSIRO’s Data61(CSIRO数据61)
AP-BMM: Approximating Capability-Cost Pareto Sets of LLMs via Asynchronous Prior-Guided Bayesian Model Merging
Guangdong Provincial Key Laboratory of Novel Security Intelligence Technologies(广东新型安全智能技术重点实验室);Institute of Cyberspace Security(网络空间安全研究院);School of Computer Science and Technology(计算机科学与技术学院)
Fine-Grained Model Merging via Modular Expert Recombination
Department of Data Science and Artificial Intelligence, The Hong Kong Polytechnic University(数据科学与人工智能系,香港理工大学);College of Computer Science, Chongqing University(计算机科学学院,重庆大学)
AdaMerging: Adaptive Model Merging for Multi-Task Learning
Northeastern University(东北大学);University of Oxford(牛津大学);Nanyang Technological University(南洋理工大学);University of Maryland(马里兰大学);JD Explore Academy(京东探索研究院)
CALM: A CKA-Guided Adaptive Layer-Wise Modularization Framework for LLM Quantization
Beijing University of Posts and Telecommunications(北京邮电大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Zhejiang University(浙江大学);University of Science and Technology of China(中国科学技术大学)
QAM: Quadratic-Accurate Checkpoint Merging via Sequential Consistency
University of Wisconsin – Madison(威斯康星大学麦迪逊分校);Baidu Inc.(百度公司);University of Arizona(亚利桑那大学);University of Toronto(多伦多大学);Wilfrid Laurier University(威尔弗里德·劳里埃大学);York University(约克大学)