Skip to main content
QUICK REVIEW

[Paper Review] Computation Error Analysis of Block Floating Point Arithmetic Oriented Convolution Neural Network Accelerator Design

Zhourui Song, Zhenyu Liu|arXiv (Cornell University)|Sep 22, 2017
Advanced Memory and Neural ComputingEngineering21 references6 citations
TL;DR

This paper proposes a block floating point (BFP) arithmetic-based CNN accelerator that replaces traditional floating-point operations with efficient fixed-point computation, achieving less than 0.3% accuracy loss on VGG16, ResNet-18, ResNet-50, and GoogLeNet with 8-bit mantissa without retraining. It introduces a theoretical noise-to-signal ratio (NSR) upper bound model to guide hardware design and validate accuracy under finite word-length constraints.

ABSTRACT

The heavy burdens of computation and off-chip traffic impede deploying the large scale convolution neural network on embedded platforms. As CNN is attributed to the strong endurance to computation errors, employing block floating point (BFP) arithmetics in CNN accelerators could save the hardware cost and data traffics efficiently, while maintaining the classification accuracy. In this paper, we verify the effects of word width definitions in BFP to the CNN performance without retraining. Several typical CNN models, including VGG16, ResNet-18, ResNet-50 and GoogLeNet, were tested in this paper. Experiments revealed that 8-bit mantissa, including sign bit, in BFP representation merely induced less than 0.3% accuracy loss. In addition, we investigate the computational errors in theory and develop the noise-to-signal ratio (NSR) upper bound, which provides the promising guidance for BFP based CNN engine design.

Motivation & Objective

  • To reduce computational and memory overhead in CNN accelerators for embedded platforms.
  • To enable efficient hardware implementation of large-scale CNNs using block floating point (BFP) arithmetic without retraining.
  • To analyze and model the computation errors introduced by finite-precision BFP arithmetic in CNNs.
  • To provide a theoretical NSR upper bound model for guiding the design of BFP-based CNN accelerators.
  • To validate the accuracy and efficiency of BFP representation across multiple deep CNN architectures.

Proposed method

  • Adopt block floating point (BFP) representation, where numbers in a block share a common exponent, reducing computational complexity.
  • Use 8-bit mantissa (including sign bit) in BFP format to represent activations and weights, minimizing hardware cost and data traffic.
  • Develop a theoretical noise-to-signal ratio (NSR) upper bound model to quantify and bound computation errors from finite-precision BFP arithmetic.
  • Perform experimental evaluation on VGG16, ResNet-18, ResNet-50, GoogLeNet, MNIST, and CIFAR-10 using full-precision floating-point as reference.
  • Measure experimental SNR by comparing BFP outputs to full-precision floating-point outputs across layers, validating the theoretical NSR model.
  • Assess the impact of ReLU and pooling layers on SNR, confirming that ReLU does not degrade SNR and pooling preserves signal energy distribution.

Experimental results

Research questions

  • RQ1What is the maximum accuracy degradation when using 8-bit mantissa in BFP representation for large-scale CNNs without retraining?
  • RQ2How accurately can a theoretical NSR upper bound model predict the actual signal-to-noise ratio in BFP-based CNN inference?
  • RQ3To what extent do ReLU and pooling layers affect the SNR in BFP arithmetic, and are their impacts consistent with theoretical assumptions?
  • RQ4Can BFP representation maintain high accuracy across diverse CNN architectures such as VGG16, ResNet, and GoogLeNet with minimal hardware overhead?
  • RQ5How does the energy distribution of feature maps influence the SNR in BFP arithmetic, particularly in early layers?

Key findings

  • Using 8-bit mantissa in BFP representation results in less than 0.3% accuracy loss across VGG16, ResNet-18, ResNet-50, and GoogLeNet without retraining.
  • The theoretical NSR upper bound model shows a maximum deviation of less than 8.9 dB from experimental results, validating its accuracy for hardware design.
  • ReLU layers preserve SNR, indicating that output distributions remain symmetric and well-preserved under BFP quantization.
  • Pooling layers maintain signal energy distribution as assumed in the model, confirming the robustness of the theoretical SNR analysis.
  • Layer-specific energy distribution analysis shows that layer 'conv1_2' has the most concentrated energy at high magnitudes, indicating stronger correlation and higher sensitivity to quantization.
  • The proposed BFP-based accelerator significantly reduces hardware complexity and off-chip data traffic by replacing floating-point operations with fixed-point arithmetic.

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.