Anderson acceleration (AA) is an extrapolation technique designed to speed-up fixed-point iterations like those arising from the iterative training of DL models. Training DL models requires large datasets processed in randomly sampled batches that tend to introduce in the fixed-point iteration stochastic oscillations of amplitude roughly inversely proportional to the size of the batch. These oscillations reduce and occasionally eliminate the positive effect of AA. To restore AA's advantage, we combine it with an adaptive moving average procedure that smoothes the oscillations and results in a more regular sequence of gradient descent updates. By monitoring the relative standard deviation between consecutive iterations, we also introduce a criterion to automatically assess whether the moving average is needed. We applied the method to the following DL instantiations: (i) multi-layer perceptrons (MLPs) trained on the open-source graduate admissions dataset for regression, (ii) physics informed neural networks (PINNs) trained on source data to solve 2d and 100d Burgers' partial differential equations (PDEs), and (iii) ResNet50 trained on the open-source ImageNet1k dataset for image classification. Numerical results obtained using up to 1,536 NVIDIA V100 GPUs on the OLCF supercomputer Summit showed the stabilizing effect of the moving average on AA for all the problems above.
翻译:安德森加速(AA)是一种外推技术,旨在加速固定点迭代,如DL模型的迭代培训所产生的外推法。培训DL模型需要通过随机抽样分批处理的大型数据集,这些数据集往往会引入与批量大小成反比的固定点迭代变相相相相近的振动振动振动振动现象。这些振动减少并偶尔消除AAA的积极效果。为了恢复AAA的优势,我们将其与适应性移动平均程序结合起来,平缓振动,并导致更经常的梯度下降更新序列。通过监测连续迭代之间的相对标准偏差,我们还引入了自动评估是否需要移动平均值的标准。我们应用了以下DL即时的方法:(一)多层感应器(MLPs),为回归而培训了开放源的研究生录取数据集;(二)物理学知情神经网络(PINS),对源数据进行了培训,用于解决2 d 和100d Burger A AS A 部分变异方(PDS),用于已培训的GSA AS AS AS AS AS 50 AS AS AS AS AS A 平均变异方 。