TensorX
返回文献探索

Paper · arXiv 2410.12613

Exploring Model Kinship for Merging Large Language Models

Yedi Hu, Yunzhi Yao, Ningyu Zhang, Shumin Deng, Huajun Chen

20 upvotesOctober 16, 2024arXiv 预印本
AI 摘要

Model kinship guides model merging to improve performance on benchmarks and helps escape local optima in model evolution.

Large Language Models (LLMs)model mergingmodel kinshipbiological evolutiontop-k Greedy Merging with Model Kinship

Abstract

Model merging has become one of the key technologies for enhancing the capabilities and efficiency of Large Language Models (LLMs). However, our understanding of the expected performance gains and principles when merging any two models remains limited. In this work, we introduce model kinship, the degree of similarity or relatedness between LLMs, analogous to biological evolution. With comprehensive empirical analysis, we find that there is a certain relationship between model kinship and the performance gains after model merging, which can help guide our selection of candidate models. Inspired by this, we propose a new model merging strategy: Top-k Greedy Merging with Model Kinship, which can yield better performance on benchmark datasets. Specifically, we discover that using model kinship as a criterion can assist us in continuously performing model merging, alleviating the degradation (local optima) in model evolution, whereas model kinship can serve as a guide to escape these traps. Code is available at https://github.com/zjunlp/ModelKinship.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号