GPU-Accelerated WFST Beam Search Decoder for CTC-based Speech Recognition

Daniel Galvez, Tim Kaldewey
11/8/2023
eess.AScs.LG

Official code: nvidia-riva/riva-asrlib-decoder (91 stars, last commit 2025-02-18).

Abstract

While Connectionist Temporal Classification (CTC) models deliver state-of-the-art accuracy in automated speech recognition (ASR) pipelines, their performance has been limited by CPU-based beam search decoding. We introduce a GPU-accelerated Weighted Finite State Transducer (WFST) beam search decoder compatible with current CTC models. It increases pipeline throughput and decreases latency, supports streaming inference, and also supports advanced features like utterance-specific word boosting via on-the-fly composition. We provide pre-built DLPack-based python bindings for ease of use with Python-based machine learning frameworks at https://github.com/nvidia-riva/riva-asrlib-decoder. We evaluated our decoder for offline and online scenarios, demonstrating that it is the fastest beam search decoder for CTC models. In the offline scenario it achieves up to 7 times more throughput than the current state-of-the-art CPU decoder and in the online streaming scenario, it achieves nearly 8 times lower latency, with same or better word error rate.

View on arXivView PDF

Code Implementations(1)

Standalone implementation of the CUDA-accelerated WFST Decoder available in Riva

9124C, C++Jun 21, 20221 years ago

Similar Papers

Cite this paper

@article{galvez2023gpuaccelerated,
  title  = {GPU-Accelerated WFST Beam Search Decoder for CTC-based Speech Recognition},
  author = {Daniel Galvez and Tim Kaldewey},
  year   = {2023},
  eprint = {2311.04996},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.04996v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.04996.svg)](https://codeofpaper.com/paper/2311.04996)

Discussion