安德森加速(AA)是一种外推技术,旨在加速固定点迭代,如从DL模型的迭代训练中产生的迭代。训练DL模型需要以随机抽样批次处理的大型数据集,这往往会在定点迭代中引入幅度与批次大小大致成正比的随机振荡。这些振荡减少并偶尔消除AA的积极作用。为了恢复AA的优势,我们将其与自适应移动平均过程相结合,该过程平滑振荡并导致更有规律的梯度下降更新序列。通过监测连续迭代之间的相对标准差,我们还引入了一个标准来自动评估是否需要移动平均线。我们将该方法应用于以下DL实例:(i)在开源研究生招生数据集上训练的多层感知器(MLP)进行回归,(ii)在源数据上训练的物理信息神经网络(PINN)来求解2d和100 d Burgers偏微分方程(PDEs),以及(iii)ResNet 50在开源ImageNet 1 k数据集上训练,用于图像分类。在OLCF超级计算机Summit上使用多达1,536个NVIDIA V100 GPU获得的数值结果显示了移动平均线对上述所有问题的稳定效果。
英文摘要:
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.
Anderson Acceleration of Proximal Gradient Methods
Division of Decision and Control Systems, School of Electrical Engineering and Computer Science, KTH Royal Institute of Technology(瑞典皇家理工学院电气工程与计算机科学学院决策与控制系统分部)