Introduction
While modern Automatic Speech Recognition (ASR) systems have reached impressive levels of accuracy, they often struggle with the "long tail" of language—rare words, proper nouns, and technical jargon specific to individual users. Personalization (p13n) is the primary solution to this problem, yet it typically requires paired audio-transcript data, which is difficult to collect and process on-device due to privacy and storage constraints.
However, users generate a significant amount of text-only data through virtual keyboards, emails, and messaging apps. Researchers at Google have introduced UserLibri, a new dataset and methodology designed to leverage this abundant text-only data to personalize ASR models. By using "shallow fusion" to combine a standard ASR model with a personalized language model (LM) trained on a user's typing history, they achieved significant accuracy gains without requiring additional audio training data.
The UserLibri Dataset
The primary contribution of this work is the creation of UserLibri, a standardized dataset that pairs a speaker's voice with a large corpus of their personal text. To simulate a user's digital footprint, the researchers utilized the existing LibriSpeech corpus and mapped it back to the original Project Gutenberg source material.
- Structure: The dataset includes 107 simulated users (55 from the test-clean set and 52 from test-other).
- Text Corpus: For each speaker, the researchers extracted the remaining text from the specific books the speaker was reading. This resulted in an average of approximately 7,000 sentences per user, providing a substantial text-only corpus to simulate a user's typing history.
Methodology: Shallow Fusion
The researchers employed a technique known as Shallow Fusion to integrate user-specific text data into the ASR process. The system consists of three main components:
- The Base Model: A state-of-the-art Conformer Hybrid Autoregressive Transducer (HAT) model trained on the standard LibriSpeech dataset.
- The Personalized LM: A small Recurrent Neural Network (RNN) Language Model trained specifically on the text-only data for an individual user. The researchers tested various sizes, including 3M, 10M, and 25M parameters.
- The Fusion Process: During the "beam search" phase—where the model evaluates potential word sequences—the system combines scores from both the base ASR model and the personalized LM. The LM acts as a biasing agent, increasing the probability of words or phrases the user frequently uses in their text data.
Key Insights and Results
The study yielded several critical insights into the effectiveness of text-only personalization:
Significant WER Reduction
On the more challenging "test-other" dataset (characterized by noisier audio), personalization using a 25M parameter LM reduced the average Word Error Rate (WER) from 11.2% to 8.7%. This 2.5-point absolute improvement demonstrates the power of using text-only data to ground ASR models in a user's specific vocabulary.
Streaming vs. Non-Streaming Models
Streaming ASR models, which process audio in real-time for low latency, typically have higher error rates than non-streaming models. The researchers found that streaming models saw the largest absolute improvements from personalization. This suggests that a personalized LM can effectively compensate for the inherent architectural limitations of real-time processing.
Data Efficiency
One of the most promising findings was the "500 sentence" threshold. The researchers discovered that fine-tuning a personalized LM on as few as 500 sentences was sufficient to outperform the baseline model. This indicates that personalization can be effective even for users with relatively small amounts of available text data.
Model Scalability
While the 25M parameter LM provided the best results, even the smallest 3M parameter model delivered a significant performance boost. This makes the approach highly viable for resource-constrained mobile devices where memory and processing power are limited.
Limitations and Future Directions
While UserLibri provides a vital benchmark, the authors acknowledge that book-based text is a proxy for real-world data. Personal text (like SMS or chat) is often more informal, contains typos, and lacks the formal grammatical structure of 19th-century literature.
Furthermore, while personalization improves average performance, it can occasionally lead to "losses" where the model over-predicts common words from the user's history at the expense of the actual audio signal. Future research will focus on developing better acceptance criteria to determine when the system should prioritize the personalized LM. Additionally, the researchers aim to expand the methodology to create a Multilingual UserLibri dataset to support a broader range of languages.
Summary updated