arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.02246cs.LGcs.AIcs.NAmath.NAstat.ML
收藏

学习松弛:在一系列线性系统实例中设置求解器参数

Learning to Relax: Setting Solver Parameters Across a Sequence of Linear System Instances

Mikhail Khodak, Edmond Chow, Maria-Florina Balcan, Ameet Talwalkar

AI总结:

本文研究在一系列相关线性系统求解中如何顺序选择SOR松弛参数,提出基于赌博机在线学习的方法,仅利用迭代次数反馈即可使总体成本渐近接近最优固定参数或实例最优策略,首次为高精度线性求解器提供学习理论保证。

摘要:

求解线性系统 $Ax=b$ 是一项基础的科学计算原语,为此已开发出大量求解器和预条件子。这些方法带有参数,其最优值取决于所求解的系统,并且通常无法识别或识别成本过高;因此实践中常使用次优的启发式方法。我们考虑一种常见场景:需要求解许多相关的线性系统,例如在一次数值模拟过程中。在这种场景下,我们能否在不进行额外矩阵计算的情况下,顺序地选择参数,使总迭代次数接近最优?我们对逐次超松弛(Successive Over-Relaxation, SOR)这一标准求解器给出了肯定回答,其参数 $ω$ 对其运行时间有很强的影响。针对该方法,我们证明了一种仅使用迭代次数作为反馈的赌博机在线学习算法,能够为一连串实例选择参数,使得随着序列长度增加,总体成本接近最佳固定 $ω$ 所对应的成本。此外,当给定额外的结构信息时,我们证明了一种上下文赌博机方法能够渐近达到实例最优策略的性能,该策略为每个实例选择最佳的 $ω$。我们的工作首次提供了对高精度线性系统求解器的学习理论处理,以及数据驱动科学计算的第一个端到端保证,从理论上证明了使用成熟的学习算法加速数值方法的潜力。

英文摘要:

Solving a linear system $Ax=b$ is a fundamental scientific computing primitive for which numerous solvers and preconditioners have been developed. These come with parameters whose optimal values depend on the system being solved and are often impossible or too expensive to identify; thus in practice sub-optimal heuristics are used. We consider the common setting in which many related linear systems need to be solved, e.g. during a single numerical simulation. In this scenario, can we sequentially choose parameters that attain a near-optimal overall number of iterations, without extra matrix computations? We answer in the affirmative for Successive Over-Relaxation (SOR), a standard solver whose parameter $ω$ has a strong impact on its runtime. For this method, we prove that a bandit online learning algorithm--using only the number of iterations as feedback--can select parameters for a sequence of instances such that the overall cost approaches that of the best fixed $ω$ as the sequence length increases. Furthermore, when given additional structural information, we show that a contextual bandit method asymptotically achieves the performance of the instance-optimal policy, which selects the best $ω$ for each instance. Our work provides the first learning-theoretic treatment of high-precision linear system solvers and the first end-to-end guarantees for data-driven scientific computing, demonstrating theoretically the potential to speed up numerical methods using well-understood learning algorithms.

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

↑