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.
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:
- 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.
- 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.
- 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).
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