Learning Domain Specific Language Models for Automatic Speech Recognition through Machine Translation

Saurav JhaarXiv 2021

Abstract

Automatic Speech Recognition (ASR) systems have been gaining popularity in recent years for their widespread usage in smartphones and speakers. Building ASR systems for task-specific scenarios is subject to the availability of utterances that adhere to the style of the task as well as the language in question. In our work, we target such a scenario wherein task-specific text data is available in a language that is different from the target language in which an ASR Language Model (LM) is expected. We use Neural Machine Translation (NMT) as an intermediate step to first obtain translations of the task-specific text data. We then train LMs on the 1-best and N-best translations and study ways to improve on such a baseline LM. We develop a procedure to derive word confusion networks from NMT beam search graphs and evaluate LMs trained on these confusion networks. With experiments on the WMT20 chat translation task dataset, we demonstrate that NMT confusion networks can help to reduce the perplexity of both n-gram and recurrent neural network LMs compared to those trained only on N-best translations.

Introduction

The efficacy of Automatic Speech Recognition (ASR) systems, such as voice assistants, depends heavily on the quality of the underlying Language Model (LM). A high-performing LM must capture the specific linguistic nuances of the target domain—ranging from technical medical jargon to the informal shorthand used in service-oriented chat applications. However, a significant bottleneck in developing these systems is the scarcity of domain-specific text data in the target language.

Often, relevant data may exist in a different language. A common approach is to translate this data into the target language using Machine Translation (MT). However, standard MT systems typically output a single "1-best" translation, which may contain errors or lack the linguistic variety necessary for robust LM training. This work investigates methods to leverage the internal uncertainty of Neural Machine Translation (NMT) systems to create more effective LMs for ASR.

Methodology

The proposed approach moves beyond simple text-to-text translation by utilizing the probabilistic outputs of NMT models.

NMT with Beam Search and Confusion Networks

Rather than relying on a single translation, the system utilizes beam search to maintain the top $N$ most likely translation hypotheses. The core innovation is the conversion of these $N$-best paths into Word Confusion Networks (WCNs). A WCN is a directed acyclic graph where each edge represents a word and is associated with a probability. This structure effectively captures the translation model's uncertainty by representing multiple competing hypotheses in a compact, probabilistic format.

Data Processing and Training

To ensure the quality of the training data, a rigorous post-processing pipeline is applied. This includes:

  • Removal of punctuation.
  • Pruning of excessively long or repetitive paths, which are common artifacts in NMT beam search.
  • Handling of Out-of-Vocabulary (OOV) tokens.

The resulting confusion networks are used to train both traditional n-gram LMs and Recurrent Neural Network (RNN) LMs. This is facilitated by the CN2LM library, which allows for direct training on graph-based structures, enabling the models to learn from the entire distribution of translation hypotheses simultaneously.

Experimental Setup

The methodology was evaluated using the WMT20 English-German (EN-DE) chat translation corpus. This dataset consists of human-to-human chats across six domains: pizza ordering, movie tickets, coffee shop interactions, auto repair, restaurant reservations, and ride services. The corpus contains approximately 13,222 training sentences. In this study, the German text served as the source data, with the goal of building an English LM for ASR.

Results and Discussion

The performance of the trained LMs was measured using perplexity, where lower values indicate better predictive performance.

Performance Comparison

Experimental results demonstrate that training on Confusion Networks consistently outperforms training on 1-best or N-best sequences:

  • n-gram LMs: For a beam size of $N=100$, the perplexity decreased from 43.7 (using N-best sequences) to 42.9 (using CN2LM). Both significantly outperformed the 1-best baseline, which reached perplexities as high as 56.5.
  • RNN LMs: The most effective approach for RNNs involved supplementing the confusion network training with concrete N-best sequences. For $N=100$, this hybrid approach reduced perplexity from 48.0 (N-best only) to 47.1.

Key Insights

The results suggest that treating translation uncertainty as a feature rather than a drawback provides better coverage of potential user utterances. While the study also explored "Group Beam Search" to increase translation diversity, standard beam search yielded lower perplexity, indicating that the quality of the alternative hypotheses is more critical than their diversity for this specific task.

Conclusion and Future Work

This research demonstrates that NMT-derived Word Confusion Networks are a powerful tool for building domain-specific LMs when target-language data is scarce. While n-gram models currently show a slight edge in this setup, future work will focus on optimizing RNN hyperparameters to further improve performance. Additionally, the authors plan to evaluate these models in end-to-end ASR systems to measure actual improvements in Word Error Rate (WER) and explore data augmentation techniques like backtranslation to further enhance the training set.

Summary updated

BibTeX
@misc{jha2021learning,
  author = {Saurav Jha},
  title = {{Learning Domain Specific Language Models for Automatic Speech Recognition through Machine Translation}},
  year = {2021},
  eprint = {2110.10261},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.10261},
}
Figure