Introduction
Traditionally, Automatic Speech Recognition (ASR) systems have relied on "conventional" architectures composed of separate acoustic, pronunciation, and language models. While highly accurate, these systems are massive—often exceeding tens of gigabytes—and require significant server-side resources to operate.
End-to-end (E2E) models offer a compelling alternative by consolidating these components into a single neural network small enough to run locally on mobile devices. However, E2E models have historically struggled with a "quality vs. latency" trade-off: streaming models like the RNN-Transducer (RNN-T) provide low latency but lower accuracy, while high-accuracy models like Listen, Attend, Spell (LAS) are typically non-streaming. This research bridges that gap, delivering server-grade quality with on-device speed and privacy.
Methods: Two-Pass Architecture
The researchers propose a two-pass architecture designed to balance immediate feedback with high-quality final results.
- First Pass (RNN-T): A streaming RNN-T decoder provides immediate hypotheses as the user speaks, ensuring a responsive user experience.
- Second Pass (LAS): A LAS decoder rescores the possibilities generated by the first pass.
To optimize for on-device constraints, both decoders utilize a Shared Encoder. The LAS decoder also incorporates an "Additional Encoder" to process the shared features further before rescoring a lattice of word sequences rather than a simple N-best list.
Key Innovations
- Domain-ID Input: To handle "transcription noise" across different data sources (e.g., YouTube vs. Voice Search), the model is fed a one-hot vector indicating the domain. This allows the model to learn domain-specific formatting (like "$100" vs. "one hundred dollars") without confusion.
- Accent Robustness: By predicting "word-pieces" directly and training on a diverse set of global English accents (including UK, India, and Nigeria), the model eliminates the need for a complex phonetic lexicon while improving global performance.
- Joint Endpointing: The RNN-T is trained to predict an "end-of-sentence" symbol (
</s>). By integrating endpointing directly into the E2E model with specific penalties for early or late triggers, the system minimizes the time between the user finishing their sentence and the microphone closing.
Key Results
The proposed E2E model demonstrates significant improvements over the conventional server-side baseline across all major metrics.
- Quality and Latency: The E2E model achieved a 6.1% Word Error Rate (WER) on Voice Search, surpassing the 6.6% WER of the conventional baseline. Crucially, as shown in the performance curves, the E2E model maintains a lower WER than the conventional system across various latency targets.
- Efficiency: Through 8-bit quantization, the model size was reduced to just 177MB. Compared to the 87GB conventional system, this represents a 400x reduction in size, enabling efficient on-device deployment.
- Inference Speed: Implementing batch inference for the LAS rescorer reduced second-pass latency by 32%, resulting in a 90th-percentile latency of only 97ms on a Pixel 4.
Conclusion
This work demonstrates that on-device E2E models can not only match but exceed the performance of massive server-side conventional ASR systems. By combining a two-pass architecture with multi-domain training and joint endpointing, the researchers have created a system that is significantly smaller, faster, and more accurate, paving the way for the next generation of private, high-performance speech recognition.
Summary updated