TL;DR
Researchers at Amazon Alexa AI have developed a "Two-Pass" system for endpoint detection (EP) that significantly reduces premature cut-offs in voice assistants. By adding a second-pass "EP Arbitrator" to verify candidate endpoints using segment-level acoustic and lexical context, the system improves the trade-off between response latency and recognition accuracy across transactional and conversational speech.
What Problem Does This Paper Address?
Endpointing is the task of determining exactly when a user has finished speaking. It is a high-stakes balancing act for voice assistants:
- Latency: If the system waits too long to ensure the user is done, the response feels sluggish.
- Accuracy: If the system endpoints too early, it cuts the user off mid-sentence, leading to high Word Error Rates (WER) and user frustration.
Traditional "first-pass" endpointers operate in a streaming fashion, making decisions frame-by-frame. These models often struggle with natural speech patterns like hesitations, mid-sentence pauses, or noisy environments, frequently triggering a "false" endpoint before the user has actually finished their request.
Methods
The authors propose a novel Two-Pass architecture:
- First Pass (The Candidate Generator): A standard streaming endpoint detector (either an acoustic-only LSTM or an end-to-end RNNT-based model) monitors the audio. When it detects a potential end-of-speech (EOS), it doesn't immediately stop the system. Instead, it triggers a "candidate" endpoint.
- Second Pass (The EP Arbitrator): This is the core innovation. The Arbitrator acts as a gatekeeper. It looks at the entire segment of audio and the partial text transcript generated up to that candidate point.
- AcousticEncoder: Summarizes the audio embeddings from the ASR model.
- TextEncoder: Summarizes the 1-best recognition hypothesis (the words recognized so far).
- Decision: A Deep Neural Network (DNN) combines these acoustic and lexical features to output a probability that the user is truly finished. If the Arbitrator "vetoes" the candidate, the system continues listening.
This approach is powerful because the second pass has access to "segment-level" context that the streaming first pass lacks, allowing it to recognize that a pause might just be a hesitation rather than the end of a command.
Datasets
The models were evaluated on a mix of internal and public data:
- Transactional Queries: 1,000 hours of human-transcribed voice assistant commands for training; 50 hours for testing.
- Transactional Partial Test Set: A specific 91-hour dataset consisting only of instances where users were previously cut off, used to measure improvements in "early cut-off" scenarios.
- Conversational Test Set: Interactions with a socialbot, containing longer, more complex utterances (>10 words) to test generalization.
- SLURP Corpus: A public dataset used to provide a reproducible benchmark for the research community. The authors padded these utterances with silence to simulate real-world endpointing conditions.
Key Insights and Ideas
- Lexical Context is King: By looking at the words recognized so far, the Arbitrator can sense if a sentence is semantically incomplete. For example, if a user says "Set a timer for...", the Arbitrator knows they likely haven't finished, even if there is a long pause.
- Model Agnostic: The Arbitrator works regardless of the first-pass architecture. It showed improvements when paired with both standalone acoustic detectors and integrated end-to-end (E2E) models.
- Zero-Shot Generalization: Even though the Arbitrator was trained primarily on transactional data, it generalized remarkably well to conversational speech without explicit fine-tuning.
- The Latency Trade-off: While the Arbitrator slightly increases tail latency (P99), it significantly improves the "Early Endpointing Rate" (EEPR), which is often more critical for a good user experience than a few extra milliseconds of wait time.
Key Results
The two-pass system demonstrated clear wins across all metrics:
- Reduced Cut-offs: On the transactional "partial" test set (users who were previously cut off), the system achieved a 32.45% relative reduction in early endpointing.
- Improved Accuracy: On standard transactional queries, it saw a 16.34% reduction in early endpointing and a 3.12% relative reduction in WER.
- Public Benchmark: On the SLURP dataset, the method improved the early endpointing rate by 8.37% relative without significantly degrading latency.
- Conversational Robustness: Even on out-of-domain conversational data, the system provided a better trade-off curve between latency and early cut-offs compared to the baseline.
Limitations and Future Work
- Tail Latency: The authors noted an increase in P99 latency (the slowest 1% of responses). While median latency remained stable, the "veto" process naturally extends the time the system stays open for difficult cases.
- Feature Exploration: The current implementation does not yet utilize all available internal representations (like the RNNT prediction network embeddings). The authors suggest that incorporating these could further refine the Arbitrator's accuracy.
- Real-time Constraints: While designed for low latency, running a second-pass model adds computational overhead that must be managed in production environments.
Summary updated