arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.12208cs.CLcs.AIcs.CVcs.NE
收藏

通过演化语言模型权重实现知识融合

Knowledge Fusion By Evolving Weights of Language Models

Harbin Institute of Technology(哈尔滨工业大学);Xiamen University Malaysia(马来西亚厦门大学)

Guodong Du, Jing Li, Hanting Liu, Runhua Jiang, Shuyang Yu, Yifei Guo, Sim Kuan Goh, Ho-Kin Tang

AI总结:

针对预训练语言模型微调成本高、跨域性能不稳的问题,提出受进化算法启发的无需额外训练的知识融合方法Evolver,通过权重的变异交叉演化选优,可兼容现有合并框架,在多类主流模型上性能显著超越此前最优水平。

摘要:

微调预训练语言模型,尤其是大语言模型,需要大量计算资源,且在不同领域和数据集上可能产生参差不齐的性能表现。本文研究了将来自不同训练场景的多个模型整合为一个统一模型的方法,该统一模型在各类数据域上表现优异,且对域外数据具备良好的泛化能力。我们受进化算法启发,提出了一种名为Evolver的知识融合方法,该方法无需进一步训练或额外训练数据。具体而言,该方法将不同语言模型的权重聚合为一个种群,随后通过变异和交叉操作生成子代模型,再将这些子代模型与父代模型进行评估对比,保留在开发数据集上性能更优的模型。重要的是,我们的模型演化策略可与现有模型合并框架无缝集成,为模型增强提供了一种通用工具。在主流语言模型(即仅编码器型、仅解码器型、编码器-解码器型)上的实验结果表明,Evolver大幅超越了此前的最优模型。代码已公开于https://github.com/duguodong7/model-evolution。

英文摘要:

Fine-tuning pre-trained language models, particularly large language models, demands extensive computing resources and can result in varying performance outcomes across different domains and datasets. This paper examines the approach of integrating multiple models from diverse training scenarios into a unified model. This unified model excels across various data domains and exhibits the ability to generalize well on out-of-domain data. We propose a knowledge fusion method named Evolver, inspired by evolutionary algorithms, which does not need further training or additional training data. Specifically, our method involves aggregating the weights of different language models into a population and subsequently generating offspring models through mutation and crossover operations. These offspring models are then evaluated against their parents, allowing for the preservation of those models that show enhanced performance on development datasets. Importantly, our model evolving strategy can be seamlessly integrated with existing model merging frameworks, offering a versatile tool for model enhancement. Experimental results on mainstream language models (i.e., encoder-only, decoder-only, encoder-decoder) reveal that Evolver outperforms previous state-of-the-art models by large margins. The code is publicly available at {https://github.com/duguodong7/model-evolution}.

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

↑