arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.22794cs.LG
收藏

Ori:面向极低秩大语言模型训练的感知漂移流式$k$-主成分分析算法

Ori: Drift-Aware Streaming $k$-PCA for Very Low-Rank LLM Training

Purdue University(普渡大学)

Xinyu Luo, Jincheng Zhou, Mengbo Wang, Zilin Shen, Nadia Atallah Lanman, Petros Drineas, Bruno Ribeiro, Brian Bullins

AI总结:

本研究针对LLM梯度子空间漂移问题,提出感知漂移的低秩优化器Ori,采用流式$k$-PCA算法跟踪子空间,在LLaMA预训练和Roberta-Base微调任务上显著缩小了低秩与全秩训练的性能差距。

摘要:

以GaLore为代表的低秩大语言模型(LLM)优化器家族采用梯度子空间投影策略:每一步将梯度投影到低维子空间,再将更新映射回完整模型。现有多数工作要么在特定间隔重新计算梯度子空间,要么采用事后适配以跟上移动的子空间。本研究通过实践明确了LLM梯度子空间随时间缓慢且稳定漂移的特性,为此提出Ori——一种新型低秩优化器,用于训练LLM,可捕捉随时间变化的主要梯度方向,在严格低秩约束下实现了最先进的准确率。Ori采用受Oja++启发的流式$k$-主成分分析($k$-PCA)算法,其每步计算成本低,支持高频实时子空间跟踪。实践中,在10亿参数LLaMA预训练任务上,Ori将最先进低秩优化器与全秩优化器的性能差距缩小了69.3%;在Roberta-Base微调的16个任务场景中,Ori在10个场景达到最佳性能。这些贡献使Ori进一步拓展了梯度投影优化器的性能与效率边界,缩小了LLM全秩训练的差距,代码可在该https URL获取。

英文摘要:

A prominent family of low-rank LLM optimizers, pioneered by GaLore, performs gradient-subspace projection: at each step, they project the gradient into a low-dimensional subspace and map the update back to the full model. Most existing work either recomputes the gradient subspace at certain intervals, or performs post-hoc adaptation to catch up to the moving subspace. In this work, we explicitly identify in practice the slow, stable manner in which LLM gradient subspaces drift across time. To this end, we propose Ori, a novel low-rank optimizer for training LLMs that captures the shifting principal gradient directions over time to achieve state-of-the-art accuracy under stringent low-rank constraints. Ori employs a streaming $k$-PCA algorithm inspired by Oja++, whose low per-step cost enables high-frequency, on-the-fly subspace tracking. In practice, Ori reduces the performance gap of the state-of-the-art low-rank optimizers to full-rank optimizers by up to 69.3\% on a 1B LLaMA pretraining task, and achieves the best performance on 10 out of 16 task scenarios in Roberta-Base fine-tuning. Together, these contributions allow Ori to further push the performance and efficiency frontiers of gradient-projecting optimizers, narrowing the gap to full-rank training for LLMs. Code can be found at https://anonymous.4open.science/r/Ori-Submission-2132.

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

↑