Learning to Relax: Setting Solver Parameters Across a Sequence of Linear System Instances
Mikhail Khodak, Edmond Chow, Maria-Florina Balcan, Ameet Talwalkar
Abstract
Solving a linear system 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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers3
- Sample complexity of data-driven tuning of model hyperparameters in neural networks with structured parameter-dependent dual functionMaria-Florina Balcan, Anh Nguyen, Dravyansh SharmaNeurIPS 2025 · 14 citations
- Competitive strategies to use "warm start" algorithms with predictionsAvrim Blum, Vaidehi SrinivasSODA 2025 · 1 citation
- Learning Configurations for Data-Driven Multi-Objective OptimizationZhiyang Chen, Hailong Yao, Xia YinICML 2025
Builds on17
- Fourier Neural Operator for Parametric Partial Differential EquationsZongyi Li, Nikola Borislavov Kovachki, Kamyar Azizzadenesheli, Burigede Liu et al.ICLR 2021 · 3,911 citations
- Beyond UCB: Optimal and Efficient Contextual Bandits with Regression OraclesDylan J. Foster, Alexander RakhlinICML 2020 · 241 citations
- Faster Matchings via Learned DualsMichael Dinitz, Sungjin Im, Thomas Lavastida, Benjamin Moseley et al.NeurIPS 2021 · 98 citations
- Learning Algebraic Multigrid Using Graph Neural NetworksIlay Luz, Meirav Galun, Haggai Maron, Ronen Basri et al.ICML 2020 · 95 citations
- Faster Fundamental Graph Algorithms via Learned PredictionsJustin Y. Chen, Sandeep Silwal, Ali Vakilian, Fred ZhangICML 2022 · 58 citations
Related papers
- Contextual Bandits with Large Action Spaces: Made PracticalYinglun Zhu, Dylan J. Foster, John Langford, Paul MineiroICML 2022 · 34 citations
- Syndicated Bandits: A Framework for Auto Tuning Hyper-parameters in Contextual Bandit AlgorithmsQin Ding, Yue Kang, Yi-Wei Liu, Thomas Chun Man Lee et al.NeurIPS 2022 · 12 citations
- An Improved Relaxation for Oracle-Efficient Adversarial Contextual BanditsKiarash Banihashem, MohammadTaghi Hajiaghayi, Suho Shin, Max SpringerNeurIPS 2023 · 3 citations
- Learning to Schedule Heuristics in Branch and BoundAntonia Chmiela, Elias B. Khalil, Ambros M. Gleixner, Andrea Lodi et al.NeurIPS 2021 · 79 citations
- Practical and Optimal Algorithm for Linear Contextual Bandits with Rare Parameter UpdatesSanghoon Yu, Min-hwan OhICML 2026 · 1 citation
