High-Performance Partial Spectrum Computation for Symmetric eigenvalue problems and the SVD

David E. Keyes, Hatem Ltaief, Yuji Nakatsukasa, Dalal SukkariarXiv 2021

Abstract

Traditional numerical libraries like ScaLAPACK often struggle with efficiency when computing only a fraction of a matrix's spectrum due to memory-bound operations and the necessity of full matrix reductions. This paper introduces QDWHpartial-EIG and QDWHpartial-SVD, two novel algorithms designed to compute partial eigenvalues or singular values by leveraging compute-bound Level-3 BLAS kernels. By optimizing rational functions to target specific spectral regions and employing early subspace extraction, these solvers achieve up to a 6x speedup over standard libraries on high-performance manycore systems while maintaining machine-precision accuracy.

Introduction

In fields such as quantum chemistry and signal processing, researchers frequently require only a small subset of a matrix's spectrum—for instance, the top 10% of singular values. However, conventional "gold standard" libraries like LAPACK and ScaLAPACK are primarily architected for full decompositions. These methods typically rely on a reduction step to transform dense matrices into tridiagonal or bidiagonal forms. This process is inherently memory-bound, leading to significant performance bottlenecks on modern supercomputers where data movement costs far exceed computation costs. Moreover, these solvers often reduce the entire matrix even when only a partial spectrum is requested, resulting in substantial computational waste.

Methodology

The proposed approach centers on a partial variant of the QR-based Dynamically Weighted Halley (QDWH) algorithm. Key innovations include:

  1. Compute-Bound Kernels: Unlike traditional solvers that depend on memory-bound Level-2 BLAS, QDWH utilizes Level-3 BLAS. This allows the algorithm to saturate hardware floating-point performance, effectively trading "cheap" flops for "expensive" memory bandwidth.
  2. Rational Function Optimization: The core of QDWH involves a rational function that maps eigenvalues to discrete values (e.g., -1 and 1). The authors optimize this function to target only the desired portion of the spectrum.
  3. Early Subspace Extraction: By applying a modified QDWH iteration, the algorithm identifies the specific subspace containing the eigenvalues of interest. A Rayleigh-Ritz process is then used to project the original large matrix onto this significantly smaller subspace.
Rational function mapping used to partition the spectrum and isolate eigenvalues of interest.

The Power of the Shift

A critical insight is the introduction of a shift parameter ($s$) into the rational function. This allows the algorithm to "zoom in" on a specific spectral region, enabling the solver to ignore the majority of the matrix data early in the computation.

Impact of the shift parameter $s$ on the rational function's ability to resolve specific parts of the spectrum.

Experimental Evaluation

The algorithms were implemented for distributed-memory systems using the ScaLAPACK framework and tested on the Shaheen-2 supercomputer (Cray XC40) with up to 36,000 MPI processes. Testing involved synthetic ill-conditioned matrices (up to 200,000 x 200,000) with various spectral distributions, including equispaced and geometric series.

Key Results

  • Performance Gains: QDWHpartial-SVD demonstrated up to a 6x speedup over ScaLAPACK’s PDGESVD and a 2x speedup over the KSVD library. QDWHpartial-EIG outperformed ScaLAPACK’s PDSYEVD by up to 3.5x.
  • Scalability: When computing a small fraction (e.g., 3%) of the spectrum, the final problem size becomes so small that the concluding steps are nearly instantaneous compared to the initial subspace extraction.
  • Numerical Integrity: The solvers maintained machine-precision accuracy and perfect orthogonality across all tested configurations.

Conclusion and Future Work

While QDWHpartial-EIG significantly outperforms ScaLAPACK, it currently trails highly optimized two-stage solvers like ELPA in absolute wall-clock time for certain eigenvalue problems. However, the reliance on matrix multiplication makes these algorithms ideal candidates for GPU acceleration. Future work will focus on porting these methods to GPU-heavy architectures and integrating them with task-based runtime systems like PaRSEC or StarPU to further enhance performance in heterogeneous environments.

Summary updated

BibTeX
@misc{keyes2021high,
  author = {David E. Keyes and Hatem Ltaief and Yuji Nakatsukasa and Dalal Sukkari},
  title = {{High-Performance Partial Spectrum Computation for Symmetric eigenvalue problems and the SVD}},
  year = {2021},
  eprint = {2104.14186},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.14186},
}
Figure