[Paper Review] Hardware Aware Training for Efficient Keyword Spotting on General Purpose and Specialized Hardware
This paper introduces hardware-aware training (HAT) for Legendre Memory Unit (LMU)-based keyword spotting (KWS) models, achieving state-of-the-art accuracy (95.9%) with minimal model size and ultra-low power consumption. By co-optimizing the LMU architecture and hardware deployment, the method enables real-time, on-device inference at just 8.79 μW on custom accelerator hardware, outperforming general-purpose microcontrollers by 24× and specialized ASICs by 16× in power efficiency.
Keyword spotting (KWS) provides a critical user interface for many mobile and edge applications, including phones, wearables, and cars. As KWS systems are typically 'always on', maximizing both accuracy and power efficiency are central to their utility. In this work we use hardware aware training (HAT) to build new KWS neural networks based on the Legendre Memory Unit (LMU) that achieve state-of-the-art (SotA) accuracy and low parameter counts. This allows the neural network to run efficiently on standard hardware (212$μ$W). We also characterize the power requirements of custom designed accelerator hardware that achieves SotA power efficiency of 8.79$μ$W, beating general purpose low power hardware (a microcontroller) by 24x and special purpose ASICs by 16x.
Motivation & Objective
- To develop a highly accurate, low-power keyword spotting system suitable for real-time, always-on edge devices.
- To address the limitations of existing KWS models that are not optimized for real-world deployment constraints such as streaming inference, quantization, and power efficiency.
- To demonstrate that hardware-aware training (HAT) enables superior performance across diverse hardware platforms, including general-purpose microcontrollers and custom accelerators.
- To achieve state-of-the-art results in accuracy, model size, and power efficiency simultaneously, particularly for multi-keyword detection.
- To show that parameter-efficient LMU-based models can outperform specialized ASICs in power efficiency while maintaining high accuracy.
Proposed method
- The authors use Hardware-Aware Training (HAT) to co-optimize neural network architecture and hardware deployment, explicitly modeling hardware constraints during training.
- They employ the Legendre Memory Unit (LMU), a recurrent architecture with provably optimal memory compression using Legendre basis functions, reducing parameter count and improving long-term memory retention.
- The LMU is modified to remove internal recurrent connections and include multiple linear memory layers, whose outputs are concatenated before nonlinear transformation.
- The model is quantized to 8-bit weights and activations to enable efficient deployment on low-power hardware.
- Custom accelerator hardware is designed with dynamic voltage and frequency scaling (DVFS) and optimized glue logic to minimize power consumption at real-time operation.
- The hardware is co-designed with the model using HAT, enabling direct optimization of power, latency, and throughput across different frequency settings.
Experimental results
Research questions
- RQ1Can hardware-aware training (HAT) be used to co-optimize neural network architecture and hardware deployment for real-time, low-power keyword spotting?
- RQ2Does the Legendre Memory Unit (LMU) architecture enable higher accuracy and lower parameter counts compared to standard RNNs and CNNs in KWS tasks?
- RQ3Can a custom-designed accelerator achieve significantly better power efficiency than general-purpose microcontrollers and existing specialized ASICs?
- RQ4To what extent can parameter-efficient LMU models eliminate the need for specialized hardware while maintaining or exceeding performance?
- RQ5How does the combination of HAT and LMU architecture affect power efficiency, accuracy, and model size across different hardware platforms?
Key findings
- The LMU-based KWS model achieves 95.9% accuracy on the SpeechCommands dataset, outperforming prior state-of-the-art models in both accuracy and efficiency.
- The model uses only 12× fewer parameters than the Syntiant NDP10x ASIC, yet achieves higher accuracy (95.9% vs. 94.0%) and 16–19× lower power consumption.
- On a standard ARM M4F microcontroller, the model consumes 212 μW, a 24× improvement over the best reported general-purpose hardware efficiency.
- The custom-designed accelerator achieves a record-low power consumption of 8.79 μW at 92 kHz clock frequency, with a 13.38 ms frame throughput and 39.59 ms latency for 40 ms updates.
- The HAT-optimized LMU model runs at 119 μW on an idealized ARM M4F, making it 14× more power efficient than the best reported general-purpose hardware.
- The results demonstrate that HAT enables direct optimization of power efficiency across hardware platforms, making high-accuracy, low-power KWS feasible on both general and specialized hardware.
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.