[Paper Review] Speeding up Convolutional Neural Networks By Exploiting the Sparsity of Rectifier Units
This paper proposes an inverse sparse convolution (ISC) algorithm that accelerates deep convolutional neural network inference on CPUs by exploiting the high sparsity of ReLU activation outputs. By skipping zero-valued neuron computations during convolution using optimized memory access patterns and SIMD instructions, the method achieves up to 7.11× speedup on LeNet and GoogLeNet layers with input sparsity ≥0.95.
Rectifier neuron units (ReLUs) have been widely used in deep convolutional networks. An ReLU converts negative values to zeros, and does not change positive values, which leads to a high sparsity of neurons. In this work, we first examine the sparsity of the outputs of ReLUs in some popular deep convolutional architectures. And then we use the sparsity property of ReLUs to accelerate the calculation of convolution by skipping calculations of zero-valued neurons. The proposed sparse convolution algorithm achieves some speedup improvements on CPUs compared to the traditional matrix-matrix multiplication algorithm for convolution when the sparsity is not less than 0.9.
Motivation & Objective
- To investigate the sparsity of ReLU activation outputs in popular deep convolutional networks during training and inference.
- To develop a CPU-optimized convolution algorithm that dynamically skips zero-valued neuron computations without modifying network architecture.
- To improve computational efficiency of convolution layers by leveraging the inherent sparsity from ReLU units.
- To demonstrate that sparsity-aware computation can yield significant speedups on general-purpose CPUs without specialized hardware.
Proposed method
- The proposed inverse sparse convolution (ISC) algorithm first identifies and skips zero-valued input elements, storing only non-zero values with their spatial coordinates.
- It reorganizes kernel weights in column-major order to enable efficient SIMD vectorization (e.g., AVX/SSE) for simultaneous multiplication with non-zero inputs.
- For each non-zero input activation, the algorithm computes partial dot products with corresponding kernel weights and accumulates results in a temporary buffer.
- The temporary output results are then transposed to produce the final output feature map, minimizing memory access overhead.
- The algorithm is designed to work directly on standard CPUs without requiring hardware modifications or framework-level retraining.
- Sparsity is exploited on-the-fly during inference, avoiding redundant multiplications and memory writes for zero-valued neurons.
Experimental results
Research questions
- RQ1What is the actual level of sparsity in ReLU outputs across popular deep convolutional networks like LeNet, AlexNet, and GoogLeNet?
- RQ2Can sparsity in ReLU outputs be effectively leveraged to accelerate convolution operations on general-purpose CPUs?
- RQ3How does the performance of a sparsity-aware convolution algorithm compare to standard GEMM-based convolution on CPUs?
- RQ4What is the maximum achievable speedup when sparsity exceeds 90%, and which network layers benefit most?
- RQ5Can the proposed method achieve significant speedups without altering network architecture or requiring specialized hardware?
Key findings
- The ISC algorithm achieves a maximum speedup of 7.11× on the Inception5b.5 layer of GoogLeNet, which has 95% input sparsity.
- On LeNet-Conv2 with 95% sparsity, the ISC method reduces computation time from 0.854 ms (GEMM) to 0.123 ms, achieving a 6.96× speedup.
- For AlexNet on ImageNet (Conv4, 90% sparsity), the ISC method reduces time from 4.874 ms to 1.660 ms, achieving a 2.94× speedup.
- On GoogLeNet layers with 90% sparsity, speedups range from 1.39× to 2.87×, demonstrating consistent but diminishing gains as sparsity decreases.
- The method shows significant performance gains on high-sparsity layers, with the highest speedups observed in deeper, wider layers like Inception5b.5 and Inception5a.1.
- The results confirm that ReLU-induced sparsity is a viable and underutilized target for accelerating DNN inference on standard CPUs.
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.