arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.16103cs.LGmath.OCstat.ML
收藏

LDAdam:基于低维梯度统计的自适应优化

LDAdam: Adaptive Optimization from Low-Dimensional Gradient Statistics

Institut Polytechnique de Paris (IPP)(巴黎理工学院);Institute of Science and Technology Austria (ISTA)(奥地利科学技术研究所)

Thomas Robert, Mher Safaryan, Ionut-Vlad Modoranu, Dan Alistarh

AI总结:

提出内存高效的优化器LDAdam,通过在低维子空间执行自适应优化并引入投影感知更新与广义误差反馈机制,大幅降低内存占用,同时保证收敛性,实现语言模型的高效微调与预训练。

摘要:

我们引入了LDAdam,一种用于训练大型模型的内存高效优化器,它在低维子空间内执行自适应优化步骤,同时在训练过程中持续探索完整的参数空间。此策略将优化器的内存占用保持在模型大小的一小部分。LDAdam依赖于一种新的投影感知优化器状态更新规则,允许在子空间之间转换,即估计投影梯度的统计信息。为减轻低秩投影导致的误差,LDAdam集成了一种新的广义误差反馈机制,该机制明确考虑了梯度和优化器状态的压缩。我们在标准假设下证明了LDAdam的收敛性,并表明LDAdam允许对语言模型进行准确高效的微调和预训练。代码可在https://github.com/IST-DASLab/LDAdam获取。

英文摘要:

We introduce LDAdam, a memory-efficient optimizer for training large models, that performs adaptive optimization steps within lower dimensional subspaces, while consistently exploring the full parameter space during training. This strategy keeps the optimizer's memory footprint to a fraction of the model size. LDAdam relies on a new projection-aware update rule for the optimizer states that allows for transitioning between subspaces, i.e., estimation of the statistics of the projected gradients. To mitigate the errors due to low-rank projection, LDAdam integrates a new generalized error feedback mechanism, which explicitly accounts for both gradient and optimizer state compression. We prove the convergence of LDAdam under standard assumptions, and show that LDAdam allows for accurate and efficient fine-tuning and pre-training of language models. Code is available at https://github.com/IST-DASLab/LDAdam

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

↑