Skip to main content
QUICK REVIEW

[Paper Review] Accelerating Convolutional Neural Networks via Activation Map Compression

Georgiadis Georgios|arXiv (Cornell University)|Dec 10, 2018
Advanced Neural Network ApplicationsComputer Science5 citations
TL;DR

This paper proposes a three-stage pipeline—sparsification, quantization, and entropy coding—that compresses activation maps in Convolutional Neural Networks to accelerate inference and reduce memory usage. By increasing sparsity in early layers and leveraging entropy coding (especially Symmetric Exponential Golomb), the method achieves up to 6× compression with minimal or no accuracy drop, accelerating Inception-V3 and MobileNet-V1 by 1.6× while improving accuracy by 0.38% and 0.54% on ImageNet and CIFAR-10 respectively.

ABSTRACT

The deep learning revolution brought us an extensive array of neural network architectures that achieve state-of-the-art performance in a wide variety of Computer Vision tasks including among others, classification, detection and segmentation. In parallel, we have also been observing an unprecedented demand in computational and memory requirements, rendering the efficient use of neural networks in low-powered devices virtually unattainable. Towards this end, we propose a three-stage compression and acceleration pipeline that sparsifies, quantizes and entropy encodes activation maps of Convolutional Neural Networks. Sparsification increases the representational power of activation maps leading to both acceleration of inference and higher model accuracy. Inception-V3 and MobileNet-V1 can be accelerated by as much as $1.6\ imes$ with an increase in accuracy of $0.38\\%$ and $0.54\\%$ on the ImageNet and CIFAR-10 datasets respectively. Quantizing and entropy coding the sparser activation maps lead to higher compression over the baseline, reducing the memory cost of the network execution. Inception-V3 and MobileNet-V1 activation maps, quantized to $16$ bits, are compressed by as much as $6\ imes$ with an increase in accuracy of $0.36\\%$ and $0.55\\%$ respectively.

Motivation & Objective

  • To address the high computational and memory demands of modern CNNs on low-powered devices such as mobile phones and autonomous vehicles.
  • To reduce memory bandwidth and power consumption by compressing activation maps, which are often larger than weight tensors in size.
  • To enable lossless or near-lossless compression of activation maps without sacrificing model accuracy.
  • To develop a pipeline that combines sparsification, quantization, and entropy coding to maximize compression and acceleration gains.
  • To demonstrate that sparsity in activation maps can be enhanced during training without accuracy degradation, improving both efficiency and representational power.

Proposed method

  • Sparsification is applied during training by introducing a learnable sparsity-inducing prior on activation maps, increasing the number of zero activations without accuracy loss.
  • The method uses a symmetric exponential Golomb (SEG) entropy code to efficiently compress sparse activation distributions, outperforming Huffman coding and exponential-Golomb coding.
  • Quantization reduces the bitwidth of activation values to 16, 12, or 8 bits, further lowering memory footprint and enabling efficient storage and transmission.
  • The pipeline is applied in three stages: first sparsifying activations, then quantizing them, and finally applying entropy coding to the resulting sparse, low-bitwidth tensors.
  • The approach is validated on Inception-V3, MobileNet-V1, ResNet-18/34, and LeNet-5 across ImageNet, CIFAR-10, and MNIST datasets.
  • Parameter selection for SEG and EG is performed on a 1,000-image validation subset to optimize compression and accuracy trade-offs.

Experimental results

Research questions

  • RQ1Can activation map sparsification be achieved during training without degrading model accuracy?
  • RQ2How effective is symmetric exponential Golomb (SEG) coding compared to other entropy coding schemes for sparse activation distributions?
  • RQ3To what extent can activation map compression reduce memory bandwidth and power consumption in low-powered hardware accelerators?
  • RQ4Can the combination of sparsification, quantization, and entropy coding achieve both high compression and high inference speed with minimal accuracy loss?
  • RQ5What is the optimal trade-off between compression gain, inference speed, and accuracy when applying the three-stage pipeline?

Key findings

  • Inception-V3 and MobileNet-V1 achieve up to 1.6× inference acceleration with 0.38% and 0.54% accuracy gains respectively, due to sparsification.
  • With 16-bit quantization and entropy coding, activation maps are compressed by up to 6×, achieving 0.36% and 0.55% accuracy improvements on ImageNet and CIFAR-10.
  • LeNet-5 achieves up to 11× compression with a 0.01% accuracy gain, while MobileNet-V1 achieves 10× compression with a 0.45% accuracy gain at 16-bit quantization.
  • The sparsification step increases compression gains by 1.1× to 2.0× over baseline models, with corresponding inference speedups of 1.2× to 2.3×.
  • Symmetric Exponential Golomb (SEG) coding outperforms Huffman coding, exponential-Golomb (EG), ZVC, and ZLIB in compression gain, especially on highly sparse distributions.
  • The method enables significant memory savings in hardware accelerators, where activation memory traffic dominates power consumption, reducing off-chip DRAM access by up to 6×.

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.