SHARP: An Adaptable, Energy-Efficient Accelerator for Recurrent Neural Networks

Reza Yazdani Aminabadi, Olatunji Ruwase, Minjia Zhang, Yuxiong He, José-María Arnau, Antonio González

Introduction

Recurrent Neural Networks (RNNs), such as LSTMs and GRUs, are the foundational models for sequence-heavy tasks like speech recognition and machine translation. Despite their utility, they present a significant challenge for hardware acceleration due to their inherent "recurrent" dependencies. In these models, the output of one time step is required as the input for the next, creating a sequential critical path that limits parallel execution.

The RNN Acceleration Challenge

Standard parallel hardware, such as GPUs, often sits idle when processing RNNs, especially during real-time inference where batch sizes are small. The authors identify an "adaptability gap" where hardware efficiency varies wildly depending on the model's dimensions and the batch size.

Figure 1: FLOP efficiency across different RNN tasks (MC, LM, MT, SR). Efficiency is significantly lower at a batch size of 1 compared to 64, highlighting the difficulty of real-time RNN acceleration.

As illustrated in Figure 1, FLOP efficiency can be as low as 4% to 28% even at larger batch sizes, and it degrades further for real-time applications. Existing specialized accelerators like Google’s TPU or Microsoft’s BrainWave are often "brittle," losing utilization when model configurations change.

The SHARP Architecture

To overcome these bottlenecks, the researchers proposed SHARP, an architecture designed for both high performance and dynamic adaptability. SHARP is built upon three primary innovations:

  1. Unfolded Scheduling: Standard schedulers process gates sequentially. SHARP’s "unfolded" approach overlaps the computation of input features for the next time step ($t+1$) while the recurrent hidden state for the current step ($t$) is still being calculated. This effectively hides the serialization delay.
  2. Resizable MVM Tile-Engine: Instead of fixed matrix-multiplication units, SHARP uses "Vector-Scalar" (VS) primitives that can be dynamically regrouped into different tiling configurations to match a model's specific hidden dimensions.
  3. Reconfigurable Tree-Adder: To support flexible tiling, SHARP employs a reconfigurable reduction tree that changes its routing logic on the fly, minimizing the performance loss caused by "padding" (wasted cycles when model dimensions do not align with hardware tiles).
Figure 5: The SHARP LSTM Accelerator architecture, highlighting the Weight and I/H buffers, the reconfigurable Compute Unit, and the specialized Cell Updater and Activation MFU.

Key Results

SHARP was evaluated using a cycle-accurate simulator and compared against high-end GPUs, FPGAs, and ASICs using industry-standard benchmarks like Baidu DeepBench and EESEN.

  • Performance: SHARP achieved an average 82x speedup over an NVIDIA Titan V GPU and a 2.8x speedup over Microsoft’s BrainWave FPGA.
  • Efficiency: The design delivers 321 GFLOPS/Watt, making it 1.7x more energy-efficient than the best previous ASIC designs and 7.4x better than FPGA solutions.

Conclusion

SHARP addresses the inherent sequential bottlenecks of RNNs through architectural flexibility and intelligent scheduling. While the current design focuses on dense models and assumes weights fit in on-chip SRAM, it sets a new standard for adaptable, energy-efficient sequence processing. Future work may extend these concepts to support sparse weights and extreme-scale models requiring off-chip memory bandwidth optimizations.

Summary updated

BibTeX
@article{aminabadi2023sharp,
  author = {Reza Yazdani Aminabadi and Olatunji Ruwase and Minjia Zhang and Yuxiong He and José-María Arnau and Antonio González},
  title = {{SHARP: An Adaptable, Energy-Efficient Accelerator for Recurrent Neural Networks}},
  journal = {ACM Trans. Embed. Comput. Syst.},
  year = {2023},
  doi = {10.1145/3552513},
}
Figure