TL;DR
This paper introduces a novel approach to low-power audio keyword spotting (KWS) by replacing traditional neural networks (NNs) with Tsetlin Machines (TMs). TMs, based on learning automata and propositional logic, offer significantly reduced parameter requirements and faster convergence, making them a promising candidate for energy-efficient, on-chip KWS applications.
What Problem Does This Paper Address?
The increasing integration of AI into everyday devices, particularly in human-machine interaction through voice commands, has led to a surge in Keyword Spotting (KWS) technologies. However, current NN-based KWS systems face significant challenges related to energy efficiency, memory footprint, and overall system complexity. These limitations hinder their deployment on resource-constrained embedded systems and IoT devices. The paper aims to address this by exploring an alternative machine learning paradigm, the Tsetlin Machine, which promises a more efficient and less complex solution for KWS.
Methods
The core of this research lies in adapting the Tsetlin Machine (TM) for KWS. The proposed pipeline involves:
- Audio Pre-processing: Standard Mel-Frequency Cepstral Coefficients (MFCCs) are extracted from audio signals. The novelty here lies in the subsequent Booleanization of these MFCCs using quantile-based binning. This process converts continuous features into binary representations (literals), which are the input for the TM. The number of quantiles (bins) is a key parameter for controlling feature granularity and, consequently, TM complexity.
- Tsetlin Machine (TM) for Classification: The TM, a logic-based learning algorithm, processes these Boolean features. It utilizes Tsetlin Automata (TAs) organized into clauses to learn propositional logic rules that map input features to output classes (keywords). Unlike NNs that rely on arithmetic operations and gradient descent, TMs use logic operations, which are inherently more energy-efficient.
- Hyperparameter Tuning: The paper investigates the impact of various parameters on KWS performance and energy efficiency. This includes MFCC generation parameters (window length and step), TM hyperparameters (like the
sandThresholdvalues), and the number of clauses per class.
Datasets
The primary dataset used in this study is the Tensorflow Speech Commands dataset. This dataset consists of 1-second audio files of spoken keywords, with minimal background noise. The authors selected 10 common command words for their experiments.
Key Insights and Ideas
- Logic over Arithmetic: TMs offer a paradigm shift by leveraging propositional logic instead of arithmetic operations for learning. This fundamental difference is key to their potential for low-power applications.
- Booleanization as a Control Knob: The quantile-based binning for Booleanization is a crucial step that allows for fine-grained control over feature representation. This directly impacts the size and complexity of the TM.
- Efficiency of TMs: TMs demonstrate significantly faster convergence rates compared to traditional NNs, which translates to reduced training time and energy consumption.
- Scalability and Robustness: The TM shows promise in handling an increasing number of keywords and is evaluated for its robustness against acoustically similar keywords.
- Parameter Efficiency: TMs require substantially fewer parameters than NNs, making them more suitable for memory-constrained embedded systems.
Key Results
- Faster Convergence: The TM achieved a 90.5% accuracy target in less than 10 epochs, while comparable NNs required around 100 epochs.
- Reduced Complexity: For a 4-keyword problem, a TM with 240 clauses had 960 parameters, whereas even a "small & shallow" NN had over 983,000 hyperparameters.
- Accuracy: The proposed KWS-TM pipeline achieved competitive accuracy, with testing and validation accuracies around 90-92% in various experimental setups.
- Window Step Optimization: Increasing the window step in MFCC generation effectively reduced the number of MFCC coefficients with minimal impact on accuracy, contributing to efficiency.
- Boolean Granularity: Using just one Boolean per feature (derived from MFCCs with large variances) was sufficient for high performance, significantly reducing the TM's size.
- Energy Savings: Experiments on a Raspberry Pi showed that operating the TM with fewer clauses and optimized hyperparameters led to reduced current, time, and energy consumption while maintaining high accuracy. For instance, inference with 240 clauses achieved 90% accuracy using 87.23 J, compared to 25.57 J for 100 clauses at 80% accuracy.
Limitations and Future Work
- Background Noise: The current study used a dataset with negligible background noise. Future work will focus on examining the pipeline's performance with varying signal-to-noise ratios to improve robustness in real-world IoT applications.
- On-Chip Deployment: The paper highlights the potential for low-power on-chip KWS and suggests future work in implementing the KWS-TM pipeline onto dedicated hardware accelerators.
- Dataset Size and Diversity: While the TM showed good performance, the paper notes that a large number of data points can help the TM settle on better propositional logic descriptors, especially when classes are similar. Future work could explore the impact of more diverse training data.
- Overfitting: The study observed overfitting when the number of keywords increased, indicating a need for further investigation into mitigating this effect, potentially through hyperparameter tuning or increasing clause computation modules.
Summary updated