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 hardware-software co-design, ESE achieves significant speedups and energy efficiency improvements over traditional 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. Deploying them in real-world applications, especially in data centers, leads to high power consumption and increased operational costs. The challenge is to make these powerful models efficient enough for practical deployment without sacrificing their accuracy.
Methods
The authors propose a three-pronged approach to tackle the efficiency problem:
- Load-Balance-Aware Pruning and Quantization: They developed a pruning technique that not only reduces model size by 10x but also ensures that the remaining non-zero weights are distributed evenly across processing units. This "load-balance-aware" pruning is crucial for efficient parallel processing on hardware. This is combined with a 2x quantization to achieve a total 20x model compression with minimal accuracy loss.
- Smart Scheduling: A novel scheduler is designed to manage the complex data flow of the compressed LSTM model. It partitions the model across multiple Processing Elements (PEs) and orchestrates their operations to maximize parallelism and overlap computation with memory access.
- Hardware Architecture (ESE): A dedicated hardware architecture, ESE, is designed to directly execute the compressed, sparse LSTM model on an FPGA. This architecture is optimized for efficient sparse matrix-vector multiplication and element-wise operations, leveraging the load-balancing achieved by the pruning method.
Datasets
- TIMIT dataset: Used for evaluating model compression and performance.
- Proprietary dataset: A larger dataset (1000 hours training, 100 hours validation, 10 hours test) was used to validate the compression techniques and their impact on word error rate (WER).
Key Insights and Ideas
- Pruning for Hardware Efficiency: The paper highlights that simply pruning a model isn't enough for hardware acceleration. "Load-balance-aware" pruning is critical to prevent bottlenecks and maximize hardware utilization in parallel processing architectures.
- Algorithm-Software-Hardware Co-Design: The most significant gains are achieved by optimizing across all three layers simultaneously. Compressing the model makes it amenable to hardware, the scheduler maps it efficiently, and the custom hardware executes it directly.
- Sparse LSTM on FPGA: Directly executing sparse LSTM models on FPGAs can yield substantial performance and energy benefits, outperforming even optimized CPU and GPU implementations for this specific task.
- Memory Bandwidth is Key: The paper emphasizes that memory access is a major power consumer. By drastically reducing the model size, they significantly cut down on memory bandwidth requirements, leading to substantial energy savings.
Key Results
- Model Compression: Achieved a 20x reduction in LSTM model size (10x from pruning, 2x from quantization) with negligible loss in prediction accuracy.
- Performance:
- On a Xilinx XCKU060 FPGA running at 200MHz, ESE achieves 282 GOPS for sparse LSTM operations (equivalent to 2.52 TOPS for a dense model).
- ESE is 43x faster than a Core i7 CPU and 3x faster than a Pascal Titan X GPU.
- Energy Efficiency:
- ESE achieves 40x higher energy efficiency than the CPU and 11.5x higher energy efficiency than the GPU.
- The ESE system consumes 41 Watts of power.
Limitations and Future Work
- Specific to LSTM: While the principles are general, the ESE architecture is specifically designed for LSTM. Extending this to other recurrent neural network architectures (like GRUs) or other deep learning models (like CNNs) would be a natural next step.
- FPGA Implementation: The current implementation is on a specific FPGA (XCKU060). Porting to different FPGA architectures or exploring ASIC implementations could offer further optimizations.
- Dataset Specificity: While TIMIT is a standard benchmark, the performance on larger, proprietary datasets is also reported. Further evaluation on a wider range of speech recognition datasets would be beneficial.
- Dynamic Sparsity: The current approach focuses on static sparsity achieved through pruning. Future work could explore hardware that can efficiently handle dynamically changing sparsity patterns.
Summary updated