我们开发了一种混合精度迭代精炼框架,用于求解低秩李雅普诺夫矩阵方程$AX + XA^T + W =0$,其中$W=LL^T$或$W=LSL^T$。通过算法的舍入误差分析,我们推导出不同精度设置下可达到的规范残差的充分条件,并展示如何选择算法参数。这些条件独立于内求解器的选择,前提是内求解中规定的残差精度得以满足。使用符号函数牛顿迭代作为求解器,我们证明了在条件数为$1/u_s$的李雅普诺夫方程中,可以高效利用半精度(单位舍入误差$u_s$)来求解,而不影响可达到的解质量。这为利用原生低精度硬件加速李雅普诺夫求解器而不牺牲精度提供了算法框架。
英文摘要:
We develop a mixed-precision iterative refinement framework for solving low-rank Lyapunov matrix equations $AX + XA^T + W =0$, where $W=LL^T$ or $W=LSL^T$. Via rounding error analysis of the algorithms we derive sufficient conditions for the attainable normwise residuals in different precision settings and show how the algorithmic parameters should be chosen. These conditions are independent of the choice of inner solver, provided that the prescribed residual accuracy is attained in the inner solves. Using the sign-function Newton iteration as the solver, we demonstrate that reduced precisions, such as half precision with unit roundoff $u_s$, can be used for Lyapunov equations with condition number of order $u_s^{-1}$ without compromising the attainable solution quality. The numerical experiments validate our error analysis, and we establish cost models to quantify the expected speedup for different low-to-high precision timing ratios. This work provides an algorithmic framework towards exploiting native low-precision hardware to accelerate low-rank Lyapunov solvers without sacrificing accuracy.
Key Laboratory of Intelligent Computing and Information Processing of Ministry of Education, Hunan Key Laboratory for Computation and Simulation in Science and Engineering, School of Mathematics and Computational Science, Xiangtan University(湘潭大学数学与计算科学学院)
Iterative Refinement for a Subset of Eigenvectors of Symmetric Matrices via Matrix Multiplications
Research Institute for Science and Engineering, Waseda University(早稻田大学理工学研究科);Department of Mathematical Sciences, Shibaura Institute of Technology(埼玉工业大学数学科学系);RIKEN Center for Computational Science(理化学研究所计算科学中心);Department of Applied Mathematics, Faculty of Science and Engineering, Waseda University(早稻田大学理工学部应用数学系)
An analysis of iterative refinement for quantum linear system solvers
Pacific Northwest National Laboratory(太平洋西北国家实验室);Lehigh University(利哈伊大学);University of Maryland, Baltimore County(马里兰大学巴尔的摩县分校);Quantum Science Institute(量子科学研究所);University of Southern California(南加州大学)