HEiMDaL: Highly Efficient Method for Detection and Localization of Wake-Words

Arnav Kundu, Mohammad Samragh, Minsik Cho, Priyanka Padmanabhan, Devang NaikICASSP 2022

Abstract

Streaming keyword spotting is a widely used solution for activating voice assistants. Deep Neural Networks with Hidden Markov Model (DNN-HMM) based methods have proven to be efficient and widely adopted in this space, primarily because of the ability to detect and identify the start and end of the wake-up word at low compute cost. However, such hybrid systems suffer from loss metric mismatch when the DNN and HMM are trained independently. Sequence discriminative training cannot fully mitigate the loss-metric mismatch due to the inherent Markovian style of the operation. We propose an low footprint CNN model, called HEiMDaL, to detect and localize keywords in streaming conditions. We introduce an alignment-based classification loss to detect the occurrence of the keyword along with an offset loss to predict the start of the keyword. HEiMDaL shows 73% reduction in detection metrics along with equivalent localization accuracy and with the same memory footprint as existing DNN-HMM style models for a given wake-word.

Introduction

Wake-word detection (e.g., "Hey Siri") requires a delicate balance between high accuracy, low false alarm rates, and extreme resource efficiency for 24/7 operation on low-power hardware. Traditionally, this has been addressed using DNN-HMM hybrid systems. In these systems, a neural network identifies phonemes, and a Hidden Markov Model (HMM) aggregates them to detect the word. While effective at localization (identifying start and end times), these systems are difficult to train because the neural network is not optimized for the final word-detection goal.

End-to-End CNNs offer a simpler training path and higher detection accuracy but often struggle with precise localization and can be computationally intensive. HEiMDaL (Highly Efficient Method for Detection and Localization) bridges this gap by providing an efficient, end-to-end architecture that maintains high localization accuracy.

Methodology

HEiMDaL is based on a modified BC-ResNet (Broadcasted Residual Network) architecture. Its primary innovations are in the training objectives and data selection:

  1. Dual-Output Heads: The model produces two outputs for every audio segment: a classification probability (likelihood the wake-word ended) and a regression offset (distance to the wake-word start).
  2. Localization-Enforced Loss: Training utilizes a combined loss function: Focal Loss for classification to handle "hard" negatives and Mean Squared Error (MSE) for the start-time offset.
  3. Smart Data Mining: To ensure robustness, the authors developed a mining strategy using "strong negative" samples. These include segments ending just before or after the wake-word, forcing the model to learn precise boundaries.
Alignment and segment mining strategy for training HEiMDaL.

Evaluation

The model was trained on an internal dataset of 500,000 utterances. Data augmentation included Room Impulse Responses (RIRs), echo residuals, ambient noise, and gain variation (+10dB to -40dB). Evaluation was conducted on:

  • Positive Test Set: Near-field and far-field recordings of the target wake-word.
  • Negative Test Set: 2,000 hours of "dense speech" (podcasts, conversations) to measure false triggers.

Results and Discussion

HEiMDaL achieves significant performance gains over traditional baselines. At a fixed rate of 12 False Accepts per hour (FA/hr), HEiMDaL reached a False Reject Rate (FRR) of 0.45%, compared to 1.7% for the state-of-the-art DNN-HMM model—a 73% relative improvement.

DET-curve comparing HEiMDaL with the End-to-End DNN-HMM baseline.

The model is extremely efficient, utilizing only 13,832 parameters. Furthermore, its localization accuracy (measured by Intersection Over Union) remains on par with HMM-based systems. This precision is a key privacy feature, ensuring devices only record the intended user command. Additionally, the non-sequential training approach allowed for 50% faster training compared to previous models.

Conclusion

HEiMDaL demonstrates that end-to-end CNNs can match the localization precision of hybrid systems while significantly improving detection accuracy and maintaining a low computational footprint. Future work may explore scaling this method to open-vocabulary keyword spotting and improving robustness in extreme noise environments where word boundaries are heavily masked.

Summary updated

BibTeX
@inproceedings{kundu2022heimdal,
  author = {Arnav Kundu and Mohammad Samragh and Minsik Cho and Priyanka Padmanabhan and Devang Naik},
  title = {{HEiMDaL: Highly Efficient Method for Detection and Localization of Wake-Words}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  url = {https://openreview.net/forum?id=piBrK3Mdpj},
}
Figure