Solution of the k-th eigenvalue problem in large-scale electronic structure calculations

Dongjin Lee, Takeo Hoshi, Tomohiro Sogabe, Yuto Miyatake, Shao‐Liang Zhang · DOI

Abstract

In electronic structure calculations, identifying specific energy states, such as the Highest Occupied (HO) state, requires finding the $k$-th eigenvalue of massive sparse matrices. This paper presents a robust three-stage algorithm—combining Lanczos iterations, spectral bisection, and a modified shift-and-invert method—to solve this problem. The approach not only offers significant computational speedups but also provides a mathematical guarantee that the identified eigenpair is exactly the $k$-th state. Demonstrations on matrices with up to 1.5 million dimensions show that tasks previously requiring supercomputers can now be performed on a single workstation.

Introduction

Modern quantum mechanical simulations, particularly Density Functional Theory (DFT), often hinge on finding the $k$-th eigenvalue of a large-scale matrix, where $k$ corresponds to the number of electrons in the system. This task is challenging due to the sheer scale of the matrices (often exceeding millions of dimensions) and the need for specificity. While standard iterative methods excel at finding extreme eigenvalues, the $k$-th eigenvalue is frequently buried deep within the spectrum. Traditional dense solvers are computationally prohibitive at this scale, necessitating a more targeted approach.

The Three-Stage Algorithm

The proposed method bridges the gap between efficiency and specificity through a three-stage process: Initial Interval Finding, Spectral Bisection, and Modified Shift-and-Invert Lanczos.

Stage 1: Initial Interval Finding

The algorithm begins by using a non-standard application of the Lanczos method. Instead of seeking high precision immediately, it uses the first few Ritz values to establish a narrow energy range $[\sigma_{lower}, \sigma_{upper})$ that is guaranteed to contain the $k$-th eigenvalue.

Relationship between Ritz values and the target eigenvalue index $k$.

As shown in Figure 1, Ritz values provide a "ballpark" interval early in the process, which significantly reduces the search space for subsequent stages by establishing bounds based on the index $k$.

Stage 2: Spectral Bisection

Once the initial interval is defined, the algorithm employs spectral bisection using a sparse direct linear solver (MUMPS). By performing $LDL^H$ factorization, the method leverages Sylvester’s law of inertia to count the exact number of eigenvalues below a given threshold. The interval is repeatedly halved until it contains only a small, manageable number of eigenvalues (typically around 20). A key efficiency here is the reuse of symbolic factorizations across bisection steps.

Stage 3: Modified Shift-and-Invert Lanczos and Validation

The final stage uses a modified Shift-and-Invert (SI) Lanczos method to pinpoint the $k$-th eigenvalue within the narrowed interval. Crucially, the authors introduce a validation step based on residual-derived error bounds.

Validation of disjoint error bounds for the $k$-th eigenvalue.

Figure 3 illustrates how the algorithm ensures that the computed eigenpair is indeed the $k$-th one. By ensuring that the error bounds around candidate eigenvalues are disjoint and fall within the validated bisection interval, the method provides a mathematical guarantee of the result's index.

Experimental Results

The algorithm was tested on real-world matrices from the ELSES Matrix Library, representing various nanomaterials such as carbon nano-composites and vibrating nanotubes.

For the 430,080-dimensional NCCS430080 problem, the algorithm completed in just 0.6 hours on a single-core workstation. For comparison, the ScaLAPACK dense solver required 2.9 hours on 180,000 cores of the K computer to achieve similar results. The method successfully scaled to a 1.5-million-dimension problem (VCNT1512000) in approximately 1.4 hours, a task virtually impossible for traditional dense eigensolvers.

Conclusion

This three-stage approach transforms the $k$-th eigenvalue problem from a supercomputing challenge into a workstation-accessible task. By combining the speed of sparse solvers with rigorous mathematical validation, it provides a reliable tool for large-scale electronic structure calculations. Future work will focus on handling highly clustered eigenvalues through block SI Lanczos methods and automating parameter tuning for the transition between bisection and SI Lanczos stages.

Summary updated

BibTeX
@article{lee2018solution,
  author = {Dongjin Lee and Takeo Hoshi and Tomohiro Sogabe and Yuto Miyatake and Shao‐Liang Zhang},
  title = {{Solution of the k-th eigenvalue problem in large-scale electronic structure calculations}},
  journal = {Journal of Computational Physics},
  year = {2018},
  doi = {10.1016/j.jcp.2018.06.002},
}
Figure