Skip to main content
QUICK REVIEW

[Paper Review] Deep Learning of Preconditioners for Conjugate Gradient Solvers in Urban Water Related Problems

Johannes Sappl, Laurent Seiler|arXiv (Cornell University)|Jun 17, 2019
Model Reduction and Neural NetworksPhysics and Astronomy17 references6 citations
TL;DR

This paper proposes a deep learning approach using a Convolutional Neural Network (CNN) to automatically learn problem-specific preconditioners for Conjugate Gradient (CG) solvers in urban water engineering. The method significantly accelerates convergence—achieving up to 23× speedup—by learning sparse, efficient preconditioning matrices that outperform traditional methods like AMG and incomplete Cholesky in fluid simulation and pipe network problems.

ABSTRACT

Solving systems of linear equations is a problem occuring frequently in water engineering applications. Usually the size of the problem is too large to be solved via direct factorization. One can resort to iterative approaches, in particular the conjugate gradients method if the matrix is symmetric positive definite. Preconditioners further enhance the rate of convergence but hitherto only handcrafted ones requiring expert knowledge have been used. We propose an innovative approach employing Machine Learning, in particular a Convolutional Neural Network, to unassistedly design preconditioning matrices specifically for the problem at hand. Based on an in-depth case study in fluid simulation we are able to show that our learned preconditioner is able to improve the convergence rate even beyond well established methods like incomplete Cholesky factorization or Algebraic MultiGrid.

Motivation & Objective

  • To address the computational bottleneck of solving large sparse symmetric positive definite (SPD) linear systems in urban water engineering applications.
  • To overcome the limitations of handcrafted preconditioners that require expert knowledge and degrade with problem changes.
  • To develop a data-driven, automated method for preconditioner design using deep learning that maintains numerical accuracy.
  • To evaluate the generalization and efficiency of learned preconditioners across varying problem sizes and real-world water network configurations.

Proposed method

  • A Convolutional Neural Network (CNN) is trained to map a system matrix A to a preconditioner matrix M⁻¹, minimizing the condition number of A M⁻¹.
  • The loss function is defined as the condition number of the preconditioned system, computed via singular value decomposition (SVD).
  • The model is trained in an unsupervised manner on a dataset of SPD matrices derived from fluid dynamics and pipe network simulations.
  • Preconditioning is applied via right preconditioning, transforming the system A x = b into A M⁻¹ y = b to improve CG convergence.
  • The trained CNN generalizes to larger problem sizes (e.g., 4096D) and is reused across time steps in simulations, enabling linear speedup over time.
  • The method preserves numerical accuracy by relying on the PCG algorithm for final solution computation, avoiding direct ML approximation of x.

Experimental results

Research questions

  • RQ1Can a deep learning model automatically learn effective, problem-specific preconditioners for CG solvers in urban water systems?
  • RQ2How does the performance of a learned preconditioner compare to established methods like AMG and incomplete Cholesky in terms of convergence speed and runtime?
  • RQ3To what extent can a CNN-trained preconditioner generalize across different problem sizes and matrix structures?
  • RQ4Can the learned preconditioner maintain numerical accuracy while significantly reducing computational cost?

Key findings

  • The learned preconditioner achieved a 23× speedup over the vanilla CG method in a 1024-dimensional fluid simulation case study.
  • In the same case, the learned preconditioner reduced the number of CG iterations from 98.15 to 35.86, while maintaining a condition number of 61.494.
  • The learned preconditioner was significantly sparser (1.413% density) than AMG (99.471%), leading to faster per-iteration computation and overall runtime improvement.
  • The model generalized well to a 4096-dimensional problem, demonstrating robustness beyond the training size.
  • In EPANET 2-based pipe network simulations, the learned preconditioner showed mixed results due to increased matrix fill-in, indicating sensitivity to matrix structure.
  • The approach outperformed standard preconditioners in fluid dynamics but requires further tuning for highly scattered matrix patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.