TipSweep:跨层数迁移学习率,让后训练调参省一半 GPU 时
Precision-Aware Learning Rate Transfer Across Block Count in LLM Post-Training
搞微调的人最头疼调学习率,这篇给了个省卡的办法:只训最后 1 层搜出基线,再按公式外推到全模型。16GB 显存就能跑,多候选搜索还能省约一半 GPU 时,BF16 直更的缩放规则也讲清了为什么。
arXiv 论文提出 TipSweep,用于解决 SFT、DPO、RLVR 等后训练中学习率难调的问题。方法只需训练最后 k0 个块(实验中通常 k0=1)搜索学习率,再用缩放规则预测训练任意 k 个块时的最优值。在 1B 到 7B 参数模型上的实验显示,最优学习率与精度相关:FP32 主权重下按 k^-1 缩放,BF16 直接更新时按 k^-1/2 缩放。论文用考虑更新舍入的分析模型解释了两条规则。作者为 6.7B 模型做了两个原型:一个在 16 GiB 显存的消费级单卡上完成搜索,另一个在高端 GPU 上一次前向评估所有候选,5 个候选的搜索约为一次全深度 k=L 训练的一半 GPU 时。
技术机制上,该方法把学习率对可训练块数 k 的依赖拆成两条精度相关曲线。FP32 主权重路径中更新误差可累积,最优学习率随 k 线性倒数缩放;BF16 无主权重时舍入误差主导,呈 k^-1/2 的平方根缩放。据此在小规模探针训练后外推全模型设置,避免了对每种块数配置逐一网格搜索。
对开发者和企业的意义在于省算力:16GB 消费级卡即可跑学习率搜索,或用单次扫描把多候选搜索压到约一半 GPU 时。做开源模型微调或偏好优化(DPO、RLVR)且显存预算有限的团队可以直接受益,BF16 直更的场景缩放规则尤其有用。
Precision-Aware Learning Rate Transfer Across Block Count in LLM Post-Training
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.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include TipSweep, learning rate, fine-tuning, SFT.
Source attribution: curated from arXiv cs.LG (@Nan Chen, Soledad Villar, Soufiane Hayou).