Taming LLMs by Scaling Learning Rates with Gradient Grouping

Siyuan Li, Juanxi Tian, Zedong Wang, Xin Jin, Zicheng Liu +2 more
6/1/2025
cs.LGcs.AI

No official code found. Best implementation: ScalingOpt/SGG (9 stars, last commit 2025-07-15).

Abstract

Training large language models (LLMs) poses challenges due to their massive scale and heterogeneous architectures. While adaptive optimizers like AdamW help address gradient variations, they still struggle with efficient and effective parameter-wise learning rate estimation, resulting in training instability, slow convergence, and poor compatibility with parameter-efficient fine-tuning (PEFT) techniques. This work introduces Scaling with Gradient Grouping (SGG), an optimizer wrapper that improves adaptive learning rate estimation by dynamic grouping and group-specific scaling. SGG first groups gradient statistics in each layer into clusters and then applies cluster-specific scaling to calibrate learning rates for each parameter, thus imposing collective group-wise constraints while maintaining precise per-parameter adaptation. Experiments on diverse (M)LLM benchmarks show that SGG integrates seamlessly with existing optimizers, and offers consistent gains and faster convergence over baselines, with various model sizes. Its stability across varying batch sizes and learning rates establishes SGG as a robust choice for LLM optimization.

View on arXivView PDF

Code Implementations(1)

ScalingOpt/SGGCommunity77%

[ACL 2025 Main] Taming LLMs by Scaling Learning Rates with Gradient Grouping

90CSS, HTMLJun 1, 20251 years ago
llamallama-factoryllmmllmsoptimizer

Similar Papers

Cite this paper

@article{li2025taming,
  title  = {Taming LLMs by Scaling Learning Rates with Gradient Grouping},
  author = {Siyuan Li and Juanxi Tian and Zedong Wang and Xin Jin and Zicheng Liu and Wentao Zhang and Dan Xu},
  year   = {2025},
  eprint = {2506.01049},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.01049v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.01049.svg)](https://codeofpaper.com/paper/2506.01049)

Discussion