TipSweep:跨Transformer块数量的LLM后训练学习率迁移方法
Precision-Aware Learning Rate Transfer Across Block Count in LLM Post-Training
研究提出TipSweep,通过仅训练最后k0个块(实验中通常k0=1)搜索最优学习率,并给出预测任意k个块训练时最优学习率的缩放规则。在1B至7B参数模型上,最优学习率呈精度相关缩放:FP32主权重下约按k^-1缩放,BF16权重直接更新时约按k^-1/2缩放。
arXiv:2611.31166v1 Announce Type: new Abstract: The post-training of pretrained large language models, including supervised finetuning (SFT), direct preference optimization (DPO), and reinforcement learning with verifiable reward (RLVR), is very sensitive to the learning rate, and tuning it through grid search is costly in both computation and memory. In this work, we propose \textbf{TipSweep}, a method to transfer the learning rate across the number of trainable transformer blocks. To do so efficiently, we search for the best learning rate by training only the last $k_0$ blocks (in our experiments, typically $k_0=1$), and provide scaling rules that predict the optimal learning rate when training any set of $k$ blocks, including when $k=L$ (the full transformer). Across experiments with models ranging from 1 to 7 billion parameters, we observe that the optimal learning rate follows precision-dependent scaling rules: the optimal rate scales approximately as $k^{-1}$ with float32 (FP32) master weights, but as $k^{-1/2}$ when updates are applied directly to bfloat16 (BF16) weights without a master copy. We explain both rules using an analytical model that accounts for update rounding, under assumptions supported by profiling experiments. Finally, we develop two prototypes of the learning rate search for a 6.7-billion-parameter model. The first fits the search on a single consumer GPU with 16 GiB of memory. The second speeds up the search on a high-end GPU by evaluating all candidate learning rates in a single pass over the data, so that a five-candidate search takes about half the GPU hours of one full-depth ($k=L$) run.
来源:arXiv (AI + Vision + Imaging) · arxiv.org