Improved Accuracy and Parallelism for MRRR-Based Eigensolvers - A Mixed Precision Approach

Matthias Petschow, Enrique S. Quintana-Ortí, Paolo Bientinesi

TL;DR

This paper introduces a mixed-precision approach to the MRRR eigensolver, significantly improving its accuracy and robustness without sacrificing performance. By leveraging higher internal precision for sensitive computations, the authors achieve results comparable to or better than state-of-the-art methods, while also enhancing parallelism.

What Problem Does This Paper Address?

The real symmetric tridiagonal eigenproblem is a fundamental task in numerical computation, often arising from the reduction of larger eigenvalue problems. The MRRR (Multiple Relatively Robust Representations) algorithm is a highly efficient method for solving this problem, known for its speed. However, MRRR has a significant drawback: it generally produces less accurate results compared to other methods like Divide & Conquer (DC) or the QR algorithm. This lower accuracy, particularly in eigenvector orthogonality, can be problematic for downstream applications. The authors aim to bridge this gap by improving MRRR's accuracy to match or exceed that of DC and QR, while retaining its speed and scalability advantages.

Methods

The core of the paper's contribution lies in the application of mixed-precision arithmetic to the MRRR algorithm. Instead of performing all computations in a single floating-point precision (e.g., single or double), the authors propose using a higher precision (e.g., double or extended precision) for internal computations, while keeping the input and output in a lower precision (e.g., single or double).

Key aspects of their approach include:

  • Targeted High Precision: The higher precision is strategically applied to the most sensitive parts of the MRRR algorithm that contribute to accuracy loss.
  • Parameter Tuning: The use of mixed precision provides greater freedom in adjusting critical algorithm parameters, such as gaptol (a tolerance for eigenvalue separation). This allows for better control over accuracy, robustness, and parallelism.
  • Modified Algorithm: While the overall structure of MRRR is maintained, specific steps are adapted to leverage the mixed-precision environment. This includes careful consideration of data conversions and the use of appropriate arithmetic for different stages of the computation.
  • Robustness Enhancement: By adjusting parameters and using higher precision, the authors aim to ensure that suitable representations of matrices are found, mitigating a known weakness of MRRR.
  • Parallelism Improvement: The flexibility offered by mixed precision allows for adjustments that can lead to better load balancing and reduced communication in parallel implementations.

Datasets

The paper does not introduce new datasets. Instead, it uses a variety of standard test matrices for evaluating the performance and accuracy of eigensolvers. These include:

  • Uniform eigenvalue distribution
  • Geometric eigenvalue distribution
  • 1-2-1 matrices
  • Clement matrices
  • Wilkinson matrices (specifically for odd sizes)
  • Hermite matrices

These matrices are generated and used to represent different eigenvalue distributions and problem characteristics.

Key Insights and Ideas

  • Accuracy Bottleneck in MRRR: The paper confirms that the tridiagonal stage of MRRR is a primary contributor to the loss of orthogonality, even when the initial reduction to tridiagonal form is accurate.
  • Mixed Precision as a "Free Lunch": The core insight is that by using higher internal precision, one can achieve significantly better accuracy and robustness without a substantial performance penalty, and in many cases, even with performance gains due to improved parallelism.
  • Parameter Flexibility: Mixed precision unlocks a new level of freedom in tuning parameters like gaptol. This allows for a more nuanced approach to balancing accuracy, robustness, and parallelism, moving beyond the constraints of a single precision.
  • Mitigating MRRR's Weaknesses: The approach directly addresses MRRR's known issues: inferior accuracy, the risk of failing to find suitable representations, and potential load-balancing problems in parallel settings with clustered eigenvalues.
  • "Embarrassingly Parallel" Potential: By carefully adjusting parameters, many problems can become "embarrassingly parallel," meaning computations can be distributed across processors with minimal communication overhead.

Key Results

The paper demonstrates significant improvements across several metrics:

  • Accuracy: The mixed-precision MRRR solver achieves accuracy comparable to or exceeding that of Divide & Conquer and QR algorithms. In many cases, it is the most accurate solver tested.
  • Performance:
    • Sequential: The mixed-precision solver is often faster than conventional MRRR implementations and competitive with or faster than DC, especially for matrices that don't allow for heavy deflation.
  • Parallel: The mixed-precision approach shows improved scalability and can be significantly faster than traditional parallel implementations, particularly for matrices that do not exhibit strong clustering.
  • Robustness: The mixed-precision solver consistently finds suitable representations, unlike standard MRRR implementations which sometimes fail to meet robustness tests. This is crucial for guaranteeing the accuracy of the results.
  • Scalability: The approach is shown to be more scalable, especially in parallel environments, due to better load balancing and reduced communication.

Limitations and Future Work

  • Portability of Higher Precisions: The primary limitation is the varying support for higher precision floating-point formats (extended and quadruple) across different hardware architectures and compilers. This can impact the performance and ease of implementation.
  • Software Simulation Overhead: For quadruple precision, software simulation is often required, leading to a significant performance slowdown.
  • Parameter Optimization: While the paper provides a framework for adjusting parameters, finding the "optimal" settings for a given architecture and problem type can still be a non-trivial task.

Future work could involve:

  • Further investigation into optimizing parameter choices for specific architectures.
  • Exploring hardware-specific implementations for higher precisions to mitigate performance penalties.
  • Extending the mixed-precision approach to other numerical algorithms where accuracy is a concern.

Summary updated

BibTeX
@article{petschow2014improved,
  author = {Matthias Petschow and Enrique S. Quintana-Ortí and Paolo Bientinesi},
  title = {{Improved Accuracy and Parallelism for MRRR-Based Eigensolvers - A Mixed Precision Approach}},
  journal = {SIAM J. Sci. Comput.},
  year = {2014},
  doi = {10.1137/130911561},
}
Figure