[Paper Review] Weight Pruning via Adaptive Sparsity Loss
This paper proposes a lightweight, end-to-end weight pruning framework that uses an adaptive sparsity loss to enable budget-aware, iterative pruning during training. By formulating layer-wise sparsity as a differentiable error function and integrating it into the loss via a trainable threshold, the method automatically determines optimal pruning levels per layer, achieving high compression with minimal accuracy drop on CIFAR-100 and ImageNet across ResNet, Wide ResNet, and AlexNet architectures.
Pruning neural networks has regained interest in recent years as a means to compress state-of-the-art deep neural networks and enable their deployment on resource-constrained devices. In this paper, we propose a robust compressive learning framework that efficiently prunes network parameters during training with minimal computational overhead. We incorporate fast mechanisms to prune individual layers and build upon these to automatically prune the entire network under a user-defined budget constraint. Key to our end-to-end network pruning approach is the formulation of an intuitive and easy-to-implement adaptive sparsity loss that is used to explicitly control sparsity during training, enabling efficient budget-aware optimization. Extensive experiments demonstrate the effectiveness of the proposed framework for image classification on the CIFAR and ImageNet datasets using different architectures, including AlexNet, ResNets and Wide ResNets.
Motivation & Objective
- To address the challenge of compressing deep neural networks for deployment on resource-constrained devices.
- To overcome the limitations of existing pruning methods that require multiple fine-tuning cycles or complex hyperparameter tuning.
- To develop a low-overhead, end-to-end pruning framework that integrates sparsity control directly into the training process.
- To enable automatic, layer-wise sparsity allocation under a user-defined global budget constraint.
Proposed method
- Introduces a differentiable sparsity formulation using the error function (erf) under a Gaussian weight distribution assumption, enabling gradient-based optimization of pruning thresholds.
- Employs a Straight-Through Estimator (STE) to allow backpropagation through pruned weights, enabling dynamic reactivation of previously pruned connections.
- Formulates an adaptive sparsity loss as a trainable per-layer parameter, allowing the network to automatically adjust sparsity levels to meet a global budget.
- Uses two fast magnitude-based pruning functions: one via binary search and another via confidence interval analysis to maintain target sparsity per layer.
- Combines the task loss with the adaptive sparsity loss during training, enabling joint optimization of accuracy and sparsity.
- Supports both fixed and budget-aware pruning strategies, with the latter dynamically allocating sparsity across layers based on redundancy.
Experimental results
Research questions
- RQ1Can a differentiable, adaptive sparsity loss be designed to enable end-to-end, budget-aware pruning during training without requiring multiple fine-tuning cycles?
- RQ2How effective is the proposed method in maintaining model accuracy while achieving high compression rates on standard image classification benchmarks?
- RQ3Can the method automatically determine optimal per-layer sparsity levels under a global parameter or FLOP budget?
- RQ4How does the performance of the adaptive sparsity loss compare to fixed sparsity or unconstrained pruning baselines in terms of accuracy-compression trade-offs?
Key findings
- On CIFAR-100 with WRN-16-8, the method achieved 85% overall sparsity with only a 1.2% accuracy drop compared to the dense model, demonstrating effective convergence and stability.
- On ImageNet with AlexNet, the unconstrained variant achieved 2.65M parameters (95.7% compression) with 56.62% top-1 accuracy, matching or outperforming state-of-the-art unstructured pruning methods like BA-FDNP.
- For ResNet50 on ImageNet, the adaptive budget-constrained variant achieved better accuracy than the dense ResNet18 baseline at 70% sparsity (≈7.5M parameters), showing strong compression efficiency.
- The adaptive sparsity loss enabled automatic layer-wise sparsity allocation, with higher sparsity applied to more redundant layers, improving overall compression efficiency.
- The method achieved comparable or better accuracy-compression trade-offs than SoA approaches like Ding et al. [70], except at extremely high sparsity levels where performance was similar.
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.