Trained Rank Pruning for Efficient Deep Neural Networks

Yuhui Xu, Yuxi Li, Shuai Zhang, Wei Wen, Botao Wang +5 more
10/9/2019
cs.CV

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

Abstract

To accelerate DNNs inference, 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 over a large prediction loss.

Show full abstract

Apparently, 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 process. We propose Trained Rank Pruning (TRP), which alternates between low rank approximation and training. TRP maintains the capacity of the original network while imposing low-rank constraints during training. A nuclear regularization optimized by stochastic sub-gradient descent is utilized to further promote low rank in TRP. Networks trained with TRP has a low-rank structure in nature, and is approximated with negligible performance loss, thus eliminating fine-tuning after low rank approximation. The proposed method is comprehensively evaluated on CIFAR-10 and ImageNet, outperforming previous compression counterparts using low rank approximation. Our code is available at: 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{xu2019trained,
  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 Wenrui Dai and Yingyong Qi and Yiran Chen and Weiyao Lin and Hongkai Xiong},
  year   = {2019},
  eprint = {1910.04576},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.04576}
}

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

Discussion