Efficient Continual Learning in Keyword Spotting using Binary Neural Networks

Quynh Nguyen Phuong Vu, Luciano Sebastian Martínez Rau, Yuxuan Zhang, Nho-Duc Tran, Bengt Oelmann, Michele Magno, Sebastian BaderSas 2025

TL;DR

This paper tackles the challenge of enabling keyword spotting (KWS) systems on resource-constrained devices to learn new keywords over time without forgetting old ones. They achieve this by combining Binary Neural Networks (BNNs) with efficient Continual Learning (CL) techniques, demonstrating that it's possible to add new keywords with minimal accuracy loss and significant computational savings.

What Problem Does This Paper Address?

Keyword spotting (KWS) is crucial for hands-free interaction with smart devices, from smartphones to smart home assistants. However, deploying these systems on resource-limited devices like microcontrollers (MCUs) presents a significant challenge. Traditional KWS models are often static, meaning they cannot adapt to new scenarios, such as adding new keywords (e.g., a new wake-up word). This inflexibility limits their long-term utility. While Binary Neural Networks (BNNs) offer a promising solution for reducing computational and memory footprints on MCUs, their integration with Continual Learning (CL) – the ability to learn incrementally – for KWS has not been thoroughly explored. This paper aims to bridge this gap by investigating efficient CL methods within a BNN framework for KWS on resource-constrained platforms.

Methods

The core of this work lies in the combination of two key technologies:

  • Binary Neural Networks (BNNs): The authors utilize a BNN architecture for their KWS model. BNNs drastically reduce model size and computational requirements by constraining weights and activations to just two values (+1 or -1). This is crucial for deployment on low-power MCUs. Their specific BNN model uses full-precision for the first and last convolutional layers, while binarizing the intermediate convolutional layers. The final fully-connected layer is made trainable for the CL phase.
  • Continual Learning (CL) Algorithms: To enable the BNN model to learn new keywords without forgetting existing ones, seven state-of-the-art CL algorithms are investigated. These include variants of TinyOL (which adjusts parameters after inference or a batch), LwF (Learning Without Forgetting, using a copy layer), and CWR (Copy Weight with Reinit). The CL process involves updating only the weights and biases of the final fully-connected layer, keeping the rest of the BNN frozen.

Datasets

The study uses the Google Speech Commands V2 dataset. This dataset contains approximately 105,000 speech samples spanning 35 different keywords. For their experiments, the authors selected 16 classes, including essential command keywords ("Yes", "No", "Up", etc.), numeric keywords ("One", "Two", etc.), and "silence" and "unknown" classes. The dataset was split into:

  • A test set (3% of data) for evaluation.
  • A training set for the initial BNN model (97% of data, with 12 classes excluding numeric keywords).
  • A separate subset of the data used for the Continual Learning phase, containing samples of all 16 classes.

Key Insights and Ideas

  • BNNs are a viable foundation for CL in KWS: The paper demonstrates that BNNs, despite their extreme quantization, can serve as a robust base for CL, maintaining good performance while offering significant efficiency gains.
  • CL is feasible for adding keywords: The proposed approach successfully integrates new keywords into the KWS model, showing that it's possible to expand the vocabulary of embedded systems over time.
  • Trade-offs exist between sample efficiency and algorithm type: Batch-based CL algorithms generally require more training data to achieve stable performance compared to sample-based methods, especially when adding multiple new classes.
  • Computational complexity of CL is negligible: While some CL algorithms have higher FLOP counts during backpropagation, this overhead is insignificant compared to the forward pass computation of the BNN model, making it suitable for resource-constrained environments.

Key Results

  • High accuracy on initial classes: Even after adding up to four new classes, the accuracy on the original 12 classes remained high, generally above 82.9% in the worst-case scenario.
  • Performance with new classes: When adding one new class, some algorithms like TinyOL and LwF achieved accuracies exceeding 95%, even surpassing the initial pre-trained model. With four new classes, the best performing algorithm (TinyOL with batches) achieved an accuracy of 88.3% on all classes.
  • Data sensitivity: Algorithms like TinyOL and TinyOL v2 showed better accuracy with limited CL training data (around 2048 samples), while batch-based methods required more data.
  • Computational efficiency: The BNN model achieved a 71-fold reduction in energy cost compared to full-precision models. The computational complexity of the CL backpropagation step was found to be negligible relative to the forward pass.

Limitations and Future Work

  • Minimum CL dataset size: The paper acknowledges that further investigation into the minimum size of the CL dataset required for effective training is needed. This includes exploring the effects of batch sizes and multi-epoch training with the same data.
  • Deployment on MCUs: While the approach is designed for resource-constrained devices, the paper suggests that actual deployment and evaluation on specific MCUs should be conducted.
  • Algorithm selection: The choice of the best CL algorithm depends on the number of new classes being introduced, suggesting a need for adaptive or hybrid approaches.

Summary updated

BibTeX
@inproceedings{vu2025efficient,
  author = {Quynh Nguyen Phuong Vu and Luciano Sebastian Martínez Rau and Yuxuan Zhang and Nho-Duc Tran and Bengt Oelmann and Michele Magno and Sebastian Bader},
  title = {{Efficient Continual Learning in Keyword Spotting using Binary Neural Networks}},
  booktitle = {Sas},
  year = {2025},
  doi = {10.1109/sas65169.2025.11105106},
}
Figure