大语言模型训练动力学中的姆潘巴效应:山谷-河流模型的最小分析
Mpemba Effect in Large-Language Model Training Dynamics: A Minimal Analysis of the Valley-River model
AI总结:
本文通过姆潘巴效应解释大语言模型训练中预热与高平台学习率调度的必要性,并在山谷-河流损失景观中推导出最优平台学习率(强姆潘巴点)的存在条件,为高效学习率调度提供理论依据。
摘要:
大语言模型(LLM)训练中的学习率(LR)调度通常遵循经验模板:预热、恒定平台/稳定阶段和衰减(WSD)。然而,对这一策略的机制性解释仍未得到充分探索,平台高度和衰减调度的选择在很大程度上是启发式的。在本文中,我们通过姆潘巴效应将训练动力学与热力学类比联系起来——姆潘巴效应是指较热的系统在淬火到同一热浴中时比较冷的系统冷却得更快的现象。我们分析了一类“山谷-河流”损失景观,其中尖锐(山谷)方向快速平衡,而较平坦(河流)方向主导全局下降。姆潘巴效应为预热阶段的必要性提供了解释,并激励采用高平台——而非低平台——以加速衰减阶段的损失下降。我们表明,对于某些损失景观,存在一个最优平台学习率——“强姆潘巴点”——在该点最慢模式消失,从而在衰减阶段实现更快的收敛。我们推导出其存在的解析条件,并估计了保持姆潘巴优势所需的衰减动力学。我们的最小模型和分析为基于平台的调度器提供了原则性论证,并为以最小的超参数扫描调整LLM中的学习率提供了指导。
英文摘要:
Learning rate (LR) schedules in large language model (LLM) training often follow empirical templates: warm-up, constant plateau/stable phase, and decay (WSD). However, the mechanistic explanation for this strategy remains underexplored, and the choice of plateau height and decay schedule is largely heuristic. In this paper, we connect training dynamics to a thermodynamic analogy via the Mpemba effect - a phenomenon in which a hotter system cools faster than a colder one when quenched into the same bath. We analyze a class of "valley-river" loss landscapes, where sharp (valley) directions equilibrate quickly, while flatter (river) directions govern global descent. The Mpemba effect provides an explanation for the necessity of the warm-up phase and motivates a high plateau - rather than a low one - for accelerating loss decrease during decay. We show that for certain loss landscapes, there exists an optimal plateau learning rate - the "strong Mpemba point" - at which the slowest mode vanishes, resulting in faster convergence during the decay phase. We derive analytical conditions for its existence and estimate decay dynamics required to preserve the Mpemba advantage. Our minimal model and analysis offer a principled justification for plateau-based schedulers and provide guidance for tuning LR in LLMs with minimal hyperparameter sweep.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。