Abstract
Modern End-to-End (E2E) speech recognition systems often struggle with "rare words," such as personalized wake words or contact names, which appear infrequently in training data. While neural biasing techniques can improve accuracy for these terms, they typically impose a significant computational burden. We present a dual-attention neural biasing architecture that dynamically switches between compute paths based on the audio context. By utilizing a lightweight attention network for wake word (WW) spotting and a higher-capacity network for the subsequent utterance, we achieve a 90% reduction in computational cost (FLOPs) for wake word processing and a 16% relative improvement in WW F1 score, with only a 1% increase in total model parameters.
Introduction
Voice-activated assistants must balance high accuracy with low latency and power consumption. A primary challenge in this domain is the recognition of specific "anchor" words—wake words like "Alexa" or "Ziggy"—and personalized entities like contact names. Standard neural biasing mechanisms use attention to compare audio frames against a catalog of relevant terms. However, running these mechanisms across every frame of an utterance is computationally expensive, particularly for on-device applications where battery life and processing power are constrained.
This research introduces a "Bifocal" RNN-T architecture. This system recognizes that the beginning of a request (the wake word) is more predictable and requires less computational depth than the diverse range of commands that follow. By bifurcating the attention mechanism, we can optimize for both efficiency and accuracy.
Methodology
Dual-Attention Neural Biasing
The core of the proposed architecture is the use of two distinct Multi-Head Attention (MHA) branches that are activated based on the stage of the utterance:
- Small MHA ($A^s$): A lightweight network paired with a small audio encoder. This branch is active during the "lead-in" phase when the system is listening for a wake word.
- Large MHA ($A^l$): A high-capacity attention network paired with a larger encoder. This branch is triggered only after a wake word is successfully spotted, allowing the system to handle the higher complexity of the user's actual request (e.g., "call Anastasios").
Dynamic Catalog Masking
To further reduce compute, the system employs dynamic catalog masking. At the start of an utterance, the attention mechanism only searches a small catalog of approximately six possible wake words. Once the system detects a wake word, it dynamically switches its focus to a much larger catalog containing thousands of potential proper names or personalized entities. This "search-space switching" prevents the system from wasting resources scanning thousands of irrelevant names during the initial wake word detection phase.
Contextual Encoding
The text catalog is processed via a BiLSTM-based Context Encoder. These embeddings are cached, ensuring that the runtime compute is focused solely on the attention mechanism rather than re-processing the text data.
Experimental Setup
The model was trained and evaluated using large-scale, de-identified internal datasets:
- Training: 114,000 hours of general voice assistant traffic, supplemented with 290 hours of proper name data and 3.6k hours of semi-supervised data for custom wake words.
- Evaluation: The system was tested against a 75-hour general test set, a 20-hour proper names test set, and a 25-hour human-annotated set specifically designed to measure wake word accuracy.
Key Results
The dual-attention architecture (specifically the "dual-attn-64" variant) demonstrated significant performance gains over standard neural biasing baselines:
- Efficiency: Achieved a 90% reduction in FLOPs during the lead-in audio frames by utilizing the smaller attention branch and restricted catalog.
- Wake Word Accuracy: The model showed a 16% relative improvement in F1 score for wake word spotting, proving that specialized, smaller models can outperform general models for specific tasks.
- Recognition Accuracy: For proper names, the system achieved a 28-30% reduction in Word Error Rate (WERR) compared to non-biased baselines, and a 3% relative improvement in generic rare word error rates.
- Model Overhead: These improvements were achieved with a negligible 1% increase in total parameter count, making it highly suitable for deployment on edge devices.
Discussion and Future Work
The "Bifocal" approach demonstrates that compute amortization is possible by tailoring model complexity to the perplexity of the input. However, the system's performance is currently dependent on the "pivot"—the accuracy of the initial wake word spotting. If the system fails to detect the wake word or does so with high latency, the transition to the larger model may miss critical context.
Future research will focus on scaling this architecture to even larger catalogs and exploring ways to mitigate memory bandwidth challenges on embedded hardware. Additionally, the development of public benchmarks for custom wake word spotting would allow for broader community validation of these architectural improvements.
Summary updated