If You Can't Use Them, Recycle Them: Optimizing Merging at Scale Mitigates Performance Tradeoffs
Muhammad Khalifa, Yi-Chern Tan, Arash Ahmadian, Tom Hosking, Honglak Lee, Lu Wang, Ahmet Üstün, Tom Sherborne, Matthias Gallé
TL;DR
The paper tackles the challenge of balancing capabilities across many tasks in very large language models by recycling suboptimal checkpoints through training-free linear merging. It introduces a CMA-ES-based optimization to find the weights for a linear model soup that maximizes a macro-average fitness across tasks, formalized as $\theta_{\text{mrg}} = \sum_i \alpha_i \theta_i$ with $\sum_i \alpha_i = 1$. Experiments with 16 checkpoints across two- and three-task settings show that the optimized merges achieve Pareto-optimal tradeoffs and often outperform both individual checkpoints and simple baselines, while revealing that most checkpoints contribute to the final model. This approach offers a scalable, cost-efficient method to recycle imperfect checkpoints in frontier-model workflows, enabling training-free optimization of task tradeoffs at scale.
Abstract
Model merging has shown great promise at combining expert models, but the benefit of merging is unclear when merging "generalist" models trained on many tasks. We explore merging in the context of large (~100B) models, by recycling checkpoints that exhibit tradeoffs among different tasks. Such checkpoints are often created in the process of developing a frontier model, and the suboptimal ones are usually discarded. Given a pool of model checkpoints obtained from different training runs (e.g., different stages, objectives, hyperparameters, and data mixtures), which naturally show tradeoffs across different language capabilities (e.g., instruction following vs. code generation), we investigate whether merging can recycle such suboptimal models into a Pareto-optimal one. Our optimization algorithm tunes the weight of each checkpoint in a linear combination, resulting in such an optimal model that outperforms both individual models and merge-based baselines. Further analysis shows that good merges tend to include almost all checkpoints with non-zero weights, indicating that even seemingly bad initial checkpoints can contribute to good final merges.
