Skip to main content
QUICK REVIEW

[Paper Review] A Survey of Numerical Methods Utilizing Mixed Precision Arithmetic

Ahmad Abdelfattah, Hartwig Anzt|arXiv (Cornell University)|Jul 13, 2020
Numerical Methods and AlgorithmsComputer Science94 references24 citations
TL;DR

This survey synthesizes state-of-the-art numerical methods leveraging mixed-precision arithmetic, particularly low-precision hardware like NVIDIA Tensor Cores, to accelerate scientific computing. It demonstrates that combining low-precision computation with high-precision refinement techniques can achieve significant performance gains—up to 10x speedups—while maintaining numerical accuracy, especially in dense and sparse linear algebra, Krylov solvers, and preconditioning.

ABSTRACT

Within the past years, hardware vendors have started designing low precision special function units in response to the demand of the Machine Learning community and their demand for high compute power in low precision formats. Also the server-line products are increasingly featuring low-precision special function units, such as the NVIDIA tensor cores in ORNL's Summit supercomputer providing more than an order of magnitude higher performance than what is available in IEEE double precision. At the same time, the gap between the compute power on the one hand and the memory bandwidth on the other hand keeps increasing, making data access and communication prohibitively expensive compared to arithmetic operations. To start the multiprecision focus effort, we survey the numerical linear algebra community and summarize all existing multiprecision knowledge, expertise, and software capabilities in this landscape analysis report. We also include current efforts and preliminary results that may not yet be considered "mature technology," but have the potential to grow into production quality within the multiprecision focus effort. As we expect the reader to be familiar with the basics of numerical linear algebra, we refrain from providing a detailed background on the algorithms themselves but focus on how mixed- and multiprecision technology can help improving the performance of these methods and present highlights of application significantly outperforming the traditional fixed precision methods.

Motivation & Objective

  • To analyze and consolidate existing knowledge on mixed-precision numerical algorithms across scientific computing domains.
  • To identify and evaluate emerging multiprecision techniques with potential for production use in exascale systems.
  • To bridge the gap between hardware advances in low-precision arithmetic and software algorithm design in numerical linear algebra.
  • To guide the Exascale Computing Project in developing robust, portable, and efficient multiprecision algorithms.

Proposed method

  • Surveying existing numerical linear algebra algorithms and adapting them for mixed-precision execution using low-precision arithmetic units.
  • Employing iterative refinement strategies, such as classical iterative refinement and GMRES-IR, to correct low-precision solutions with high-precision accuracy.
  • Introducing quantized integer LU factorization and mixed-precision Cholesky and factorization methods to reduce data movement and improve performance.
  • Designing data compression and communication techniques, including mixed-precision MPI and approximate FFTs, to reduce bandwidth bottlenecks.
  • Leveraging probabilistic rounding error analysis to provide theoretical guarantees for low-precision computations.
  • Integrating multiprecision capabilities into major HPC software stacks like PETSc, Trilinos, Ginkgo, and hypre via template-based scalar types and runtime precision control.

Experimental results

Research questions

  • RQ1How can mixed-precision arithmetic be effectively applied to dense and sparse linear algebra problems to improve performance without sacrificing accuracy?
  • RQ2What are the most effective algorithmic strategies—such as iterative refinement or preconditioning—for maintaining accuracy when using low-precision arithmetic?
  • RQ3How can data compression and communication overhead be reduced in multiprecision algorithms, especially in distributed-memory systems?
  • RQ4What are the theoretical and practical limits of using probabilistic rounding error analysis in low-precision numerical computations?
  • RQ5How can existing HPC software frameworks be extended to natively support mixed-precision computation with minimal performance or portability cost?

Key findings

  • Mixed-precision GEMM (HGEMM) using Tensor Cores achieves over 10x speedup compared to double-precision GEMM on Summit.
  • GMRES-IR with half-precision matrix-vector products and double-precision refinement achieves convergence rates comparable to full double-precision GMRES, with significant performance gains.
  • Quantized integer LU factorization reduces memory traffic and enables faster factorization, particularly for structured matrices.
  • Probabilistic rounding error analysis shows that error bounds grow as √(n log n) instead of nu, enabling stable low-precision computations at scale.
  • Integration of mixed-precision support into PETSc, Trilinos, and Ginkgo enables flexible, high-performance solvers with minimal code changes.
  • Approximate FFTs with dynamic splitting and accuracy control allow for speedups in spectral methods while maintaining acceptable error levels.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.