SAGE:用于内存高效大语言模型优化的符号自适应梯度
SAGE: Sign-Adaptive Gradient for Memory-Efficient LLM Optimization
AI总结:
本文提出SAGE优化器,通过结合Lion风格的更新方向和新的内存高效O(d)自适应缩放,解决嵌入层稀疏高方差梯度问题,实现更稳定的收敛并提升性能。
摘要:
尽管AdamW优化器在大语言模型预训练中是标准选择,但其作为关键内存瓶颈,消耗的优化器状态相当于模型大小的两倍。虽然轻状态优化器如SinkGD试图解决此问题,但本文发现嵌入层困境:这些方法无法处理嵌入中的稀疏高方差梯度,迫使采用混合设计,回归AdamW并部分抵消内存增益。本文提出SAGE(Sign Adaptive GradiEnt),一种新型优化器,通过在混合结构中取代AdamW来解决此困境。SAGE结合Lion风格的更新方向与新的内存高效O(d)自适应缩放。该缩放作用为“安全阻尼器”,可证明被1.0所限制,比现有方法更有效地驯服高方差维度。这种优越的稳定性使SAGE能够实现更好的收敛。在Llama模型高达1.3B参数的情况下,我们的SAGE混合方法实现了新的最先进困惑度,优于所有基线,包括SinkGD混合方法,同时显著减少优化器状态内存。
英文摘要:
The AdamW optimizer, while standard for LLM pretraining, is a critical memory bottleneck, consuming optimizer states equivalent to twice the model's size. Although light-state optimizers like SinkGD attempt to address this issue, we identify the embedding layer dilemma: these methods fail to handle the sparse, high-variance gradients inherent to embeddings, forcing a hybrid design that reverts to AdamW and partially negates the memory gains. We propose SAGE (Sign Adaptive GradiEnt), a novel optimizer that resolves this dilemma by replacing AdamW in this hybrid structure. SAGE combines a Lion-style update direction with a new, memory-efficient $O(d)$ adaptive scale. This scale acts as a "safe damper," provably bounded by 1.0, which tames high-variance dimensions more effectively than existing methods. This superior stability allows SAGE to achieve better convergence. On Llama models up to 1.3B parameters, our SAGE-based hybrid achieves new state-of-the-art perplexity, outperforming all baselines, including SinkGD hybrid, while significantly reducing optimizer state memory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。