如果无法使用它们,就回收它们:在大规模下优化合并可缓解性能权衡
If You Can't Use Them, Recycle Them: Optimizing Merging at Scale Mitigates Performance Tradeoffs
AI总结:
本文研究在大规模约100B参数模型下,通过优化线性组合权重回收次优检查点,将其合并为帕累托最优模型,并发现即使看似较差的检查点也能对最终合并产生贡献。
摘要:
模型合并已在组合专家模型方面展现出巨大前景,但当合并的是在多个任务上训练的“通才”模型时,合并的收益尚不明确。我们在大规模(约100B参数)模型的情境下探索合并,通过回收在不同任务之间表现出权衡的检查点来实现。这类检查点通常是在开发前沿模型的过程中产生的,而次优的检查点通常会被丢弃。给定一组来自不同训练运行(例如不同阶段、目标、超参数和数据混合)的模型检查点池,这些检查点自然会在不同语言能力(例如指令遵循与代码生成)之间表现出权衡,我们研究合并是否能够将这类次优模型回收为一个帕累托最优模型。我们的优化算法调整线性组合中每个检查点的权重,从而得到这样一个最优模型,其性能优于单个模型和基于合并的基线。进一步分析表明,好的合并往往包含几乎所有具有非零权重的检查点,这表明即使看似糟糕的初始检查点也能对良好的最终合并做出贡献。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。