Multi-Task Voice Activated Framework Using Self-Supervised Learning

Shehzeen Hussain, Van Nguyen, Shuhua Zhang, Erik Visser

TL;DR

This paper introduces a unified framework that adapts the self-supervised wav2vec 2.0 model to solve multiple voice-activated tasks, such as Keyword Spotting (KWS) and Speaker Verification (SV), simultaneously. By using a shared transformer backbone and lightweight downstream heads, the authors achieve state-of-the-art results while significantly reducing the memory footprint compared to running separate models for each task.

What Problem Does This Paper Address?

Most current voice-activated systems rely on hand-engineered features like mel-spectrograms. While effective, these representations are "lossy"—they compress audio in a way that might discard subtle information useful for distinguishing between speakers or specific phonemes. Furthermore, most systems are specialized: you might have one model for "Who is speaking?" (Speaker Verification) and another for "What was said?" (Keyword Spotting).

Training these models usually requires massive amounts of labeled data. The authors address these gaps by leveraging Self-Supervised Learning (SSL), which allows a model to learn the "structure" of speech from thousands of hours of unlabeled audio before being fine-tuned for specific tasks. They also tackle the efficiency problem by proposing a multi-task architecture where one "brain" handles multiple functions.

Methods

The framework consists of two main parts:

  1. Speech Representation Extractor (SRE): The authors use a pre-trained wav2vec 2.0 backbone. This model takes raw waveforms and processes them through a CNN-based feature encoder followed by a Transformer network to create "contextualized" speech representations.
  2. Downstream Neural Networks: These are task-specific "heads" that sit on top of the SRE. The authors experimented with three types:
  3. Linear Layer: A very lightweight mapping (surprisingly effective).
  4. Bidirectional LSTM (Bi-LSTM): To capture temporal dependencies across the whole utterance.
  5. 1D-CNN: To extract local patterns from the SRE's output.

Multi-Task Training: To train on disjoint datasets (e.g., one dataset has keywords but no speaker labels, the other has speakers but no keywords), they used a round-robin mini-batch approach. They jointly optimize the SRE and all task heads. A key trick they used was freezing the SRE backbone for the first 1,000 iterations to stabilize the task heads before unfreezing the entire stack for fine-tuning.

Datasets

  • Keyword Spotting (KWS): Google Speech Commands (GSC) V1 and V2 (12-command subset).
  • Speaker Verification (SV): VoxCeleb-1 and VoxCeleb-2 (large-scale "in the wild" speaker datasets).
  • Pre-training: The wav2vec 2.0 backbone was originally pre-trained on the LibriSpeech dataset (~1,000 hours of unlabeled speech).

Key Insights and Ideas

  • Complexity isn't always better: One of the most surprising findings was that a simple Linear Layer downstream head often performed as well as, or better than, more complex Bi-LSTM or CNN heads. This suggests that the wav2vec 2.0 backbone does such a good job of extracting features that the "classification" part can be trivial.
  • The Multi-Task "Bonus": Training KWS and SV together didn't just save memory; it actually improved performance. The tasks appear to be complementary—learning speaker characteristics helps the model ignore "speaker noise" when looking for keywords, and vice-versa.
  • End-to-End Simplicity: By moving away from mel-spectrograms to raw waveforms, the pipeline is simplified, removing the need for manual tuning of STFT windows, hop sizes, or denoising filters.

Key Results

The framework achieved State-of-the-Art (SOTA) performance across the board:

  • Speaker Verification: Achieved an Equal Error Rate (EER) of 1.98% on the VoxCeleb1 test set (when trained on VoxCeleb2), outperforming previous specialized models.
  • Keyword Spotting: Achieved 98.23% accuracy on Google Speech Commands v1.0.
  • Efficiency: The multi-task model outperformed single-task versions while requiring significantly less memory than running two separate backbones.
  • Importance of Fine-tuning: Using a "Frozen" wav2vec 2.0 backbone resulted in much worse performance (20.5% EER for SV), proving that the backbone needs to "shift" its understanding to suit the specific downstream task.

Limitations and Future Work

  • Task Variety: The study focused primarily on KWS and SV. The authors mention emotion classification and language identification as potential targets, but these were not evaluated in this specific paper.
  • Dataset Disjointness: While the round-robin training works for disjoint datasets, it doesn't explore scenarios where the same audio has multiple labels (e.g., knowing exactly who said a specific keyword in the same clip), which could potentially offer even deeper synergies.
  • Computational Cost of SSL: While the downstream heads are light, the wav2vec 2.0 backbone itself is computationally heavy compared to tiny, specialized KWS models used in low-power edge devices. Future work might involve distilling this framework into smaller architectures.

Summary updated

BibTeX
@inproceedings{hussain2022multi,
  author = {Shehzeen Hussain and Van Nguyen and Shuhua Zhang and Erik Visser},
  title = {{Multi-Task Voice Activated Framework Using Self-Supervised Learning}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  url = {https://openreview.net/forum?id=Yi9RHxLCCa},
}
Figure