Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Numerical Representations for Deep Neural Networks

Parker Hill, Babak Zamirai|arXiv (Cornell University)|Aug 7, 2018
Numerical Methods and AlgorithmsComputer Science16 references7 citations
TL;DR

This paper proposes a novel method to efficiently explore custom-precision floating-point and fixed-point representations for deep neural network (DNN) inference, achieving an average 7.6× speedup with under 1% accuracy loss on production-grade models like GoogLeNet and VGG. It introduces a fast search technique using last-layer activations to predict accuracy, enabling rapid identification of optimal precision configurations without exhaustive evaluation.

ABSTRACT

With ever-increasing computational demand for deep learning, it is critical to investigate the implications of the numeric representation and precision of DNN model weights and activations on computational efficiency. In this work, we explore unconventional narrow-precision floating-point representations as it relates to inference accuracy and efficiency to steer the improved design of future DNN platforms. We show that inference using these custom numeric representations on production-grade DNNs, including GoogLeNet and VGG, achieves an average speedup of 7.6x with less than 1% degradation in inference accuracy relative to a state-of-the-art baseline platform representing the most sophisticated hardware using single-precision floating point. To facilitate the use of such customized precision, we also present a novel technique that drastically reduces the time required to derive the optimal precision configuration.

Motivation & Objective

  • To address the critical gap in understanding how numerical precision affects large-scale DNN inference efficiency and accuracy.
  • To challenge the assumption that small-network findings generalize to production-grade DNNs like GoogLeNet and VGG.
  • To develop a fast, scalable method for identifying optimal custom-precision configurations without exhaustive search.
  • To demonstrate that floating-point representations outperform fixed-point for large models, requiring significantly less bit-width for equivalent accuracy.
  • To enable future DNN hardware platforms to achieve higher performance and energy efficiency through precision-aware design.

Proposed method

  • The authors introduce a predictive model that uses activations from the last layer of a DNN to estimate accuracy under various precision configurations, reducing the need for full inference runs.
  • The model is trained using cross-validation across multiple DNNs (e.g., LeNet, CIFARNET) to ensure generalization across architectures.
  • A two-step refinement process evaluates only two precision configurations per search, achieving results equivalent to exhaustive search but 170× faster.
  • The method dynamically adjusts precision settings based on predicted accuracy, ensuring the target accuracy (e.g., 99%) is met with minimal performance loss.
  • The technique is validated on large DNNs including GoogLeNet and VGG, with speedup measured on a custom accelerator fabric.
  • Floating-point and fixed-point representations are systematically evaluated across a wide design space, with bit-widths for mantissa and exponent or integer/fractional parts tuned for optimal trade-offs.

Experimental results

Research questions

  • RQ1Does the precision requirement for DNN inference generalize across different network architectures, especially from small to large models?
  • RQ2How do fixed-point and floating-point representations compare in terms of accuracy and efficiency when applied to large-scale DNNs like GoogLeNet and VGG?
  • RQ3Can a fast, predictive model based on last-layer activations accurately identify optimal precision configurations without full inference evaluation?
  • RQ4What is the minimal precision required for fixed-point and floating-point representations to maintain high inference accuracy on production-grade DNNs?
  • RQ5To what extent can custom-precision designs improve inference speed without sacrificing accuracy?

Key findings

  • GoogLeNet requires over 40 bits in fixed-point representation for acceptable accuracy, significantly more than previously assumed from small-network studies.
  • A 17-bit floating-point representation achieves comparable accuracy to single-precision floating point, while requiring less hardware area and power.
  • The proposed search method achieves results equivalent to exhaustive search but reduces search time by 170×, evaluating only two configurations per search.
  • The average inference speedup across GoogLeNet, VGG, and other large DNNs is 7.6× with less than 1% accuracy degradation.
  • Floating-point representations are more efficient than fixed-point for large models, as they require fewer bits to maintain accuracy.
  • The predictive model achieves a correlation of 0.96 with actual accuracy, enabling reliable precision configuration selection with minimal computational cost.

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.