[Paper Review] FPGA-Based Low-Power Speech Recognition with Recurrent Neural Networks
This paper presents an FPGA-based, low-power real-time speech recognition system using two long short-term memory (LSTM) recurrent neural networks (RNNs): one for acoustic modeling and another for character-level language modeling, combined with a statistical word-level language model. The system employs 6-bit quantized weights stored entirely in on-chip FPGA memory, enabling high throughput with minimal DRAM access and achieving 4.12× real-time performance at only 9.24 W power consumption, demonstrating a 10× improvement in energy efficiency over GPU-based systems.
In this paper, a neural network based real-time speech recognition (SR) system is developed using an FPGA for very low-power operation. The implemented system employs two recurrent neural networks (RNNs); one is a speech-to-character RNN for acoustic modeling (AM) and the other is for character-level language modeling (LM). The system also employs a statistical word-level LM to improve the recognition accuracy. The results of the AM, the character-level LM, and the word-level LM are combined using a fairly simple N-best search algorithm instead of the hidden Markov model (HMM) based network. The RNNs are implemented using massively parallel processing elements (PEs) for low latency and high throughput. The weights are quantized to 6 bits to store all of them in the on-chip memory of an FPGA. The proposed algorithm is implemented on a Xilinx XC7Z045, and the system can operate much faster than real-time.
Motivation & Objective
- To develop a low-power, real-time speech recognition system suitable for embedded and mobile applications.
- To reduce reliance on off-chip DRAM by storing all RNN weights in on-chip FPGA memory through weight quantization.
- To replace complex HMM-based decoding with a lightweight N-best beam search using RNN-based acoustic and language models.
- To enable end-to-end, vocabulary-agnostic speech recognition using character-level RNNs and a statistical word-level language model.
- To achieve high throughput and low latency using massively parallel processing elements (PEs) on an FPGA.
Proposed method
- The system uses a unidirectional RNN for acoustic modeling (AM) and a separate RNN for character-level language modeling (LM), both trained with connectionist temporal classification (CTC).
- A tree-structured N-best beam search with beam width 128 combines outputs from the AM, character-level LM, and a statistical word-level LM, avoiding the need for HMM or WFST networks.
- All RNN weights are quantized to 6-bit fixed-point precision using retraining-based optimization, reducing memory footprint to ~1.1 MB and enabling full on-chip storage on Xilinx XC7Z045 FPGA.
- The RNNs are implemented using massively parallel processing elements (PEs) to accelerate matrix-vector multiplications and support high-throughput inference.
- The system offloads only the word-level LM to off-chip DRAM, minimizing energy-hungry memory accesses.
- The FPGA operates at 100 MHz, with the CPU handling N-best search at 800 MHz, achieving 4.12× real-time speed on the WSJ eval92 dataset.
Experimental results
Research questions
- RQ1Can a fully RNN-based speech recognition system be implemented efficiently on an FPGA with minimal off-chip memory access?
- RQ2How effective is 6-bit weight quantization in maintaining recognition accuracy while enabling on-chip storage of all model parameters?
- RQ3Can a lightweight N-best beam search replace HMM or WFST decoding without sacrificing recognition performance?
- RQ4What is the achievable real-time performance and power efficiency of an FPGA-based RNN system compared to GPU-based implementations?
- RQ5To what extent can character-level RNNs and word-level language models jointly improve recognition accuracy in an end-to-end, vocabulary-agnostic setup?
Key findings
- The FPGA-based system achieved 4.12× real-time performance on the WSJ eval92 dataset using a 100-MHz clock, significantly outperforming the GPU-based system in speed per unit of power.
- The system consumed only 9.24 W of power on the evaluation board, including DRAM and peripherals, which is 10× more energy-efficient than the high-end GPU (NVIDIA Titan X) used for comparison.
- Using 6-bit quantized weights reduced the model size to ~1.1 MB, which fully fit within the 2.18 MB on-chip memory of the Xilinx XC7Z045 FPGA, eliminating the need for DRAM access to RNN weights.
- The word-level language model improved recognition accuracy, and rescoring with this model further enhanced performance even with fixed-point weights.
- The system maintained a word error rate (WER) increase of only ~1.5% when using 6-bit quantization compared to full-precision models, demonstrating effective trade-off between accuracy and efficiency.
- The FPGA implementation required only 197 KB of data structure for the N-best beam search, a dramatic reduction compared to the hundreds of megabytes needed for conventional HMM-based WFST networks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.