Scaling Laws for Discriminative Speech Recognition Rescoring Models

Yile Gu, Prashanth Gurunath Shivakumar, Jari Kolehmainen, Ankur Gandhe, Ariya Rastrow, Ivan Bulyko · DOI

Abstract

Recent studies have found that model performance has a smooth power-law relationship, or scaling laws, with training data and model size, for a wide range of problems. These scaling laws allow one to choose nearly optimal data and model sizes. We study whether this scaling property is also applicable to second-pass rescoring, which is an important component of speech recognition systems. We focus on RescoreBERT as the rescoring model, which uses a pre-trained Transformer-based architecture fined tuned with an ASR discriminative loss. Using such a rescoring model, we show that the word error rate (WER) follows a scaling law for over two orders of magnitude as training data and model size increase. In addition, it is found that a pre-trained model would require less data than a randomly initialized model of the same size, representing effective data transferred from pre-training step. This effective data transferred is found to also follow a scaling law with the data and model size.

Introduction

Modern Automatic Speech Recognition (ASR) systems typically employ a two-pass architecture. A fast, streaming first-pass model generates a list of likely hypotheses (n-best list), which is then refined by a more computationally intensive second-pass rescoring model. While scaling laws—predictable mathematical relationships between model performance, size, and data—are well-established for large language models (LLMs), their application to discriminative rescoring has remained largely unexplored. This research investigates whether rescoring performance follows these power laws and quantifies the impact of pre-training on model efficiency.

Methodology: RescoreBERT

The study focuses on RescoreBERT, a discriminative rescorer. The model takes the n-best hypotheses from an ASR system and processes them through a BERT-based encoder. A feed-forward network (FFNN) then predicts a rescoring value for each hypothesis to rerank them.

The RescoreBERT architecture for n-best hypothesis rescoring.

To evaluate performance, the authors introduced Normalized WER ($WER_{norm}$), defined as:

$$WER_{norm} = \frac{WER_{rescore} - WER_{oracle}}{WER_{1st\_pass} - WER_{oracle}}$$

This metric scales performance between the theoretical "oracle" limit (the best possible choice in the n-best list) and the baseline first-pass performance. Training utilized a Minimum Word Error Rate (MWER) loss to directly minimize expected errors.

Scaling Laws and the Impact of Pre-training

The researchers tested four BERT variants (5M to 700M parameters) across two training regimes: training from scratch (random initialization) and fine-tuning from a model pre-trained on 1 trillion tokens.

Comparison of scaling laws for models trained from scratch vs. fine-tuned from pre-trained BERT.

Key Findings

  • From-Scratch Models are Data-Bound: For models trained without pre-training, performance depends almost entirely on the volume of supervised training data. As seen in Figure 4(a), increasing model size from 5M to 700M parameters yielded negligible gains; all models followed the same scaling trajectory relative to data volume.
  • Pre-training Unlocks Parameter Scaling: Pre-training fundamentally changes the scaling behavior. As shown in Figure 4(b), larger pre-trained models significantly outperform smaller ones given the same amount of fine-tuning data. Larger models are better at leveraging the knowledge gained during the massive pre-training phase.
  • The "Effective Data" Boost: Pre-training acts as a massive head start, providing what the authors call "effective data transferred" ($D_T$). A pre-trained model requires approximately 30x less human-annotated data to reach the same $WER_{norm}$ as a model trained from scratch. For example, to reach a $WER_{norm}$ of 0.875, a from-scratch model needs ~30,000 hours of data, while a pre-trained model needs only ~1,000 hours.

Predictable Trade-offs

The relationship between $WER_{norm}$, data ($D$), and model size ($N$) follows a power law:

$$WER_{norm} = \left( \frac{D_C}{k D^\alpha N^\beta} \right)^{\alpha_D}$$

This equation allows for precise resource allocation. For pre-trained rescorers, the results suggest that a 10x increase in model size provides a performance boost equivalent to a 5.3x increase in training data.

Conclusion

This work demonstrates that discriminative ASR rescoring follows predictable scaling laws. By quantifying the "effective data" provided by pre-training, researchers can better navigate the trade-offs between collecting more transcribed speech and increasing model complexity. Future work may explore if these laws hold for audio-conditioned rescorers or in regimes with even higher data volumes where from-scratch models might begin to show parameter scaling.

Summary updated

Abstract

Recent studies have found that model performance has a smooth power-law relationship, or scaling laws, with training data and model size, for a wide range of problems. These scaling laws allow one to choose nearly optimal data and model sizes. We study whether this scaling property is also applicable to second-pass rescoring, which is an important component of speech recognition systems. We focus on RescoreBERT as the rescoring model, which uses a pre-trained Transformer-based architecture fined tuned with an ASR discriminative loss. Using such a rescoring model, we show that the word error rate (WER) follows a scaling law for over two orders of magnitude as training data and model size increase. In addition, it is found that a pre-trained model would require less data than a randomly initialized model of the same size, representing effective data transferred from pre-training step. This effective data transferred is found to also follow a scaling law with the data and model size.
BibTeX
@inproceedings{gu2023scaling,
  author = {Yile Gu and Prashanth Gurunath Shivakumar and Jari Kolehmainen and Ankur Gandhe and Ariya Rastrow and Ivan Bulyko},
  title = {{Scaling Laws for Discriminative Speech Recognition Rescoring Models}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-2128},
}
Figure