Automated tuning for the parameters of linear solvers

02/25/2023
by   Andrey Petrushov, et al.
0

Robust iterative methods for solving systems of linear algebraic equations often suffer from the problem of optimizing the corresponding tuning parameters. To improve the performance for the problem of interest, the specific parameter tuning is required, which in practice can be a time-consuming and tedious task. The present paper deals with the problem of automating the optimization of the numerical method parameters to improve the performance of the mathematical physics simulations and simplify the modeling process. The paper proposes the hybrid evolution strategy applied to tune the parameters of the Krylov subspace and algebraic multigrid iterative methods when solving a sequence of linear systems with a constant matrix and varying right-hand side. The algorithm combines the evolution strategy with the pre-trained neural network, which filters the individuals in the new generation. The coupling of two optimization approaches allows to integrate the adaptivity properties of the evolution strategy with a priori knowledge realized by the neural network. The use of the neural network as a preliminary filter allows for significant weakening of the prediction accuracy requirements and reusing the pre-trained network with a wide range of linear systems. The algorithm efficiency evaluation is performed for a set of model linear systems, including the ones from the SuiteSparse Matrix Collection and the systems from the turbulent flow simulations. The obtained results show that the pre-trained neural network can be reused to optimize parameters for various linear systems, and a significant speedup in the calculations can be achieved at the cost of about 100 trial solves. The algorithm decreases the calculation time by more than 6 times for the black box matrices from the SuiteSparse Matrix Collection and by a factor of 1.5-1.8 for the turbulent flow simulations considered in the paper.

READ FULL TEXT
research
03/12/2021

XAMG: A library for solving linear systems with multiple right-hand side vectors

This paper presents the XAMG library for solving large sparse systems of...
research
08/27/2020

Adversarial Eigen Attack on Black-Box Models

Black-box adversarial attack has attracted a lot of research interests f...
research
07/30/2019

Revisiting Performance of BiCGStab Methods for Solving Systems with Multiple Right-Hand Sides

The paper discusses the efficiency of the classical BiCGStab method and ...
research
03/17/2023

Solving Differential-Algebraic Equations in Power Systems Dynamics with Neural Networks and Spatial Decomposition

The dynamics of the power system are described by a system of differenti...
research
04/08/2021

Numerical integrating of highly oscillating functions: effective stable algorithms in case of linear phase

A practical and simple stable method for calculating Fourier integrals i...
research
06/04/2021

Enabling Lightweight Fine-tuning for Pre-trained Language Model Compression based on Matrix Product Operators

This paper presents a novel pre-trained language models (PLM) compressio...

Please sign up or login with your details

Forgot password? Click here to reset