arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.03001cs.LGcs.AI
收藏

基于非欧几里得梯度噪声尺度的自适应批大小用于随机符号和谱下降

Adaptive Batch Sizes Using Non-Euclidean Gradient Noise Scales for Stochastic Sign and Spectral Descent

Mila, Montreal, Canada(Mila,加拿大蒙特利尔);Meta Platforms, Menlo Park, California, USA(Meta平台,美国Menlo Park,加利福尼亚州)

Hiroki Naganuma, Shagun Gupta, Youssef Briki, Ioannis Mitliagkas, Irina Rish, Parameswaran Raman, Hao-Jun Michael Shi

AI总结:

针对符号下降和谱下降优化器,推导了非欧几里得梯度噪声尺度,并提出高效方差估计方法,实现自适应批大小,在Llama模型上减少高达66%训练步数。

摘要:

为了最大化硬件利用率,现代机器学习系统通常采用大的恒定或手动调整的批大小调度,依赖于脆弱且调整成本高的启发式方法。现有的基于梯度噪声尺度(GNS)的自适应策略提供了一种有原则的替代方案。然而,它们对SGD欧几里得几何的假设与基于广义范数的流行优化器(如signSGD/Signum($\ell_\infty$)和随机谱下降(specSGD)/Muon($\mathcal{S}_\infty$))存在根本性不匹配。在这项工作中,我们推导了signSGD和specSGD的梯度噪声尺度,这些尺度自然地从它们各自的对偶范数的几何中产生。为了实际估计这些非欧几里得度量,我们提出了一种高效的方差估计程序,该程序利用分布式数据并行系统中不同秩上的局部小批量梯度。我们的实验表明,使用非欧几里得GNS的自适应批大小策略使我们能够匹配恒定批大小基线的验证损失,同时将160M参数Llama模型上Signum和Muon的训练步数减少高达66%。

英文摘要:

To maximize hardware utilization, modern machine learning systems typically employ large constant or manually tuned batch size schedules, relying on heuristics that are brittle and costly to tune. Existing adaptive strategies based on gradient noise scale (GNS) offer a principled alternative. However, their assumption of SGD's Euclidean geometry creates a fundamental mismatch with popular optimizers based on generalized norms, such as signSGD / Signum ($\ell_\infty$) and stochastic spectral descent (specSGD) / Muon ($\mathcal{S}_\infty$). In this work, we derive gradient noise scales for signSGD and specSGD that naturally emerge from the geometry of their respective dual norms. To practically estimate these non-Euclidean metrics, we propose an efficient variance estimation procedure that leverages the local mini-batch gradients on different ranks in distributed data-parallel systems. Our experiments demonstrate that adaptive batch size strategies using non-Euclidean GNS enable us to match the validation loss of constant-batch baselines while reducing training steps by up to 66\% for Signum and Muon on a 160 million parameter Llama model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑