English

Mixed Precision $s$-step Lanczos and Conjugate Gradient Algorithms

Numerical Analysis 2021-08-31 v2 Numerical Analysis

Abstract

Compared to the classical Lanczos algorithm, the ss-step Lanczos variant has the potential to improve performance by asymptotically decreasing the synchronization cost per iteration. However, this comes at a cost. Despite being mathematically equivalent, the ss-step variant is known to behave quite differently in finite precision, with potential for greater loss of accuracy and a decrease in the convergence rate relative to the classical algorithm. It has previously been shown that the errors that occur in the ss-step version follow the same structure as the errors in the classical algorithm, but with the addition of an amplification factor that depends on the square of the condition number of the O(s)O(s)-dimensional Krylov bases computed in each outer loop. As the condition number of these ss-step bases grows (in some cases very quickly) with ss, this limits the parameter ss that can be chosen and thus limits the performance that can be achieved. In this work we show that if a select few computations in ss-step Lanczos are performed in double the working precision, the error terms then depend only linearly on the conditioning of the ss-step bases. This has the potential for drastically improving the numerical behavior of the algorithm with little impact on per-iteration performance. Our numerical experiments demonstrate the improved numerical behavior possible with the mixed precision approach, and also show that this improved behavior extends to the ss-step CG algorithm in mixed precision.

Keywords

Cite

@article{arxiv.2103.09210,
  title  = {Mixed Precision $s$-step Lanczos and Conjugate Gradient Algorithms},
  author = {Erin Carson and Tomáš Gergelits},
  journal= {arXiv preprint arXiv:2103.09210},
  year   = {2021}
}

Comments

34 pages

R2 v1 2026-06-24T00:14:47.308Z