Trained Rank Pruning for Efficient Deep Neural Networks

Yuhui Xu, Yuxi Li, Shuai Zhang, Wei Wen, Botao Wang +4 more
12/6/2018
cs.CV

Official code: yuhuixu1993/Trained-Rank-Pruning (44 stars, Python, last commit 2020-09-10).

Abstract

The performance of Deep Neural Networks (DNNs) keeps elevating in recent years with increasing network depth and width. To enable DNNs on edge devices like mobile phones, researchers proposed several network compression methods including pruning, quantization and factorization.

Show full abstract

Among the factorization-based approaches, low-rank approximation has been widely adopted because of its solid theoretical rationale and efficient implementations. Several previous works attempted to directly approximate a pre-trained model by low-rank decomposition; however, small approximation errors in parameters can ripple a large prediction loss. As a result, performance usually drops significantly and a sophisticated fine-tuning is required to recover accuracy. We argue that it is not optimal to separate low-rank approximation from training. Unlike previous works, this paper integrates low rank approximation and regularization into the training. We propose Trained Rank Pruning (TRP), which iterates low rank approximation and training. TRP maintains the capacity of original network while imposes low-rank constraints during training. A stochastic sub-gradient descent optimized nuclear regularization is utilized to further encourage low rank in TRP. The TRP trained network has low-rank structure in nature, and can be approximated with negligible performance loss, eliminating fine-tuning after low rank approximation. The methods are comprehensively evaluated on CIFAR-10 and ImageNet, outperforming previous compression methods using low rank approximation. Code is available: https://github.com/yuhuixu1993/Trained-Rank-Pruning

View on arXivView PDF

Code Implementations(1)

Pytorch implementation of TRP

4410Python, ShellDec 8, 20186 years ago

Similar Papers

Cite this paper

@article{xu2018trained,
  title  = {Trained Rank Pruning for Efficient Deep Neural Networks},
  author = {Yuhui Xu and Yuxi Li and Shuai Zhang and Wei Wen and Botao Wang and Yingyong Qi and Yiran Chen and Weiyao Lin and Hongkai Xiong},
  year   = {2018},
  eprint = {1812.02402},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1812.02402}
}

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/1812.02402.svg)](https://codeofpaper.com/paper/1812.02402)

Discussion