NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Eigenvalues Slicing Library (EVSL): Algorithms, Implementation, and Software

Ruipeng Li, Yuanzhe Xi, Lucas Erlandson, Yousef SaadarXiv 2018

TL;DR

EVSL (EigenValues Slicing Library) is a new software package designed to extract thousands of interior eigenvalues from massive, sparse symmetric matrices. By combining "spectrum slicing"—dividing the eigenvalue range into manageable chunks—with sophisticated polynomial and rational filtering, EVSL enables high-performance, parallelizable eigensolving that traditional libraries struggle to handle.

What Problem Does This Paper Address?

In fields like electronic structure calculations (e.g., Density Functional Theory) and electromagnetics, researchers often need to find thousands of eigenvalues located deep inside the spectrum of a matrix, rather than just the smallest or largest ones.

Standard tools like ARPACK are excellent for finding a few extreme eigenvalues but become prohibitively expensive for interior ones. The traditional "shift-and-invert" strategy helps, but it requires solving massive linear systems for every eigenvalue sought, which quickly hits memory and time bottlenecks. The authors address this "interior eigenvalue problem" by providing a robust library that uses a divide-and-conquer approach to slice the spectrum into sub-intervals that can be solved independently.

Methods

The core of EVSL is a two-stage process: Spectrum Slicing and Filtering.

  1. Spectrum Slicing & DOS: To divide the work evenly, EVSL first estimates the "Density of States" (DOS)—a probability measure of where eigenvalues are clustered. Using methods like the Kernel Polynomial Method (KPM) or Lanczos procedures, the library creates a "map" of the spectrum (see Figure 2.1). This allows it to create slices that contain roughly the same number of eigenvalues, preventing load imbalance in parallel environments.

    An illustration of slicing a spectrum using the Density of States (DOS). The blue curve shows eigenvalue density, and red lines denote the slices.
  2. Filtering Techniques: Once a slice is defined, EVSL uses a filter function $\rho(t)$ to transform the matrix. This filter amplifies the eigenvalues within the target slice and dampens everything else, effectively turning an interior problem into an easier "extreme eigenvalue" problem for the transformed matrix (see Figure 2.2).

  3. Polynomial Filtering: Uses high-degree Chebyshev polynomials. It only requires matrix-vector products, making it ideal for 3D problems where direct solvers fail due to memory limits.
  4. Rational Filtering: Uses Cauchy integral formulas or least-squares rational approximations. While it requires solving linear systems, it is often much more efficient for 2D problems or generalized eigenvalue problems.

    Left: The filter function mapping the target interval to the largest eigenvalues. Right: The resulting spectrum of the filtered matrix.

Datasets

The authors evaluated EVSL using three distinct types of problems:

  • Laplacian Matrices: Discretized 5-point and 7-point schemes on 2D and 3D grids (up to 1 million degrees of freedom).
  • Hamiltonian Matrices: Real-world matrices from the PARSEC group in the SuiteSparse Matrix Collection, originating from Kohn-Sham equations in electronic structure theory.
  • Maxwell Eigenproblems: Generalized eigenvalue problems ($Ax = \lambda Bx$) from electromagnetic simulations on 2D discs and 3D cubes.

Key Insights and Ideas

  • The Power of DOS: Estimating the eigenvalue distribution before solving is the "secret sauce." Without it, slicing is guesswork; with it, the library can automate load balancing.
  • Polynomial vs. Rational Trade-off: A major finding is that the "best" method depends on the problem's dimensionality. For 3D grids, the "fill-in" during matrix factorization makes rational filters too memory-intensive, leaving polynomial filters as the winner. Conversely, for 2D and generalized problems, rational filters are significantly faster.
  • Damping Matters: To prevent unwanted oscillations (Gibbs phenomenon) at the edges of polynomial filters, the authors implement Lanczos $\sigma$-damping, which significantly improves the filter's quality (see Figure 2.3).
Comparison of polynomial filters with and without Lanczos $\sigma$-damping. Damping (red) removes the oscillations seen in the undamped version (blue).

Key Results

  • Scalability via Slicing: In 3D Laplacian tests, slicing the spectrum into 6 parts allowed for a significant reduction in total iteration time compared to a single-slice approach.
  • Rational Filter Efficiency: For the largest 2D Maxwell problem, the rational filtered Lanczos algorithm was 90 times faster than the polynomial version.
  • Robustness: EVSL successfully extracted hundreds of interior eigenvalues from complex Hamiltonian matrices (like $Ga_{41}As_{41}H_{72}$) where traditional methods often struggle with convergence.

Limitations and Future Work

  • Memory Constraints: Rational filtering relies on direct solvers (like Pardiso or UMFPACK). For massive 3D problems, the memory required for matrix factorization can still be a bottleneck.
  • Parallelism: While the library is designed for parallelism, this paper focuses on the scalar implementation. The authors note that a fully parallel version using MPI (pEVSL) is currently under development.
  • Iterative Solvers for Filters: The authors plan to explore replacing direct solvers with iterative ones for the rational filter stage, which could potentially overcome the memory issues in 3D simulations.

Summary updated

BibTeX
@misc{li2018eigenvalues,
  author = {Ruipeng Li and Yuanzhe Xi and Lucas Erlandson and Yousef Saad},
  title = {{The Eigenvalues Slicing Library (EVSL): Algorithms, Implementation, and Software}},
  year = {2018},
  eprint = {1802.05215},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.05215},
}

Loading related content...

Figure