[Paper Review] A Deep Neural Network Compression Pipeline: Pruning, Quantization, Huffman Encoding
This paper proposes a three-stage deep compression pipeline—pruning, quantization, and Huffman coding—that reduces neural network size by 35x to 49x with no accuracy loss. The method enables efficient deployment on embedded and mobile systems by drastically cutting model size and improving inference speed and energy efficiency on CPU, GPU, and mobile GPU platforms.
Neural networks are both computationally intensive and memory intensive, making them difficult to deploy on embedded systems with limited hardware resources. To address this limitation, we introduce deep compression, a three stage pipeline: pruning, trained quantization and Huffman coding, that work together to reduce the storage requirement of neural networks by 35x to 49x without affecting their accuracy. Our method first prunes the network by learning only the important connections. Next, we quantize the weights to enforce weight sharing, finally, we apply Huffman coding. After the first two steps we retrain the network to fine tune the remaining connections and the quantized centroids. Pruning, reduces the number of connections by 9x to 13x; Quantization then reduces the number of bits that represent each connection from 32 to 5. On the ImageNet dataset, our method reduced the storage required by AlexNet by 35x, from 240MB to 6.9MB, without loss of accuracy. Our method reduced the size of VGG-16 by 49x from 552MB to 11.3MB, again with no loss of accuracy. This allows fitting the model into on-chip SRAM cache rather than off-chip DRAM memory. Our compression method also facilitates the use of complex neural networks in mobile applications where application size and download bandwidth are constrained. Benchmarked on CPU, GPU and mobile GPU, compressed network has 3x to 4x layerwise speedup and 3x to 7x better energy efficiency.
Motivation & Objective
- Address the challenge of deploying large, computationally and memory-intensive neural networks on resource-constrained embedded and mobile systems.
- Reduce the storage footprint of deep neural networks without sacrificing model accuracy.
- Enable on-chip SRAM caching by minimizing model size, reducing reliance on slower off-chip DRAM.
- Improve inference speed and energy efficiency for mobile and edge devices.
- Facilitate deployment of complex models in bandwidth- and storage-constrained mobile applications.
Proposed method
- Apply magnitude-based pruning to remove less important connections, reducing the number of parameters by 9x to 13x.
- Apply trained quantization to map 32-bit floating-point weights to 5-bit fixed-point representations, enforcing weight sharing.
- Retrain the pruned and quantized network to fine-tune remaining connections and quantized centroids.
- Apply Huffman coding to further compress the quantized weights using entropy coding.
- Combine pruning, quantization, and Huffman coding into a unified pipeline to maximize compression efficiency.
- Optimize for deployment on CPU, GPU, and mobile GPU platforms by minimizing memory access and improving computational efficiency.
Experimental results
Research questions
- RQ1Can a combination of pruning, quantization, and entropy coding reduce neural network size by over 35x without accuracy degradation?
- RQ2To what extent can the compressed model fit into on-chip SRAM instead of off-chip DRAM?
- RQ3How does the compression pipeline affect inference speed and energy efficiency across different hardware platforms?
- RQ4Can the method be applied effectively to large models like AlexNet and VGG-16 while preserving accuracy?
- RQ5What is the trade-off between compression ratio, inference speed, and energy efficiency in mobile and embedded environments?
Key findings
- The compression pipeline reduced the storage size of AlexNet from 240MB to 6.9MB—a 35x reduction—on the ImageNet dataset with no accuracy loss.
- The method reduced the size of VGG-16 from 552MB to 11.3MB, achieving a 49x compression ratio while maintaining original accuracy.
- Compressed models achieved 3x to 4x speedup in layerwise inference on CPU, GPU, and mobile GPU platforms.
- Energy efficiency improved by 3x to 7x across the same hardware platforms due to reduced memory bandwidth and computation.
- The compressed models could be stored in on-chip SRAM instead of off-chip DRAM, reducing latency and power consumption.
- The combination of pruning, quantization, and Huffman coding enabled deployment of complex models in mobile applications with limited storage and bandwidth.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.