TL;DR
WIND (Windowed Inference for Non-blank Detection) is a novel decoding strategy that accelerates Recurrent Neural Network Transducer (RNN-T) inference by processing a configurable window of acoustic frames in parallel. By quickly identifying and skipping over redundant "blank" frames, WIND delivers up to a 2.4X speedup in greedy decoding with zero loss in accuracy, while also outperforming existing beam-search methods in both speed and Word Error Rate (WER).
What Problem Does This Paper Address?
In automatic speech recognition (ASR), the RNN-T architecture is highly popular due to its excellent accuracy. However, it suffers from a major computational bottleneck during deployment: inference is traditionally performed frame-by-frame.
During decoding, the model loops through every single acoustic frame (typically every 10ms). Crucially, the vast majority of these frames result in "blank" tokens, which signify silence or the continuation of a previous sound. Because the model's decoder state only updates when a non-blank token (an actual word or word-piece) is predicted, sequentially processing these endless streams of blanks represents a massive waste of time and compute.
Methods
The authors introduce WIND, an algorithmic optimization that shifts RNN-T decoding from sequential frame-by-frame processing to parallel window-based processing.
1. Greedy WIND
Instead of evaluating one frame at a time, Greedy WIND feeds a window of consecutive acoustic frames (e.g., 8 or 16 frames) into the joint network simultaneously.
- If the model predicts blanks for the entire window, the algorithm instantly skips ahead by the window size.
- If a non-blank token is detected within the window, the algorithm jumps directly to the first non-blank frame, emits the token, updates the decoder state, and establishes a new window from that point.
2. WIND Beam-Search
Extending this windowing concept to beam search is non-trivial because multiple hypotheses must be tracked. The authors propose a novel beam-search algorithm by defining a new probability distribution, $P'(v, t)$, which represents the probability of predicting token $v$ as the first output in the window at a relative time offset $t$. This mathematical formulation allows the beam search to safely "jump" multiple frames across different hypotheses without losing alignment accuracy.
Unlike architectural modifications (such as Token-and-Duration Transducers), WIND is purely algorithmic. It can be applied directly to existing, pre-trained RNN-T models without retraining them.
Datasets
The authors evaluated WIND using public checkpoints from the NeMo toolkit across several diverse datasets:
- English: LibriSpeech (test-other) and Slurp.
- German: German Voxpopuli and Multilingual LibriSpeech (MLS) German.
Key Insights and Ideas
- Exploiting Static Decoder States: The core "aha" moment is realizing that because consecutive blanks do not alter the decoder's hidden state, the joiner network's computations across those frames are completely independent. This makes them perfectly suited for GPU parallelization.
- Negligible Memory Overhead: One might worry that processing windows of frames increases memory usage. However, because WIND only expands the tensor size by
[window-size × vocabulary-size], the actual overhead is tiny—only about 63 KB for a window size of 16 using float32. - Complementary to Hardware Optimizations: WIND operates at the algorithmic level, meaning it can be stacked with hardware-level optimizations like CUDA Graphs to achieve even lower latency.
Key Results
Greedy Decoding Speedups
In single-utterance greedy decoding, WIND achieved identical WER to the baseline while drastically cutting down inference time. As shown in the paper's benchmarks, the speedup plateaus around a window size of 8 to 16, yielding up to a 2.40X speedup for the 0.6B parameter model.
For batched greedy decoding, WIND was integrated with highly optimized "label-looping" implementations, still managing to provide an additional 1.13X to 1.26X speedup.
Beam-Search Performance
WIND beam-search demonstrated a vastly superior speed-accuracy tradeoff compared to standard beam search, Alignment-Length Synchronous Decoding (ALSD), and Modified Adaptive Expansion Search (MAES). Remarkably, WIND with a beam size of 4 was often faster than standard, non-WIND greedy decoding while delivering lower WER.
Comparison with TDT
When combined with CUDA Graphs, an RNN-T model optimized with WIND actually outperformed a Token-and-Duration Transducer (TDT) in decoder-only inference time (2.10 seconds vs 2.14 seconds), proving that algorithmic changes can match or beat structural model changes.
Limitations and Future Work
While the paper successfully applies WIND to greedy decoding, batched greedy decoding, and single-utterance beam search, it does not yet provide an implementation that combines beam search and batching together. The authors explicitly call this out as their primary direction for future work, aiming to develop an even more efficient algorithm that unifies the two techniques for high-throughput production environments.
Summary updated