Abstract
Recent advances in deep learning based large vocabulary continuous speech recognition (LVCSR) invoke growing demands in large scale speech transcription. The inference process of a speech recognizer is to find a sequence of labels whose corresponding acoustic and language models best match the input feature. The main computation includes two stages: acoustic model (AM) inference and linguistic search (weighted finite-state transducer, WFST). Large computational overheads of both stages hamper the wide application of LVCSR. Benefit from stronger classifiers, deep learning, and more powerful computing devices, we propose general ideas and some initial trials to solve these fundamental problems.
Introduction
Modern speech recognition systems generally rely on two main computational stages: Acoustic Model (AM) inference and linguistic search. While deep learning has significantly accelerated AM inference, the linguistic search stage—typically represented as a Weighted Finite-State Transducer (WFST)—remains a massive bottleneck. Traditional Frame Synchronous Decoding (FSD) evaluates the massive WFST graph at every single audio frame, leading to massive search spaces. Furthermore, standard graph traversal algorithms like Viterbi beam search are inherently serial, making them difficult to parallelize on modern hardware like GPUs due to the irregular structure of language model graphs.
Methodology
To address these bottlenecks, we introduce two distinct optimization approaches:
Label Synchronous Framework (LSD)
Instead of searching the graph frame-by-frame, LSD searches label-by-label. Modern end-to-end models (like CTC or LF-MMI) frequently output a "blank" state between actual phonetic labels. LSD incorporates a post-processing step to detect these highly confident blank frames. If a frame is deemed blank, the algorithm skips the expensive WFST search process for that frame. This reduces search complexity from being proportional to the total number of frames ($T$) to just the number of non-blank frames ($T - |U|$).
GPU-based Parallel WFST Decoding
To overcome the serial bottleneck of Viterbi decoding, we redesigned the algorithm for GPU architectures. We parallelize the token passing algorithm at two levels: processing different states in parallel and processing outgoing arcs for each state in parallel.
Because WFST states have varying numbers of outgoing arcs, static thread assignment leads to inefficiency. We introduce a dynamic load balancing strategy using a global dispatcher and atomic GPU operations to ensure high thread utilization despite the irregular graph structure.
Experimental Results
The proposed methods were evaluated on the Switchboard corpus (hub5e-swb test set), focusing on Word Error Rate (WER) and Real-Time Factor (RTF).
Efficiency of Label Synchronous Decoding
LSD demonstrates a superior speed-to-accuracy trade-off compared to traditional pruning methods. By ignoring redundant blank frames, LSD achieves a significantly lower RTF at the same WER as standard beam and histogram pruning.
GPU Acceleration Performance
The GPU-based decoder consistently outperforms CPU baselines across various GPU architectures (K20, M40, P100, V100). The implementation supports exact lattice generation, enabling rich post-processing and second-pass rescoring without the performance compromises often found in optimized decoders.
Conclusion and Future Work
This work presents initial trials in optimizing linguistic search for LVCSR. By leveraging the properties of end-to-end models through LSD and redesigning WFST traversal for GPUs with dynamic load balancing, we achieve substantial speedups. Future research will explore integrating LSD into sequence-to-sequence frameworks, applying these techniques to keyword spotting, and extending GPU parallelization to other fundamental WFST algorithms like determinization and minimization.
Summary updated