Overview
Solving linear systems is a fundamental bottleneck in scientific computing. This paper introduces a novel method to automatically tune the parameters of iterative linear solvers—specifically Successive Over-Relaxation (SOR)—using online bandit learning. By treating the number of iterations required to solve a system as feedback, the proposed algorithms learn to select near-optimal parameters across a sequence of related problems. This approach achieves significant speedups over standard heuristics without requiring expensive matrix analysis, bridging the gap between data-driven algorithm design and classical numerical analysis.
The Challenge of Parameter Tuning
In scientific simulations, such as weather forecasting or fluid dynamics, engineers frequently need to solve the linear system $Ax = b$. Because these simulations evolve over time, they typically generate a sequence of very similar linear systems.
Iterative solvers like Successive Over-Relaxation (SOR) are widely used for these tasks, but their performance depends heavily on a "relaxation parameter," $\omega$. Choosing the right $\omega$ makes the solver incredibly fast; choosing the wrong one can cause it to crawl or fail to converge entirely.
Unfortunately, calculating the optimal $\omega$ analytically depends on the specific matrix $A$ and is often more computationally expensive than just solving the system with a sub-optimal guess. Consequently, practitioners usually rely on fixed heuristics. The authors pose a critical question: Can we use the results of previous solves in a simulation to "learn" the best parameters for future ones?
A Machine Learning Approach: Bandits for Solvers
To solve this, the authors frame the parameter-tuning problem as a Bandit Online Learning task. In this setup, the algorithm chooses a parameter $\omega$, runs the solver, and receives a "loss" based on the number of iterations it took to converge.
The paper introduces two primary learning approaches:
- Tsallis-INF Algorithm: A standard bandit algorithm adapted to select $\omega$ from a discretized grid. The authors prove mathematically that as the number of solved systems increases, the algorithm's performance converges to that of the best fixed $\omega$ chosen in hindsight.
- Contextual Bandits (ChebCB): When extra information is available—such as a time-step or a changing physical constant—the authors employ a contextual bandit approach. By combining SquareCB with Chebyshev polynomial regression, the algorithm maps these "contexts" to the best $\omega$ for each specific instance, tracking a moving target.
Because iteration counts are discrete and can jump unpredictably, the authors derive continuous upper bounds based on the spectral radius of the iteration matrix. This clever use of surrogate loss functions allows them to apply smooth optimization theory to a fundamentally discrete problem.
Key Insights: Smoothing and Dimension Independence
A fascinating theoretical contribution of the paper is the concept of smoothing via randomness. The authors prove that if the target vector $b$ contains even a slight amount of noise or randomness, the discontinuous "staircase" of iteration counts smooths out into a Lipschitz-continuous function, making it significantly easier for machine learning algorithms to find the global minimum.
Crucially, many of the learning guarantees provided in the paper are dimension-independent. This means the learning process does not become exponentially harder as the simulation grid gets finer or the matrix size ($n$) grows.
Empirical Results
The methods were evaluated on rigorous benchmarks representing common scientific workloads, including 2D Heat Equation simulations and discrete Laplacian systems.
The results demonstrate both theoretical soundness and practical utility:
- Significant Speedups: In simulations of the 2D heat equation, the learning-based methods (Tsallis-INF and ChebCB) were 2.4x to 3.5x faster than the standard Gauss-Seidel baseline (which is equivalent to SOR with $\omega=1$).
- Contextual Advantage: The contextual bandit (ChebCB) successfully tracked the optimal $\omega$ as the simulation's physical properties changed, significantly outperforming any fixed-parameter heuristic and closely matching the theoretical "instance-optimal" policy.
Limitations and Future Directions
While groundbreaking, the work has a few limitations that pave the way for future research:
- Single Parameter Focus: The current framework focuses primarily on the single $\omega$ parameter for SOR. Modern solvers often feature multiple tunable parameters (e.g., preconditioner types, restart frequencies) that could potentially be tuned simultaneously.
- Warm-starting: The theoretical analysis assumes the solver starts from a zero vector. In real-world simulations, solvers are often "warm-started" using the solution from the previous time step, which alters the convergence dynamics.
- Non-stationary Solvers: Extending these smoothness proofs and regret bounds to more complex, non-linear solvers like Conjugate Gradient (CG) remains a challenging and exciting area for future theoretical work.
Ultimately, this paper provides the first end-to-end guarantees for data-driven scientific computing, proving that well-understood machine learning algorithms can safely and effectively accelerate classical numerical methods.
Summary updated