Introduction
On-device voice assistants like Siri must perform two critical tasks simultaneously: Voice Trigger Detection (VTD) to recognize the "wake word" and Speaker Verification (SV) to ensure the command comes from the authorized user. Traditionally, these tasks are handled by separate deep learning models, which can be computationally expensive and memory-intensive for battery-powered devices. This paper explores a Multi-Task Learning (MTL) approach where a single neural network handles both tasks by sharing lower-level representations.
Architecture and Methods
The core of the proposed system is a stack of bidirectional Long Short-Term Memory (biLSTM) layers. The researchers investigated the optimal degree of parameter sharing by testing three configurations:
- 4 Tied Layers: All encoder layers are shared between tasks.
- 3 Tied Layers: The first three layers are shared, with one task-specific layer for each branch.
- 2 Tied Layers: The first two layers are shared, with two task-specific layers for each branch.
The VTD branch utilizes Connectionist Temporal Classification (CTC) loss to predict phonetic sequences, while the SV branch employs an attention mechanism to generate speaker embeddings, trained via cross-entropy loss.
Datasets and Training
The models were trained on an industrial-scale dataset comprising over 16,000 hours of labeled audio. This included 5,000 hours for VTD and 4.5 million utterances from 21,000 speakers for SV. A key finding was that the network could effectively learn from "disjoint" datasets, where audio clips typically had only one type of label (either phonetic or speaker-specific).
Key Results
The study found that sharing the first two or three layers provided the best balance between efficiency and accuracy. The 2-layer tied model, in particular, outperformed the standalone baseline in Speaker Verification, showing a 7.6% relative improvement in Equal Error Rate (EER) for text-independent tasks.
As shown in the table above, the 2 Tied Layers model achieved the best performance in the "HS+Payload" and "Payload" categories, while the 3 Tied Layers model excelled in the "HS" (Hey Siri) category. These results demonstrate that multi-task learning can match or exceed the performance of dedicated models while significantly reducing the computational footprint.
Conclusion
By leveraging shared representations, Apple researchers have shown that it is possible to consolidate VTD and SV into a single, efficient architecture. This not only saves memory and power on-device but also suggests that phonetic and speaker-specific information can provide mutually beneficial inductive biases during training. Future work will look into applying this MTL framework to lower-power first-pass detectors and expanding the suite of supported speech tasks.
Summary updated