Skip to main content
QUICK REVIEW

[Paper Review] Directional Pruning of Deep Neural Networks

Shih-Kang Chao, Zhanyu Wang|arXiv (Cornell University)|Jun 16, 2020
Advanced Neural Network ApplicationsComputer Science56 references12 citations
TL;DR

This paper proposes directional pruning, a novel method that identifies sparse minimizers within the flat minimum valley of deep neural networks using a proximal gradient algorithm, enabling high sparsity (up to 92%) without retraining. The approach achieves state-of-the-art performance on ImageNet with ResNet50 while maintaining minimal computational overhead compared to SGD.

ABSTRACT

In the light of the fact that the stochastic gradient descent (SGD) often finds a flat minimum valley in the training loss, we propose a novel directional pruning method which searches for a sparse minimizer in or close to that flat region. The proposed pruning method does not require retraining or the expert knowledge on the sparsity level. To overcome the computational formidability of estimating the flat directions, we propose to use a carefully tuned $\ell_1$ proximal gradient algorithm which can provably achieve the directional pruning with a small learning rate after sufficient training. The empirical results demonstrate the promising results of our solution in highly sparse regime (92% sparsity) among many existing pruning methods on the ResNet50 with the ImageNet, while using only a slightly higher wall time and memory footprint than the SGD. Using the VGG16 and the wide ResNet 28x10 on the CIFAR-10 and CIFAR-100, we demonstrate that our solution reaches the same minima valley as the SGD, and the minima found by our solution and the SGD do not deviate in directions that impact the training loss. The code that reproduces the results of this paper is available at https://github.com/donlan2710/gRDA-Optimizer/tree/master/directional_pruning.

Motivation & Objective

  • To address the challenge of pruning deep neural networks without requiring retraining or expert-defined sparsity thresholds.
  • To identify sparse models that lie within the flat minimum valley of the loss landscape, ensuring minimal impact on training loss.
  • To develop a pruning method that leverages the local geometry of the loss function, particularly the flat directions associated with the Hessian’s small eigenvalues.
  • To achieve high sparsity (e.g., 92%) while preserving model accuracy, especially in resource-constrained deployment scenarios.
  • To minimize computational overhead by avoiding retraining and using a modified optimization scheme with provable convergence properties.

Proposed method

  • The method formulates pruning as a perturbation within the subspace of flat directions, defined as the span of the Hessian’s eigenvectors corresponding to nearly zero eigenvalues at the SGD solution.
  • It uses a proximal gradient algorithm with an ℓ₁-regularization term to iteratively shrink parameters in directions that preserve the loss, ensuring the perturbation remains within the flat region.
  • The key step involves projecting the sign vector of the trained weights onto the flat subspace, yielding a direction vector that guides pruning while minimizing loss increase.
  • The algorithm is implemented via a modified optimizer, gRDA, which incorporates soft thresholding and a small learning rate to ensure convergence to a sparse solution in the flat valley.
  • The method avoids retraining by ensuring that the pruning direction lies within the flat subspace, so the loss remains stable during the pruning process.
  • The approach is theoretically grounded: the perturbation direction is chosen to minimize the ℓ₂ distance to the sign vector of the weights, maximizing the number of parameters that can be safely pruned.

Experimental results

Research questions

  • RQ1Can we identify a sparse model that lies within the flat minimum valley of the loss landscape without retraining?
  • RQ2What is the optimal pruning direction that minimizes the increase in training loss during sparsification?
  • RQ3Can we achieve high sparsity (e.g., 92%) while maintaining model accuracy on ImageNet using ResNet50?
  • RQ4How does the computational cost of the proposed pruning method compare to standard SGD in terms of wall time and memory usage?
  • RQ5Does the pruned model reach the same minimum as SGD, and are the loss and generalization error preserved?

Key findings

  • The proposed directional pruning method achieves 92% sparsity on ResNet50 with ImageNet while maintaining test accuracy comparable to the full model, outperforming existing pruning methods in the highly sparse regime.
  • On VGG16 with CIFAR-10 and WRN28x10 with CIFAR-100, the method reaches the same minimum as SGD, with no significant deviation in loss or test error.
  • The gRDA optimizer used in the method incurs only a modest increase in wall time (about 15% slower than SGD) and minimal additional memory usage, with peak GPU memory consumption differing by less than one standard deviation between gRDA and SGD.
  • The method successfully prunes parameters in directions aligned with the flat subspace, as confirmed by the projection of the sign vector onto the Hessian’s null space, ensuring minimal loss increase.
  • Empirical results show that the pruned models maintain generalization performance, with test error curves for gRDA and SGD overlapping closely across multiple architectures and datasets.
  • The code is publicly available, enabling reproducibility and further benchmarking of the directional pruning approach.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.