DHP: Differentiable Meta Pruning via HyperNetworks

Yawei Li, Shuhang Gu, Kai Zhang, Luc Van Gool, Radu Timofte
3/30/2020
143 citations
cs.CVcs.LGeess.IV
quantization-pruning

Official code: ofsoundof/dhp (58 stars, Python, MIT, last commit 2026-01-17).

Abstract

Network pruning has been the driving force for the acceleration of neural networks and the alleviation of model storage/transmission burden. With the advent of AutoML and neural architecture search (NAS), pruning has become topical with automatic mechanism and searching based architecture optimization.

Show full abstract

Yet, current automatic designs rely on either reinforcement learning or evolutionary algorithm. Due to the non-differentiability of those algorithms, the pruning algorithm needs a long searching stage before reaching the convergence. To circumvent this problem, this paper introduces a differentiable pruning method via hypernetworks for automatic network pruning. The specifically designed hypernetworks take latent vectors as input and generate the weight parameters of the backbone network. The latent vectors control the output channels of the convolutional layers in the backbone network and act as a handle for the pruning of the layers. By enforcing $\ell_1$ sparsity regularization to the latent vectors and utilizing proximal gradient solver, sparse latent vectors can be obtained. Passing the sparsified latent vectors through the hypernetworks, the corresponding slices of the generated weight parameters can be removed, achieving the effect of network pruning. The latent vectors of all the layers are pruned together, resulting in an automatic layer configuration. Extensive experiments are conducted on various networks for image classification, single image super-resolution, and denoising. And the experimental results validate the proposed method.

View on arXivView PDF

Code Implementations(1)

ofsoundof/dhpOfficial100%
MIT

This is the official implementation of "DHP: Differentiable Meta Pruning via HyperNetworks".

587Python, ShellMar 30, 202010 months agoMIT
differentiablehypernetworksmeta-learningnetwork-compressionpruning

Similar Papers

Cite this paper

@article{li2020dhp,
  title  = {DHP: Differentiable Meta Pruning via HyperNetworks},
  author = {Yawei Li and Shuhang Gu and Kai Zhang and Luc Van Gool and Radu Timofte},
  year   = {2020},
  eprint = {2003.13683},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.13683}
}

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

Discussion