[Paper Review] Differentiable Pruning Method for Neural Networks.
This paper proposes a differentiable pruning method for neural networks using trainable gate functions to enable gradient-based optimization of discrete sparsity metrics like FLOPs and parameter count. By attaching learnable gates to channel outputs and fine-tuning via standard backpropagation, the method automatically identifies optimal channel subsets, achieving 50% FLOP reduction in ResNet-56 on CIFAR-10 with no accuracy drop.
Architecture optimization is a promising technique to find an efficient neural network to meet certain requirements, which is usually a problem of selections. This paper introduces a concept of a trainable gate function and proposes a channel pruning method which finds automatically the optimal combination of channels using a simple gradient descent training procedure. The trainable gate function, which confers a differentiable property to discrete-valued variables, allows us to directly optimize loss functions that include discrete values such as the number of parameters or FLOPs that are generally non-differentiable. Channel pruning can be applied simply by appending trainable gate functions to each intermediate output tensor followed by fine-tuning the overall model, using any gradient-based training methods. Our experiments show that the proposed method can achieve better compression results on various models. For instance, our proposed method compresses ResNet-56 on CIFAR-10 dataset by half in terms of the number of FLOPs without accuracy drop.
Motivation & Objective
- To address the challenge of optimizing discrete architectural choices such as channel count in neural networks, which are typically non-differentiable and hard to optimize with gradient descent.
- To enable end-to-end training of neural networks with differentiable approximations of discrete sparsity metrics like FLOPs and parameter count.
- To develop a simple, plug-and-play channel pruning method that requires no architectural redesign or complex search procedures.
- To achieve high model compression ratios while preserving model accuracy through gradient-based optimization of channel importance.
Proposed method
- Introduces a trainable gate function that assigns a learnable scalar weight to each channel, enabling differentiable control over channel presence.
- Applies the gate function to each intermediate feature map output, allowing the network to learn which channels to retain or prune during training.
- Uses standard backpropagation to jointly optimize the network weights and gate values, enabling gradient descent to minimize the loss while considering FLOPs and parameter count.
- Employs a differentiable relaxation of discrete channel selection, allowing the use of continuous gradients even though the final pruning decision is discrete.
- Fine-tunes the entire model with the gate functions attached, using standard optimization methods to identify optimal channel combinations.
- Applies pruning after training by setting gates below a threshold to zero, effectively removing corresponding channels.
Experimental results
Research questions
- RQ1Can we optimize discrete architectural hyperparameters like channel count using gradient-based methods by making them differentiable?
- RQ2How effective is a trainable gate function in enabling end-to-end training for channel pruning with minimal accuracy degradation?
- RQ3Can the proposed method achieve significant compression in FLOPs and parameters without performance drop on standard benchmarks?
- RQ4How does the method compare to existing pruning techniques in terms of compression ratio and accuracy retention?
Key findings
- The proposed method achieves a 50% reduction in FLOPs for ResNet-56 on the CIFAR-10 dataset with no drop in accuracy.
- The method enables automatic and efficient channel pruning through end-to-end training with standard optimization procedures.
- The use of trainable gate functions allows differentiable optimization of non-differentiable metrics such as FLOPs and parameter count.
- The approach is simple and generalizable, requiring only the addition of gate functions to intermediate layers and standard fine-tuning.
- The method outperforms baseline pruning techniques in terms of compression efficiency while maintaining model accuracy.
- The trained gate functions effectively identify and suppress redundant channels, leading to compact yet accurate models.
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.