Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding

Song Han, Huizi Mao, William J. Dally
10/1/2015
10,810 citations
cs.CVcs.NE

No official code found. Best implementation: mightydeveloper/Deep-Compression-PyTorch (429 stars). 4 more below.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(5)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
mightydeveloper/Deep-Compression-PyTorchCommunity429–––
ciodar/deep-compressionCommunity35Jupyter NotebookMIT2024-12-17
xinyaoliu/Deep-Compression-for-Neural-NetworksCommunity16–––
yangbingjie/DeepCompression-PyTorchCommunity9–––
guanghaoyin/Deep_Compression_Conv_LinearCommunity4–––

PyTorch implementation of 'Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding' by Song Han, Huizi Mao, William J. Dally

429114
MIT

PyTorch Lightning implementation of the paper Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding. This repository allows to reproduce the main findings of the paper on MNIST and Imagenette datasets.

354Jupyter Notebook, PythonApr 7, 20231 years agoMIT
deep-learningmodel-compressionpruningvector-quantization

Deep Compression: Compressing Deep Neural Networks With Pruning, Trained Quantization And Huffman Coding

165

PyTorch implementation of 'Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding' by Song Han, Huizi Mao, William J. Dally

92

Improved PyTorch implementation of "https://github.com/mightydeveloper/Deep-Compression-PyTorch" for 'Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding' by Song Han, Huizi Mao, William J. Dally

43

Similar Papers

Cite this paper

@article{han2015deep,
  title  = {Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding},
  author = {Song Han and Huizi Mao and William J. Dally},
  year   = {2015},
  eprint = {1510.00149},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1510.00149}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1510.00149.svg)](https://codeofpaper.com/paper/1510.00149)

Discussion