Abstract
This paper introduces RWKV-Transducer, a novel approach to streaming Automatic Speech Recognition (ASR) that leverages the Receptance Weighted Key Value (RWKV) architecture. By combining the high performance of Transformers with the $O(1)$ inference memory efficiency of RNNs, the authors achieve state-of-the-art accuracy with zero algorithmic latency and significantly lower memory overhead compared to traditional chunk-based Conformer models.
Introduction
In speech recognition, there is a persistent trade-off between accuracy and efficiency. While Transformers and Conformers are the current state-of-the-art due to their self-attention mechanisms, they are inherently "non-streamable" because they require the entire audio sequence. To enable live streaming, researchers typically employ chunking and caching. However, this introduces significant latency—waiting for future audio chunks—and memory bloat from storing historical context.
The authors propose a "best of both worlds" solution: a model that trains like a Transformer but performs inference like a Recurrent Neural Network (RNN).
Methodology: The RWKV Architecture
The core of this approach is the RWKV (Receptance Weighted Key Value) architecture, a type of linear attention transformer. Unlike standard attention with $O(T^2)$ complexity, RWKV's mathematical formulation allows for recursive computation.
During training, RWKV can be parallelized like a Transformer, ensuring fast GPU utilization. During inference, it behaves like an RNN, requiring only the current input frame and a single state vector to compute the next output. This results in a constant memory footprint regardless of sequence length.
The researchers integrated RWKV into two frameworks:
- RWKV-Transducer: A standard Neural Transducer using RWKV blocks as the encoder.
- RWKV-BAT (Boundary-Aware Transducer): An efficient variant using a Continuous Integrate-and-Fire (CIF) module to predict word boundaries, reducing training overhead.
Experimental Results
The models were evaluated on major benchmarks including AISHELL-1, LibriSpeech, WenetSpeech (10,000 hours), and GigaSpeech (10,000 hours).
Key Findings
- Zero Algorithmic Latency: RWKV is strictly causal and requires no "look-ahead" chunks, achieving 0ms algorithmic latency. In contrast, chunk-based Conformers typically require 320ms to 640ms.
- Memory Efficiency: The "left context" in RWKV is effectively a single frame (the hidden state), drastically reducing the cache size required for live inference compared to the dozens of frames needed by chunk-based models.
- Competitive Accuracy: On LibriSpeech (test-clean), the RWKV-Transducer achieved a 3.83% Word Error Rate (WER), outperforming a 320ms-latency Conformer (4.19% WER) and matching the performance of a 640ms-latency model.
- Scalability: On the 10,000-hour WenetSpeech dataset, the large RWKV model achieved a 11.46% Character Error Rate (CER), surpassing the chunk-based Conformer's 12.33%.
Conclusion and Future Work
RWKV-Transducer demonstrates that high-performance streaming ASR is possible without the latency and memory penalties of traditional chunk-based attention. While it currently trails slightly behind models with unlimited future look-ahead, its efficiency makes it an ideal candidate for edge deployment. Future work will explore incorporating local convolutions into RWKV blocks to better capture acoustic patterns and hybrid models to further bridge the performance gap with non-streaming architectures.
Summary updated