[论文解读] Numerical Stability of s-step Enlarged Krylov Subspace Conjugate Gradient Methods
本文提出s步扩展Krylov子空间共轭梯度方法,将s次扩展Krylov方法的迭代合并为一次,以减少并行计算中的通信开销。通过在每次s步迭代中计算st个基向量,该方法在收敛速度和消息传递开销方面优于经典CG和标准扩展CG,同时提出了适用于高性能计算工作负载的数值稳定变体。
Recently, enlarged Krylov subspace methods, that consists of enlarging the Krylov subspace by a maximum of t vectors per iteration based on the domain decomposition of the graph of A, were introduced in the aim of reducing communication when solving systems of linear equations Ax=b. In this paper, the s-step enlarged Krylov subspace Conjugate Gradient methods are introduced, whereby s iterations of the enlarged Conjugate Gradient methods are merged in one iteration. The numerical stability of these s-step methods is studied, and several numerically stable versions are proposed. Similarly to the enlarged Krylov subspace methods, the s-step enlarged Krylov subspace methods have a faster convergence than Krylov methods, in terms of iterations. Moreover, by computing st basis vectors of the enlarged Krylov subspace $\mathscr{K}_{k,t}(A,r_0)$ at the beginning of each s-step iteration, communication is further reduced. It is shown in this paper that the introduced methods are parallelizable with less communication, with respect to their corresponding enlarged versions and to Conjugate Gradient.
研究动机与目标
- 通过减少分布式内存系统中的数据移动,解决Krylov子空间方法中的通信瓶颈。
- 通过基于区域分解在每次迭代中引入最多t个向量的扩展Krylov子空间,加速共轭梯度方法的收敛。
- 开发扩展CG方法的s步版本,将s次迭代合并为一次,进一步减少通信,同时保持数值稳定性。
- 为实际高性能计算部署提出s步和通信避免(CA)扩展CG变体的数值稳定公式。
- 证明所提方法相比经典CG和标准扩展CG可显著降低总通信成本,尤其在大规模系统中。
提出的方法
- 通过将现有扩展CG方法(SRE-CG、SRE-CG2、MSDO-CG)的s次迭代合并为单次迭代,引入s步扩展Krylov子空间方法。
- 在每次s步迭代开始时,通过计算st个基向量来构建扩展Krylov子空间 $\mathscr{K}_{k,t}(A,r_0)$,以最小化通信开销。
- 将SRE-CG和SRE-CG2中的短递推公式适配为s步和通信避免(CA)变体,以保持低内存使用。
- 使用分裂预条件技术开发预条件化的s步和CA版本,以提升收敛性和稳定性。
- 采用改进的Gram-Schmidt正交化技术,确保s步框架中的数值稳定性。
- 分析分布式系统中的通信复杂度和消息数量,表明总消息数相比经典CG和标准扩展CG显著减少。
实验结果
研究问题
- RQ1s步扩展Krylov子空间迭代的合并是否能在保持数值稳定性的同时,降低并行线性求解器中的通信成本?
- RQ2s步扩展CG方法在迭代次数和通信开销方面,与经典CG和标准扩展CG相比,收敛速度如何?
- RQ3随着s的增加,s步和通信避免版本的扩展CG方法的数值稳定性特征是什么?
- RQ4与现有Krylov方法相比,所提方法在分布式内存架构中能多大程度上减少总消息传递?
- RQ5在实际应用中,预条件技术如何影响s步和CA扩展CG方法的性能和稳定性?
主要发现
- 当 $s=8$,$t=16$,且 $j=5$ 时,s步扩展Krylov子空间CG方法相比经典CG最多可将总通信量减少67.37%,主要归因于迭代次数更少。
- 当 $s=2^i$ 且 $t=2^j$ 时,s步SRE-CG版本相比经典CG在 $i=2$,$j=5$ 时通信量减少约37.7%。
- 即使在 $s \geq 10$ 的情况下,数值稳定性依然保持良好,且s每加倍一次,收敛迭代次数大致减半,表明方法具有强鲁棒性。
- 在相同条件下,通信避免(CA)SRE-CG变体相比CG减少67.37%的通信量,且经预条件处理后收敛稳定。
- SRE-CG变体在所有扩展CG方法中内存效率最高,仅需存储 $(s+2)t$ 个向量,适用于大规模部署。
- 尽管单次迭代的消息数较高,但由于迭代次数显著减少,总消息数仍低于经典CG,尤其在 $t \geq 16$ 时更为明显。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。