Stable Anderson Acceleration for Deep Learning

Massimiliano Lupo Pasini, Junqi Yin, Viktor Reshniak, Miroslav Stoyanov
10/26/2021
cs.LGmath.NA

Official code: ORNL/AADL (14 stars, Python, last commit 2026-08-29).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

ORNL/AADLOfficial100%

Anderson Acceleration for Deep Learning

147Python, ShellMar 1, 20213 months ago

Similar Papers

Cite this paper

@article{pasini2021stable,
  title  = {Stable Anderson Acceleration for Deep Learning},
  author = {Massimiliano Lupo Pasini and Junqi Yin and Viktor Reshniak and Miroslav Stoyanov},
  year   = {2021},
  eprint = {2110.14813},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.14813}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.14813.svg)](https://codeofpaper.com/paper/2110.14813)

Discussion