[Paper Review] Unified Streaming and Non-streaming Two-pass End-to-end Model for Speech Recognition
The paper introduces U2, a unified two-pass hybrid CTC/attention E2E model with dynamic chunk attention that supports both streaming and non-streaming ASR, achieving notable CER reductions and controllable latency via chunk size, with attention rescoring improving accuracy and speed.
In this paper, we present a novel two-pass approach to unify streaming and non-streaming end-to-end (E2E) speech recognition in a single model. Our model adopts the hybrid CTC/attention architecture, in which the conformer layers in the encoder are modified. We propose a dynamic chunk-based attention strategy to allow arbitrary right context length. At inference time, the CTC decoder generates n-best hypotheses in a streaming way. The inference latency could be easily controlled by only changing the chunk size. The CTC hypotheses are then rescored by the attention decoder to get the final result. This efficient rescoring process causes very little sentence-level latency. Our experiments on the open 170-hour AISHELL-1 dataset show that, the proposed method can unify the streaming and non-streaming model simply and efficiently. On the AISHELL-1 test set, our unified model achieves 5.60% relative character error rate (CER) reduction in non-streaming ASR compared to a standard non-streaming transformer. The same model achieves 5.42% CER with 640ms latency in a streaming ASR system.
Motivation & Objective
- Motivate unifying streaming and non-streaming end-to-end ASR in a single model.
- Develop a two-pass CTC/attention architecture with dynamic chunk attention to control latency.
- Simplify training by using a combined CTC and AED loss without complex RNN-T training tricks.
- Demonstrate that the unified model can achieve competitive streaming and non-streaming performance on AISHELL-1.
Proposed method
- Adopt a hybrid CTC/attention architecture with a Shared Encoder and separate CTC and Attention decoders.
- Use dynamic chunk-based attention to allow arbitrary right context and to control inference latency via chunk size.
- Train with a combined CTC and AED loss to simplify optimization (L_combined = λ L_CTC + (1−λ)(L_AED-L + L_AED-R)).
- Employ causal convolution in the Conformer encoder to decouple latency from network depth.
- During decoding, generate streaming n-best CTC hypotheses and rescore with the Attention Decoder to obtain the final result.
- Provide a two-pass decoding scheme (CTC first-pass with streaming decoding, followed by attention-based rescoring) to balance latency and accuracy.
- Investigate static vs dynamic chunk training and a dynamic chunk scheduling strategy to unify streaming and non-streaming modes.
Experimental results
Research questions
- RQ1Can a single model jointly support streaming and non-streaming ASR with competitive accuracy?
- RQ2How does dynamic chunk attention pricing affect latency-accuracy trade-offs in inference?
- RQ3Does attention rescoring of CTC-generated hypotheses yield better real-time performance than autoregressive attention decoding alone?
- RQ4What training strategies (static vs dynamic chunk, chunk size distributions) best unify streaming and non-streaming behavior?
Key findings
- On AISHELL-1, the unified model achieves a 5.60% relative CER reduction for non-streaming ASR versus a standard non-streaming Transformer.
- In streaming mode, the same model attains a CER of 5.33% with 640 ms latency.
- Attention rescoring of CTC hypotheses improves CER to 4.72 with a CTC weight of 0.5 during rescoring (better than CTC prefix beam search or autoregressive attention alone).
- Attention rescoring runs faster than an autoregressive attention decoder, achieving about 2.40x speedup in decoding time in the reported setup.
- Dynamic chunk training provides comparable performance to static chunk training and can match or exceed static configurations at intermediate chunk sizes (e.g., 16/8/4) while enabling latency-accuracy trade-offs.
- The approach yields state-of-the-art streaming accuracy on AISHELL-1 and scales to large Mandarin datasets (15,000-hour experiments) with competitive results.
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.