White Paper from the Workshop on Large-scale Parallel Numerical Computing Technology (LSPANC 2020): HPC and Computer Arithmetic toward Minimal-Precision Computing

Roman Iakymchuk, Daichi Mukunoki, Artur Podobas, Fabienne Jézéquel, Toshiyuki Imamura, Norihisa Fujita, Jens Huthmann, Shuhei Kudo, Yiyu Tan, Jens Domke, Kai Torben Ohlhus, Takeshi Fukaya, Takeo Hoshi, Yuki Murakami, Maho Nakata, Takeshi Ogita, Kentaro Sano, Taisuke Boku

TL;DR

This paper proposes a holistic "minimal-precision computing system" that integrates hardware and software to optimize both performance and energy efficiency in numerical computations. By intelligently tuning precision for each operation, the system aims to overcome the traditional trade-off between speed and accuracy, paving the way for more efficient Exascale computing.

What Problem Does This Paper Address?

In the realm of high-performance computing (HPC), there's a constant push for faster and more energy-efficient computations. A key factor influencing both is the precision of floating-point numbers used. Higher precision generally leads to more accurate results but at the cost of speed and energy. Conversely, lower precision can be faster and more energy-efficient but may compromise accuracy and reproducibility. This paper tackles the challenge of finding a sweet spot, proposing "minimal-precision computing" as a paradigm to achieve both optimal performance and reliability simultaneously. This involves dynamically adjusting the precision of calculations based on their criticality, rather than relying on a one-size-fits-all approach like double-precision.

Methods

The proposed minimal-precision computing system is a multi-faceted approach that combines several key components:

  • Precision-Tuning Method: The core of the system relies on Discrete Stochastic Arithmetic (DSA). DSA estimates rounding errors by performing computations multiple times with random rounding modes. This allows for the determination of reliable results and the identification of parts of the computation where lower precision can be safely used. Libraries like CADNA and SAM, along with a tuner called PROMISE, are used for this purpose.
  • Arbitrary-Precision Arithmetic Libraries: To handle computations that genuinely require high precision, the system leverages libraries like MPFR. This allows for fine-grained control over the precision of numbers, going beyond standard IEEE-754 formats.
  • Fast and Accurate Numerical Libraries: For performance-critical sections that still demand accuracy, the system incorporates specialized libraries. Examples include ExBLAS and OzBLAS, which provide reproducible and accurate BLAS (Basic Linear Algebra Subprograms) implementations, even on GPUs.
  • Heterogeneous Architectures with FPGAs: The system envisions utilizing Field-Programmable Gate Arrays (FPGAs) alongside traditional CPUs and GPUs. FPGAs offer the flexibility to implement custom arithmetic units and logic, enabling truly minimal-precision computations with potentially significant performance and energy gains. High-Level Synthesis (HLS) tools are crucial for programming these FPGAs using languages like C/C++.

Datasets

Not discussed in the paper. The paper focuses on a conceptual framework and the integration of existing and proposed tools rather than specific datasets for training or evaluation.

Key Insights and Ideas

  • The "Minimal-Precision" Paradigm: The paper champions a shift from fixed precision (like double-precision) to a dynamic, operation-specific precision tuning. This is the central idea for maximizing both performance and accuracy.
  • Holistic System Approach: Instead of focusing solely on software or hardware, the paper advocates for an integrated system that bridges the gap between them. This includes precision tuning, arbitrary precision libraries, fast numerical libraries, and hardware acceleration (FPGAs).
  • FPGA as a Key Enabler: FPGAs are highlighted as a crucial component for achieving true minimal-precision computing, offering the flexibility to implement custom arithmetic units that can be tailored to specific precision requirements.
  • DSA for Reliability: Discrete Stochastic Arithmetic is presented as a robust method for validating the reliability of computations, even when lower precisions are employed.
  • Overcoming the "Double Precision" Dogma: The paper challenges the long-standing reliance on double-precision in HPC, suggesting that this is not always necessary and can be a bottleneck for performance and energy efficiency.

Key Results

The paper presents a conceptual framework and outlines the components of the proposed minimal-precision computing system. While specific quantitative results are not detailed in this white paper, the authors refer to ongoing projects and existing tools that demonstrate the potential benefits:

  • The integration of DSA libraries (CADNA, SAM) and the PROMISE tuner aims to provide reliable results with reduced computational cost.
  • The development of accurate BLAS libraries (ExBLAS, OzBLAS) shows promise for reproducible and efficient linear algebra operations.
  • The use of FPGAs with HLS tools is expected to yield significant performance and energy efficiency improvements over traditional software implementations for arbitrary-precision arithmetic.

Limitations and Future Work

  • Manual Optimization: Currently, the performance optimization phase, where fast computation methods are integrated, is processed manually. The authors plan to automate or assist this process.
  • FPGA Programming Complexity: While HLS tools simplify FPGA programming, challenges remain in terms of compilation times and the ease of integrating arbitrary precision operations.
  • Tool Integration: The paper outlines a system, but the seamless integration and orchestration of all proposed components (precision tuner, arbitrary precision libraries, HLS tools, etc.) is an ongoing effort.
  • Future Work: The authors plan to utilize the Cygnus supercomputer (equipped with GPUs and FPGAs) as a target platform to further develop and validate their minimal-precision computing system. They also aim to explore more advanced techniques for automating the optimization process and improving FPGA programming workflows.

Summary updated

Abstract

In numerical computations, precision of floating-point computations is a key factor to determine the performance (speed and energy-efficiency) as well as the reliability (accuracy and reproducibility). However , precision generally plays a contrary role for both. Therefore, the ultimate concept for maximizing both at the same time is the minimal-precision computing through precision-tuning, which adjusts the optimal precision for each operation and data. Several studies have been already conducted for it so far (e.g. Precimoniuos and Verrou), but the scope of those studies is limited to the precision-tuning alone. Hence, we aim to propose a broader concept of the minimal-precision computing system with precision-tuning, involving both hardware and software stack. In 2019, we have started the Minimal-Precision Computing project to propose a more broad concept of the minimal-precision computing system with precision-tuning, involving both hardware and software stack. Specifically, our system combines (1) a precision-tuning method based on Discrete Stochastic Arithmetic (DSA), (2) arbitrary-precision arithmetic libraries, (3) fast and accurate numerical libraries, and (4) Field-Programmable Gate Array (FPGA) with High-Level Synthesis (HLS). In this white paper, we aim to provide an overview of various technologies related to minimal-and mixed-precision, to outline the future direction of the project, as well as to discuss current challenges together with our project members and guest speakers at the LSPANC 2020 workshop; https://www.r-ccs.riken.jp/labs/lpnctrt/lspanc2020jan/.
BibTeX
@inproceedings{iakymchuk2020white,
  author = {Roman Iakymchuk and Daichi Mukunoki and Artur Podobas and Fabienne Jézéquel and Toshiyuki Imamura and Norihisa Fujita and Jens Huthmann and Shuhei Kudo and Yiyu Tan and Jens Domke and Kai Torben Ohlhus and Takeshi Fukaya and Takeo Hoshi and Yuki Murakami and Maho Nakata and Takeshi Ogita and Kentaro Sano and Taisuke Boku},
  title = {{White Paper from the Workshop on Large-scale Parallel Numerical Computing Technology (LSPANC 2020): HPC and Computer Arithmetic toward Minimal-Precision Computing}},
  booktitle = {HAL},
  year = {2020},
}
Figure