Skip to main content
QUICK REVIEW

[Paper Review] Small-Footprint Open-Vocabulary Keyword Spotting with Quantized LSTM Networks

Théodore Bluche, Maël Primet|arXiv (Cornell University)|Feb 25, 2020
Speech Recognition and SynthesisComputer Science11 citations
TL;DR

This paper presents a small-footprint, open-vocabulary keyword spotting system using a quantized LSTM network trained with Connectionist Temporal Classification (CTC), enabling real-time keyword detection on microcontrollers with under 500KB model size. It outperforms standard filler-model baselines by leveraging CTC output properties for confidence calibration and efficient decoding, achieving high F1 scores on open-vocabulary tasks without keyword-specific training data.

ABSTRACT

We explore a keyword-based spoken language understanding system, in which the intent of the user can directly be derived from the detection of a sequence of keywords in the query. In this paper, we focus on an open-vocabulary keyword spotting method, allowing the user to define their own keywords without having to retrain the whole model. We describe the different design choices leading to a fast and small-footprint system, able to run on tiny devices, for any arbitrary set of user-defined keywords, without training data specific to those keywords. The model, based on a quantized long short-term memory (LSTM) neural network, trained with connectionist temporal classification (CTC), weighs less than 500KB. Our approach takes advantage of some properties of the predictions of CTC-trained networks to calibrate the confidence scores and implement a fast detection algorithm. The proposed system outperforms a standard keyword-filler model approach.

Motivation & Objective

  • To enable real-time, on-device keyword spotting for arbitrary user-defined keywords without retraining or keyword-specific data.
  • To design a compact, quantized neural network (under 500KB) suitable for microcontrollers in IoT and edge devices.
  • To exploit the structural properties of CTC-trained networks to enable efficient, accurate detection of multiple keywords in natural language queries.
  • To outperform existing baselines such as LVCSR and keyword-filler models in open-vocabulary settings with minimal computational overhead.

Proposed method

  • A quantized long short-term memory (LSTM) network is trained using Connectionist Temporal Classification (CTC) on generic ASR data, enabling end-to-end learning without keyword-level annotations.
  • The system uses a confidence score normalization technique that divides the CTC score by an estimate of the number of blank frames, improving detection accuracy.
  • The detection algorithm skips blank frames during decoding, reducing computation by a factor of two while maintaining performance.
  • A greedy or sequence-based post-processing step identifies keyword sequences from the CTC output lattice, using minimum edit distance or similar criteria.
  • The model is optimized for inference speed and memory footprint through weight quantization and architectural pruning, achieving <500KB size.
  • The method avoids the need for a separate filler model by directly leveraging the CTC network's ability to predict phone posteriors and handle variable-length sequences.

Experimental results

Research questions

  • RQ1Can a CTC-trained, quantized LSTM model detect arbitrary user-defined keywords in natural language queries without keyword-specific fine-tuning?
  • RQ2How does confidence score normalization based on blank frame estimation affect detection accuracy in open-vocabulary keyword spotting?
  • RQ3What is the performance gain of skipping blank frames during decoding in terms of speed and accuracy?
  • RQ4How does the proposed method compare to standard baselines like LVCSR with Viterbi decoding and keyword-filler models in open-vocabulary settings?
  • RQ5Can a small, quantized model (<500KB) achieve competitive performance on real-world mini-SLU tasks with minimal latency?

Key findings

  • The proposed method with the quantized 5x96 LSTM architecture achieved an F1 score of 0.808 on the 'smart light' dataset and 0.725 on the 'washing machine' dataset in noisy conditions, outperforming the filler model baseline.
  • Using the confidence score normalized by estimated blank frames (C_nb) yielded the best detection performance across all datasets, improving F1 by up to 10% over raw confidence scores.
  • The detection algorithm achieved a two-fold speedup by skipping blank frames during decoding, without sacrificing accuracy.
  • The sequence-based post-processor improved detection over the greedy approach, achieving higher F1 than the filler model even when using the larger TDNN-LSTM network on the 'washing machine' dataset.
  • The system achieved a model size of less than 500KB, enabling real-time inference on microcontrollers, while maintaining robustness in noisy environments.
  • The method outperformed the LVCSR 'transcript' baseline and lattice-based approaches, demonstrating the advantage of CTC-based open-vocabulary spotting over standard ASR pipelines.

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.