arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.11289cs.LGmath.OC
收藏

具有收敛保证的大语言模型子空间优化

Subspace Optimization for Large Language Models with Convergence Guarantees

Peking University(北京大学);Zhongguancun Academy(中关村学院);Beihang University(北航大学);AI for Science Institute, Beijing, China(人工智能科学研究院,北京,中国);National Engineering Laboratory for Big Data Analytics(大数据分析与应用国家工程实验室)

Yutong He, Pengrui Li, Yipeng Hu, Chuyan Chen, Kun Yuan

AI总结:

本文揭示GaLore在随机设置下不保证收敛并给出反例,进而提出可证明收敛的新变体GoLore,通过理论分析和实验验证了其在标准批量下的收敛性。

摘要:

子空间优化算法,如GaLore(Zhao等人,2024),因其内存效率而在大语言模型(LLMs)的预训练和微调中受到关注。然而,它们的收敛保证仍不明确,尤其是在随机设置下。在本文中,我们揭示GaLore并不总是收敛到最优解,并提供一个明确的反例来支持这一发现。我们进一步探索了GaLore实现收敛的条件,表明当(i)使用足够大的小批量大小或(ii)梯度噪声是各向同性时,它能够收敛。更重要的是,我们引入了GoLore(Gradient random Low-rank projection,梯度随机低秩投影),这是GaLore的一种新变体,即使在标准批量大小下,也能在典型的随机设置中可证明地收敛。我们的收敛分析自然扩展到其他子空间优化算法。最后,我们通过实验验证了我们的理论结果,并对所提出的机制进行了充分测试。代码可在https://github.com/pkumelon/Golore获取。

英文摘要:

Subspace optimization algorithms, such as GaLore (Zhao et al., 2024), have gained attention for pre-training and fine-tuning large language models (LLMs) due to their memory efficiency. However, their convergence guarantees remain unclear, particularly in stochastic settings. In this paper, we reveal that GaLore does not always converge to the optimal solution and provide an explicit counterexample to support this finding. We further explore the conditions under which GaLore achieves convergence, showing that it does so when either (i) a sufficiently large mini-batch size is used or (ii) the gradient noise is isotropic. More significantly, we introduce GoLore (Gradient random Low-rank projection), a novel variant of GaLore that provably converges in typical stochastic settings, even with standard batch sizes. Our convergence analysis extends naturally to other subspace optimization algorithms. Finally, we empirically validate our theoretical results and thoroughly test the proposed mechanisms. Codes are available at https://github.com/pkumelon/Golore.

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

↑