Abstract
Device-Directed Speech Detection (DDSD) is a critical component of modern voice assistants, responsible for determining whether an utterance is intended for the device or part of background conversation. While large-scale pre-trained models offer high accuracy, their computational demands often preclude on-device deployment. This paper presents Adaptive Knowledge Distillation (aKD), a novel framework that bridges the performance gap between large teacher models and efficient student models. By simultaneously training task-specific adapters for the teacher and the student model, aKD achieves significant accuracy gains—up to 26%—while maintaining a footprint suitable for mobile and wearable devices.
1. Introduction
Voice-activated systems must accurately distinguish between directed commands (e.g., "Hey Siri, what's the weather?") and ambient speech or side conversations. This binary classification task, known as Device-Directed Speech Detection (DDSD), is computationally challenging. Large, pre-trained Automatic Speech Recognition (ASR) models possess the nuanced understanding required for high accuracy but are too resource-intensive for local execution on hardware like smartwatches or phones. Conversely, small models optimized for efficiency often suffer from higher error rates, particularly in distinguishing subtle acoustic cues.
Traditional Knowledge Distillation (KD) attempts to solve this by training a small "student" to mimic a large "teacher." However, standard KD typically requires a two-stage process: first fine-tuning the teacher on the target task, and then distilling that knowledge into the student. This approach is computationally expensive and can lead to a "knowledge gap" where the student struggles to align with a static, pre-trained teacher.
2. The Adaptive Knowledge Distillation (aKD) Framework
The proposed aKD framework introduces a simultaneous training paradigm. Instead of using a frozen, pre-fine-tuned teacher, the authors train task-specific "adapters" for the teacher model at the same time as the student model. This allows both models to evolve together, ensuring the teacher's representations remain relevant to the specific DDSD task while providing a moving target that the student can more effectively follow.
2.1 Loss Functions
To ensure robust knowledge transfer, the framework utilizes a composite objective function consisting of four distinct losses:
- Embedding Distillation ($L_{ED}$): This loss aligns the student’s acoustic encoder with the teacher’s, forcing the student to produce feature representations similar to the teacher's robust embeddings.
- Pseudo Labeling ($L_{PL}$): Rather than relying solely on hard ground-truth labels, the student learns from the teacher's soft probability outputs, capturing the teacher's uncertainty and nuance.
- Attention Regularization ($L_{AR}$): A key innovation of this work, $L_{AR}$ aligns the attention mechanisms of both models. This ensures the student learns to focus on the same critical temporal segments of audio (such as the trigger word) that the teacher identifies as important.
- Task Loss ($L_{DDSD}$): Standard cross-entropy loss based on the actual ground-truth labels to ensure task-specific accuracy.
3. Experimental Setup
3.1 Architectures
The study utilized a 79M parameter Conformer as the teacher model. The student models were significantly smaller, approximately 5M parameters, based on both Transformer and Conformer architectures. This represents a nearly 16x reduction in parameter count, making the students ideal for on-device deployment.
3.2 Dataset
The models were trained and evaluated on an extensive in-house dataset comprising 2.7K hours of audio. The data categorized invocations into three types:
- HAG: "Hey Agent" (standard keyword-based invocation).
- AG: "Agent" (shorter, more challenging keyword).
- FCO: Follow-up conversations (keyword-free interactions).
To simulate real-world conditions, the training data was augmented with room impulse responses and echo residuals, mimicking environments like noisy kitchens or moving vehicles.
4. Results and Analysis
The aKD framework demonstrated substantial improvements over baseline models trained without distillation:
- Accuracy Gains: For keyword-based invocations (HAG/AG), the aKD method achieved an average relative improvement of 26% in Equal Error Rate (EER). For keyword-free follow-up conversations (FCO), the improvement was 19%.
- Architecture Comparison: The results confirmed that Conformer-based students consistently outperformed standard Transformer students, even when both utilized the aKD framework. This suggests that the convolution-augmented attention of Conformers is particularly well-suited for the temporal patterns in speech detection.
- The Role of Attention: The inclusion of Attention Regularization ($L_{AR}$) was identified as a critical factor. By forcing the student to mimic the teacher's focus, the student model gained a better understanding of the temporal context necessary for high-accuracy detection.
5. Conclusion
Adaptive Knowledge Distillation (aKD) provides a highly effective path for deploying sophisticated speech detection capabilities on resource-constrained devices. By training teacher adapters and students simultaneously and incorporating attention-based regularization, the framework allows 5M parameter models to approach the performance of much larger architectures. Future work will explore the application of aKD to more universal foundation models and investigate automated methods for dynamic loss weighting.
Summary updated