Hierarchical Multitask Learning for CTC-based Speech Recognition

Kalpesh Krishna, Shubham Toshniwal, Karen LivescuarXiv 2018

Abstract

Previous work has shown that neural encoder-decoder speech recognition can be improved with hierarchical multitask learning, where auxiliary tasks are added at intermediate layers of a deep encoder. We explore the effect of hierarchical multitask learning in the context of connectionist temporal classification (CTC)-based speech recognition, and investigate several aspects of this approach. Consistent with previous work, we observe performance improvements on telephone conversational speech recognition (specifically the Eval2000 test sets) when training a subword-level CTC model with an auxiliary phone loss at an intermediate layer. We analyze the effects of a number of experimental variables (like interpolation constant and position of the auxiliary loss function), performance in lower-resource settings, and the relationship between pretraining and multitask learning. We observe that the hierarchical multitask approach improves over standard multitask training in our higher-data experiments, while in the low-resource settings standard multitask training works well. The best results are obtained by combining hierarchical multitask learning and pretraining, which improves word error rates by 3.4% absolute on the Eval2000 test sets.

Introduction

Modern "end-to-end" Automatic Speech Recognition (ASR) systems typically map raw audio directly to text (characters or subwords) using deep neural networks. While powerful, these models are often treated as "black boxes." Although they implicitly learn intermediate representations—like phonemes—on their way to predicting words, they are rarely explicitly guided to do so. This paper addresses the optimization challenges of training deep models from scratch and explores whether forcing intermediate layers to learn phonetic information can improve final accuracy by mimicking the natural hierarchy of language (sounds $\rightarrow$ subwords $\rightarrow$ words).

Methodology

The researchers employed a Connectionist Temporal Classification (CTC) framework using a 5-layer bidirectional LSTM (BiLSTM) encoder. The core innovation is Hierarchical Multitask Learning (MTL), which introduces an auxiliary task to guide the network's internal representations.

Architecture of the hierarchical CTC model showing the main subword task and auxiliary phone task.

As shown in the architecture diagram, the model consists of:

  • Main Task: The final layer (Layer 5) is trained to predict subwords (wordpieces) using a CTC loss.
  • Auxiliary Task: An intermediate layer is simultaneously trained to predict phonemes (phones) using a separate CTC loss.
  • Loss Function: The model minimizes a weighted sum of both losses: $L = \lambda L_{subword} + (1 - \lambda) L_{phone}$.

Additionally, the study explored pretraining, where lower layers are initialized by training solely on the phoneme task before the full multitask training begins.

Experimental Results and Analysis

Experiments were conducted on the Switchboard-1 corpus (300 hours) and evaluated on the HUB5 Eval2000 dataset. To test robustness, simulations were also run using 10%, 25%, and 50% of the training data.

The Layer "Sweet Spot"

A critical finding was the sensitivity of performance to the placement of the auxiliary loss. The researchers discovered that applying the phonetic loss at Layer 3 (out of 5) yielded the best word recognition results.

Word Error Rate (WER) as a function of which layer the auxiliary phone CTC loss is applied to.

As illustrated in the figure above, if the loss is applied too early (Layer 1), it becomes too restrictive; if applied at the final layer, it fails to help the intermediate layers develop better features for the primary subword task. Interestingly, the layer that is best for predicting phonemes is not necessarily the best layer to attach the auxiliary loss to for improving subword recognition.

Performance in Low-Resource Settings

In low-data settings (10% of the training set), the baseline model failed to converge entirely. However, the multitask models converged easily, demonstrating that the auxiliary phonetic task acts as a powerful regularizer and "guide" for the gradient during optimization. In the 50% data setting, the hierarchical MTL model nearly matched the performance of a baseline model trained on 100% of the data (25.7% vs 25.5% WER).

Synergy with Pretraining

While both pretraining and MTL provide individual benefits, their combination yielded the most significant gains. Pretraining initializes weights in a "phonetically aware" state, which MTL then maintains during the final training phase. The best-performing model (Pretraining + MTL) achieved a 24.3% WER on the full Eval2000 set, a 3.4% absolute improvement over the 27.7% baseline.

Conclusion

This work demonstrates that guiding deep ASR models with hierarchical auxiliary tasks significantly boosts performance and training stability. While the approach is sensitive to hyperparameters like the interpolation constant ($\lambda$) and the specific layer ($i$) for auxiliary loss, the gains in accuracy and robustness are substantial. Future research may explore extending this hierarchy to include higher-level linguistic tasks such as part-of-speech tagging or syntactic chunking, as well as applying these principles to Transformer-based architectures.

Summary updated

BibTeX
@misc{krishna2018hierarchical,
  author = {Kalpesh Krishna and Shubham Toshniwal and Karen Livescu},
  title = {{Hierarchical Multitask Learning for CTC-based Speech Recognition}},
  year = {2018},
  eprint = {1807.06234},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.06234},
}
Figure