Large-scale discriminative language model reranking for voice-search

Preethi Jyothi, Leif Johnson, Ciprian Chelba, Brian StropeWLM @ NAACL 2012

Abstract

We present a distributed framework for large-scale discriminative language models (DLMs) that can be integrated within a large vocabulary continuous speech recognition (LVCSR) system using lattice rescoring. We intentionally use a weakened acoustic model in a baseline LVCSR system to generate candidate hypotheses for voice-search data; this allows us to utilize large amounts of unsupervised data to train our models. We propose an efficient and scalable MapReduce framework that uses a perceptron-style distributed training strategy to handle these large amounts of data. We report small but significant improvements in recognition accuracies on a standard voice-search data set using our discriminative reranking model. We also provide an analysis of the various parameters of our models including model size, types of features, and size of partitions in the MapReduce framework.

Introduction

Traditional Automatic Speech Recognition (ASR) systems rely heavily on N-gram language models. While effective, these models often struggle with structural nuances, sometimes assigning high probabilities to common but ungrammatical sequences. Discriminative Language Models (DLMs) address this by optimizing directly for lower error rates, penalizing features associated with misrecognitions. However, training DLMs at the scale required for modern voice-search—involving terabytes of data and hundreds of millions of features—presents significant challenges in data scarcity and computational scalability.

Methodology: The MapReduce Framework

To overcome these hurdles, the authors developed a distributed training framework based on MapReduce. A key innovation is the "WeakAM" strategy: using a weakened acoustic model to generate candidate hypotheses from unsupervised voice-search logs. This intentionally introduces errors into the training data, providing the DLM with a rich set of negative examples to learn from.

Infrastructure and Scalability

The system utilizes SSTables for efficient storage of high-dimensional feature weights. To mitigate communication bottlenecks, each MapReduce worker maintains a local cache of model parameters for its specific data chunk. This architecture allows the system to scale to models with over 60 million features, completing training in approximately one hour.

System architecture for large-scale DLM training using MapReduce.

Distributed Perceptron Variants

The framework implements a structured perceptron algorithm with three distinct distributed training strategies:

  1. Naive: Aggregates weight increments from all parallel workers.
  2. Distributed: Averages weights across workers at the end of each epoch.
  3. Averaged Distributed: Averages weights over all utterances and epochs, acting as a powerful regularizer.
WER performance of different distributed perceptron variants over training epochs.

Key Insights and Results

Experiments conducted on 87,000 hours of voice-search logs revealed several critical findings:

  • Regularization via Averaging: The Averaged Distributed Perceptron significantly outperformed the naive approach, demonstrating that aggressive averaging is essential for preventing overfitting in distributed environments.
  • Learning from Errors: The WeakAM strategy proved highly effective. On the weakAM-dev set, the DLM achieved a 4.7% absolute (15% relative) reduction in Word Error Rate (WER).
  • Real-World Impact: When tested against a production-grade acoustic model on the v-search-test set, the DLM provided a small but statistically significant ~2% relative reduction in WER compared to state-of-the-art N-gram models.
  • Feature Importance: While the system supports up to 5-grams, most gains were derived from unigrams and bigrams, suggesting that DLMs are most effective at correcting fundamental lexical implausibilities.
  • Chunk Size Optimization: Increasing the Map chunk size improved performance by allowing more on-line parameter updates within each worker before global synchronization.

Conclusion

This work demonstrates that large-scale discriminative reranking is both feasible and beneficial for voice-search applications. By leveraging a weakened acoustic model for data generation and a scalable MapReduce framework for training, the proposed system effectively handles massive datasets. Future improvements may involve better handling of the spoken-to-written domain mismatch and exploring contrastive sampling from text corpora to further scale training without the need for audio data.

Summary updated

BibTeX
@inproceedings{jyothi2012large,
  author = {Preethi Jyothi and Leif Johnson and Ciprian Chelba and Brian Strope},
  title = {{Large-scale discriminative language model reranking for voice-search}},
  booktitle = {WLM @ NAACL},
  year = {2012},
  url = {https://openreview.net/forum?id=SJb_AfZ_bH},
}
Figure