Skip to main content
QUICK REVIEW

[Paper Review] AdaptivFloat: A Floating-point based Data Type for Resilient Deep Learning Inference

Thierry Tambe, En-Yu Yang|arXiv (Cornell University)|Sep 29, 2019
Advanced Neural Network ApplicationsComputer Science33 references23 citations
TL;DR

AdaptivFloat is a dynamic, floating-point-inspired data type that maximizes dynamic range and optimally clips values at the layer level in deep neural networks, enabling higher inference accuracy at ultra-low precision (≤8-bit). It achieves up to +0.3 BLEU score and -0.75 WER improvement over FP32 while reducing per-operation energy by 10–100% compared to integer-based accelerators, with 1.14× area efficiency and 0.9× energy efficiency gains in hardware implementations.

ABSTRACT

Conventional hardware-friendly quantization methods, such as fixed-point or integer, tend to perform poorly at very low word sizes as their shrinking dynamic ranges cannot adequately capture the wide data distributions commonly seen in sequence transduction models. We present AdaptivFloat, a floating-point inspired number representation format for deep learning that dynamically maximizes and optimally clips its available dynamic range, at a layer granularity, in order to create faithful encoding of neural network parameters. AdaptivFloat consistently produces higher inference accuracies compared to block floating-point, uniform, IEEE-like float or posit encodings at very low precision ($\leq$ 8-bit) across a diverse set of state-of-the-art neural network topologies. And notably, AdaptivFloat is seen surpassing baseline FP32 performance by up to +0.3 in BLEU score and -0.75 in word error rate at weight bit widths that are $\leq$ 8-bit. Experimental results on a deep neural network (DNN) hardware accelerator, exploiting AdaptivFloat logic in its computational datapath, demonstrate per-operation energy and area that is 0.9$ imes$ and 1.14$ imes$, respectively, that of equivalent bit width integer-based accelerator variants.

Motivation & Objective

  • To address the poor performance of fixed-point and integer quantization in deep learning models with wide weight distributions, such as Transformers and RNNs.
  • To develop a floating-point-based data type that dynamically adapts its exponent range per layer to maximize representational fidelity at low bit widths.
  • To design a hardware-efficient processing element (HFINT PE) that integrates AdaptivFloat arithmetic to achieve superior energy and area efficiency compared to integer-based alternatives.
  • To demonstrate that AdaptivFloat enables higher compute density and lower accuracy penalty than block floating-point, uniform, IEEE-like float, or posit encodings at very low precision.

Proposed method

  • AdaptivFloat uses a dynamic exponent bias adjustment per layer to maximize the available dynamic range of the number representation.
  • It applies a unique clamping strategy for denormal numbers and a customized zero assignment scheme to reduce hardware complexity.
  • The method maintains independent exponent and mantissa bits per tensor element, avoiding the precision loss common in block floating-point formats.
  • It leverages algorithm-hardware co-design by storing the adaptive exponent bias on-chip in registers for real-time adjustment during inference.
  • A hybrid float-integer (HFINT) processing element is proposed that combines floating-point computation with fixed-point post-processing to balance accuracy and hardware density.
  • The hardware is implemented using high-level synthesis (HLS) in Verilog, targeting a 16nm FinFET process with pipelined vector MAC units for high throughput.

Experimental results

Research questions

  • RQ1Can a floating-point-based data type dynamically adapt its exponent range per layer to improve accuracy in low-precision DNN inference?
  • RQ2How does AdaptivFloat compare to fixed-point, block floating-point, and non-adaptive float/posit formats in terms of inference accuracy at ≤8-bit precision?
  • RQ3What is the energy and area efficiency of an accelerator using AdaptivFloat compared to integer-based counterparts at equivalent bit widths?
  • RQ4Can the proposed HFINT processing element achieve better energy efficiency than monolithic integer PEs while maintaining high accuracy?
  • RQ5Does AdaptivFloat enable higher compute density with lower accuracy penalty than existing low-precision encoding schemes?

Key findings

  • AdaptivFloat achieves up to +0.3 BLEU score and -0.75 WER improvement over FP32 baseline at ≤8-bit weight precision, demonstrating superior accuracy in sequence-to-sequence models.
  • The HFINT PE reduces per-operation energy by 0.90× to 0.97× compared to integer-based PEs across varying vector sizes and operand bit widths.
  • The HFINT accelerator uses 1.14× more area but 0.92× less power than the integer-based accelerator, confirming improved energy efficiency.
  • At 8-bit precision, AdaptivFloat consistently outperforms block floating-point, uniform, IEEE-like float, and posit encodings in both accuracy and energy efficiency.
  • The algorithm-hardware co-design enables 100% compute time efficiency with identical latency to integer-based designs, while achieving superior PPA metrics.
  • The self-supervised nature of AdaptivFloat relies only on unlabeled weight distributions, making it broadly applicable across diverse DNN architectures without retraining.

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.