Minimizing the Arithmetic and Communication Complexity of Jacobi's Method for Eigenvalues and Singular Values

James Demmel, Hengrui Luo, Ryan Schneider, Yifu WangarXiv 2025 · DOI

Introduction

Jacobi’s method, introduced in 1846, remains one of the most accurate algorithms for solving the symmetric eigenvalue problem, particularly for matrices with small eigenvalues. Despite its precision, it has historically been overlooked in favor of tridiagonal reduction methods due to the high computational and data-movement costs of its classical "scalar" implementation.

In modern computing, performance is increasingly limited by communication—the movement of data between memory hierarchies or across processors—rather than floating-point operations (flops). This paper modernizes Jacobi’s method by introducing blocked and recursive variants that minimize data movement, proving that its communication cost can match the absolute lower bounds established for matrix multiplication.

Algorithmic Innovations

The authors analyze and propose several variations of the Jacobi algorithm to address modern hardware constraints:

  1. Scalar Jacobi: The classical approach, which the authors prove has a communication cost of $O(n^4/M)$, where $M$ is the fast memory size. This confirms its inefficiency for large-scale problems.
  2. Blocked Jacobi: By zeroing out $b \times b$ blocks instead of individual entries, this version leverages high-performance Level 3 BLAS operations. It achieves a communication cost of $O(n^3/\sqrt{M})$, matching the efficiency of standard matrix multiplication.
  3. Recursive Jacobi: A cache-oblivious approach that utilizes fast, Strassen-like matrix multiplication. This version reaches near-optimal arithmetic complexity, $O(n^{\omega_0})$, where $\omega_0$ is the exponent of matrix multiplication.
  4. Parallel Block Jacobi: Designed for distributed memory systems, this variant achieves linear speedup in flops and nearly optimal communication bandwidth on a $\sqrt{P} \times \sqrt{P}$ processor grid.

Complexity and Performance Analysis

A core contribution of this work is the rigorous comparison of these new Jacobi variants against existing state-of-the-art algorithms. The table below summarizes the arithmetic and communication complexities, highlighting how the proposed blocked and recursive methods bridge the gap between Jacobi's method and more traditional reduction-based approaches.

Comparison of arithmetic and communication complexities for various eigenvalue algorithms.

As shown in the table, the Blocked Jacobi variant achieves the $O(n^3/\sqrt{M})$ communication lower bound, while the Recursive variant pushes arithmetic complexity toward the theoretical limit of $O(n^{\omega_0})$. This makes Jacobi's method not only more accurate but also asymptotically as fast as the most efficient known algorithms for general matrices.

Robustness and Convergence

To ensure the convergence of blocked and recursive variants, the authors introduce a critical technical refinement: Recursive LU with Partial Pivoting (LUPP). While previous attempts to block Jacobi's method relied on expensive QR factorizations to maintain rotation properties, this paper demonstrates that a faster recursive PLU factorization is sufficient to guarantee convergence.

Numerical experiments using both random symmetric matrices and adversarial "sabotaged" matrices confirm these findings. The proposed LUPP-based pivoting successfully prevents algorithmic failure in cases where non-pivoted versions stagnate. Furthermore, empirical results show that these Jacobi variants converge in a small, constant number of sweeps (typically 4–10), regardless of the matrix size $n$.

Conclusion and Future Work

By redesigning Jacobi’s method to minimize data movement, this research transforms a classical algorithm into a competitive candidate for modern, communication-constrained architectures. While the recursive version involves constants that make it most suitable for extremely large matrices, the blocked variant offers immediate practical benefits. Future research may explore extending these techniques to parallel fast matrix multiplication and investigating the potential of mixed-precision implementations to further enhance performance.

Summary updated

BibTeX
@misc{demmel2025minimizing,
  author = {James Demmel and Hengrui Luo and Ryan Schneider and Yifu Wang},
  title = {{Minimizing the Arithmetic and Communication Complexity of Jacobi's Method for Eigenvalues and Singular Values}},
  year = {2025},
  eprint = {2506.03466},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.03466},
}
Figure