New fast divide-and-conquer algorithms for the symmetric tridiagonal eigenvalue problem

Shengguo Li, Xiangke Liao, Jie Liu, Hao Jiang

TL;DR

This paper introduces two accelerated "Divide-and-Conquer" (ADC) algorithms for solving the symmetric tridiagonal eigenvalue problem. By leveraging Hierarchically Semiseparable (HSS) matrix structures, the authors reduce the worst-case computational complexity from $O(N^3)$ to $O(N^2r)$, achieving speedups of over 6x compared to highly optimized libraries like Intel MKL.

What Problem Does This Paper Address?

Finding the eigenvalues and eigenvectors of a symmetric tridiagonal matrix is a fundamental task in computational science, appearing in everything from quantum mechanics to structural engineering. While the standard Divide-and-Conquer (DC) algorithm is generally very fast, it has a "weak spot": when a matrix has very few "deflations" (a process where the problem simplifies because certain values are zero or nearly zero), the algorithm's complexity balloons to $O(N^3)$.

The authors aim to eliminate this worst-case bottleneck. They target the most expensive part of the DC process—updating the eigenvector matrices—and find a way to perform these updates much faster without sacrificing numerical accuracy.

Methods

The core innovation lies in treating intermediate eigenvector matrices as Hierarchically Semiseparable (HSS) matrices. These are "rank-structured" matrices where the off-diagonal blocks have a very low numerical rank, meaning they can be represented by much smaller pieces of data.

The authors propose two versions of their Accelerated Divide-and-Conquer (ADC) algorithm:

  1. ADC1: Uses a deterministic method called SRRSC (Structured Rank-Revealing Schur-complement factorization) to build the HSS representation.
  2. ADC2: Uses a randomized HSS construction algorithm (RSHSS). This involves multiplying the matrix by random Gaussian vectors to "probe" its structure, which is often faster and easier to parallelize than deterministic methods.

To make these work, the authors also developed a method to estimate the rank of the off-diagonal blocks using the approximation theory of the function $1/x$. Both algorithms were implemented in parallel using OpenMP to take full advantage of modern multi-core processors.

Datasets

The researchers evaluated their algorithms using several classes of matrices known to be "difficult" for standard DC algorithms (i.e., they have very few deflations):

  • Synthetic Matrices: Clement-type, Legendre-type, Laguerre-type, Hermite-type, and Toeplitz-type matrices.
  • Standard Benchmarks: The entire stetester suite from LAPACK, which includes a wide variety of matrix types used to test numerical stability and performance.

Key Insights and Ideas

  • Cauchy-like Structure: The authors observed that the eigenvector matrices generated during the DC process are "Cauchy-like." This specific mathematical structure is what guarantees that the off-diagonal blocks are low-rank, making them perfect candidates for HSS compression.
  • Randomization is Robust: The paper shows that randomized sampling is not just a theoretical curiosity but a practical, stable way to construct HSS matrices for eigenvalue problems.
  • Smart Rank Estimation: Because the rank of these blocks isn't known upfront, the authors used exponential expansion theory to estimate it. They even included "tricks" to adjust matrix partitions if eigenvalues are too clustered, ensuring the rank stays small and manageable.
  • Hybrid Trigger: The HSS techniques are only "switched on" when the sub-problem size exceeds a certain threshold (e.g., $N > 2000$). This avoids the overhead of HSS for small matrices where standard methods are already optimal.

Key Results

  • Significant Speedups: For large matrices ($N = 25,000$) with few deflations, the ADC algorithms were consistently 5x to 6x faster than the dstevd routine in Intel MKL.
  • Complexity Reduction: The algorithms successfully reduced the computational cost from $O(N^3)$ to $O(N^2r)$, where $r$ is a modest constant (usually less than 100).
  • High Accuracy: Despite using approximations and randomization, the ADC algorithms maintained numerical precision comparable to standard LAPACK/MKL implementations, with orthogonality errors staying around $10^{-12}$ and eigenvalue errors around $10^{-15}$.
  • Scalability: The parallel implementation showed excellent "weak scalability," meaning it handles larger problems efficiently as more processing cores are added.

Limitations and Future Work

  • Theoretical Support: Some of the practical "tricks" used for rank estimation (like moving partition boundaries) lack rigorous theoretical proofs, even though they worked perfectly in all experimental tests.
  • Randomization Risks: While not encountered in this study, randomized algorithms always carry a tiny risk of failing to capture the full rank of a block if the oversampling parameter is set too low.
  • Future Directions: The authors suggest that incorporating the Fast Multipole Method (FMM) or the Subsampled Randomized Hadamard Transform (SRHT) could further reduce the complexity of the sampling phase, potentially making the algorithms even faster for massive matrices.

Summary updated

BibTeX
@article{li2016new,
  author = {Shengguo Li and Xiangke Liao and Jie Liu and Hao Jiang},
  title = {{New fast divide-and-conquer algorithms for the symmetric tridiagonal eigenvalue problem}},
  journal = {Numer. Linear Algebra Appl.},
  year = {2016},
  doi = {10.1002/nla.2046},
}
Figure