Gradient descent meets shift-and-invert preconditioning for eigenvector computation

zhiqiang xuNeurIPS 2018

Overview

Computing the leading eigenvector (the vector corresponding to the largest eigenvalue) of a large matrix is a cornerstone of data science, powering everything from Principal Component Analysis (PCA) to spectral clustering.

While classic tools like the Power Method and Lanczos algorithms exist, they have drawbacks: the Power Method is often slow, and Lanczos is difficult to adapt to modern stochastic optimization settings. To address this, researchers have turned to shift-and-invert preconditioning, which transforms the original matrix to "stretch" the gap between the top eigenvalue and the rest, making the top one easier to find. However, most existing shift-and-invert methods rely heavily on the traditional Power Method framework.

This paper introduces SI-rgEIGS (Shift-and-Inverted Riemannian Gradient Descent Eigensolver), a novel algorithm that applies the principles of Riemannian gradient descent to this preconditioned problem. The result is an algorithm that achieves near-optimal convergence rates and superior practical performance.

The SI-rgEIGS Algorithm

The authors propose a four-pillar approach to accelerate eigenvector computation:

  1. Shift-and-Invert Preconditioning: The matrix $A$ is transformed into $B = (\sigma I - A)^{-1}$. By choosing a shift $\sigma$ slightly larger than the top eigenvalue $\lambda_1$, the "eigengap" is amplified, accelerating convergence.
  2. Riemannian Gradient Descent (RGD): Instead of standard Euclidean space, the algorithm operates on the unit sphere (where the eigenvector naturally lives). This ensures the iterates stay normalized and follow the natural geometry of the problem.
  3. Inexact Gradients: Computing $(\sigma I - A)^{-1}$ exactly is computationally expensive. Instead, the authors solve a linear system subproblem approximately using fast solvers like Accelerated Gradient Descent (AGD).
  4. Step-Size Schemes: The paper analyzes constant step-sizes for theoretical convergence proofs and Barzilai-Borwein (BB) step-sizes—an automatic, non-monotone scheme—for practical experiments to eliminate the need for manual tuning.

Key Insights and Theoretical Gains

A major theoretical contribution of this work is proving that the traditional shift-and-inverted power method is actually a special case of Riemannian gradient descent with a specific, adaptive step-size. This realization allows the application of more sophisticated optimization techniques to the problem.

Furthermore, the authors achieve a biquadratic improvement in convergence. Previous gradient descent solvers for this problem had a convergence rate dependent on $1/(\text{gap})^2$. This work improves that dependency to $1/\sqrt{\text{gap}}$. The algorithm also explicitly accounts for cases where the top eigenvalue has a multiplicity $p$, making the analysis more robust for real-world data where eigenvalues might be clustered. Finally, the convergence rate depends logarithmically—rather than quadratically—on the quality of the initial starting point, making it far less sensitive to initialization.

Empirical Results

The algorithm was rigorously evaluated on both synthetic matrices (with controlled eigenvalues and eigengaps) and real-world large-scale sparse matrices from the SuiteSparse Matrix Collection.

Synthetic Data Results

On synthetic data, SI-rgEIGS consistently outperformed the standard Shift-and-Inverted Power Method (SI-PM) and standard rgEIGS, validating the theoretical $\tilde{O}\left(\sqrt{\frac{\lambda_1}{\lambda_1 - \lambda_{p+1}}}\right)$ convergence bound.

Real-World Dataset Performance

For real-world datasets representing diverse engineering and scientific computing problems—such as hangGlider5, Boeing35, indef_d, and dimacs10_nv—the Barzilai-Borwein step-size scheme proved highly effective. It often converged much faster than hand-tuned constant step-sizes, demonstrating the algorithm's practical efficiency.

Limitations and Future Work

While highly effective, the current theoretical complexity contains an extra $\log(\lambda_1 / \Delta_p)$ factor, which the authors suggest might be an artifact of the analysis that could be removed in future work. Additionally, the performance of shift-and-invert methods remains sensitive to the choice of the shift parameter $\sigma$. While a "crude phase" is used to estimate it, further automation remains an open challenge. Finally, integrating other stochastic solvers (like SVRG) into the SI-rgEIGS framework could unlock even greater scalability for massive datasets.

Summary updated

BibTeX
@inproceedings{xu2018gradient,
  author = {zhiqiang xu},
  title = {{Gradient descent meets shift-and-invert preconditioning for eigenvector computation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=MN9b_viy3oW},
}
Figure