Introduction
While Large Language Models (LLMs) have fundamentally transformed Natural Language Processing, their integration into Automated Speech Recognition (ASR) systems—particularly for long-form audio—has historically been limited by computational constraints and the complexity of long-range context. Standard ASR models typically rely on smaller, in-domain language models that often struggle with the nuances of extended discourse and the recognition of rare, topic-specific terms such as technical jargon or proper names.
This research explores the impact of scaling LLMs, including T5 and PaLM (up to 540B parameters), to rescore ASR hypotheses for long-form content like YouTube videos. The study focuses on two primary challenges: improving contextual awareness across 30-minute segments and enhancing the accuracy of "salient" terms that are critical for search and indexing.
Methodology
The researchers implemented a two-pass architecture based on the Hybrid Autoregressive Transducer (HAT) framework.
Two-Pass Rescoring
- First Pass: A Conformer-based ASR model generates a lattice representing a graph of possible word sequences.
- Lattice Optimization: The team transitioned from traditional tree-based lattices to a "proper digraph" topology. This change facilitates "state merging," which significantly increases the diversity of the N-best hypotheses available for the LLM to evaluate.
- LLM Integration: Massive models, ranging from T5 (60M to 11B parameters) to PaLM (up to 540B parameters), re-evaluate these hypotheses. To ensure the LLM's external knowledge was correctly integrated without being overshadowed by the first-pass bias, the authors used a "density ratio" approach, combining the ASR score and LLM score while subtracting the ASR's internal language model (ILM) score.
Contextual Augmentation
To address the requirements of long-form audio, the system carries over the "1-best" hypothesis from the immediately preceding segment as text context. This provides the LLM with a historical buffer to better predict upcoming tokens in a continuous stream of speech.
Experimental Setup
Datasets
The models were trained and evaluated using several thousand hours of long-form YouTube videos and anonymized Google Voice Search traffic. Evaluation focused on 30-minute videos in two specific locales:
- US English (en-us): Standard long-form content.
- Indian English (en-in): Characterized by heavy code-switching between English and Hindi.
Training Data
LLMs were pre-trained on the Colossal Clean Crawled Corpus (C4) and its multilingual counterpart (MC4). For the Indian English task, the researchers utilized WEBDOC, a 2.9B token corpus consisting of Indian English and Hindi Wikipedia and web content, to better capture local linguistic nuances.
Key Insights
The Role of Context
The study found that providing the LLM with context from the single preceding segment significantly improved recognition accuracy. However, extending this context to two or more segments yielded diminishing returns, suggesting that immediate local history is the most critical factor for rescoring performance.
Scaling and Rare Word Accuracy
A clear scaling law emerged: as model size increased from T5-Small to PaLM 540B, error rates consistently declined. The most significant impact was observed in the Salient Term Error Rate (STER). Because LLMs are trained on massive, diverse datasets, they possess a far greater vocabulary of rare entities and technical terms than standard ASR language models.
Complementary Strengths
The research demonstrated that the gains from general-purpose LLMs and conventional, in-domain neural LMs are additive. Combining these models yielded better results than using either in isolation, as the LLM provides broad world knowledge while the in-domain LM provides specific stylistic alignment.
Results
- Word Error Rate (WER): The system achieved up to an 8% relative reduction in WER across both US English and Indian English long-form datasets.
- Salient Term Error Rate (STER): The researchers observed a staggering 30% relative reduction in STER compared to a strong first-pass baseline, highlighting the LLM's superior ability to identify key terms.
- PaLM Performance: While the 540B parameter PaLM model delivered the highest accuracy, even the smaller 8B and 62B variants significantly outperformed traditional ASR language models.
- Code-Switching: Fine-tuning the multilingual MT5 model on the WEBDOC corpus proved essential for handling the frequent English-Hindi switching in the Indian English dataset.
Conclusion and Future Work
While the use of 540B parameter models provides state-of-the-art accuracy, the computational cost and latency make them currently better suited for offline applications, such as generating captions for uploaded YouTube videos, rather than real-time transcription. Future research will focus on more efficient integration methods and balancing the general knowledge of LLMs with the specific requirements of in-domain fine-tuning.
Summary updated