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

模型合并配方的进化优化

Evolutionary Optimization of Model Merging Recipes

Takuya Akiba, Makoto Shing, Yujin Tang, Qi Sun, David Ha

AI总结:

本文提出一种进化优化方法,自动发现开源模型的组合配方,在参数与数据流空间优化,实现跨领域合并,生成日语数学LLM与日语VLM,达到最先进性能,引入自动化模型组合新范式。

摘要:

大型语言模型(LLMs)的能力日益增强,但其开发通常需要大量的计算资源。尽管模型合并作为一种经济高效且有前景的方法,通过组合现有模型来创建新模型,但目前它依赖于人类的直觉和领域知识,限制了其潜力。在此,我们提出了一种进化方法,通过自动发现多样化开源模型的有效组合来克服这一限制,利用它们的集体智能,而无需大量额外的训练数据或计算。我们的方法在参数空间和数据流空间两个层面运作,使得优化不仅限于单个模型的权重。这种方法甚至促进了跨领域合并,生成了如具备数学推理能力的日语LLM等模型。令人惊讶的是,我们的日语数学LLM在各种既定的日语LLM基准测试中达到了最先进的性能,甚至超越了参数明显更多的模型,尽管它并未针对此类任务进行专门训练。此外,通过我们的方法生成的一个具有文化意识的日语VLM,在描述日语文化特定内容方面展示了其有效性,优于之前的日语VLM。这项工作不仅为开源社区贡献了新的最先进模型,还引入了一种自动化模型组合的新范式,为探索基础模型开发的替代性高效途径铺平了道路。

英文摘要:

Large language models (LLMs) have become increasingly capable, but their development often requires substantial computational resources. While model merging has emerged as a cost-effective promising approach for creating new models by combining existing ones, it currently relies on human intuition and domain knowledge, limiting its potential. Here, we propose an evolutionary approach that overcomes this limitation by automatically discovering effective combinations of diverse open-source models, harnessing their collective intelligence without requiring extensive additional training data or compute. Our approach operates in both parameter space and data flow space, allowing for optimization beyond just the weights of the individual models. This approach even facilitates cross-domain merging, generating models like a Japanese LLM with Math reasoning capabilities. Surprisingly, our Japanese Math LLM achieved state-of-the-art performance on a variety of established Japanese LLM benchmarks, even surpassing models with significantly more parameters, despite not being explicitly trained for such tasks. Furthermore, a culturally-aware Japanese VLM generated through our approach demonstrates its effectiveness in describing Japanese culture-specific content, outperforming previous Japanese VLMs. This work not only contributes new state-of-the-art models back to the open-source community, but also introduces a new paradigm for automated model composition, paving the way for exploring alternative, efficient approaches to foundation model development.

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

↑