Pre-defined Sparsity for Low-Complexity Convolutional Neural Networks

Souvik Kundu, Mahdi Nazemi, Massoud Pedram, Keith M. Chugg, Peter A. Beerel · DOI

TL;DR

This paper introduces a novel approach to create computationally efficient Convolutional Neural Networks (CNNs) by employing pre-defined, periodic sparse kernels. This method significantly reduces model parameters and FLOPs, leading to substantial energy savings, particularly for deployment on resource-constrained devices, with minimal impact on accuracy.

What Problem Does This Paper Address?

Deep Convolutional Neural Networks (CNNs) are incredibly powerful for tasks like image recognition, but their computational demands (millions of weights, billions of FLOPs) make them impractical for energy-constrained platforms like embedded systems and IoT devices. The high energy cost, especially from accessing off-chip DRAM, is a major bottleneck. While techniques like pruning and quantization exist, unstructured sparsity can introduce overhead that negates energy savings. This paper aims to address this by developing a structured sparsity approach that is hardware-friendly and demonstrably reduces energy consumption without sacrificing accuracy.

Methods

The core innovation is the introduction of pre-defined sparse 2D kernels with periodic support sets. This means that the pattern of non-zero weights within a kernel is not arbitrary but repeats in a structured way, both within a single kernel and across multiple kernels in a 3D filter. This periodicity is key to reducing the overhead associated with managing sparse data.

The authors propose:

  • Pre-defined Sparse Kernels (pSConv): Kernels where a fixed subset of weights are set to zero before training and remain zero throughout. The "kernel support size" (KSS) defines how many weights are allowed to be non-zero.
  • Periodic Sparse Kernel Patterns: To mitigate the storage overhead of managing sparse patterns, the same sparsity patterns (kernel variants) are repeated across filters with a defined period (P). This allows for efficient storage using formats like CSR/CSC with periodic extensions (CSRP/CSCP).
  • Boosting Accuracy with FC Kernels: To counteract potential accuracy degradation from strict sparsity, they introduce a method to periodically insert dense, fully-connected (FC) kernels within the sparse kernel sequence. This "boosting" helps maintain accuracy, especially for very low KSS values.

Datasets

The authors evaluated their proposed methods on two widely used image classification datasets:

  • CIFAR-10: A dataset of 60,000 32x32 color images in 10 classes.
  • Tiny ImageNet: A smaller subset of ImageNet, with 64x64 color images and 200 classes.

Key Insights and Ideas

  • Structured Sparsity is Key for Energy Savings: Unlike unstructured sparsity, which can incur significant management overhead, structured and periodic sparsity directly translates to reduced DRAM access and thus lower energy consumption.
  • Periodicity is a Game-Changer for Storage: Repeating sparsity patterns significantly reduces the need for auxiliary storage (like row/column indices), making sparse representations much more practical.
  • Boosting Recovers Accuracy at Low Sparsity: The periodic insertion of dense kernels is a clever way to recover accuracy lost due to aggressive sparsity, especially when KSS is very low. This highlights a flexible trade-off between sparsity, computational cost, and accuracy.
  • Hardware-Friendly Design: The periodic nature of the sparsity is designed to be compatible with existing hardware architectures, potentially requiring only minor modifications to controllers or PEs.

Key Results

The proposed pSConv approach demonstrated significant improvements:

  • Parameter Reduction: Achieved up to ~82% fewer model parameters for ResNet18 on CIFAR-10 and up to ~83.3% fewer parameters for VGG16 on Tiny ImageNet compared to baseline models.
  • FLOP Reduction: Showed 5.6x fewer FLOPs for ResNet18 on CIFAR-10 and 5.8x fewer FLOPs for VGG16 on Tiny ImageNet.
  • Accuracy: Maintained negligible loss in accuracy for ResNet18 on CIFAR-10. For VGG16 on Tiny ImageNet, the drop was only ~1.2% (top-5) / ~2.1% (top-1).
  • Comparison with State-of-the-Art: Outperformed ShuffleNet and MobileNetV2 by an average of ~2.8% accuracy with similar FLOPs and hyperparameters.
  • Storage Savings: Periodic sparse formats (CSRP/CSCP) offered significant storage reduction, with CSRP reducing overall parameter count by up to 70% compared to baseline models.
  • Boosting Effectiveness: The boosting technique improved accuracy by up to 3.2% on CIFAR-10 and 3.6% on Tiny ImageNet, particularly for models with very low KSS.

Limitations and Future Work

  • Accuracy Degradation at Low KSS: While the boosting technique helps, very aggressive sparsity (low KSS) can still lead to some accuracy degradation, though it's significantly mitigated.
  • Hardware Integration Nuances: While the approach is designed to be hardware-friendly, specific integration into accelerators might require minor modifications to control logic or PEs.
  • Theoretical Foundation: The authors note that much of their findings are empirical and suggest exploring a more theoretical basis for periodic sparsity in deep learning.
  • Exploring Other Sparse Representations: Future work could involve exploring other compressed sparse representations and their hardware support.
  • More Complex Boosting: While the paper focused on inserting one FC kernel per period (η=1), exploring larger values of η could be beneficial.

Summary updated

BibTeX
@article{kundu2020pre,
  author = {Souvik Kundu and Mahdi Nazemi and Massoud Pedram and Keith M. Chugg and Peter A. Beerel},
  title = {{Pre-defined Sparsity for Low-Complexity Convolutional Neural Networks}},
  journal = {IEEE Trans. Computers},
  year = {2020},
  doi = {10.1109/tc.2020.2972520},
}
Figure