Skip to main content
QUICK REVIEW

[Paper Review] Faster CNNs with Direct Sparse Convolutions and Guided Pruning

Jongsoo Park, Sheng Li|arXiv (Cornell University)|Aug 4, 2016
Advanced Neural Network ApplicationsComputer Science24 references120 citations
TL;DR

The paper introduces a direct sparse convolution method with arbitrary sparsity patterns, a performance model to predict speedups, and Guided Sparsity Learning to prune networks for speed, size, and accuracy, achieving substantial speedups across platforms.

ABSTRACT

Phenomenally successful in practical inference problems, convolutional neural networks (CNN) are widely deployed in mobile devices, data centers, and even supercomputers. The number of parameters needed in CNNs, however, are often large and undesirable. Consequently, various methods have been developed to prune a CNN once it is trained. Nevertheless, the resulting CNNs offer limited benefits. While pruning the fully connected layers reduces a CNN's size considerably, it does not improve inference speed noticeably as the compute heavy parts lie in convolutions. Pruning CNNs in a way that increase inference speed often imposes specific sparsity structures, thus limiting the achievable sparsity levels. We present a method to realize simultaneously size economy and speed improvement while pruning CNNs. Paramount to our success is an efficient general sparse-with-dense matrix multiplication implementation that is applicable to convolution of feature maps with kernels of arbitrary sparsity patterns. Complementing this, we developed a performance model that predicts sweet spots of sparsity levels for different layers and on different computer architectures. Together, these two allow us to demonstrate 3.1--7.3$ imes$ convolution speedups over dense convolution in AlexNet, on Intel Atom, Xeon, and Xeon Phi processors, spanning the spectrum from mobile devices to supercomputers. We also open source our project at https://github.com/IntelLabs/SkimCaffe.

Motivation & Objective

  • Motivate reducing CNN inference time and model size beyond simple parameter pruning.
  • Develop an efficient sparse convolution that works with arbitrary sparsity patterns in kernels.
  • Create a performance model to predict speedups across architectures and guide pruning.
  • Propose Guided Sparsity Learning to target layers for speed-optimized pruning without accuracy loss.
  • Demonstrate significant speedups on AlexNet and GoogLeNet across diverse hardware.

Proposed method

  • Formulate direct sparse convolution as a sparse-matrix-dense-matrix multiplication with a virtual dense input created on-the-fly (no lowering).
  • Enable arbitrary sparsity patterns (element-wise sparsity) in convolution kernels to maximize prune potential.
  • Develop a performance model using the roofline framework to bound sparse convolution speedups and identify useful sparsity ranges.
  • Introduce Guided Sparsity Learning (GSL) that prunes layers based on predicted speedup potential, with variants like GESL and GDNS.
  • Train networks with element-wise regularization guided by the speedup model to balance accuracy, speed, and size.

Experimental results

Research questions

  • RQ1How can direct sparse convolution outperform traditional lowering-based sparse methods across various sparsity patterns?
  • RQ2What sparsity levels and layer targets maximize inference speedups while preserving accuracy?
  • RQ3Can a performance model accurately predict speedups for different architectures (Atom, Xeon, Xeon Phi) and CNN layers?
  • RQ4Does Guided Sparsity Learning effectively prune networks to achieve speedup without sacrificing accuracy?
  • RQ5What are the achievable speedups and sparsity limits in AlexNet and GoogLeNet on multiple platforms?

Key findings

  • Direct sparse convolution delivers 3.1–7.3× speedups over dense convolution in AlexNet on Atom, Xeon, and Xeon Phi processors.
  • A general performance model projects speedups and upper/lower sparsity bounds for meaningful acceleration on diverse architectures.
  • Guided Sparsity Learning (GSL) prunes networks by targeting layers with speedup potential, achieving substantial sparsity with minimal or no accuracy loss.
  • GoogLeNet can lose over 80% of parameters across conv and fc layers with no accuracy drop when guided pruning is applied.
  • On AlexNet, BDW achieves 3.4× speedup with non-zero density x = 0.09; Atom achieves 7.3× speedup at x = 0.09; KNL reaches 13.9× effective TF/s at x = 0.09.
  • The authors provide an open-source implementation at https://github.com/IntelLabs/SkimCaffe.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.