GCGE: a package for solving large scale eigenvalue problems by parallel block damping inverse power method

Yu Li, Zijing Wang, Hehu XieCCF Trans. High Perform. Comput 2021

Abstract

Large-scale symmetric eigenvalue problems are fundamental to scientific computing, yet they face significant scalability challenges, particularly the Rayleigh-Ritz bottleneck and numerical instability at high precision. This paper presents the Generalized Conjugate Gradient Eigensolver (GCGE) package, which implements a parallel block damping inverse power method. By utilizing a novel "moving mechanism" to manage converged eigenvectors and a recursive SVD-based orthogonalization, GCGE achieves superior stability and performance compared to existing industry-standard solvers like LOBPCG. Experimental results on diverse matrices demonstrate that GCGE can reduce computation time to as little as 14% of LOBPCG’s requirements while maintaining stability at tolerances as fine as $10^{-12}$.

Introduction

In scientific computing, solving for eigenvalues and eigenvectors (eigenpairs) is a cornerstone of disciplines ranging from structural engineering to quantum chemistry. While efficient linear solvers exist for equations of the form $Ax=b$, eigensolvers for the generalized problem $Ax = \lambda Bx$ are notoriously difficult to scale.

Existing state-of-the-art solvers, such as the Locally Optimal Block Preconditioned Conjugate Gradient (LOBPCG) method, encounter three primary pain points:

  1. Numerical Instability: Standard orthogonalization methods often fail at high precision or when dealing with poorly conditioned matrices.
  2. The Rayleigh-Ritz Bottleneck: As the number of desired eigenpairs increases, the projected sub-problem (the Rayleigh-Ritz step) becomes a massive sequential bottleneck that hinders parallel performance.
  3. Convergence Speed: Standard inverse power methods often suffer from slow convergence without sophisticated shifting strategies.

To address these issues, the GCGE package introduces a robust parallel framework designed for high-performance computing environments.

Methodology

The core of the GCGE package is the Generalized Conjugate Gradient (GCG) algorithm. This implementation incorporates several key innovations to ensure both speed and numerical robustness.

Triple-Block Subspace Projection

The algorithm maintains a subspace spanned by three blocks of vectors: $[X, P, W]$. Here, $X$ represents the current approximations, $P$ denotes the previous search directions, and $W$ contains new information derived from an inverse power step. This structure mimics the efficiency of the conjugate gradient method while extending it to the eigenvalue context.

Dynamic Shifting and Inverse Power Steps

To accelerate convergence, GCGE employs dynamic shifts during the inverse power step. By using the largest converged eigenvalue as a shift, the algorithm significantly reduces the total number of iterations required compared to unshifted methods. This acceleration is achieved with negligible additional computational cost per iteration.

Recursive Orthogonalization with SVD

Rather than relying on standard Gram-Schmidt processes, which can lose orthogonality in floating-point arithmetic, GCGE utilizes a recursive approach combined with Singular Value Decomposition (SVD). This method maximizes the use of high-performance Level-3 BLAS operations and ensures numerical stability even at very tight tolerances.

The Moving Mechanism

The most significant innovation in GCGE is the "moving mechanism." When computing thousands of eigenpairs, the Rayleigh-Ritz problem typically grows too large to solve efficiently on a single node. GCGE "moves" converged eigenvectors out of the active subspace and integrates them into the basis, keeping the active projection dimension small and manageable. This transforms a potential sequential bottleneck into a scalable parallel process.

Experimental Evaluation

The authors evaluated GCGE using two primary datasets:

  • Suite Sparse Matrix Collection: 13 diverse matrices (e.g., Andrews, Ga41As41H72) with dimensions up to 268,000, characterized by clustered eigenvalues and complex sparsity patterns.
  • 3D FEM Matrices: A massive generalized eigenvalue problem arising from the finite element discretization of a Laplace problem, featuring over 14 million non-zero entries.

Performance and Scalability

In head-to-head comparisons with LOBPCG, GCGE demonstrated dramatic improvements. Across the Suite Sparse test cases, the total computation time for GCGE was often only 14% to 28% of the time required by LOBPCG. Furthermore, GCGE successfully converged at a tolerance of $10^{-12}$ for all test cases, whereas LOBPCG failed to converge within 3,000 iterations on several matrices at that precision.

On the 14-million-entry FEM problem, GCGE demonstrated nearly linear scaling. The implementation of the moving mechanism reduced the total computation time by approximately 50%, proving its efficacy for truly large-scale problems. While Krylov-Schur methods remain efficient for a small number of eigenpairs, GCGE proved more efficient when the requirement exceeded approximately 800 eigenpairs.

Conclusion and Future Work

GCGE represents a significant advancement in parallel eigensolvers, providing a stable and scalable solution for symmetric eigenvalue problems. By bypassing the Rayleigh-Ritz bottleneck and employing robust orthogonalization, it allows researchers to tackle problems of unprecedented scale.

Currently, the package is limited to real symmetric (or SPD) matrices. Future development aims to extend these techniques to non-symmetric and complex eigenvalue problems. Additionally, while the moving mechanism optimizes the computational bottleneck, the memory overhead of storing thousands of high-dimensional eigenvectors remains a challenge for distributed memory systems.

The source code for GCGE is available on GitHub: https://github.com/Materials-Of-Numerical-Algebra/GCGE

Summary updated

BibTeX
@article{li2021gcge,
  author = {Yu Li and Zijing Wang and Hehu Xie},
  title = {{GCGE: a package for solving large scale eigenvalue problems by parallel block damping inverse power method}},
  journal = {CCF Trans. High Perform. Comput.},
  year = {2021},
  doi = {10.1007/s42514-023-00135-1},
}
Figure