arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2301.10133cs.LG
收藏

阅读迹象:实现梯度下降超参数的不变性

Read the Signs: Towards Invariance to Gradient Descent's Hyperparameter Initialization

HEC Montreal(蒙特利尔高等商学院)

Davood Wadi, Marc Fredette, Sylvain Senecal

摘要:

我们提出了ActiveLR,一个优化的Meta算法,本地化的学习率,$α$,并适应他们在每个时代根据是否在每个时代的梯度变化的迹象或没有。该符号意识算法知道从先前步骤到当前步骤,每个参数的更新是否过大或过小,并相应地调整$α$。我们实现了广泛使用和最近发布的梯度下降优化器的主动版本(我们的),即带有动量的SGD,AdamW,RAdam和AdaBelief。我们在ImageNet、CIFAR-10、WikiText-103、WikiText-2和PASCAL VOC上使用不同的模型架构(如ResNet和Transformers)进行的实验显示,泛化能力和训练集拟合度有所提高,并且测试优化器的Active变体的训练时间有所减少。结果还表明,这些优化的主动变量的初始学习率的不同值的鲁棒性。此外,减轻了使用大的小批量的不利影响。因此,ActiveLR简化了对两个最常用的超参数的超参数搜索的需要,这两个超参数需要大量的时间和计算成本来选择。我们鼓励人工智能研究人员和从业者使用他们选择的优化器的Active变体,以实现更快的训练,更好的泛化能力,并减少训练深度神经网络的碳足迹。

英文摘要:

We propose ActiveLR, an optimization meta algorithm that localizes the learning rate, $α$, and adapts them at each epoch according to whether the gradient at each epoch changes sign or not. This sign-conscious algorithm is aware of whether from the previous step to the current one the update of each parameter has been too large or too small and adjusts the $α$ accordingly. We implement the Active version (ours) of widely used and recently published gradient descent optimizers, namely SGD with momentum, AdamW, RAdam, and AdaBelief. Our experiments on ImageNet, CIFAR-10, WikiText-103, WikiText-2, and PASCAL VOC using different model architectures, such as ResNet and Transformers, show an increase in generalizability and training set fit, and decrease in training time for the Active variants of the tested optimizers. The results also show robustness of the Active variant of these optimizers to different values of the initial learning rate. Furthermore, the detrimental effects of using large mini-batch sizes are mitigated. ActiveLR, thus, alleviates the need for hyper-parameter search for two of the most commonly tuned hyper-parameters that require heavy time and computational costs to pick. We encourage AI researchers and practitioners to use the Active variant of their optimizer of choice for faster training, better generalizability, and reducing carbon footprint of training deep neural networks.

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

↑