Skip to main content
QUICK REVIEW

[Paper Review] Deep Convolutional Neural Network Inference with Floating-point Weights and Fixed-point Activations

Liangzhen Lai, Naveen Suda|arXiv (Cornell University)|Mar 8, 2017
Advanced Neural Network ApplicationsComputer Science20 references84 citations
TL;DR

This paper proposes using floating-point weights and fixed-point activations for CNN inference to reduce weight storage and hardware multiplier power, with empirical results on AlexNet, SqueezeNet, GoogLeNet, and VGG-16.

ABSTRACT

Deep convolutional neural network (CNN) inference requires significant amount of memory and computation, which limits its deployment on embedded devices. To alleviate these problems to some extent, prior research utilize low precision fixed-point numbers to represent the CNN weights and activations. However, the minimum required data precision of fixed-point weights varies across different networks and also across different layers of the same network. In this work, we propose using floating-point numbers for representing the weights and fixed-point numbers for representing the activations. We show that using floating-point representation for weights is more efficient than fixed-point representation for the same bit-width and demonstrate it on popular large-scale CNNs such as AlexNet, SqueezeNet, GoogLeNet and VGG-16. We also show that such a representation scheme enables compact hardware multiply-and-accumulate (MAC) unit design. Experimental results show that the proposed scheme reduces the weight storage by up to 36% and power consumption of the hardware multiplier by up to 50%.

Motivation & Objective

  • Motivate reducing memory and compute for CNN inference on embedded devices.
  • Investigate a mixed number representation scheme (floating-point weights, fixed-point activations) for efficiency.
  • Demonstrate the range/accuracy trade-offs of fixed-point vs floating-point weights across popular CNNs.
  • Show hardware implications and potential area/power benefits of the proposed scheme.

Proposed method

  • Quantize pre-trained CNN weights to floating-point and activations to fixed-point within a Caffe-based pipeline.
  • Evaluate network accuracy across AlexNet, SqueezeNet, GoogLeNet, and VGG-16 under varying weight representations.
  • Analyze the role of representation range versus precision in determining inference accuracy.
  • Propose a hardware-friendly data path where one floating-point and one fixed-point operand are used in MAC operations.

Experimental results

Research questions

  • RQ1How does representing CNN weights with floating-point numbers and activations with fixed-point numbers affect inference accuracy across major architectures?
  • RQ2Is representation range the dominant factor in accuracy loss when using low-precision weights, and can floating-point weights provide a more consistent range across networks?
  • RQ3What are the potential hardware area and power benefits of mixed floating-point/fixed-point MAC units for CNN inference?
  • RQ4Can a fixed-point activation format achieve comparable accuracy to fixed-point weights across the studied networks while enabling efficient hardware implementation?

Key findings

  • Weights represented in floating-point can achieve similar or better range/accuracy trade-offs than fixed-point at the same bit-width across multiple networks.
  • The proposed scheme reduces weight storage by up to 36% and the multiplier power by up to 50% in hardware implementations.
  • Fixed-point activation with floating-point weights provides a hardware-friendly multiply-accumulate path.
  • Floating-point weights with modest exponent (e.g., 4-bit) can deliver near-full accuracy for several networks, while fixed-point weight ranges require more bits to reach similar accuracy.
  • Accuracy behavior is more strongly tied to representation range (exponent) than to mantissa precision in many cases.

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.