[Paper Review] PENNI: Pruned Kernel Sharing for Efficient CNN Inference
PENNI is a hardware-efficient CNN compression framework that decomposes convolutional filters into shared basis kernels and sparse coefficient matrices, enabling high model compactness and inference speedup. By applying l1-regularization and alternating fine-tuning, it achieves 97% parameter and 92% FLOP reduction on ResNet18/CIFAR10 with no accuracy drop, along with 53% latency reduction and 44% memory savings.
Although state-of-the-art (SOTA) CNNs achieve outstanding performance on various tasks, their high computation demand and massive number of parameters make it difficult to deploy these SOTA CNNs onto resource-constrained devices. Previous works on CNN acceleration utilize low-rank approximation of the original convolution layers to reduce computation cost. However, these methods are very difficult to conduct upon sparse models, which limits execution speedup since redundancies within the CNN model are not fully exploited. We argue that kernel granularity decomposition can be conducted with low-rank assumption while exploiting the redundancy within the remaining compact coefficients. Based on this observation, we propose PENNI, a CNN model compression framework that is able to achieve model compactness and hardware efficiency simultaneously by (1) implementing kernel sharing in convolution layers via a small number of basis kernels and (2) alternately adjusting bases and coefficients with sparse constraints. Experiments show that we can prune 97% parameters and 92% FLOPs on ResNet18 CIFAR10 with no accuracy loss, and achieve 44% reduction in run-time memory consumption and a 53% reduction in inference latency.
Motivation & Objective
- Address the inefficiency of sparse CNN models on resource-constrained devices despite high sparsity from pruning.
- Overcome the limitation of existing low-rank approximation methods that fail to exploit redundancies in sparse models.
- Enable hardware-friendly inference by structuring model sparsity through basis kernel sharing and coefficient sparsity.
- Achieve high compression and speedup without modifying inference algorithms or hardware.
- Simultaneously optimize model compactness and hardware efficiency through structured sparsity and model shrinking.
Proposed method
- Decompose convolutional filters into a small set of shared basis kernels and corresponding coefficient matrices via low-rank approximation.
- Apply l1-regularization to the coefficient matrices during retraining to induce structured sparsity.
- Use an alternating fine-tuning strategy to jointly optimize basis kernels and coefficients, improving sparsity and accuracy.
- Implement model shrinking by removing redundant channels in layers, guided by the sparsity of coefficient matrices.
- Reorganize convolution computation into two stages: basis kernel convolutions and weighted sum computation, enabling efficient hardware execution.
- Separate basis kernel operations from coefficient-weighted summation to expose and exploit coefficient sparsity, avoiding zero-computations.
Experimental results
Research questions
- RQ1Can kernel sharing via basis kernels and sparse coefficients enable both high model compression and hardware efficiency in CNNs?
- RQ2How effective is l1-regularization on coefficient matrices in achieving structured sparsity without degrading accuracy?
- RQ3To what extent can model shrinking exploit structural redundancies in pruned CNNs to further reduce FLOPs and memory?
- RQ4Can the proposed decomposition and computation reorganization achieve inference speedup without altering inference algorithms or hardware?
- RQ5How does the number of basis kernels affect the trade-off between compression, FLOPs, and accuracy?
Key findings
- On ResNet18/CIFAR10, PENNI achieves 97% parameter reduction and 92% FLOP reduction with no accuracy loss.
- Inference latency is reduced by 53% on CPU and 2.2× on GPU, with 44% reduction in peak memory consumption.
- On VGG16/CIFAR10, PENNI reduces parameters by 94.5% and FLOPs by 76.9% with only 0.2% accuracy drop.
- On ImageNet, PENNI achieves 87.3% parameter reduction and 94.7% FLOP reduction with 2.4% top-1 accuracy loss.
- The method enables 1.5× to 2.2× latency reduction on CPU and GPU platforms without modifying inference software or hardware.
- With relaxed regularization, 81.23% of FLOPs can be pruned with only 0.5% accuracy loss, outperforming channel pruning methods in compression efficiency.
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.