Abstract
This white paper, emerging from the LSPANC 2020 workshop, outlines a roadmap for the future of High-Performance Computing (HPC) centered on the concept of Minimal-Precision Computing. Instead of defaulting to standard 64-bit floats, the authors propose a holistic system that uses the absolute minimum number of bits required for a specific calculation, drastically improving speed and energy efficiency without sacrificing numerical reliability.
Introduction: Breaking the FP64 Hegemony
In traditional scientific computing, double precision (FP64) has long been the gold standard. However, as we approach the Exascale era, the reliance on 64-bit formats has become a significant bottleneck in terms of power consumption, memory bandwidth, and storage. While lower precision formats like FP16 offer substantial performance gains, they introduce risks of numerical instability and rounding errors.
The "Minimal-Precision Computing" framework addresses this by seeking the "Goldilocks" precision—using just enough bits to ensure accuracy while maximizing hardware efficiency. This requires a full-stack approach, from automated tuning tools to specialized hardware.
The Four Pillars of Minimal-Precision Computing
The authors propose a system stack built on four key pillars:
- Precision Tuning: Utilizing Discrete Stochastic Arithmetic (DSA) through tools like CADNA and PROMISE. These tools run computations multiple times with randomized rounding modes to identify the minimum safe bit-width for specific variables.
- Arbitrary-Precision Libraries: Leveraging libraries such as MPFR and MPLAPACK to support non-standard bit-widths (e.g., 80-bit) when standard formats are insufficient.
- Fast and Accurate Numerical Libraries: Implementing specialized BLAS like ExBLAS (for reproducibility) and OzBLAS (for tunable accuracy) to provide high-precision results on lower-precision hardware.
- Hardware Acceleration via FPGAs: Using Field-Programmable Gate Arrays to create custom logic for non-standard bit-widths. High-Level Synthesis (HLS) tools are essential to making FPGA programming accessible to software engineers.
FPGA Tooling and Abstraction
A critical component of this framework is the "abstraction ladder" of FPGA tools, which allows developers to move from low-level arithmetic units to high-level parallel models. The paper highlights three primary tools:
- FloPoCo: Generates basic arithmetic units.
- SPGen: Facilitates the creation of data-flow pipelines.
- Nymble: Provides top-level C/C++ integration.
The trade-offs between these tools are summarized in the table below, highlighting the balance between performance and ease of use for developers with varying levels of hardware knowledge.
Benchmarks and Key Insights
The vision for minimal-precision computing is supported by several key testbeds and architectural insights:
- HPL-AI Performance: The HPL-AI benchmark reached 445 PFlop/s on the Summit supercomputer by leveraging mixed-precision techniques and iterative refinement.
- The "Chunking" Strategy: To minimize data duplication and expensive type conversions, the authors suggest storing data in 16-bit "chunks" that can be combined to form higher-precision values as needed.
- Alternative Formats: Beyond IEEE-754, the paper advocates for formats like Posits and bfloat16, which offer better dynamic range or efficiency for specific applications.
- Numerical Verification: Software like VSDP has demonstrated the ability to compute rigorous error bounds for massive linear programs, proving that reduced precision can still be reliable.
Challenges and Future Work
Despite the promise of this approach, several hurdles remain. FPGA compilation times—often taking hours—are a significant barrier compared to the near-instantaneous compilation of CPUs and GPUs. Furthermore, while precision tuning is becoming automated, the decision of which code segments to offload to specific hardware (FPGA vs. GPU) remains a manual, complex task. Future research will focus on more efficient data management and automated performance optimization across heterogeneous systems.
Summary updated