Learn Spelling from Teachers: Transferring Knowledge from Language Models to Sequence-to-Sequence Speech Recognition

Ye Bai, Jiangyan Yi, Jianhua Tao, Zhengkun Tian, Zhengqi Wen

Introduction

Sequence-to-sequence (Seq2Seq) models, such as the "Listen, Attend, and Spell" architecture, have become a standard in Automatic Speech Recognition (ASR). While effective at mapping audio features to text, these models often fail to fully exploit the vast amounts of unpaired text data available on the internet. Traditionally, external Language Models (LMs) are integrated during inference via techniques like Shallow or Deep Fusion. However, these methods increase computational complexity and latency at test time. This paper introduces Learn Spelling from Teachers (LST), a knowledge distillation approach that transfers linguistic knowledge from a pre-trained LM to an ASR model during training, requiring no additional parameters during inference.

Methodology

The LST framework utilizes a Teacher-Student paradigm to bake linguistic knowledge directly into the ASR system. A Recurrent Neural Network Language Model (RNNLM) is first trained on a large-scale text corpus (such as CLMAD) to serve as the "teacher." The ASR model, acting as the "student," is then trained using a combination of standard ground-truth labels and "soft labels" provided by the teacher.

Standard Seq2Seq ASR training architecture using hard labels.

Unlike standard training which uses "hard" one-hot labels (where only the correct word has a probability of 1), the teacher LM provides a probability distribution over the entire vocabulary for each time step. These "soft labels" capture the linguistic context, indicating not just the correct word but also the likelihood of semantically or syntactically related alternatives. The final training loss is a weighted combination (interpolation) of the standard cross-entropy loss from the hard labels and the teacher's soft labels.

Comparison of hard labels (one-hot) and soft labels (probability distributions) used in the LST framework.

Crucially, once training is complete, the teacher LM is discarded. The student model has internalized the linguistic patterns and can perform high-quality recognition on its own, maintaining the same inference speed and memory footprint as the baseline model.

Experiments and Results

The researchers evaluated LST on the AISHELL-1 Chinese speech corpus (150 hours) and the CLMAD text dataset (3 million sentences). Using a Speech-Transformer as the student model, the experiments yielded significant improvements:

  • Baseline Seq2Seq: 11.4% Character Error Rate (CER).
  • Seq2Seq + LST: 9.3% CER (an 18.4% relative reduction).
  • Seq2Seq + LST + Shallow Fusion: 8.3% CER.

The LST method also outperformed other regularization techniques like Unigram Smoothing, proving that the teacher's context-aware guidance is superior to simple frequency-based statistics. Furthermore, the results show that LST and Shallow Fusion are complementary, allowing for even greater accuracy when combined during the final decoding process.

Conclusion

The "Learn Spelling from Teachers" approach provides an efficient path toward more accurate speech recognition by treating language modeling as a training-time transfer of knowledge rather than a test-time computational burden. By eliminating the need for an external LM during inference, LST is particularly well-suited for on-device ASR applications where memory and battery are limited. Future work may explore using more powerful teacher models, such as large-scale pre-trained transformers like BERT or GPT, to further enhance the student's linguistic capabilities.

Summary updated

BibTeX
@inproceedings{bai2019learn,
  author = {Ye Bai and Jiangyan Yi and Jianhua Tao and Zhengkun Tian and Zhengqi Wen},
  title = {{Learn Spelling from Teachers: Transferring Knowledge from Language Models to Sequence-to-Sequence Speech Recognition}},
  booktitle = {Interspeech},
  year = {2019},
  url = {https://openreview.net/forum?id=dIzHiR8MBfr},
}
Figure