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

关于带批归一化的 Shuffling SGD 训练不稳定性的研究

On the Training Instability of Shuffling SGD with Batch Normalization

UC Berkeley(加州大学伯克利分校);KAIST(韩国科学技术院);Massachusetts Institute of Technology(麻省理工学院)

David X. Wu, Chulhee Yun, Suvrit Sra

AI总结:

本文分析带批归一化时 SS 与 RR 两种 SGD 变体的训练动态,证明 SS 会导致回归最优点扭曲和分类发散,而 RR 可避免二者并更稳定。

摘要:

我们揭示了 SGD 如何与批归一化相互作用,并可能表现出发散等不良训练动态。更具体地说,我们研究了 Single Shuffle(SS)和 Random Reshuffle(RR)这两种广泛使用的 SGD 变体在批归一化存在时为何表现出惊人不同的相互作用:RR 带来的训练损失演化比 SS 稳定得多。作为一个具体例子,对于使用带批归一化线性网络的回归问题,我们证明 SS 和 RR 会收敛到不同的全局最优点,且这些最优点相对于梯度下降发生了“扭曲”。随后,对于分类问题,我们刻画了 SS 与 RR 的训练发散可能发生以及不可能发生的条件。我们给出显式构造,说明 SS 如何在回归中导致扭曲最优点并在分类中导致发散,而 RR 则同时避免扭曲和发散。我们通过在现实设置中进行实验确认来验证结果,并得出结论:在与批归一化一起使用时,SS 与 RR 之间的这种差异在实践中具有相关性。

英文摘要:

We uncover how SGD interacts with batch normalization and can exhibit undesirable training dynamics such as divergence. More precisely, we study how Single Shuffle (SS) and Random Reshuffle (RR) -- two widely used variants of SGD -- interact surprisingly differently in the presence of batch normalization: RR leads to much more stable evolution of training loss than SS. As a concrete example, for regression using a linear network with batch normalization, we prove that SS and RR converge to distinct global optima that are "distorted" away from gradient descent. Thereafter, for classification we characterize conditions under which training divergence for SS and RR can, and cannot occur. We present explicit constructions to show how SS leads to distorted optima in regression and divergence for classification, whereas RR avoids both distortion and divergence. We validate our results by confirming them empirically in realistic settings, and conclude that the separation between SS and RR used with batch normalization is relevant in practice.

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

↑