Skip to main content
QUICK REVIEW

[Paper Review] SparCE: Sparsity aware General Purpose Core Extensions to Accelerate Deep Neural Networks

Sanchari Sen, Shubham Jain|arXiv (Cornell University)|Nov 7, 2017
Advanced Neural Network ApplicationsComputer Science41 references5 citations
TL;DR

SparCE proposes low-overhead micro-architectural and ISA extensions to general-purpose processors (GPPs) that exploit both static and dynamic sparsity in deep neural networks (DNNs) to accelerate inference and training. By using a Sparsity Register File (SpRF) and a Sparsity-Aware Skip Address (SASA) table, SparCE dynamically pre-identifies and skips redundant instructions before fetch, achieving 1.11×–1.96× speedups on scalar processors and 8%–15% reduction in execution time on SIMD ARMv8 processors across 6 image recognition DNNs.

ABSTRACT

Deep Neural Networks (DNNs) have emerged as the method of choice for solving a wide range of machine learning tasks. The enormous computational demands posed by DNNs have most commonly been addressed through the design of custom accelerators. However, these accelerators are prohibitive in many design scenarios (e.g., wearable devices and IoT sensors), due to stringent area/cost constraints. Accelerating DNNs on these low-power systems, comprising of mainly the general-purpose processor (GPP) cores, requires new approaches. We improve the performance of DNNs on GPPs by exploiting a key attribute of DNNs, i.e., sparsity. We propose Sparsity aware Core Extensions (SparCE)- a set of micro-architectural and ISA extensions that leverage sparsity and are minimally intrusive and low-overhead. We dynamically detect zero operands and skip a set of future instructions that use it. Our design ensures that the instructions to be skipped are prevented from even being fetched, as squashing instructions comes with a penalty. SparCE consists of 2 key micro-architectural enhancements- a Sparsity Register File (SpRF) that tracks zero registers and a Sparsity aware Skip Address (SASA) table that indicates instructions to be skipped. When an instruction is fetched, SparCE dynamically pre-identifies whether the following instruction(s) can be skipped and appropriately modifies the program counter, thereby skipping the redundant instructions and improving performance. We model SparCE using the gem5 architectural simulator, and evaluate our approach on 6 image-recognition DNNs in the context of both training and inference using the Caffe framework. On a scalar microprocessor, SparCE achieves 19%-31% reduction in application-level. We also evaluate SparCE on a 4-way SIMD ARMv8 processor using the OpenBLAS library, and demonstrate that SparCE achieves 8%-15% reduction in the application-level execution time.

Motivation & Objective

  • To accelerate deep neural network (DNN) inference and training on cost- and area-constrained embedded systems where custom accelerators are impractical.
  • To address the challenge of efficiently exploiting both static (pruned weights) and dynamic (ReLU-activated features) sparsity in general-purpose processor (GPP) architectures.
  • To minimize performance overhead while enabling early instruction skipping by pre-identifying redundant computations before fetch.
  • To design a minimally intrusive, low-overhead extension to GPPs that supports both dynamic and static sparsity without requiring application-specific modifications.

Proposed method

  • Introduce a Sparsity Register File (SpRF) to dynamically track which general-purpose registers contain zero values, enabling runtime detection of zero operands.
  • Design a Sparsity-Aware Skip Address (SASA) table to pre-identify instruction sequences that can be skipped when dependent on zero-valued operands.
  • Implement a Pre-identify and Skip Redundancy Unit (PSRU) that uses SpRF and SASA data to modify the program counter and prevent fetching of redundant instructions.
  • Integrate SparCE extensions into a GPP microarchitecture using the gem5 simulator, evaluating on scalar and 4-way SIMD ARMv8 processors with Caffe-based DNN workloads.
  • Use sparse matrix operations and sparse BLAS libraries as baseline comparisons to evaluate performance gains under varying sparsity levels (10%–90%).
  • Evaluate SparCE on six state-of-the-art image recognition DNNs, including ResNet and VGG, across both training and inference phases.

Experimental results

Research questions

  • RQ1Can sparsity-aware extensions be effectively integrated into general-purpose processors to accelerate DNN execution without significant area or performance overhead?
  • RQ2How effective is dynamic instruction skipping based on zero-valued operands in reducing redundant computation in DNN workloads?
  • RQ3To what extent can SparCE exploit both static (pruned weights) and dynamic (ReLU-activated features) sparsity in mainstream DNNs on GPPs?
  • RQ4What performance gains can be achieved in terms of speedup and execution time reduction on scalar and SIMD GPPs using SparCE?

Key findings

  • On a scalar microprocessor, SparCE achieves 1.11× to 1.96× speedup across both convolutional and fully-connected layers in DNNs with sparsity levels ranging from 10% to 90%.
  • At the overall application level, SparCE reduces execution time by 19% to 31% across the evaluated DNNs, demonstrating significant end-to-end performance improvement.
  • On a 4-way SIMD ARMv8 processor using OpenBLAS, SparCE achieves 8% to 15% reduction in application-level execution time, showing effectiveness in vectorized execution environments.
  • The PSRU unit successfully prevents redundant instruction fetch by pre-identifying skip conditions, avoiding pipeline stalls associated with instruction squashing.
  • SparCE effectively exploits both dynamic sparsity (from ReLU activations) and static sparsity (from weight pruning), making it applicable to a wide range of modern DNNs.
  • The design is minimally intrusive and low-overhead, with no changes required to the application or compiler, enabling seamless integration into existing GPP-based embedded systems.

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.