NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PCNN: Pattern-based Fine-Grained Regular Pruning towards Optimizing CNN Accelerators

Zhanhong Tan, Jiebo Song, Xiaolong Ma, Sia Huat Tan, Hongyang Chen, Yuanqing Miao, Yifu Wu, Shaokai Ye, Yanzhi Wang, Dehui Li, Kaisheng Ma

Abstract

Weight pruning is a critical technique for deploying large Convolutional Neural Networks (CNNs) on resource-constrained edge devices. However, existing methods often force a trade-off between the high accuracy of irregular pruning and the hardware efficiency of regular pruning. This paper introduces PCNN, a fine-grained regular pruning method that utilizes a novel Sparsity Pattern Mask (SPM) to encode kernel-level sparsity. By co-designing a custom hardware accelerator that decodes these patterns on the fly, PCNN achieves up to 8.4× compression with minimal accuracy loss, delivering a 9× speedup in hardware with only a 3.1% memory overhead for indices.

Introduction

The deployment of massive CNNs on edge devices requires significant model compression, typically achieved through weight pruning. Currently, the field is split between two extremes:

  1. Irregular Pruning: Weights are pruned randomly, maintaining high accuracy but requiring massive memory overhead for indexing (e.g., Compressed Sparse Column format) and creating unbalanced workloads that bottleneck parallel hardware.
  2. Regular Pruning: Entire vectors or filters are pruned. While hardware-friendly, this coarse granularity often leads to significant accuracy degradation.

PCNN seeks a "sweet spot"—a pruning granularity that is regular enough to keep parallel hardware fully utilized but fine-grained enough to maintain high accuracy without excessive index overhead.

Methodology

Pattern-based CNN (PCNN)

PCNN is a 1D regular pruning method that forces every kernel in a given layer to have the exact same number of non-zero weights. This uniformity ensures that parallel Processing Elements (PEs) have identical workloads, eliminating the "straggler" problem common in sparse accelerators.

Sparsity Pattern Mask (SPM)

Instead of indexing every individual weight, PCNN uses the Sparsity Pattern Mask (SPM). A single index per kernel represents the specific geometric arrangement (pattern) of its non-zero weights. This drastically reduces the metadata footprint compared to irregular pruning architectures.

Transformation of a sparse 3x3 filter into the Sparsity Pattern Mask (SPM) format.

Pattern Distillation

A 3×3 kernel with 4 non-zero weights has 126 possible patterns. To minimize index bitwidth, the authors treat pattern selection as a Multiple Knapsack Problem (MKP). A greedy algorithm is used to distill these options down to a small set of dominant patterns (e.g., 4, 8, or 16 per layer). This restriction maintains accuracy while shrinking the index overhead.

Pattern-Aware Hardware Architecture

The authors designed a custom accelerator in a 55nm process featuring a specialized PE array. This architecture decodes the SPM on the fly, generates pointers to fetch only non-zero weights, and skips zero-activations to maximize throughput.

Hardware datapath and sparsity pointer generation logic for the PCNN accelerator.

Experimental Results

Compression and Accuracy

The method was evaluated on CIFAR-10 and ImageNet datasets:

  • CIFAR-10: VGG-16 achieved 8.4× compression with only a 0.21% accuracy drop. ResNet-18 achieved 7.3× compression with a 0.75% drop.
  • ImageNet: VGG-16 saw 1.8× compression with a 0.38% increase in accuracy, demonstrating the potential regularizing effect of the pruning.
  • Combined Pruning: Stacking PCNN with channel pruning on VGG-16 yielded a massive 34.4× compression ratio with a negligible 0.02% accuracy loss.

Hardware Efficiency

The custom 55nm chip design achieved up to a 9.0× speedup and 28.39 TOPS/W power efficiency compared to dense baselines. The pattern SRAM (storing SPM indices) is remarkably efficient, occupying only 3.1% of on-chip memory, 2.4% of chip area, and 1.9% of power consumption.

Discussion and Future Work

PCNN demonstrates that neural networks do not require total freedom in weight sparsity; restricting layers to a few dominant patterns is sufficient for maintaining performance. Furthermore, PCNN is orthogonal to coarse-grained methods, allowing for compounding compression benefits.

However, limitations remain. 1×1 convolutions, such as those in ResNet bottleneck layers, proved highly sensitive to accuracy drops and were bypassed in current experiments. Future work will focus on adapting pattern-based pruning for 1×1 filters and exploring its efficacy on newer architectures like Transformers.

Summary updated

BibTeX
@inproceedings{tan2020pcnn,
  author = {Zhanhong Tan and Jiebo Song and Xiaolong Ma and Sia Huat Tan and Hongyang Chen and Yuanqing Miao and Yifu Wu and Shaokai Ye and Yanzhi Wang and Dehui Li and Kaisheng Ma},
  title = {{PCNN: Pattern-based Fine-Grained Regular Pruning towards Optimizing CNN Accelerators}},
  booktitle = {DAC},
  year = {2020},
  url = {https://openreview.net/forum?id=XQ2ZAnBuSQ4},
}
Figure