[Paper Review] PCONV: The Missing but Desirable Sparsity in DNN Weight Pruning for Real-time Execution on Mobile Devices
PCONV introduces a novel sparsity dimension in DNN weight pruning that combines fine-grained intra-kernel patterns with coarse-grained inter-kernel connectivity pruning, enabling high accuracy and hardware efficiency. The proposed compiler-assisted inference framework achieves up to 39.2× speedup on mobile GPUs with no accuracy loss, enabling real-time inference on large models like VGG-16.
Model compression techniques on Deep Neural Network (DNN) have been widely acknowledged as an effective way to achieve acceleration on a variety of platforms, and DNN weight pruning is a straightforward and effective method. There are currently two mainstreams of pruning methods representing two extremes of pruning regularity: non-structured, fine-grained pruning can achieve high sparsity and accuracy, but is not hardware friendly; structured, coarse-grained pruning exploits hardware-efficient structures in pruning, but suffers from accuracy drop when the pruning rate is high. In this paper, we introduce PCONV, comprising a new sparsity dimension, -- fine-grained pruning patterns inside the coarse-grained structures. PCONV comprises two types of sparsities, Sparse Convolution Patterns (SCP) which is generated from intra-convolution kernel pruning and connectivity sparsity generated from inter-convolution kernel pruning. Essentially, SCP enhances accuracy due to its special vision properties, and connectivity sparsity increases pruning rate while maintaining balanced workload on filter computation. To deploy PCONV, we develop a novel compiler-assisted DNN inference framework and execute PCONV models in real-time without accuracy compromise, which cannot be achieved in prior work. Our experimental results show that, PCONV outperforms three state-of-art end-to-end DNN frameworks, TensorFlow-Lite, TVM, and Alibaba Mobile Neural Network with speedup up to 39.2x, 11.4x, and 6.3x, respectively, with no accuracy loss. Mobile devices can achieve real-time inference on large-scale DNNs.
Motivation & Objective
- Address the gap between high-accuracy non-structured pruning and hardware-efficient structured pruning by introducing a new sparsity dimension.
- Overcome the limitations of existing pruning methods that either sacrifice accuracy (structured) or hardware compatibility (non-structured).
- Enable real-time DNN inference on mobile platforms by combining algorithmic innovation with a specialized compiler stack.
- Develop a unified optimization framework that fully exploits the new sparsity structure for maximum performance on mobile CPUs and GPUs.
Proposed method
- Introduce Sparse Convolution Patterns (SCP) by pruning a fixed number of weights in each convolution kernel, creating regular, vision-inspired filter patterns such as Gaussian or Laplacian filters.
- Implement Connectivity Sparsity through inter-kernel pruning, removing entire input-output channel connections to reduce filter length and workload imbalance.
- Design a compiler-assisted DNN inference framework that generates optimized execution code from computational graphs, enabling fine-grained, layer-wise optimizations.
- Apply high-level, fine-grained DNN layerwise information extraction to guide code generation and workload balancing across layers.
- Use execution code generation to map PCONV models into efficient, hardware-aware kernels that exploit both intra- and inter-kernel sparsity.
- Optimize for mobile platforms by leveraging hardware features such as memory access patterns and parallelism, especially on CPUs and Adreno 640 GPUs.
Experimental results
Research questions
- RQ1Can a new sparsity dimension be designed that balances high accuracy and hardware efficiency in DNN weight pruning?
- RQ2Does combining intra-kernel pattern pruning with inter-kernel connectivity pruning yield better performance than existing structured or non-structured methods?
- RQ3Can a compiler-assisted framework fully exploit the new sparsity structure to achieve real-time inference on mobile devices?
- RQ4How does the number of distinct sparsity patterns affect model accuracy and inference speed?
- RQ5What is the maximum performance gain achievable with the proposed PCONV framework compared to state-of-the-art mobile inference frameworks?
Key findings
- PCONV achieves up to 39.2× speedup over TensorFlow-Lite on mobile GPU for VGG-16, with no accuracy loss.
- On mobile CPU, PCONV delivers 9.4× to 39.2× speedup over TFLite, 2.2× to 5.1× over TVM, and 1.7× to 6.3× over MNN.
- On GPU, PCONV achieves 2.2× to 18.0× speedup over TFLite, 2.5× to 11.4× over TVM, and 1.5× to 5.8× over MNN.
- For VGG-16 on ImageNet, PCONV completes inference in 19.1ms on GPU, achieving 52.4 frames per second, meeting real-time requirements.
- PCONV outperforms MNN in both CPU and GPU GFLOPS performance across 9 layer types in VGG-16, demonstrating higher throughput.
- Pattern counts have minimal impact on accuracy when using designed SCPs—accuracy loss is negligible (≤0.3%)—but performance degrades significantly with random patterns.
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.