CAME:置信度引导的自适应内存高效优化
CAME: Confidence-guided Adaptive Memory Efficient Optimization
AI总结:
本文提出置信度引导的自适应内存高效优化器CAME,通过降低内存高效优化器的不稳定性,在BERT和GPT-2等任务中同时实现快速收敛与低内存占用,并在大批量BERT预训练中优于Adam。
摘要:
自适应梯度方法(如Adam和LAMB)在大语言模型训练中表现出色。然而,自适应性的需求要求维护每个参数梯度的二阶矩估计,这带来了高昂的额外内存开销。为解决这一问题,已有若干内存高效优化器(如Adafactor)被提出,能够大幅减少辅助内存使用,但会带来性能损失。本文首先研究了一种置信度引导策略,以降低现有内存高效优化器的不稳定性。基于该策略,我们提出了CAME,旨在同时实现两个目标:像传统自适应方法一样快速收敛,以及像内存高效方法一样低内存占用。大量实验证明了CAME在BERT和GPT-2训练等多种NLP任务中的训练稳定性和优越性能。值得注意的是,在大批量规模32,768的BERT预训练中,我们提出的优化器相比Adam优化器实现了更快的收敛和更高的准确率。CAME的实现已公开可用。
英文摘要:
Adaptive gradient methods, such as Adam and LAMB, have demonstrated excellent performance in the training of large language models. Nevertheless, the need for adaptivity requires maintaining second-moment estimates of the per-parameter gradients, which entails a high cost of extra memory overheads. To solve this problem, several memory-efficient optimizers (e.g., Adafactor) have been proposed to obtain a drastic reduction in auxiliary memory usage, but with a performance penalty. In this paper, we first study a confidence-guided strategy to reduce the instability of existing memory efficient optimizers. Based on this strategy, we propose CAME to simultaneously achieve two goals: fast convergence as in traditional adaptive methods, and low memory usage as in memory-efficient methods. Extensive experiments demonstrate the training stability and superior performance of CAME across various NLP tasks such as BERT and GPT-2 training. Notably, for BERT pre-training on the large batch size of 32,768, our proposed optimizer attains faster convergence and higher accuracy compared with the Adam optimizer. The implementation of CAME is publicly available.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。