Encoder-Decoder Neural Architecture Optimization for Keyword Spotting

Tong Mo, Bang LiuarXiv 2021

TL;DR

This paper introduces a novel Neural Architecture Optimization (NAO) approach, leveraging an encoder-decoder framework, to automatically design highly efficient Convolutional Neural Networks (CNNs) for keyword spotting. Their method achieves state-of-the-art accuracy on the Google Speech Commands dataset, demonstrating the power of tailored architectures over off-the-shelf models for this specific task.

What Problem Does This Paper Address?

Keyword spotting (KWS) is crucial for voice-activated devices, enabling them to detect specific commands like "yes" or "stop." While deep learning, particularly CNNs, has shown great promise, existing KWS systems often rely on general-purpose CNN architectures (like VGG or ResNet) originally designed for image recognition. These architectures may not be optimal for the unique characteristics of speech signals and the stringent memory constraints of embedded devices. The challenge is to design KWS-specific CNN architectures that maximize accuracy while minimizing computational cost and memory footprint.

Methods

The core of this paper is the Encoder-Decoder Neural Architecture Optimization (NAO) framework. NAO aims to automate the design of CNN architectures for KWS. It consists of three main components:

  • Encoder: This component takes a neural architecture (represented as a string sequence) and maps it into a continuous representation. A Long Short-Term Memory (LSTM) network is used as the encoder.
  • Performance Predictor: This module takes the continuous representation of an architecture and predicts its performance (e.g., accuracy) on a validation set. It's built using a mean pooling layer and a feed-forward neural network. This predictor is trained using regression loss.
  • Decoder: This component reconstructs the discrete neural architecture (as a string sequence) from its continuous representation. Another LSTM network, enhanced with an attention mechanism, serves as the decoder. It's trained to minimize a structure reconstruction loss.

These three components are trained jointly. The search process iteratively refines architectures by encoding them, predicting their performance, and then decoding the optimized representations back into new architectures. The paper specifically focuses on searching for "normal" and "reduction" cells, which are then stacked to form the complete CNN.

Datasets

The primary dataset used for both training and evaluation is the Google Speech Commands Dataset. The authors utilize both Version 1 (30 words, 65,000 utterances) and Version 2 (35 words, 105,000 utterances). For evaluation, they cast the problem as a 12-class classification task, including ten specific keywords, an "unknown" class, and a "silence" class, consistent with most KWS literature. The dataset is split into 80% training, 10% validation, and 10% testing sets. The training and validation sets are used during the architecture search, and then combined for final training of the best-found architecture.

Key Insights and Ideas

  • Tailoring Architectures for KWS: The paper strongly advocates that architectures specifically designed for KWS, rather than generic image recognition backbones, can lead to significant performance gains.
  • Encoder-Decoder for Differentiable NAS: Using an encoder-decoder structure within a differentiable Neural Architecture Search (NAS) framework allows for a more accurate exploration of the discrete architecture space by first mapping it to a continuous domain. This contrasts with some prior NAS methods that made simplifying assumptions.
  • Joint Optimization: Training the encoder, predictor, and decoder simultaneously is crucial for effectively guiding the search towards architectures that are both performant and accurately represented.
  • Cell-Based Search: Searching for optimal "cells" (building blocks) and then stacking them is an efficient strategy for constructing complex CNNs, allowing for modularity and reusability.

Key Results

The proposed NAO method achieved state-of-the-art accuracy on the Google Speech Commands Dataset:

  • Version 1: An accuracy of 97.28% was achieved with 16 initial channels and a model size of 469K parameters.
  • Version 2: An accuracy of 97.92% was achieved with 16 initial channels.

These results outperformed several strong baseline models, including previous NAS-based approaches like NAS2 and NoisyDARTS-TC14, in terms of both accuracy and, in some cases, parameter count.

Limitations and Future Work

  • Search Space Limitations: The authors acknowledge that their search space intentionally excluded high-performance, specialized blocks from other KWS works to ensure a fair comparison and focus on the NAS methodology itself. This implies that incorporating such blocks could potentially lead to even better results.
  • Model Size vs. Performance: While achieving state-of-the-art accuracy, the models found by NAO are not always the smallest compared to some baselines (e.g., NoisyDARTS-TC14). The paper attributes this to the use of common operations rather than highly optimized small footprint blocks. Future work could explore optimizing for both accuracy and model size more aggressively.
  • Computational Cost of Search: While the paper reports GPU days for the search (8-10 days on a V100), NAS is inherently computationally intensive. Further research into more efficient search strategies or hardware acceleration could be beneficial.

Summary updated

BibTeX
@misc{mo2021encoder,
  author = {Tong Mo and Bang Liu},
  title = {{Encoder-Decoder Neural Architecture Optimization for Keyword Spotting}},
  year = {2021},
  eprint = {2106.02738},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.02738},
}
Figure