Abstract
End-to-end automatic speech recognition (E2E-ASR) can be classified into several network architectures, such as connectionist temporal classification (CTC), recurrent neural network transducer (RNN-T), attention-based encoder-decoder, and mask-predict models. Each network architecture has advantages and disadvantages, leading practitioners to switch between these different models depending on application requirements. Instead of building separate models, we propose a joint modeling scheme where four decoders (CTC, RNN-T, attention, and mask-predict) share the same encoder — we refer to this as 4D modeling. The 4D model is trained using multitask learning, which will bring model regularization and maximize the model robustness thanks to their complementary properties. To efficiently train the 4D model, we introduce a two-stage training strategy that stabilizes multitask learning. In addition, we propose three novel one-pass beam search algorithms by combining three decoders (CTC, RNN-T, and attention) to further improve performance. Experimental results demonstrate that the jointly trained 4D model outperforms the E2E-ASR models trained with only one individual decoder and that the proposed one-pass beam search algorithm outperforms the previously proposed CTC/attention decoding.
Introduction
The landscape of End-to-End (E2E) Automatic Speech Recognition (ASR) is currently dominated by a "decoder zoo." While architectures like Connectionist Temporal Classification (CTC), Recurrent Neural Network Transducers (RNN-T), and Attention-based models each offer unique advantages, they also come with inherent trade-offs. Practitioners often find themselves training and maintaining multiple separate models to meet different application requirements, such as low-latency streaming versus high-accuracy offline transcription.
This paper proposes a unified "4D" modeling scheme. By sharing a single Conformer encoder across four distinct decoders—CTC, RNN-T, Attention, and Mask-Predict—the researchers create a robust system that benefits from multitask learning and offers unprecedented deployment flexibility.
The "Decoder Zoo" and the Need for Unity
Each major ASR architecture handles the mapping of audio to text differently:
- CTC: Efficient and monotonic, but its frame-independence assumption limits accuracy.
- RNN-T: Excellent for streaming but computationally intensive to train.
- Attention: Highly accurate for offline tasks but prone to alignment errors like skipping or repeating words because it does not strictly follow the audio's timeline.
- Mask-CTC: A non-autoregressive method that enables fast, parallel word prediction.
The fundamental differences in how these models navigate alignment paths (as seen in Figure 1) usually necessitate separate training pipelines. The 4D model overcomes this by using a shared encoder, which acts as a universal feature extractor refined by the diverse constraints of all four decoder types.
4D Modeling and Two-Stage Training
Training four decoders simultaneously presents a convergence challenge, as different loss functions (e.g., CTC vs. RNN-T) optimize at different rates. To address this, the authors introduce a two-stage training strategy:
- Stage 1: All decoders are trained with equal weight to establish a baseline.
- Stage 2: Weights are dynamically adjusted. Decoders that are slower to converge, such as Mask-CTC, receive higher weights to ensure the shared encoder learns features beneficial to all branches.
This multitask approach provides a "regularization" effect. The researchers found that training with four decoders actually improves the performance of each individual decoder compared to training them in isolation. The different decoders force the encoder to learn more robust, universal speech features.
Joint Beam Search Algorithms
To further boost accuracy during inference, the paper introduces three novel one-pass joint beam search algorithms. These algorithms combine the strengths of CTC, RNN-T, and Attention by using one as a "primary" engine and the others to re-score hypotheses. This integration uses monotonic decoders (CTC/RNN-T) as a "guardrail" to prevent the Attention decoder from hallucinating or skipping words.
The RNN-T-driven joint beam search (Algorithm 4) emerged as a particularly effective method. It leverages the Transducer's streaming capabilities while integrating Attention and CTC scores to ensure global coherence.
A key technical enabler for this integration is RNN-T Prefix Scoring, which allows the RNN-T decoder to calculate scores in a label-synchronous manner, making it compatible with the step-by-step nature of Attention decoders.
Key Results and Discussion
The 4D model was evaluated on the LibriSpeech benchmark and an in-house Japanese dataset. Key findings include:
- Accuracy Gains: The 4D model outperformed single-decoder baselines across the board. On LibriSpeech 100h (test-other), the 4D RNN-T achieved a 17.6% Word Error Rate (WER) compared to 18.3% for a standard RNN-T.
- Joint Decoding Superiority: The new joint beam search outperformed traditional "Hybrid CTC/Attention" decoding by approximately 0.5 absolute WER points.
- Flexibility: The unified model allows for "hot-swapping" decoders at runtime. A single model can serve a low-power device using the CTC branch or a high-accuracy server task using the Joint Beam Search without retraining.
While the 4D model is computationally more expensive to train (requiring roughly 8.9x more GPU hours than a simple CTC/Attention model), the resulting "all-in-one" model significantly reduces engineering overhead and sets a new standard for multi-objective speech recognition.
Summary updated