Skip to main content
QUICK REVIEW

[Paper Review] An Empirical Study of Efficient ASR Rescoring with Transformers

Hongzhao Huang, Fuchun Peng|arXiv (Cornell University)|Oct 24, 2019
Topic ModelingComputer Science30 references8 citations
TL;DR

This paper proposes an efficient approach to training small, high-performing Transformer language models for automatic speech recognition (ASR) rescoring by combining subword tokenization, adaptive softmax, large-scale pre-training, and knowledge distillation. The method achieves 6.46% to 7.17% relative word error rate reduction—comparable to a much larger GPT model—while using only 5.5% to 11.9% of its parameters, significantly reducing inference latency and computational cost.

ABSTRACT

Neural language models (LMs) have been proved to significantly outperform classical n-gram LMs for language modeling due to their superior abilities to model long-range dependencies in text and handle data sparsity problems. And recently, well configured deep Transformers have exhibited superior performance over shallow stack of recurrent neural network layers for language modeling. However, these state-of-the-art deep Transformer models were mostly engineered to be deep with high model capacity, which makes it computationally inefficient and challenging to be deployed into large-scale real-world applications. Therefore, it is important to develop Transformer LMs that have relatively small model sizes, while still retaining good performance of those much larger models. In this paper, we aim to conduct empirical study on training Transformers with small parameter sizes in the context of ASR rescoring. By combining techniques including subword units, adaptive softmax, large-scale model pre-training, and knowledge distillation, we show that we are able to successfully train small Transformer LMs with significant relative word error rate reductions (WERR) through n-best rescoring. In particular, our experiments on a video speech recognition dataset show that we are able to achieve WERRs ranging from 6.46% to 7.17% while only with 5.5% to 11.9% parameter sizes of the well-known large GPT model [1], whose WERR with rescoring on the same dataset is 7.58%.

Motivation & Objective

  • To develop small, efficient Transformer language models that maintain strong performance for ASR rescoring.
  • To reduce model size and inference latency without sacrificing recognition accuracy.
  • To explore techniques that make large-scale deployment of state-of-the-art Transformer LMs feasible in real-world applications.
  • To evaluate the effectiveness of knowledge distillation and pre-training in improving small model performance.

Proposed method

  • Use byte pair encoding (BPE) with small vocabularies (5K, 10K, 25K) to reduce model size and handle out-of-vocabulary words.
  • Apply adaptive softmax to reduce the computational cost of the output layer by assigning variable capacity to frequent and rare tokens.
  • Train large, pre-trained teacher models on large-scale in-domain text to improve initial representation learning.
  • Fine-tune the teacher models on in-domain ASR data to enhance domain-specific performance.
  • Use knowledge distillation to transfer knowledge from large teacher models to smaller student models.
  • Combine all techniques to train compact Transformer LMs that achieve high performance in n-best rescoring.

Experimental results

Research questions

  • RQ1Can small Transformer language models with reduced parameter counts achieve competitive ASR rescoring performance compared to large models?
  • RQ2How effective are subword units and adaptive softmax in reducing model size while preserving performance?
  • RQ3To what extent does large-scale pre-training and knowledge distillation improve small model performance in ASR rescoring?
  • RQ4What is the trade-off between model size, inference speed, and word error rate reduction in small Transformer LMs?

Key findings

  • Small Transformer LMs with 5.5% to 11.9% of the parameters of a large GPT model achieved relative word error rate reductions of 6.46% to 7.17% on a video speech recognition dataset.
  • Using 5K or 10K BPE vocabularies with adaptive softmax reduced model size by up to 61% for small models, with minimal performance degradation.
  • Knowledge distillation from pre-trained and fine-tuned teacher models reduced perplexity by 11.8% and 12.7% for 10K and 5K vocabularies, respectively, and further improved WER.
  • Large-scale pre-training reduced perplexity by 20.7% and 12.7% for 10K and 5K vocabularies, respectively, demonstrating its effectiveness even with in-domain data.
  • The combination of subword units, adaptive softmax, pre-training, and distillation enabled small models to match the performance of much larger models with significantly reduced computational cost.
  • Inference speedups of 7.6x to 8.4x were achieved on CPU for small models with 5K or 10K BPE vocabularies compared to the large Transformer LM.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.