Abstract
We present FPRaker, a processing element for composing training accelerators. FPRaker processes several floating-point multiply-accumulation operations concurrently and accumulates their result into a higher precision accumulator. FPRaker boosts performance and energy efficiency during training by taking advantage of the values that naturally appear during training. Specifically, it processes the significand of the operands of each multiply-accumulate as a series of signed powers of two. The conversion to this form is done on-the-fly. This exposes ineffectual work that can be skipped: values when encoded have few terms and some of them can be discarded as they would fall outside the range of the accumulator given the limited precision of floating-point. We demonstrate that FPRaker can be used to compose an accelerator for training and that it can improve performance and energy efficiency compared to using conventional floating-point units under ISO-compute area constraints. We also demonstrate that FPRaker delivers additional benefits when training incorporates pruning and quantization. Finally, we show that FPRaker naturally amplifies performance with training methods that use a different precision per layer.
Introduction
Deep learning training is notoriously expensive, often requiring weeks of compute time and significant financial investment. While many hardware accelerators exist for inference, they typically rely on fixed-point arithmetic and simple zero-skipping. Training, however, requires the high dynamic range of floating-point formats (like FP32 or bfloat16) to handle gradients that vary wildly in scale.
Standard floating-point units are "bit-parallel," performing the same amount of work regardless of the numerical complexity of the operands. FPRaker is a novel processing element (PE) designed to address this inefficiency by exploiting "term-sparsity." By decomposing floating-point multiplications into a series of signed powers-of-two and skipping bits that are either zero or too small to affect the final result, FPRaker achieves a 1.5x speedup and 1.4x better energy efficiency compared to optimized bfloat16 hardware.
The FPRaker Architecture
The core innovation of FPRaker is a shift from traditional bit-parallel multiplication to a term-serial approach. This involves several key mechanisms:
- Term Decomposition: FPRaker converts the significand of an operand into a sum of signed powers-of-two (e.g., $1.101_2$ becomes $2^0 + 2^{-1} + 2^{-3}$). These individual components are referred to as "terms."
- Ineffectual Work Skipping:
- Bit-Sparsity: The PE skips cycles for any term that is zero.
- Out-of-Bounds (OB) Skipping: If a term is so small that it would not change the value of the high-precision accumulator given the current exponent, FPRaker discards it entirely.
- Hardware Efficiency: To maintain a small silicon footprint, exponent processing units are shared between multiple PEs. This design allows for nearly 4.5x more PEs in the same area as a standard bfloat16 baseline, leveraging massive parallelism to overcome the serial nature of individual multiplications.
Exploiting Universal Term-Sparsity
A critical insight of this work is that while "value sparsity" (actual zeros) is often limited to activations, "term-sparsity" (zero bits within the significand) is prevalent across weights, activations, and gradients in all models. The authors found that over 85% of potential bit-level work is ineffectual during training.
By treating the accumulator as a filter, FPRaker turns the mathematical limitation of floating-point precision into a hardware feature, skipping the computation of bits that are numerically insignificant.
Performance Evaluation
The authors evaluated FPRaker across a diverse suite of models, including SqueezeNet, VGG16, ResNet, SNLI, and Bert. The results demonstrate significant gains across various tasks such as image classification, natural language inference, and object detection.
Key Results
- System-Level Speedup: On average, FPRaker is 1.5x faster than an optimized bit-parallel bfloat16 baseline under ISO-area constraints.
- Energy Efficiency: The design is 1.4x more energy-efficient overall.
- Synergy with Quantization: For models using training-time quantization (e.g., ResNet18-Q), the speedup increases to 2.04x due to the reduced number of non-zero bits.
- Numerical Integrity: Training with FPRaker is numerically identical to standard bfloat16 training, ensuring no loss in model accuracy.
Limitations and Future Work
Despite its advantages, FPRaker faces challenges with load imbalance. If one lane in a PE processes a "complex" number with many non-zero bits, other lanes may sit idle, leading to approximately 32.8% underutilization. Future research will explore different dataflow strategies (e.g., weight-stationary vs. output-stationary) and more advanced synchronization methods to mitigate this bottleneck.
Summary updated