Skip to content

Repository files navigation

SparkNet: Sparse Binarization for Fast Keyword Spotting (Interspeech 2024)

The paper is here.

Main features:

  • Efficient (Tiny and Fast) Neural Network
  • SOTA results in edge-device setup for KWS task
  • Appropriate for micro-controllers

Updates: (23/03/2025)

  • The code is released (training and inference)
    • The model is tested in Python 3.10.7
    • Install the requirements: pip install -r requirements.txt
    • Please notice, that the version of NeMo we use is different with our modifications, especially in file nemo/collections/asr/models/classification_models.py
  • We release the checkpoints for configurations C=4,8,16,32 trained on Google Speech Commands v2 on 12 labels
  • Test example: put your recordings in wavs directory and run the command:
    • python inference.py --model_path ckpt/kws_C_16.ckpt

Model:

Results:

Comparison of different methods trained on Google Speech Commands v1, v2 (SC1, SC2) datasets and tested on the official test set of keyword spotting task with 12 targets. While being with the same accuracy and number parameters our model has x4 less multiply-accumulate operations (MACs)

ModelParamsMACsSC1SC2
TinySpeech-X [Wong et al. 2020]10.8K10.9M94.6 ± 0.00-
res8-narrow [Tang et al. 2018]19.9K5.65M90.1 ± 0.98-
DS-ResNet10 [Xu et al. 2020]10K5.8M95.2 ± 0.36-
BC-ResNet-1 [Kim et al. 2021]9,2323.6M96.6 ± 0.2196.9 ± 0.30
SparkNet[C=32]11,5001.2M96.2 ± 0.1997.0 ± 0.18
TinySpeech-Z [Wong et al. 2020]2.7K2.6M92.4 ± 0.00-
BC-ResNet-0.625 [Kim et al. 2021]4,5851.9M95.2 ± 0.3795.4 ± 0.31
SparkNet[C=16]4,636454.5K95.3 ± 0.3395.7 ± 0.17

Reduced versions:

he accuracy of the proposed model as a function of number of parameters. The smallest model is still able to produce ~ 83% accuracy by using only 1.4K parameters and 105K MACs.

Model VersionParamsMACsSC1SC2
SparkNet[C=32]11,5001.2M96.2 ± 0.1997.1 ± 0.30
SparkNet[C=16]4,636454.5K95.3 ± 0.3395.7 ± 0.30
SparkNet[C=8]2,292190K91.6 ± 0.7692.1 ± 0.33
SparkNet[C=4]1,416105K82.3 ± 1.9183.5 ± 0.60

This markdown table retains the structure and formatting of your original LaTeX table, with columns for model version, parameters, MACs, and accuracy (SC1 and SC2).

Acknowledgments

This project builds upon the work and tools provided by the open-source community. Special thanks to:

Cite this work:

@inproceedings{svirsky2024sparse,
title={Sparse Binarization for Fast Keyword Spotting},
author={Svirsky, Jonathan and Shaham, Uri and Lindenbaum, Ofir},
booktitle={Proc. Interspeech 2024},
pages={3010--3014},
year={2024}
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages