[Paper Review] Automatic Neural Network Compression by Sparsity-Quantization Joint Learning: A Constrained Optimization-based Approach
This paper proposes a constrained optimization-based framework for end-to-end automatic neural network compression that jointly learns sparsity and quantization without requiring manual setting of compression ratios. By formulating the problem as a sparse-quantized model size constraint and solving it via ADMM, the method achieves up to 836× compression on ResNet-50 with no accuracy drop on CIFAR-10 and 205× on AlexNet with no accuracy loss on ImageNet.
Deep Neural Networks (DNNs) are applied in a wide range of usecases. There is an increased demand for deploying DNNs on devices that do not have abundant resources such as memory and computation units. Recently, network compression through a variety of techniques such as pruning and quantization have been proposed to reduce the resource requirement. A key parameter that all existing compression techniques are sensitive to is the compression ratio (e.g., pruning sparsity, quantization bitwidth) of each layer. Traditional solutions treat the compression ratios of each layer as hyper-parameters, and tune them using human heuristic. Recent researchers start using black-box hyper-parameter optimizations, but they will introduce new hyper-parameters and have efficiency issue. In this paper, we propose a framework to jointly prune and quantize the DNNs automatically according to a target model size without using any hyper-parameters to manually set the compression ratio for each layer. In the experiments, we show that our framework can compress the weights data of ResNet-50 to be 836$ imes$ smaller without accuracy loss on CIFAR-10, and compress AlexNet to be 205$ imes$ smaller without accuracy loss on ImageNet classification.
Motivation & Objective
- To eliminate manual hyper-parameter tuning of layer-wise compression ratios in DNN pruning and quantization.
- To enable end-to-end joint optimization of sparsity and quantization bitwidth without introducing new hyper-parameters.
- To achieve high compression ratios under a user-defined model size budget while preserving model accuracy.
- To provide a stable, efficient alternative to black-box optimization methods like RL or Bayesian optimization.
- To automatically allocate optimal compression ratios per layer based on model structure and data sensitivity.
Proposed method
- Formulates DNN compression as a constrained optimization problem with a hard model size constraint.
- Introduces a 'soft duplicate' weight variable to decouple the original weights from their compressed counterparts.
- Uses the Alternating Direction Method of Multipliers (ADMM) to solve the constrained optimization problem efficiently.
- Imposes a sparse + quantized constraint on the compressed weights, ensuring both sparsity and low-bit representation.
- Employs an alternating optimization strategy to jointly update the original weights, compressed weights, and dual variables.
- Automatically determines optimal layer-wise sparsity and bitwidth through optimization, not hyper-parameter search.
Experimental results
Research questions
- RQ1Can joint pruning and quantization be automated without relying on manual or black-box hyper-parameter tuning?
- RQ2How can a constrained optimization framework be designed to simultaneously learn sparsity and quantization bitwidth for each layer?
- RQ3What is the maximum compression ratio achievable under a fixed model size budget without accuracy degradation?
- RQ4How does the proposed method allocate compression resources (sparsity and bitwidth) across layers compared to prior work?
- RQ5Can the framework achieve state-of-the-art compression performance while maintaining model accuracy?
Key findings
- The proposed method achieves 836× compression on ResNet-50 with no accuracy drop on CIFAR-10, outperforming prior automated methods.
- On AlexNet, the method achieves 205× compression with no accuracy loss on ImageNet, demonstrating strong generalization.
- The framework enables end-to-end compression without any manual tuning of compression ratios or additional hyper-parameters.
- Visualization shows the method preferentially allocates higher bitwidth to sparser layers, aligning with the intuition that sparse weights are more informative.
- The method improves upon prior work by jointly optimizing sparsity and quantization, achieving higher compression than pruning-only or quantization-only baselines.
- The ADMM-based solution converges stably and efficiently, avoiding the instability and inefficiency of black-box optimization methods.
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.