无需调参的Sign-SGD让大模型训练更快更省资源
Sign-SGD via Parameter-Free Optimization
- 用自适应步长替代手动调参,实现完全无参数优化
- 在LLaMA和Swin Transformer上性能媲美调优后的AdamW
- 比传统调参方法快1.5倍,适合资源受限的大模型训练
大型语言模型在多个领域取得显著进展,但训练仍极为耗资源。本文重新审视Sign-SGD,它既可作为单机训练的内存高效优化器,也可用于分布式学习中的梯度压缩。论文解决了核心问题:有效步长无法预先确定,因其依赖未知的问题特定量。提出一种无参数Sign-SGD,消除手动步长选择。分析了确定性单节点情况,并将方法扩展至随机单节点训练和多节点场景。还将动量技术融入算法,提出仅存储梯度符号而非完整梯度的内存高效变体。在预训练LLaMA(130M和350M)和微调Swin Transformer(28M)任务上评估,所提方法在各项任务中表现与调优后的Sign-SGD和AdamW(通过网格搜索获得步长并采用余弦调度)相当,同时避免调参开销。使用无参数训练相比网格搜索步长方案,整体效率提升约1.5倍。
原文摘要 · Abstract (English)
Large language models have achieved major advances across domains, yet training them remains extremely resource-intensive. We revisit Sign-SGD, which serves both as a memory-efficient optimizer for single-node training and as a gradient compression mechanism for distributed learning. This paper addresses a central limitation: the effective stepsize cannot be determined a priori because it relies on unknown, problem-specific quantities. We present a parameter-free Sign-SGD that removes manual stepsize selection. We analyze the deterministic single-node case, and extend the method to stochastic single-node training and multi-node settings. We also incorporate the momentum technique into our algorithms and propose a memory-efficient variant that stores only gradient signs instead of full gradients. We evaluate our methods on pre-training LLaMA models (130M and 350M) and fine-tuning a Swin Transformer (28M). Across considered tasks, the proposed methods match the performance of tuned Sign-SGD and AdamW (grid-searched stepsizes with a cosine schedule), while avoiding tuning overhead. Employing parameter-free training yields approximately $1.5\times$ end-to-end speedup compared to runs with grid-searched stepsizes.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。