Skip to main content
QUICK REVIEW

[Paper Review] Resiliency of Deep Neural Networks under Quantization

Wonyong Sung, Sungho Shin|arXiv (Cornell University)|Nov 20, 2015
Advanced Neural Network ApplicationsComputer Science15 references146 citations
TL;DR

This paper investigates the resiliency of deep neural networks (DNNs) to extreme weight quantization using retraining, showing that highly complex DNNs can maintain high accuracy with ternary weights (+1, 0, -1) or 2-bit quantization, while simpler networks suffer significant performance degradation. The key contribution is the introduction of the effective compression ratio (ECR) to guide hardware-efficient DNN design under resource constraints.

ABSTRACT

The complexity of deep neural network algorithms for hardware implementation can be much lowered by optimizing the word-length of weights and signals. Direct quantization of floating-point weights, however, does not show good performance when the number of bits assigned is small. Retraining of quantized networks has been developed to relieve this problem. In this work, the effects of retraining are analyzed for a feedforward deep neural network (FFDNN) and a convolutional neural network (CNN). The network complexity is controlled to know their effects on the resiliency of quantized networks by retraining. The complexity of the FFDNN is controlled by varying the unit size in each hidden layer and the number of layers, while that of the CNN is done by modifying the feature map configuration. We find that the performance gap between the floating-point and the retrain-based ternary (+1, 0, -1) weight neural networks exists with a fair amount in 'complexity limited' networks, but the discrepancy almost vanishes in fully complex networks whose capability is limited by the training data, rather than by the number of connections. This research shows that highly complex DNNs have the capability of absorbing the effects of severe weight quantization through retraining, but connection limited networks are less resilient. This paper also presents the effective compression ratio to guide the trade-off between the network size and the precision when the hardware resource is limited.

Motivation & Objective

  • To understand how network complexity affects the performance gap between floating-point and quantized DNNs under low-precision weight representations.
  • To evaluate the effectiveness of retraining in recovering performance after extreme quantization (e.g., ternary or 2-bit weights).
  • To develop a metric—effective compression ratio (ECR)—that enables fair comparison between highly quantized large networks and moderately quantized smaller ones.
  • To provide design guidelines for hardware-efficient DNNs when computational and memory resources are limited.
  • To investigate whether redundancy in large DNNs allows them to absorb quantization noise better than compact networks.

Proposed method

  • Controlled experiments on a feedforward DNN (FFDNN) for phoneme recognition and a CNN for image classification using the TIMIT and CIFAR-10 datasets.
  • Vary network complexity by adjusting hidden unit size, number of layers, and feature map configurations to simulate different levels of model capacity.
  • Apply retrain-based quantization: first quantize trained floating-point weights to ternary (+1, 0, -1) or 3-bit levels, then fine-tune the network with backpropagation.
  • Define and compute the effective compression ratio (ECR) as the ratio of effective uncompressed size (32-bit floating-point equivalent) to compressed size (quantized weights).
  • Use ECR to compare trade-offs between network size and precision, identifying optimal configurations for memory efficiency.
  • Analyze performance across different quantization bit-widths (2-bit, 3-bit, 5-bit, 6-bit) and network sizes to assess resilience to quantization.

Experimental results

Research questions

  • RQ1How does network complexity influence the performance gap between floating-point and quantized DNNs?
  • RQ2To what extent can retraining recover accuracy after extreme weight quantization (e.g., ternary or 2-bit weights)?
  • RQ3What is the optimal trade-off between network size and weight precision for achieving high accuracy with minimal memory usage?
  • RQ4Can a highly quantized but large network outperform a smaller, higher-precision network in terms of memory efficiency at the same accuracy level?
  • RQ5Does the redundancy in large DNNs enhance their resilience to quantization noise compared to compact networks?

Key findings

  • The performance gap between floating-point and retrained ternary-weight DNNs nearly vanishes in large, complex networks whose accuracy is limited by training data rather than model capacity.
  • Compact networks with reduced hidden units, feature maps, or layers show a significant performance drop under quantization, indicating low resilience to precision loss.
  • After retraining, 2-bit quantization achieves the best effective compression ratio (ECR), outperforming higher-precision configurations when compared at equal accuracy.
  • For direct quantization (no retraining), 5-bit precision yields the best ECR, but retraining enables 2-bit quantization to surpass all other configurations in efficiency.
  • At the largest layer size (1,024 units), 6-bit quantization performs best after retraining, indicating diminishing returns from further increasing precision in already large models.
  • The effective compression ratio (ECR) metric successfully identifies that a larger, extremely quantized network can be more memory-efficient than a smaller, higher-precision one at the same accuracy level.

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.