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

稀疏扰动锐度感知最小化优化器的系统性研究

Systematic Investigation of Sparse Perturbed Sharpness-Aware Minimization Optimizer

Xiamen University(厦门大学);The University of Sydney(悉尼大学)

Peng Mi, Li Shen, Tianhe Ren, Yiyi Zhou, Tianshuo Xu, Xiaoshuai Sun, Tongliang Liu, Rongrong Ji, Dacheng Tao

AI总结:

本文提出稀疏扰动优化器SSAM,通过二值掩码实现稀疏扰动以解决SAM计算开销翻倍问题,理论证明其收敛率与SAM相同,实验证实仅50%稀疏度即可保持或提升性能并提高效率。

摘要:

深度神经网络常因复杂且非凸的损失景观而泛化不佳。锐度感知最小化(SAM)是一种流行的解决方案,它通过最小化在权重上添加扰动时训练损失的最大化变化来平滑损失景观。然而,SAM对所有参数的无差别扰动是次优的,并导致计算量过大,使随机梯度下降(SGD)等常见优化器的开销翻倍。在本文中,我们提出了稀疏SAM(SSAM),这是一种高效且有效的训练方案,通过二值掩码实现稀疏扰动。为了获得稀疏掩码,我们分别提供了基于Fisher信息和动态稀疏训练的两种解决方案。我们研究了不同掩码的影响,包括非结构化、结构化和$N$:$M$结构化模式,以及实现稀疏扰动的显式和隐式形式。我们在理论上证明了SSAM能以与SAM相同的速率收敛,即$O(\log T/\sqrt{T})$。稀疏SAM有潜力有效加速训练并平滑损失景观。在CIFAR和ImageNet-1K上的大量实验结果证实,我们的方法在效率上优于SAM,并且在仅50%稀疏度的扰动下,性能得以保持甚至提升。代码可在https://github.com/Mi-Peng/Systematic-Investigation-of-Sparse-Perturbed-Sharpness-Aware-Minimization-Optimizer获取。

英文摘要:

Deep neural networks often suffer from poor generalization due to complex and non-convex loss landscapes. Sharpness-Aware Minimization (SAM) is a popular solution that smooths the loss landscape by minimizing the maximized change of training loss when adding a perturbation to the weight. However, indiscriminate perturbation of SAM on all parameters is suboptimal and results in excessive computation, double the overhead of common optimizers like Stochastic Gradient Descent (SGD). In this paper, we propose Sparse SAM (SSAM), an efficient and effective training scheme that achieves sparse perturbation by a binary mask. To obtain the sparse mask, we provide two solutions based on Fisher information and dynamic sparse training, respectively. We investigate the impact of different masks, including unstructured, structured, and $N$:$M$ structured patterns, as well as explicit and implicit forms of implementing sparse perturbation. We theoretically prove that SSAM can converge at the same rate as SAM, i.e., $O(\log T/\sqrt{T})$. Sparse SAM has the potential to accelerate training and smooth the loss landscape effectively. Extensive experimental results on CIFAR and ImageNet-1K confirm that our method is superior to SAM in terms of efficiency, and the performance is preserved or even improved with a perturbation of merely 50\% sparsity. Code is available at https://github.com/Mi-Peng/Systematic-Investigation-of-Sparse-Perturbed-Sharpness-Aware-Minimization-Optimizer.

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

↑