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

Spectra: 重新思考在谱各向异性下大语言模型的优化器

Spectra: Rethinking Optimizers for LLMs Under Spectral Anisotropy

Fudan University, Shanghai, China(复旦大学);University of Bath, Bath, United Kingdom(巴斯大学);Oxford Suzhou Centre for Advanced Research, Suzhou, China(牛津苏格兰先进研究中心);Shanghai Innovation Institute, Shanghai, China(上海创新研究院);Department of Computer Science, University of Colorado Boulder, Colorado, USA(计算机科学系,科罗拉多大学博尔德分校);Department of Electrical Engineering and Computer Science, University of Michigan(电气工程与计算机科学系,密歇根大学)
Zhendong Huang, Hengjie Cao, Fang Dong, Ruijun Huang, Mengyi Chen, Yifeng Yang, Xin Zhang, Anrui Chen, Mingzhi Dong, Yujiang Wang, Jinlong Hou, Qin Lv, Robert P… 展开作者

Zhendong Huang, Hengjie Cao, Fang Dong, Ruijun Huang, Mengyi Chen, Yifeng Yang, Xin Zhang, Anrui Chen, Mingzhi Dong, Yujiang Wang, Jinlong Hou, Qin Lv, Robert P. Dick, Yuan Cheng, Fan Yang, Tun Lu, Li Shang

AI总结:

Spectra通过抑制主导低秩尖峰子空间并减少优化器状态内存,提升了大语言模型的训练效率和下游准确率。

摘要:

大语言模型训练中的梯度信号高度各向异性:递归语言结构将能量集中于一小部分主导谱方向,而上下文特定信息则分布在长尾中。我们证明这种尖峰尾部分离在整个训练过程中持续存在,尖峰仅占据约1.5%的方向,却主导了优化器统计。这种主导性通过第二矩归一化收缩尾部更新以及收紧全局稳定的学率界来抑制尾部学习。受此分析启发,我们提出了Spectra,一种具有尖峰意识的优化器,其在抑制主导的低秩尖峰子空间的同时不放大易受噪声影响的谱尾。Spectra通过缓存并预热启动的幂迭代追踪尖峰子空间,并应用低秩谱塑造,其开销极小且大幅减少了优化器状态内存。在训练500亿token的LLaMA3 8B模型上,Spectra达到相同目标损失的速度比AdamW快30%,每步端到端开销减少0.7%,优化器状态内存减少49.25%,并提高平均下游准确率1.62%。与Muon相比,Spectra在优化器处理时间上快5.1倍,最终损失更低,平均准确率提高0.66%。

英文摘要:

Gradient signals in LLM training are highly anisotropic: recurrent linguistic structure concentrates energy into a small set of dominant spectral directions, while context specific information resides in a long tail. We show that this spike tail separation persists throughout training, with the spike occupying only about 1.5% of directions yet dominating optimizer statistics. This dominance suppresses tail learning by contracting tail updates through second moment normalization and tightening the globally stable learning rate bound. Motivated by this analysis, we propose Spectra, a spike aware optimizer that suppresses the dominant low rank spike subspace without amplifying the noise sensitive spectral tail. Spectra tracks the spike subspace via cached, warm started power iteration and applies low rank spectral shaping with negligible overhead and substantially reduced optimizer state memory. On LLaMA3 8B trained on 50B tokens, Spectra reaches the same target loss 30% faster than AdamW, reduces per step end to end overhead by 0.7%, cuts optimizer state memory by 49.25%, and improves average downstream accuracy by 1.62%. Compared to Muon, Spectra is 5.1x faster in optimizer processing time, achieves a lower final loss, and improves average accuracy by 0.66%.

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

↑