arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.15416cs.LGcs.AImath.OC
收藏

StoSignSGD:无偏结构随机性修正SignSGD用于训练大语言模型

StoSignSGD: Unbiased Structural Stochasticity Fixes SignSGD for Training Large Language Models

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Dingzhi Yu, Rui Pan, Yuxing Liu, Difan Zou, Tong Zhang

AI总结:

本文提出StoSignSGD算法,通过在sign操作中注入结构随机性,解决SignSGD在非光滑目标下的发散问题,理论和实验均证明其在凸和非凸优化中的优越性。

摘要:

基于符号的优化算法,如SignSGD,在分布式学习和训练大基础模型中表现出色。尽管其经验优势,SignSGD在非光滑目标下会发散,这在现代机器学习中普遍存在,由于ReLUs、max-pools和混合专家。为克服这一根本限制,我们提出了StoSignSGD算法,通过在sign操作中注入结构随机性,同时保持无偏更新步骤。在在线凸优化的领域,我们的理论分析显示,StoSignSGD严格解决了SignSGD的非收敛问题,达到与下界匹配的收敛率。对于更具挑战性的非凸非光滑优化,我们引入了广义的静态测量,涵盖了先前的定义,证明StoSignSGD在维度因素上改进了已知的复杂度界限。实验表明,StoSignSGD在各种大语言模型(LLM)训练制度中表现出稳健的稳定性和优越的效率。值得注意的是,在低精度FP8预训练——一个AdamW彻底失败的设置中,StoSignSGD仍然保持高度稳定,并相对于已知的基线方法产生显著的1.44×到2.14×的速度提升。此外,当在数学推理任务上微调7B LLMs时,StoSignSGD在AdamW和SignSGD上均取得了显著的性能提升。最后,为了解剖驱动其成功机制,我们开发了一种符号转换框架,能够将任何通用优化器转换为其无偏符号版本。利用这一框架,我们解构了StoSignSGD的核心组件,并通过全面的消融研究来验证我们的算法设计选择。

英文摘要:

Sign-based optimization algorithms, such as SignSGD, have garnered attention for their performance in distributed learning and training large foundation models. Despite their empirical superiority, SignSGD is known to diverge on non-smooth objectives, which are ubiquitous due to ReLUs, max-pools, and mixture-of-experts. To overcome this limitation, we propose StoSignSGD, an algorithm that injects structural stochasticity into the sign operator while maintaining an unbiased update step. In the regime of (online) convex optimization, StoSignSGD rigorously resolves the non-convergence issues of SignSGD, achieving a sharp convergence rate matching the lower bound. For the more challenging non-convex non-smooth optimization, we introduce generalized stationary measures that encompass prior definitions, proving that StoSignSGD improves upon the best-known complexity bounds by dimensional factors. Empirically, StoSignSGD is stable and efficient across diverse large language model (LLM) training regimes. In aggressive low-precision pretraining, which spans both FP8 and the far more demanding FP4 regime where AdamW fails catastrophically, StoSignSGD stays stable and consistently performs the best. It attains a 1.44x to 2.14x speedup over established baselines under FP8. Under 4-bit precision, it improves downstream accuracy on the largest OLMo2-370M model by 1.13 points over the strongest stable baseline, and this advantage grows as both the model size and the data scale up. When fine-tuning 7B LLMs on mathematical reasoning tasks, StoSignSGD also delivers clear gains over both AdamW and SignSGD. Finally, to explain why it works, we develop a sign conversion framework that turns any general optimizer into its unbiased, sign-based counterpart. Using this framework, we decompose the core components of StoSignSGD and run a comprehensive ablation study to validate our design choices.

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

↑