TL;DR
This paper introduces ESE, an efficient hardware accelerator for Long Short-Term Memory (LSTM) networks on FPGAs, specifically designed for speech recognition. By combining aggressive model compression (20x reduction) with a novel load-balance-aware pruning technique and a specialized FPGA architecture, ESE achieves significant speedups and energy efficiency improvements over CPU and GPU implementations.
What Problem Does This Paper Address?
Deep learning models, particularly Long Short-Term Memory (LSTM) networks, have become crucial for achieving high accuracy in speech recognition. However, these models are computationally intensive and have large memory footprints, making them challenging and energy-inefficient to deploy, especially in resource-constrained environments or data centers where power consumption and total cost of ownership (TCO) are critical. The paper aims to bridge this gap by developing a system that can efficiently run compressed LSTM models on hardware.
Methods
The authors propose a three-pronged approach to tackle the problem:
- Algorithm Compression: They introduce a load-balance-aware pruning method that reduces LSTM model size by 10x, combined with 2x quantization, resulting in a 20x smaller model with negligible loss in prediction accuracy. The "load-balance-aware" aspect is key, ensuring that pruned weights are distributed evenly across processing units to avoid idle cycles.
- Software Scheduling: A novel scheduler is designed to manage the complex data flow of the compressed, sparse LSTM model. This scheduler encodes and partitions the model to multiple Processing Elements (PEs) for parallelism and orchestrates memory access to overlap with computation.
- Hardware Architecture (ESE): A dedicated FPGA architecture, ESE, is designed to directly process the sparse LSTM model. It features a load-balancing mechanism and partitioning of computation and storage to maximize hardware utilization. ESE also supports concurrent processing of multiple speech streams.
Datasets
- TIMIT: Used for evaluating model compression and the trade-off between pruning and phone error rate (PER).
- Proprietary Dataset: A larger dataset (1000 hours training, 100 hours validation, 10 hours test) was used to validate pruning effectiveness on word error rate (WER).
Key Insights and Ideas
- Load-Balance-Aware Pruning is Crucial for Hardware: Simply pruning weights can lead to highly unbalanced workloads across processing elements, negating the benefits of parallelism. ESE's load-balance-aware pruning ensures that each processing unit has a similar number of operations, leading to higher hardware utilization and better performance.
- Algorithm-Software-Hardware Co-Design is Key: The most significant gains are achieved by optimizing across all three layers. Compressing the model makes it suitable for hardware, the scheduler efficiently maps the sparse model, and the custom hardware architecture exploits the sparsity.
- Memory Bandwidth is a Major Bottleneck: The paper highlights that memory access consumes significantly more energy than computation. Their compression and hardware design focus heavily on reducing memory footprint and optimizing data movement.
- Sparse LSTM on FPGA is Viable and Efficient: The work demonstrates that FPGAs can be effectively utilized to accelerate sparse LSTM models, offering a compelling alternative to CPUs and GPUs for specific applications.
Key Results
- Model Compression: Achieved 20x model size reduction (10x pruning, 2x quantization) with negligible accuracy loss.
- Performance:
- ESE achieves 282 GOPS on the sparse LSTM model (equivalent to 2.52 TOPS on a dense model).
- 43x faster than Core i7 CPU and 3x faster than Pascal Titan X GPU.
- Energy Efficiency:
- 40x more energy efficient than CPU and 11.5x more energy efficient than GPU.
- ESE consumes 41 Watts, compared to 111W for CPU and 202W for GPU (when running dense models).
- Hardware Utilization: Achieved over 90% ALU utilization when using FIFO depth of 8 for load balancing.
Limitations and Future Work
- FIFO Depth Optimization: While FIFO depth of 8 provided good load balancing, the paper notes that for matrices with very few rows (like
Wym), FIFO cannot fully solve the load balancing problem, leading to lower utilization for those specific operations. - Generalizability: The work focuses specifically on LSTM for speech recognition. While the authors suggest the methodology could be applied to other RNNs, further research would be needed to confirm this.
- Future Work: The paper implies that further exploration of different quantization strategies and more complex LSTM architectures could yield additional improvements. The efficient hardware architecture could also be extended to other deep learning models.
Summary updated