Joint Beam Search Integrating CTC, Attention, and Transducer Decoders

Yui Sudo, Muhammad Shakeel, Y. Fukumoto, Brian Yan, Jiatong Shi, Yifan Peng, Shinji Watanabe

TL;DR

This paper introduces a "4D modeling" approach for end-to-end automatic speech recognition (E2E-ASR) that jointly trains four different decoder architectures (CTC, RNN-T, Attention, and Mask-CTC) with a shared encoder. This unified model, coupled with novel joint beam search algorithms, significantly improves recognition accuracy by leveraging the complementary strengths of each decoder, outperforming individual models and existing hybrid approaches.

What Problem Does This Paper Address?

The field of end-to-end automatic speech recognition (E2E-ASR) has seen the development of several powerful decoder architectures, each with its own strengths and weaknesses. For instance, CTC excels at efficient frame-level alignment but makes a strong independence assumption that can limit accuracy. RNN-T relaxes this assumption, offering better performance, especially for streaming applications, but can be more complex to train. Attention-based decoders provide flexible alignment but can be prone to errors without monotonicity constraints. Mask-CTC offers non-autoregressive decoding with label dependency awareness.

Practitioners often have to choose between these models based on specific application needs (e.g., on-device vs. offline, latency vs. accuracy). This necessitates maintaining multiple models, leading to significant overhead. While hybrid approaches like CTC/Attention have been explored to combine the benefits of two decoders, there's a need for a more comprehensive integration that can offer a single, robust model adaptable to various scenarios and achieve superior performance by leveraging the complementary properties of a wider range of decoders.

Methods

The core of this work is the 4D modeling approach, which involves training a single encoder shared across four distinct decoders: CTC, RNN-T, Attention, and Mask-CTC. This joint training aims to regularize the model and enhance its robustness by capitalizing on the complementary strengths of each decoder.

To manage the complexity of joint training, a two-stage optimization strategy is proposed. In the first stage, all four decoders are trained with equal weights. In the second stage, these weights are adjusted proportionally based on when each decoder's validation loss reaches its minimum during the first stage, aiming to give more importance to decoders that take longer to converge.

For inference, the paper introduces three novel joint beam search algorithms: attention-driven, CTC-driven, and RNN-T-driven. These algorithms extend existing hybrid beam search techniques by incorporating three decoders. The key difference lies in which decoder acts as the primary one for hypothesis expansion, with the other two decoders contributing scores during the beam search process. Mask-CTC is excluded from the joint beam search due to its parallel, non-autoregressive nature.

Datasets

The proposed method is trained and evaluated on the following datasets:

  • LibriSpeech: Both the 960-hour and 100-hour subsets.
  • In-house dataset: A custom dataset comprising 93 hours of Japanese speech collected from various scenarios (meetings, morning assemblies).
  • Corpus of Spontaneous Japanese: 581 hours.
  • ATR Japanese Speech Database: 181 hours.

An external language model was trained using an additional 850 million words of text from the LibriSpeech dataset.

Key Insights and Ideas

  • Synergy of Multiple Decoders: Jointly training multiple decoders (CTC, RNN-T, Attention, Mask-CTC) with a shared encoder significantly improves performance over individual decoders, demonstrating the power of their complementary strengths.
  • Two-Stage Training for Stability: The proposed two-stage training strategy effectively stabilizes joint training and helps determine appropriate weighting for diverse decoders, especially those with different convergence rates.
  • RNN-T-Driven Joint Beam Search Dominance: Among the novel joint beam search algorithms, the RNN-T-driven approach consistently shows superior WER-RTF tradeoffs, suggesting its effectiveness in balancing accuracy and speed.
  • Flexibility for Diverse Applications: The 4D model offers a unified framework that can adapt to different application requirements (e.g., latency-sensitive vs. accuracy-critical) by simply switching the active decoder during inference, reducing the need for multiple separate models.
  • Joint Decoding Corrects Errors: Joint beam search effectively corrects errors made by individual decoders, leading to more robust and accurate transcriptions.

Key Results

  • The jointly trained 4D model consistently outperforms individual E2E-ASR models across various datasets, showing an average improvement of 0.3-0.7 absolute WER/CER points.
  • The proposed RNN-T-driven joint beam search achieves the best WER-RTF tradeoff, outperforming conventional CTC/attention decoding and other proposed joint beam search methods. For example, it reduces substitution errors by 1.3 points compared to conventional CTC/attention joint decoding.
  • The 4D model demonstrates superior performance even when trained with limited data (LibriSpeech 100 hours), highlighting its regularization effect.
  • While joint training increases model parameters and training time, the decoding time remains comparable to individual models when only one decoder is active.
  • The impact of LM shallow fusion is also evaluated, showing that it can further improve performance without degrading the 4D model's flexibility.

Limitations and Future Work

  • Computational Cost: While decoding time is comparable when using a single decoder, joint training and the joint beam search process itself can increase computational complexity and training time compared to single-decoder models.
  • Weighting Strategy: The two-stage training strategy is presented as a practical approach, but the paper acknowledges that it may not always yield the absolute optimal weights. Further exploration into more sophisticated adaptive weighting mechanisms could be beneficial.
  • Extension to Other Tasks: The paper suggests that the 4D model's hierarchical encoder structure could be extended to other sequence-to-sequence tasks like machine translation, even with decoders that typically assume monotonic alignment. This opens avenues for future research in applying this unified approach to a broader range of NLP problems.

Summary updated

BibTeX
@article{sudo2025joint,
  author = {Yui Sudo and Muhammad Shakeel and Y. Fukumoto and Brian Yan and Jiatong Shi and Yifan Peng and Shinji Watanabe},
  title = {{Joint Beam Search Integrating CTC, Attention, and Transducer Decoders}},
  journal = {IEEE Transactions on Audio Speech and Language Processing},
  year = {2025},
  doi = {10.1109/taslpro.2025.3530324},
}
Figure