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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Khodak, Mikhail, Chow, Edmond, Balcan, Maria-Florina, Talwalkar, Ameet
Formato: Preprint
Publicado: 2023
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909186905866240
author Khodak, Mikhail
Chow, Edmond
Balcan, Maria-Florina
Talwalkar, Ameet
author_facet Khodak, Mikhail
Chow, Edmond
Balcan, Maria-Florina
Talwalkar, Ameet
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2310_02246
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Learning to Relax: Setting Solver Parameters Across a Sequence of Linear System Instances
Khodak, Mikhail
Chow, Edmond
Balcan, Maria-Florina
Talwalkar, Ameet
Machine Learning
Artificial Intelligence
Numerical Analysis
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.
title Learning to Relax: Setting Solver Parameters Across a Sequence of Linear System Instances
topic Machine Learning
Artificial Intelligence
Numerical Analysis
url https://arxiv.org/abs/2310.02246