English

Predict-and-recompute conjugate gradient variants

Numerical Analysis 2021-04-20 v5 Numerical Analysis

Abstract

The standard implementation of the conjugate gradient algorithm suffers from communication bottlenecks on parallel architectures, due primarily to the two global reductions required every iteration. In this paper, we study conjugate gradient variants which decrease the runtime per iteration by overlapping global synchronizations, and in the case of pipelined variants, matrix-vector products. Through the use of a predict-and-recompute scheme, whereby recursively-updated quantities are first used as a predictor for their true values and then recomputed exactly at a later point in the iteration, these variants are observed to have convergence behavior nearly as good as the standard conjugate gradient implementation on a variety of test problems. We provide a rounding error analysis which provides insight into this observation. It is also verified experimentally that the variants studied do indeed reduce the runtime per iteration in practice and that they scale similarly to previously-studied communication-hiding variants. Finally, because these variants achieve good convergence without the use of any additional input parameters, they have the potential to be used in place of the standard conjugate gradient implementation in a range of applications.

Keywords

Cite

@article{arxiv.1905.01549,
  title  = {Predict-and-recompute conjugate gradient variants},
  author = {Tyler Chen and Erin C. Carson},
  journal= {arXiv preprint arXiv:1905.01549},
  year   = {2021}
}

Comments

This material is based upon work supported by the NSF GRFP. Code for reproducing all figures and tables can be found here: https://github.com/tchen01/new_cg_variants

R2 v1 2026-06-23T08:57:06.789Z