Abstract
Researchers at Amazon Alexa have developed AcousText, a hybrid Language Identification (LID) system that combines raw acoustic signals with real-time text hypotheses from parallel ASR engines. This approach slashes language detection errors by up to 50% and enables "early stopping," allowing the system to terminate incorrect ASR threads roughly 1.5 seconds early for over half of all queries, significantly saving cloud compute costs.
Introduction
In multilingual households, voice assistants must decide which language a user is speaking (e.g., English vs. Spanish) to provide an accurate response. The standard industry approach is to run multiple Automatic Speech Recognition (ASR) engines in parallel and use an LID component to pick the winner.
However, traditional LID systems rely solely on acoustic features (the sound of the voice). These systems often stumble on accented speech, code-switching (common in pairs like Hindi and English), and computational waste from running multiple ASRs for the entire duration of an utterance. AcousText addresses these by fusing acoustic data with the semantic signals present in ASR hypotheses.
Methodology: The AcousText Architecture
The authors propose a multi-stage architecture called AcousText LID, which integrates acoustic and textual signals to improve classification robustness.
The system consists of three primary components:
- Acoustic Encoder: A multi-layer LSTM that converts audio frames into a fixed-size acoustic embedding.
- Text Encoders: Separate LSTMs that process the "1-best" partial text hypotheses generated by parallel ASR engines every 600ms.
- Fusion Layer: A fully connected network that joins the acoustic and text embeddings to make a final language prediction.
Streaming Inference & Early Stopping
To optimize for latency and cost, the system employs a streaming inference mechanism. It evaluates confidence every 600ms ($T$). If the probability for a specific language exceeds a predefined threshold ($\theta$), the system identifies the language immediately and shuts down the competing, non-matching ASR thread.
Semi-Supervised Learning (SSL)
Recognizing the computational weight of the text-based model in production, the researchers used AcousText as a "teacher" to label 1 million hours of unlabeled audio. This data was then used to retrain a simpler, acoustic-only "student" model, effectively transferring "textual wisdom" into a more efficient runtime component.
Experimental Setup
The models were evaluated on three major bilingual pairs: English (US)/Spanish (US), English (CA)/French (CA), and English (IN)/Hindi (IN). Training sets comprised 3,000 to 3,500 hours of audio per pair, augmented with simulated reverberation. SSL experiments utilized an additional 1 million anonymized live traffic streams.
Key Results
- Accuracy: AcousText achieved a 50% relative reduction in error rate compared to acoustic-only models for the English/Spanish pair.
- Efficiency: Early stopping saved 38% to 48% of decoding time for the non-target ASR. Correct identification occurred on average 1500ms before the end of the utterance for over 50% of queries.
- SSL Impact: The acoustic-only "student" model saw its error rate drop by 48.4% for en-US after training on AcousText-generated labels, proving the value of the hybrid teacher model even for acoustic-only deployments.
Conclusion and Future Work
AcousText demonstrates that ASR hypotheses act as a high-level semantic filter, grounding the model against acoustic ambiguities. While highly effective, the authors note that frequent code-switching (e.g., Hindi/English) makes early stopping riskier, as a late-sentence language switch could be missed. Future work will focus on handling these highly mixed-language utterances where a single global label may be insufficient.
Summary updated