Skip to main content
QUICK REVIEW

[Paper Review] Serving Recurrent Neural Networks Efficiently with a Spatial Accelerator

Tian Zhao, Yaqi Zhang|arXiv (Cornell University)|Sep 26, 2019
Advanced Neural Network ApplicationsComputer Science20 references10 citations
TL;DR

This paper proposes a spatial accelerator design that optimizes recurrent neural network (RNN) inference by replacing BLAS-based kernels with fine-grained loop-level abstractions to enable cross-kernel optimization, spatial parallelism, and pipelining. It achieves 30x geometric speedup, 1.6x area efficiency, and 2x power efficiency over a Tesla V100 GPU, and 2x speedup over Microsoft Brainwave on an FPGA.

ABSTRACT

Recurrent Neural Network (RNN) applications form a major class of AI-powered, low-latency data center workloads. Most execution models for RNN acceleration break computation graphs into BLAS kernels, which lead to significant inter-kernel data movement and resource underutilization. We show that by supporting more general loop constructs that capture design parameters in accelerators, it is possible to improve resource utilization using cross-kernel optimization without sacrificing programmability. Such abstraction level enables a design space search that can lead to efficient usage of on-chip resources on a spatial architecture across a range of problem sizes. We evaluate our optimization strategy on such abstraction with DeepBench using a configurable spatial accelerator. We demonstrate that this implementation provides a geometric speedup of 30x in performance, 1.6x in area, and 2x in power efficiency compared to a Tesla V100 GPU, and a geometric speedup of 2x compared to Microsoft Brainwave implementation on a Stratix 10 FPGA.

Motivation & Objective

  • To address the inefficiencies of BLAS-based RNN acceleration, which cause high inter-kernel data movement and resource underutilization.
  • To improve performance and energy efficiency in RNN inference by enabling cross-kernel optimization through generalized loop constructs.
  • To achieve consistent hardware utilization across diverse RNN problem sizes using a spatial architecture with fine-grained pipelining and vectorization.
  • To co-design a microarchitecture supporting mixed-precision operations for low-latency RNN serving.

Proposed method

  • Fusing gate functions and non-linear activations within each RNN time step to reduce intermediate data movement and keep results in registers.
  • Implementing spatial parallelism and pipelining by vectorizing inner loops for SIMD parallelism and unrolling outer loops for coarse-grain pipelining.
  • Using a Domain-Specific Language (DSL) called Spatial to express RNN computations with explicit memory hierarchy and loop nesting.
  • Designing a microarchitectural extension to the Plasticine CGRA to support mixed-precision operations critical for RNN inference.
  • Employing data-flow-driven execution with no dynamic scheduling overhead to reduce latency.
  • Evaluating the design using DeepBench benchmarks on a configurable spatial accelerator at 28nm.

Experimental results

Research questions

  • RQ1How does replacing BLAS abstractions with generalized loop constructs improve RNN inference performance on spatial accelerators?
  • RQ2To what extent can cross-kernel optimization and pipelining reduce data movement and improve resource utilization in RNN workloads?
  • RQ3Can a spatial architecture with fine-grained parallelism and mixed-precision support achieve better performance and energy efficiency than GPU and FPGA platforms for RNN inference?
  • RQ4How does the proposed method scale across different RNN problem sizes and hidden unit dimensions?
  • RQ5What is the impact of memory hierarchy management—especially register vs. scratchpad usage—on energy efficiency in RNN inference?

Key findings

  • The proposed design achieves a geometric speedup of 30x over a Tesla V100 GPU in performance, 1.6x in area efficiency, and 2x in power efficiency.
  • Compared to Microsoft Brainwave on a Stratix 10 FPGA, the implementation delivers a 2x geometric speedup.
  • The design maintains high FLOPS utilization across RNN tasks of varying sizes due to effective cross-kernel optimization and resource balancing.
  • The use of register-stored intermediate results instead of scratchpads reduces energy consumption and improves memory access efficiency.
  • The spatial architecture with fine-grained pipelining and vectorization achieves consistent performance across small and large RNN workloads.
  • At 14nm, Plasticine is projected to match Stratix 10’s performance while being over 2x smaller, suggesting a 2x–60x performance-per-area improvement.

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.