Skip to main content
QUICK REVIEW

[Paper Review] Training DNNs with Hybrid Block Floating Point

Mario Drumond, Tao Lin|arXiv (Cornell University)|Apr 4, 2018
Parallel Computing and Optimization TechniquesComputer Science22 references28 citations
TL;DR

This paper proposes HBFP, a hybrid block floating-point and floating-point representation for training deep neural networks, where dot products are computed in block floating-point (BFP) for hardware efficiency and other operations use full-precision floating-point to preserve accuracy. HBFP achieves FP32-level model accuracy with up to 8.5× higher throughput and 2× model compression compared to FP16, enabling high-density, energy-efficient DNN accelerators.

ABSTRACT

The wide adoption of DNNs has given birth to unrelenting computing requirements, forcing datacenter operators to adopt domain-specific accelerators to train them. These accelerators typically employ densely packed full precision floating-point arithmetic to maximize performance per area. Ongoing research efforts seek to further increase that performance density by replacing floating-point with fixed-point arithmetic. However, a significant roadblock for these attempts has been fixed point's narrow dynamic range, which is insufficient for DNN training convergence. We identify block floating point (BFP) as a promising alternative representation since it exhibits wide dynamic range and enables the majority of DNN operations to be performed with fixed-point logic. Unfortunately, BFP alone introduces several limitations that preclude its direct applicability. In this work, we introduce HBFP, a hybrid BFP-FP approach, which performs all dot products in BFP and other operations in floating point. HBFP delivers the best of both worlds: the high accuracy of floating point at the superior hardware density of fixed point. For a wide variety of models, we show that HBFP matches floating point's accuracy while enabling hardware implementations that deliver up to 8.5x higher throughput.

Motivation & Objective

  • To address the limited dynamic range and hardware inefficiency of fixed-point arithmetic in DNN training.
  • To overcome the limitations of pure block floating-point (BFP), such as exponent selection challenges and data loss from wide tensor distributions.
  • To design a hybrid representation that leverages the hardware density of fixed-point arithmetic and the accuracy of floating-point computation.
  • To enable high-throughput, low-area DNN accelerators that match FP32 accuracy while reducing memory bandwidth and model size.
  • To validate that HBFP can serve as a drop-in replacement for FP32 in diverse DNN architectures and datasets.

Proposed method

  • HBFP performs all dot products in BFP using 8- or 12-bit mantissas, while all other operations (e.g., activation, normalization) are computed in full-precision floating-point.
  • Exponent selection is performed dynamically before each dot product, enabling aggressive scaling and minimizing mantissa width requirements.
  • Tiling and wide weight storage optimizations are applied to improve BFP precision with minimal area and memory overhead.
  • Activations are stored in floating-point format, but can be compressed (e.g., using 8-bit representations or single-bit flags for ReLU) to reduce memory bandwidth.
  • An FPGA prototype is implemented using 8-bit BFP multipliers and FP32-like activation units, demonstrating high throughput and low resource usage.
  • The design is evaluated across image classification and language modeling tasks using ResNet, WideResNet, DenseNet, and LSTM models.

Experimental results

Research questions

  • RQ1Can a hybrid BFP-FP representation achieve FP32-level accuracy in DNN training while enabling significantly higher hardware throughput?
  • RQ2How can dynamic exponent selection in BFP mitigate data loss and improve convergence for narrow mantissa widths?
  • RQ3To what extent can BFP be used selectively for dot products while preserving model accuracy when other operations remain in FP32?
  • RQ4What are the hardware efficiency gains in terms of area, throughput, and memory bandwidth when using HBFP instead of FP16 or FP32?
  • RQ5Can HBFP serve as a drop-in replacement for FP32 in diverse DNN architectures and datasets?

Key findings

  • HBFP with 8-bit mantissas achieves 8.5× higher throughput than an FP16-based accelerator on the same FPGA, with no performance overhead from conversion units.
  • HBFP with 12-bit mantissas matches FP32 test error on all evaluated models: 26.07% for ResNet-50 on CIFAR-100, 1.89% for ImageNet, and 61.31 perplexity for LSTM on PTB.
  • HBFP with 8-bit mantissas achieves 23.88% test error on ImageNet, within 0.24% of FP32, demonstrating near-identical accuracy with reduced precision.
  • HBFP reduces memory bandwidth by up to 4× for forward and backward passes by storing activations in narrow floating-point or compressed formats.
  • The conversion units in the FPGA prototype occupy less than 1% of resources and incur no performance penalty, enabling efficient integration.
  • HBFP enables model compression by up to 2×, reducing on-chip memory capacity and off-chip bandwidth requirements for distributed training.

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.