Intermediate Loss Regularization for CTC-based Speech Recognition

Jaesong Lee, Shinji Watanabe

Abstract

Connectionist Temporal Classification (CTC) models offer significant speed advantages in Automatic Speech Recognition (ASR) due to their non-autoregressive nature. However, they typically lag behind autoregressive models in accuracy. This paper introduces Intermediate CTC Loss, a simple regularization technique that applies an auxiliary loss to a middle layer of the encoder. This "mid-term exam" encourages early feature extraction and, when paired with Stochastic Depth, significantly boosts performance across various model depths and architectures. Our results on WSJ, TED-LIUM2, and AISHELL-1 benchmarks show that this method allows CTC models to achieve competitive accuracy without sacrificing their parallel decoding speed.

Introduction: The Accuracy-Speed Trade-off

In ASR, a persistent tug-of-war exists between accuracy and inference speed. Autoregressive models, such as standard Attention Encoder-Decoders, are highly accurate but slow because they generate text one token at a time. CTC-based models are non-autoregressive and predict all tokens in parallel, making them incredibly fast. However, they usually perform worse because they assume output independence. To bridge this gap without resorting to complex external Language Models or slow beam search, we propose a training-time regularization strategy that makes the CTC model itself smarter.

Methods: The "Mid-term Exam"

The core proposal is Intermediate CTC Loss. The implementation is straightforward:

  1. Auxiliary Loss: During training, the output of a middle layer (typically layer $L/2$) is passed through a shared linear layer and evaluated against the target text using a standard CTC loss.
  2. Joint Training: The final training objective is a weighted sum of the standard CTC loss at the final layer and this intermediate loss (using a weight $w=0.3$).
  3. Zero Inference Overhead: Crucially, this auxiliary branch is discarded at inference time. The model uses the same greedy decoding it always did, resulting in zero additional computational cost at runtime.

We also integrate Stochastic Depth, a technique that randomly drops layers during training. We find these techniques to be complementary: Intermediate CTC stabilizes the "foundation" (lower layers) by providing a strong training signal, while Stochastic Depth regularizes the "roof" (higher layers). Unlike "Hierarchical CTC," which requires different labels for different layers, our method uses the same text labels for both losses.

Results and Scaling

Our experiments demonstrate that Intermediate CTC Loss is particularly effective as model depth increases. For a 48-layer Transformer on the WSJ dataset, the combination of Intermediate CTC and Stochastic Depth reduced the Word Error Rate (WER) from 13.8% to 11.8%.

Performance of Transformer models across different depths (12, 24, 48 layers) on WSJ, TED-LIUM2, and AISHELL-1.

Key Insights

  • Forcing Early Feature Extraction: By placing a loss halfway through the network, the model is forced to learn useful, phonetically relevant representations much earlier in its stack, mitigating the vanishing gradient problem in deep networks.
  • The Complementary Effect: While Stochastic Depth alone provides minimal gains for shallow models, its synergy with Intermediate CTC is substantial.
  • Simplicity and Generality: The method is architecture-agnostic, showing gains across both Transformer and Conformer architectures.

State-of-the-Art Performance

Using a 12-layer Conformer architecture, our approach achieved a 9.9% WER on WSJ and a 5.2% Character Error Rate (CER) on AISHELL-1 using greedy decoding alone. This performance is comparable to state-of-the-art autoregressive systems that require much slower beam search.

Performance of Conformer models on WSJ, TED-LIUM2, and AISHELL-1, showing the state-of-the-art results achieved with Intermediate CTC.

Conclusion and Future Work

Intermediate CTC Loss is a simple, effective, and zero-overhead regularization technique. It enables non-autoregressive models to compete with their autoregressive counterparts, providing a path toward high-accuracy, real-time speech recognition. Future work may explore optimal loss placement and integration with Language Model rescoring to further push the boundaries of CTC-based ASR.

Summary updated

BibTeX
@inproceedings{lee2021intermediate,
  author = {Jaesong Lee and Shinji Watanabe},
  title = {{Intermediate Loss Regularization for CTC-based Speech Recognition}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  doi = {10.1109/icassp39728.2021.9414594},
}
Figure