Precision-Aware Learning Rate Transfer Across Block Count in LLM Post-Training
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 blocks (in our experiments, typically ), and provide scaling rules that predict the optimal learning rate when training any set of blocks, including when (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 with float32 (FP32) master weights, but as 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 () run.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL
Related papers
Two-Stage Post-Training for Flow-Based Embodied Foundation Models
Shared title terminologycs.LGJiaming Zhang, Yao Lyu, Haoning Wang et al.
Neural Interoperability Protocols: Specifying Compatibility Before Training
Shared title terminologycs.LGAlireza Bagheri
Noise-Level Adjacency in Diffusion Training
Shared title terminologycs.LGT. Y. Tsui, Jiatao Gu, Lingjie Liu
One Phase Is Enough: Sim-to-Real Transfer with Direct Visual Reinforcement Learning
Shared title terminologycs.LGJohn Marangola, Antonia Bronars, Younghyo Park et al.
ECLIPSE: Embedding-Centered Foundation-Model Federated Knowledge Transfer for Data-Free Edge Intelligence
Shared title terminologycs.LGS. Kawa Atapour, S. Jamal Seyedmohammadi, Maryam Hosseini et al.
How to build and train your recurrent-depth model: A fixed-point perspective
Shared title terminologycs.LGThomas Pethick