arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.00227cs.CE
收藏

AK-SLRL:使用单次生命强化学习进行稀疏线性系统的自适应Krylov子空间探索

AK-SLRL: Adaptive Krylov Subspace Exploration Using Single-Life Reinforcement Learning for Sparse Linear System

Hadi Keramati, Feridun Hamdullahpur

AI总结:

本文提出AK-SLRL框架,利用单次生命强化学习(SLRL)在线自适应调整GMRES算法中的Krylov子空间维度,显著减少了Arnoldi迭代的计算量,使收敛速度提升一个数量级以上。

摘要:

本文提出了一种单次生命强化学习(SLRL)方法,用于在广义最小残差(GMRES)迭代过程中自适应地选择Krylov子空间的维度。GMRES是一种用于求解大型稀疏线性方程组(形式为\(Ax = b\))的迭代算法,这些方程组主要源自偏微分方程(PDE)。所提出的框架使用RL来调整GMRES(m)算法中的Krylov子空间维度(m)。本研究表明,在在线设置中使用SLRL改变Krylov子空间的维度,可以使GMRES算法的收敛速度加快一个数量级以上。通过比较不同的矩阵大小和稀疏度,证明了使用单次生命RL(AK-SLRL)进行自适应Krylov子空间探索的有效性。我们将AK-SLRL与常数重启GMRES进行比较,方法是将AK-SLRL中使用的最高重启值应用于GMRES方法。结果表明,使用带有单次生命软演员评论家(SLSAC)的可调重启参数,以及大小为矩阵维度一半的经验回放缓冲区,其收敛速度明显快于具有较高值的常数重启GMRES。重启参数的较高值等同于更多的Arnoldi迭代次数,以构建Krylov子空间$ K_m(A, r_0) $的正交基。此过程包括构建$m$个正交向量和更新Hessenberg矩阵$H$。因此,较低的$m$值会减少GMRES最小化过程中所需的计算量,以在较小的Hessenberg矩阵中求解最小二乘问题。通过广泛的矩阵维度和稀疏度验证了结果的鲁棒性。本文为RL与数值求解器相结合以实现加速科学计算的系列研究做出了贡献。

英文摘要:

This paper presents a single-life reinforcement learning (SLRL) approach to adaptively select the dimension of the Krylov subspace during the generalized minimal residual (GMRES) iteration. GMRES is an iterative algorithm for solving large and sparse linear systems of equations in the form of \(Ax = b\) which are mainly derived from partial differential equations (PDEs). The proposed framework uses RL to adjust the Krylov subspace dimension (m) in the GMRES (m) algorithm. This research demonstrates that altering the dimension of the Krylov subspace in an online setup using SLRL can accelerate the convergence of the GMRES algorithm by more than an order of magnitude. A comparison of different matrix sizes and sparsity levels is performed to demonstrate the effectiveness of adaptive Krylov subspace exploration using single-life RL (AK-SLRL). We compare AK-SLRL with constant-restart GMRES by applying the highest restart value used in AK-SLRL to the GMRES method. The results show that using an adjustable restart parameter with single-life soft-actor critic (SLSAC) and an experience replay buffer sized to half the matrix dimension converges significantly faster than the constant restart GMRES with higher values. Higher values of the restart parameter are equivalent to a higher number of Arnoldi iterations to construct an orthonormal basis for the Krylov subspace $ K_m(A, r_0) $. This process includes constructing $m$ orthonormal vectors and updating the Hessenberg matrix $H$. Therefore, lower values of $m$ result in reduced computation needed in GMRES minimization to solve the least-squares problem in the smaller Hessenberg matrix. The robustness of the result is validated through a wide range of matrix dimensions and sparsity. This paper contributes to the series of RL combinations with numerical solvers to achieve accelerated scientific computing.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑