arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.09962cs.LGcs.AI
收藏

面向深度学习计算效率提升的随机锐度感知训练

Randomized Sharpness-Aware Training for Boosting Computational Efficiency in Deep Learning

Tsinghua University(清华大学)

Yang Zhao, Hao Zhang, Xiuyuan Hu

AI总结:

为解决SAM等锐度感知算法额外计算开销大的问题,提出RST训练方案,通过伯努利试验随机选择基础或锐度感知算法以减少传播次数,并扩展为G-RST框架,在节省50%额外计算成本的同时优于SAM。

摘要:

通过驱动模型收敛到平坦极小值,锐度感知学习算法(如SAM)展现出了实现最先进性能的能力。然而,这些算法通常会在每次训练迭代中产生一次额外的前向-反向传播,这给计算带来了很大负担,特别是对于可扩展模型。为此,我们提出了一种简单而高效的训练方案,称为随机锐度感知训练(RST)。RST中的优化器在每次迭代时会进行一次伯努利试验,以按预定义调度函数安排的概率从基础算法(SGD)和锐度感知算法(SAM)中随机选择。由于基础算法的混合,传播对的总数可以大幅减少。此外,我们对RST的收敛性进行了理论分析。然后,我们实证研究了各类调度函数的计算成本和效果,并给出了设置适当调度函数的指导方向。进一步地,我们将RST扩展为一个通用框架(G-RST),在其中可以为任何调度函数自由调整锐度上的正则化程度。我们表明,G-RST在大多数情况下能优于SAM,同时节省50%的额外计算成本。

英文摘要:

By driving models to converge to flat minima, sharpness-aware learning algorithms (such as SAM) have shown the power to achieve state-of-the-art performances. However, these algorithms will generally incur one extra forward-backward propagation at each training iteration, which largely burdens the computation especially for scalable models. To this end, we propose a simple yet efficient training scheme, called Randomized Sharpness-Aware Training (RST). Optimizers in RST would perform a Bernoulli trial at each iteration to choose randomly from base algorithms (SGD) and sharpness-aware algorithms (SAM) with a probability arranged by a predefined scheduling function. Due to the mixture of base algorithms, the overall count of propagation pairs could be largely reduced. Also, we give theoretical analysis on the convergence of RST. Then, we empirically study the computation cost and effect of various types of scheduling functions, and give directions on setting appropriate scheduling functions. Further, we extend the RST to a general framework (G-RST), where we can adjust regularization degree on sharpness freely for any scheduling function. We show that G-RST can outperform SAM in most cases while saving 50\% extra computation cost.

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

↑