[Paper Review] Stochastic Adaptive Neural Architecture Search for Keyword Spotting
This paper proposes SANAS (Stochastic Adaptive Neural Architecture Search), an end-to-end differentiable method that dynamically adjusts neural network architecture at inference time for keyword spotting, using a learnable policy to select simpler or deeper models based on input difficulty. It achieves state-of-the-art accuracy while reducing FLOPs by up to 99.8% compared to static models, significantly improving energy efficiency on the Speech Commands dataset.
The problem of keyword spotting i.e. identifying keywords in a real-time audio stream is mainly solved by applying a neural network over successive sliding windows. Due to the difficulty of the task, baseline models are usually large, resulting in a high computational cost and energy consumption level. We propose a new method called SANAS (Stochastic Adaptive Neural Architecture Search) which is able to adapt the architecture of the neural network on-the-fly at inference time such that small architectures will be used when the stream is easy to process (silence, low noise, ...) and bigger networks will be used when the task becomes more difficult. We show that this adaptive model can be learned end-to-end by optimizing a trade-off between the prediction performance and the average computational cost per unit of time. Experiments on the Speech Commands dataset show that this approach leads to a high recognition level while being much faster (and/or energy saving) than classical approaches where the network architecture is static.
Motivation & Objective
- To address the high computational and energy cost of static neural networks in real-time keyword spotting on resource-limited devices.
- To develop a method that adapts network architecture at inference time based on input difficulty, using a differentiable policy to balance accuracy and cost.
- To learn the architecture adaptation policy end-to-end by optimizing a trade-off between prediction loss and average computational cost.
- To demonstrate that adaptive models can achieve higher efficiency without sacrificing recognition performance.
- To validate the approach on the Speech Commands dataset using streaming metrics and FLOPs as efficiency indicators.
Proposed method
- SANAS uses a stochastic, differentiable architecture search mechanism where a distribution over architectures is predicted at each timestep based on the hidden state.
- The model samples an architecture at each time step from a distribution parameterized by a neural network, and evaluates it on the current input frame.
- The training objective combines prediction loss and a weighted cost term (λ × FLOPs), optimized via Monte Carlo gradient estimation with variance reduction.
- A super-network structure is used to represent the search space, with residual-like shortcut connections that are selectively activated based on the sampled architecture.
- The recurrent component (GRU) maintains context, and the architecture policy network maps hidden states to a distribution over possible architectures.
- The method is trained end-to-end using ADAM optimizer with adaptive learning rates and λ tuned across orders of magnitude.
Experimental results
Research questions
- RQ1Can a neural network dynamically adapt its architecture during inference to reduce computational cost without sacrificing accuracy in keyword spotting?
- RQ2Is it possible to train such an adaptive architecture policy end-to-end using a differentiable objective that balances accuracy and cost?
- RQ3How does the model’s architecture selection vary across different input types (e.g., silence, background noise, keywords)?
- RQ4Can the method achieve better efficiency-accuracy trade-offs than static models on real-world audio streams?
- RQ5Does the inclusion of learnable skip connections in the super-network improve performance while enabling adaptive pruning?
Key findings
- SANAS achieved 86.5% word match rate on the Speech Commands dataset with only 37.7 million FLOPs per frame, outperforming the baseline cnn-trad-fpool3 model (81.7% match at 124.6M FLOPs).
- The model reduced average FLOPs by 99.8% compared to the strongest static baseline (137.3M FLOPs) while improving accuracy from 82.9% to 86.5%.
- The model automatically allocated more computation to frames with keywords and less to background noise, as shown in training dynamics (Figure 5).
- The model achieved 80.7% correct detection rate with only 5.8% wrong detections and 0.3% false alarms, demonstrating robustness and consistency.
- The adaptive model outperformed both baseline models in accuracy and efficiency, with the best-performing SANAS model achieving 86.5% match at 37.7M FLOPs per frame.
- The method successfully avoided overfitting despite the use of shortcut connections, thanks to the explicit cost regularization in the training objective.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.