Abstract
This report summarizes the activities and major accomplishments of the Variable Precision Computing Strategic Initiative project. The overarching goal of this project was to initiate and promote a new paradigm in High Performance Computing (HPC) that would fundamentally change how we represent and make use of representations of real numbers in finite precision and that would establish Lawrence Livermore National Laboratory (LLNL) as a leader in precision-related research for HPC. We pursued three integrated and concurrent research thrusts: new, more dynamic data representations to address data motion and capacity limitations; improved mixed precision algorithms to accelerate computation and to leverage new hardware; and new tools to help developers reason about precision and to automate code transformations.
Introduction
In the realm of High-Performance Computing (HPC), the 64-bit "double precision" floating-point format has long been the default standard. While this provides a high degree of safety and consistency, it comes with substantial costs in power consumption, storage requirements, and memory bandwidth. As the gap between computational speed and data movement—the "memory wall"—continues to widen, the inefficiency of static precision becomes a critical bottleneck.
The Variable Precision Computing (VPC) project at Lawrence Livermore National Laboratory (LLNL) was a multi-year Strategic Initiative designed to challenge this "64-bit-by-default" habit. By treating precision as a dynamic variable rather than a static constant, the project demonstrated that researchers can achieve significant speedups and data reductions without compromising scientific accuracy.
Research Thrusts
The VPC project pursued three integrated research thrusts to make variable precision a practical reality for HPC.
1. Dynamic Data Representations
The team developed new formats to address data motion and capacity limits:
- ZFP and ARC: ZFP is a lossy compression format for floating-point arrays. The team further developed Adaptive Rate Compression (ARC), which adjusts compression levels spatially and temporally to meet specific error tolerances.
- MAMMs: Mixed-Precision Adaptive Multilinear Meshes combine spatial adaptivity (similar to Adaptive Mesh Refinement) with precision adaptivity.
- Universal Coding: The project explored alternatives to the IEEE 754 standard, such as "posits," which can provide better dynamic range and precision for the same number of bits.
2. Mixed-Precision Algorithms
Researchers developed algorithms that can leverage lower precision to accelerate computation:
- Error Transport: The team proved that "error transport" is mathematically equivalent to a parallelizable, "unrolled" version of iterative refinement. This allows a solver to "bootstrap" high-precision results from a sequence of low-precision calculations.
- Linear Algebra Kernels: Mixed-precision variants of standard kernels, such as QR factorization, were developed to target data analysis tasks where perfect orthogonality is not required.
3. Automated Precision Tools
To facilitate the transition of legacy codebases, the project developed tools to automate precision analysis and transformation:
- Typeforge: A source-to-source tool that automates variable type changes across a codebase.
- ADAPT: Uses algorithmic differentiation to identify which variables in a program are most sensitive to precision changes.
- FloatSmith: An end-to-end toolchain that automates the recommendation and implementation of mixed-precision configurations.
Key Insights and Results
A core insight of the project is treating precision as a tunable resource, much like grid spacing or time-step size. In molecular dynamics (MD) simulations, the team used Shannon-Hartley channel capacity to identify "rare events," allowing the system to focus storage on high-precision information only when significant physical events occur. Additionally, the team modified the ZFP algorithm to eliminate systematic biases that can occur when lossy compression is applied repeatedly in chaotic systems like climate models.
Performance and Efficiency Gains
The project evaluated its methods using several LLNL "mini-apps" and benchmarks, including LULESH, Kripke, Euler2D, LAMMPS, and HPCCG. Key results include:
- Data Reduction: Using ZFP and ARC, the team demonstrated 4x to 100x reductions in data storage with acceptable error levels.
- Computational Speedup: A hardware implementation of ZFP on FPGAs delivered speedups of 15x to 200x over software-based compression. The "Error Transport" strategy yielded a 40% speedup for heat equation solvers, while automated tuning via FloatSmith achieved an 80% speedup on basic kernels like AXPY.
- Refactoring Success: The ADAPT tool helped refactor the LULESH proxy application to achieve a 20% speedup without losing accuracy.
Conclusion and Future Directions
The VPC project established that significant improvements in HPC performance—well beyond the 2x limit of traditional mixed precision—are achievable. However, challenges remain. Many novel number formats lack native hardware support, and the latency of hardware-based decompression is still being optimized. Future work will focus on maturing automated tools for complex, GPU-accelerated applications and expanding the reach of variable precision across the broader scientific computing ecosystem.
Summary updated