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

M. Khodak, Edmond Chow, Maria-Florina Balcan, Ameet Talwalkar
10/1/2023

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

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.

Show full abstract

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 $\omega$ 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 $\omega$ 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 $\omega$ 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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{khodak2023learning,
  title  = {Learning to Relax: Setting Solver Parameters Across a Sequence of Linear System Instances},
  author = {M. Khodak and Edmond Chow and Maria-Florina Balcan and Ameet Talwalkar},
  year   = {2023},
  eprint = {2310.02246},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.02246},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.02246.svg)](https://codeofpaper.com/paper/2310.02246)

Discussion