Personalized Keyword Spotting through Multi-task Learning

Seunghan Yang, Byeonggeun Kim, Inseop Chung, Simyung Chang

Abstract

Keyword spotting (KWS) plays an essential role in enabling speech-based user interaction on smart devices, and conventional KWS (C-KWS) approaches have concentrated on detecting user-agnostic pre-defined keywords. However, in practice, most user interactions come from target users enrolled in the device which motivates to construct personalized keyword spotting. We design two personalized KWS tasks; (1) Target user Biased KWS (TB-KWS) and (2) Target user Only KWS (TO-KWS). To solve the tasks, we propose personalized keyword spotting through multi-task learning (PK-MTL) that consists of multi-task learning and task-adaptation. First, we introduce applying multi-task learning on keyword spotting and speaker verification to leverage user information to the keyword spotting system. Next, we design task-specific scoring functions to adapt to the personalized KWS tasks thoroughly. We evaluate our framework on conventional and personalized scenarios, and the results show that PK-MTL can dramatically reduce the false alarm rate, especially in various practical scenarios.

Introduction

Standard keyword spotting (KWS) systems are designed to recognize what is said, but they usually ignore who is saying it. This user-agnostic approach leads to significant real-world challenges. First, it causes unnecessary power consumption as devices wake up whenever they hear a keyword, even if it originates from a TV, a podcast, or a non-target user. Second, it lacks the personalization required for modern smart devices, which should ideally prioritize or exclusively respond to their owners.

To address these issues, we define two personalized KWS scenarios:

  1. Target user Biased KWS (TB-KWS): Prioritizes the enrolled owner but remains functional for other users.
  2. Target user Only KWS (TO-KWS): Responds exclusively to the enrolled owner.

Methodology: The PK-MTL Framework

We propose Personalized Keyword Multi-Task Learning (PK-MTL), a framework designed to integrate speaker identity into a lightweight, "always-on" system without sacrificing accuracy or computational efficiency.

Multi-Task Learning (MTL)

The core of PK-MTL is a shared encoder architecture. By using a single encoder for low-level feature extraction, the system remains memory-efficient. The network then branches into two specialized sub-networks:

  • Keyword Spotting (KWS) Branch: Focuses on detecting the specific keyword.
  • Speaker Verification (SV) Branch: Extracts speaker-specific embeddings.

Joint training allows the KWS branch to leverage speaker characteristics, creating a synergy that improves overall robustness.

Task-Specific Scoring Functions

To adapt to different personalization levels, we introduce two fusion modules:

  • Score Combination Module (SCM): A simple, optimization-free linear combination of keyword and speaker scores.
  • Task Representation Module (TRM): A sophisticated trainable module using an attention mechanism to concatenate and weight embeddings, learning a highly discriminative task-specific representation.

Experimental Setup

The framework was evaluated using the Google Speech Commands v1 dataset for keyword training, with WSJ-SI200 and Librispeech used to simulate realistic negative scenarios (e.g., background TV noise).

Evaluation matrix for personalized keyword spotting based on speaker and keyword identity.

As shown in the matrix above, inputs are categorized into four types: ts-tk (target speaker, target keyword), nts-tk (non-target speaker, target keyword), ts-ntk (target speaker, non-target keyword), and nts-ntk (non-target speaker, non-target keyword). The "nts-tk" case—where a non-target speaker says the correct keyword—is the primary target for reduction in personalized systems.

Results and Discussion

The PK-MTL framework demonstrated dramatic improvements across various model backbones, including BC-ResNet and DS-ResNet.

EER performance comparison across C-KWS, TB-KWS, and TO-KWS tasks, showing the significant improvement of the PK-MTL system.

Key performance metrics include:

  • TO-KWS Improvement: On the BC-ResNet-3 backbone, the Equal Error Rate (EER) dropped from 21.17% in the vanilla system to 3.37% with PK-MTL.
  • Robustness to Background Noise: In scenarios where keywords were embedded in continuous background speech (WSJ/Librispeech), the False Alarm Rate (FAR) at a 1% False Rejection Rate dropped from approximately 46% to just 0.15% for the TO-KWS task.
  • Efficiency: The system adds minimal overhead, increasing parameters from 63.5k to 82.0k in the BC-ResNet-3 backbone, making it suitable for edge deployment.

Conclusion

PK-MTL successfully transforms KWS into a personalized task by jointly leveraging keyword and speaker information. By specifically addressing the "nts-tk" problem, the system significantly reduces false alarms in practical environments without degrading conventional KWS performance. Future work will explore handling poor-quality enrollment utterances and extending the framework to user-defined keywords.

Summary updated

BibTeX
@inproceedings{yang2022personalized,
  author = {Seunghan Yang and Byeonggeun Kim and Inseop Chung and Simyung Chang},
  title = {{Personalized Keyword Spotting through Multi-task Learning}},
  booktitle = {Interspeech},
  year = {2022},
  url = {https://openreview.net/forum?id=0xJ_0hNCLr},
}
Figure