One-shot acceleration of transient PDE solvers via online-learned preconditioners
Mikhail Khodak, Min Ki Jung, Brian Wynne, Edmond Chow, Egemen Kolemen
TL;DR
This work introduces PCGBandit, an online-adversarial bandit framework that configures SPD solvers on the fly to accelerate transient PDE simulations within OpenFOAM. By treating preconditioner selection as a bandit problem and using variance-reduced Tsallis-INF updates with wallclock feedback, the method achieves substantial one-shot wallclock speedups without pretraining. Evaluated on six OpenFOAM/MHD problems, PCGBandit often matches or surpasses fixed baselines, with break-even typically around a thousand linear solves. The study also explores deterministic cost estimates for reproducibility and analyzes the impact of the configuration space size on performance, highlighting practical guidelines for deploying online-learned solver optimization in scientific computing.
Abstract
Data-driven acceleration of scientific computing workflows has been a high-profile aim of machine learning (ML) for science, with numerical simulation of transient partial differential equations (PDEs) being one of the main applications. The focus thus far has been on methods that require classical simulations to train, which when combined with the data-hungriness and optimization challenges of neural networks has caused difficulties in demonstrating a convincing advantage against strong classical baselines. We consider an alternative paradigm in which the learner uses a classical solver's own data to accelerate it, enabling a one-shot speedup of the simulation. Concretely, since transient PDEs often require solving a sequence of related linear systems, the feedback from repeated calls to a linear solver such as preconditioned conjugate gradient (PCG) can be used by a bandit algorithm to online-learn an adaptive sequence of solver configurations (e.g. preconditioners). The method we develop, PCGBandit, is implemented directly on top of the popular open source software OpenFOAM, which we use to show its effectiveness on a set of fluid and magnetohydrodynamics (MHD) problems.
