Model Merging in Pre-Training of Large Language Models

4 days ago 3

[Submitted on 17 May 2025 (v1), last revised 20 May 2025 (this version, v2)]

View PDF HTML (experimental)

Abstract:Model merging has emerged as a promising technique for enhancing large language models, though its application in large-scale pre-training remains relatively unexplored. In this paper, we present a comprehensive investigation of model merging techniques during the pre-training process. Through extensive experiments with both dense and Mixture-of-Experts (MoE) architectures ranging from millions to over 100 billion parameters, we demonstrate that merging checkpoints trained with constant learning rates not only achieves significant performance improvements but also enables accurate prediction of annealing behavior. These improvements lead to both more efficient model development and significantly lower training costs. Our detailed ablation studies on merging strategies and hyperparameters provide new insights into the underlying mechanisms while uncovering novel applications. Through comprehensive experimental analysis, we offer the open-source community practical pre-training guidelines for effective model merging.

Submission history

From: Yunshui Li [view email]
[v1] Sat, 17 May 2025 16:53:14 UTC (1,035 KB)
[v2] Tue, 20 May 2025 04:55:50 UTC (1,035 KB)

Read Entire Article