[Paper Review] DHP: Differentiable Meta Pruning via HyperNetworks
This paper proposes DHP, a differentiable meta-pruning method that uses hypernetworks to automatically prune neural networks by learning sparse latent vectors controlling channel sparsity. By applying ℓ₁ regularization and proximal gradient optimization to these latent vectors, the method achieves end-to-end, differentiable pruning that outperforms baseline models in accuracy while reducing FLOPs and parameters across image classification, super-resolution, and denoising tasks.
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. 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.
Motivation & Objective
- To address the slow convergence of non-differentiable automatic pruning methods like reinforcement learning and evolutionary algorithms.
- To enable end-to-end, differentiable network pruning that supports automatic, layer-wise channel configuration.
- To design a hypernetwork architecture whose output size depends on the input latent vector, enabling dynamic pruning.
- To achieve consistent reduction in FLOPs and parameters through joint pruning of all layers via sparse latent vectors.
- To demonstrate that automatically pruned models can surpass original models in accuracy under the same computational budget.
Proposed method
- A hypernetwork is trained to generate the weight parameters of a backbone network based on learnable latent vectors as input.
- Each latent vector controls the number of output channels in a corresponding convolutional layer, acting as a pruning handle.
- ℓ₁ sparsity regularization is applied to the latent vectors to encourage pruning, and a proximal gradient solver is used to optimize them.
- Sparsified latent vectors are passed through the hypernetwork, generating pruned weight matrices by removing corresponding channel slices.
- The entire system is trained end-to-end with backpropagation, enabling differentiable architecture search.
- The method enables joint, automatic pruning of all layers by optimizing a single set of latent vectors.
Experimental results
Research questions
- RQ1Can a differentiable, end-to-end pruning method be designed that avoids the slow convergence of reinforcement learning and evolutionary algorithms?
- RQ2Can hypernetworks be designed such that their output size depends on the input latent vector to enable dynamic, channel-level pruning?
- RQ3Does automatic, layer-wise channel configuration via sparse latent vectors lead to better model efficiency and accuracy than fixed-width architectures?
- RQ4Can the proposed method achieve consistent reductions in both FLOPs and parameters while preserving or improving accuracy?
- RQ5Does the automatic pruning mechanism result in models that outperform larger baseline models in terms of accuracy and efficiency?
Key findings
- DHP outperforms the original MobileNet with width multiplier α=1 in terms of Top-1 accuracy across all FLOPs and parameter compression ratios.
- On MobileNet, DHP models achieve higher accuracy than the baseline even at 100% FLOPs compression ratio, indicating improved efficiency.
- For image super-resolution, DHP-20 achieves PSNR of 32.85 on Set5 with only 14.10ms inference time, significantly reducing runtime while maintaining high quality.
- In image denoising, DHP-20 reduces FLOPs to 0.75G and runtime to 1.61ms on a 128×128 image, while preserving PSNR at 25.04dB on the UNet architecture.
- The method achieves consistent reductions in both FLOPs and parameters, avoiding the inefficiencies seen in methods like Group [47] that reduce FLOPs but not actual runtime.
- Visual results show that DHP-generated images are nearly indistinguishable from baseline models, confirming high perceptual quality.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.