TL;DR
This paper introduces a novel "streaming Transformer" architecture that efficiently handles both voice trigger detection (VTD) and false trigger mitigation (FTM) for voice assistants. By processing audio in a continuous, chunk-based manner, it significantly reduces computational cost and memory usage, making it ideal for on-device deployment without sacrificing accuracy.
What Problem Does This Paper Address?
Voice assistants, like Siri or Alexa, rely on "wake words" (e.g., "Hey Siri") to activate. However, these systems can be triggered by similar-sounding phrases, leading to unintended activations and privacy concerns. Traditional solutions often involve a two-stage process: an initial, low-power voice trigger detection (VTD) followed by a more robust false trigger mitigation (FTM) stage. FTM typically uses post-trigger audio context to confirm if the activation was genuine. A major challenge is that sophisticated FTM often requires computationally expensive Automatic Speech Recognition (ASR) lattices, which are too demanding for on-device processing. This paper aims to create a unified, hardware-efficient architecture that can perform both VTD and FTM on-device using only acoustic features, addressing the trade-off between accuracy, latency, and computational resources.
Methods
The core innovation is a streaming Transformer (TF) encoder. Unlike standard Transformers that process the entire audio input at once (requiring significant memory and computation), this streaming version processes audio in overlapping blocks. This is achieved by modifying the self-attention (SA) layers to only attend to a limited, sliding window of past audio context. This "streaming SA layer" allows the model to maintain audio context progressively without needing to reprocess everything.
The architecture is designed for a joint VTD and FTM task. The TF encoder's acoustic embeddings are fed into two parallel branches:
- Phonetic Transcription Branch: For VTD, trained using Connectionist Temporal Classification (CTC) loss.
- Phrase Discrimination Branch: For FTM, which is enhanced in this work. Instead of CTC loss, it uses a frame-wise Cross-Entropy (CE) loss, which is less prone to overconfidence. Additionally, a unidirectional Long Short-Term Memory (uniLSTM) layer is added to this branch to better smooth out temporal information and capture longer-range dependencies in the post-trigger audio.
The model is trained in two phases: first, the phonetic transcription branch, and then the joint VTD and FTM tasks are trained together.
Datasets
- Training Data: 2700 hours of clean audio with phonetic labels, augmented to 8100 hours with room impulse responses and echo residuals. For the FTM task, an additional 40,000 false trigger utterances and 140,000 true trigger utterances were used.
- Evaluation Data:
- VTD: A structured evaluation set (100 participants, various noise/playback conditions) and an unstructured "take-home" dataset (80 households, real-world usage).
- FTM: 88,000 true triggers and 2,800 unintended false triggers.
Key Insights and Ideas
- Streaming for Efficiency: The fundamental idea of adapting the Transformer's self-attention mechanism to a streaming, block-wise processing paradigm is crucial for on-device deployment. This directly tackles the quadratic complexity of standard self-attention with respect to sequence length.
- Joint Training Benefits: Training VTD and FTM together, sharing the TF encoder backbone, allows for improved performance on both tasks. Surprisingly, improvements in the phrase discrimination branch (for FTM) positively impacted the phonetic transcription branch (for VTD), suggesting that better understanding of the audio context for FTM also aids in accurate trigger detection.
- CE Loss for FTM: Replacing CTC loss with frame-wise CE loss in the phrase discrimination branch is a key improvement. This helps mitigate the "peaky" and overconfident predictions of CTC, which can lead to misclassifications, especially when dealing with acoustically similar false triggers.
- UniLSTM for Smoothing: The addition of a uniLSTM layer in the phrase discrimination branch effectively smooths out temporal fluctuations and captures longer-range context, which is vital for making robust FTM decisions based on post-trigger audio.
Key Results
- VTD Accuracy: The proposed joint model achieved an average 18% relative reduction in False Reject Rate (FRR) for the VTD task at a given false alarm rate, compared to a baseline.
- FTM Effectiveness: The model suppressed 95% of false triggers with just one second of post-trigger audio.
- Hardware Efficiency:
- Runtime Memory: 32% reduction compared to a non-streaming version when processing an additional second of post-trigger audio.
- Inference Time: 56% reduction for the same scenario.
- The computational complexity scales linearly with audio duration (O(TDS)) rather than quadratically (O(T²D)) due to the streaming SA layers.
Limitations and Future Work
- Limitations: The paper notes that while changing to streaming SA layers slightly degrades FRR in isolation, the combined improvements from the phrase discrimination branch compensate for this. The performance of the streaming SA layers is at par with vanilla SA layers for FTM.
- Future Work: Not explicitly detailed, but the focus on hardware efficiency and on-device deployment suggests future work could explore further model compression, quantization, and deployment on even more resource-constrained edge devices. The linear scaling of computation with audio length also opens avenues for processing very long audio segments for more complex tasks.
Summary updated