Layer-adaptive Structured Pruning Guided by Latency

Siyuan Pan, Linna Zhang, Jie Zhang, Xiaoshuang Li, Liang Hou +1 more
5/23/2023
cs.CVcs.AIcs.LG
quantization-pruning

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Structured pruning can simplify network architecture and improve inference speed. Combined with the underlying hardware and inference engine in which the final model is deployed, better results can be obtained by using latency collaborative loss function to guide network pruning together.

Show full abstract

Existing pruning methods that optimize latency have demonstrated leading performance, however, they often overlook the hardware features and connection in the network. To address this problem, we propose a global importance score SP-LAMP(Structured Pruning Layer-Adaptive Magnitude-based Pruning) by deriving a global importance score LAMP from unstructured pruning to structured pruning. In SP-LAMP, each layer includes a filter with an SP-LAMP score of 1, and the remaining filters are grouped. We utilize a group knapsack solver to maximize the SP-LAMP score under latency constraints. In addition, we improve the strategy of collect the latency to make it more accurate. In particular, for ResNet50/ResNet18 on ImageNet and CIFAR10, SP-LAMP is 1.28x/8.45x faster with +1.7%/-1.57% top-1 accuracy changed, respectively. Experimental results in ResNet56 on CIFAR10 demonstrate that our algorithm achieves lower latency compared to alternative approaches while ensuring accuracy and FLOPs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{pan2023layeradaptive,
  title  = {Layer-adaptive Structured Pruning Guided by Latency},
  author = {Siyuan Pan and Linna Zhang and Jie Zhang and Xiaoshuang Li and Liang Hou and Xiaobing Tu},
  year   = {2023},
  eprint = {2305.14403},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.14403v1}
}

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

Discussion