Skip to main content
QUICK REVIEW

[Paper Review] Attention-based End-to-End Models for Small-Footprint Keyword Spotting

Changhao Shan, Junbo Zhang|arXiv (Cornell University)|Mar 29, 2018
Speech Recognition and SynthesisComputer Science15 references9 citations
TL;DR

This paper proposes an attention-based end-to-end neural model for small-footprint keyword spotting (KWS), using an encoder (LSTM, GRU, or CRNN) followed by a soft attention mechanism to generate a fixed-length context vector for keyword detection. With only ~84K parameters, the CRNN-based model achieves 1.02% false rejection rate at 1.0 false alarm per hour, significantly outperforming Deep KWS and setting a new state of the art for small-footprint KWS.

ABSTRACT

In this paper, we propose an attention-based end-to-end neural approach for small-footprint keyword spotting (KWS), which aims to simplify the pipelines of building a production-quality KWS system. Our model consists of an encoder and an attention mechanism. The encoder transforms the input signal into a high level representation using RNNs. Then the attention mechanism weights the encoder features and generates a fixed-length vector. Finally, by linear transformation and softmax function, the vector becomes a score used for keyword detection. We also evaluate the performance of different encoder architectures, including LSTM, GRU and CRNN. Experiments on real-world wake-up data show that our approach outperforms the recent Deep KWS approach by a large margin and the best performance is achieved by CRNN. To be more specific, with ~84K parameters, our attention-based model achieves 1.02% false rejection rate (FRR) at 1.0 false alarm (FA) per hour.

Motivation & Objective

  • To simplify production-quality KWS pipelines by eliminating complex components like HMMs, graph search, and frame-level alignments.
  • To develop a small-footprint, low-latency KWS system suitable for on-device deployment.
  • To improve detection accuracy over existing end-to-end models like Deep KWS while maintaining minimal model size.
  • To investigate the impact of different encoder architectures (LSTM, GRU, CRNN) and attention mechanisms (average, soft) on KWS performance.

Proposed method

  • The model uses a recurrent encoder (LSTM, GRU, or CRNN) to transform raw audio features into high-level representations.
  • An attention mechanism computes normalized weights over the encoder’s hidden states to focus on relevant temporal segments.
  • The weighted context vector is passed through a linear transformation and softmax to produce a keyword detection score.
  • Soft attention is used to dynamically attend to salient parts of the input, improving robustness to variable-length keywords.
  • The model is trained end-to-end without requiring pre-computed alignments or posterior probabilities.
  • Hyperparameters such as window size (189 frames), frame shift (1), and sliding window (100 frames) are optimized for real-time inference.

Experimental results

Research questions

  • RQ1Can an attention-based end-to-end model achieve superior keyword spotting performance with minimal model size and low latency?
  • RQ2How do different encoder architectures (LSTM, GRU, CRNN) compare in terms of accuracy and parameter efficiency for small-footprint KWS?
  • RQ3Does the soft attention mechanism outperform average attention in detecting keywords under real-world conditions?
  • RQ4Can adding convolutional layers to the GRU encoder (forming CRNN) further improve detection performance?

Key findings

  • The CRNN-based attention model achieves the best performance with 1.02% false rejection rate at 1.0 false alarm per hour, using only ~84K parameters.
  • The soft attention mechanism consistently outperforms average attention, reducing FRR by over 4% compared to Deep KWS at the same FA rate.
  • GRU-based models outperform equivalent LSTM models, with the 1-128 GRU model achieving 1.49% FRR at 1.0 FA/hour.
  • Adding convolutional layers to the GRU encoder (CRNN) improves performance, with 16-channel models outperforming 8-channel models.
  • The 16-2-64 CRNN model achieves the lowest FRR (1.02%) among all configurations tested.
  • The ROC curves show that CRNN and GRU models significantly outperform LSTM models, especially at low false alarm rates.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.