Skip to main content
QUICK REVIEW

[Paper Review] TinySpeech: Attention Condensers for Deep Speech Recognition Neural Networks on Edge Devices

Alexander Wong, Mahmoud Famouri|arXiv (Cornell University)|Aug 10, 2020
Speech Recognition and SynthesisComputer Science30 references29 citations
TL;DR

This paper introduces attention condensers—self-contained, stand-alone self-attention modules that learn condensed embeddings capturing joint local and cross-channel activation relationships to enable highly efficient on-device speech recognition. The proposed TinySpeech networks, built using these modules and optimized via machine-driven design, achieve up to 507× fewer parameters, 48× fewer FLOPs, and 2028× lower weight memory than prior work, while maintaining high accuracy on the Google Speech Commands dataset.

ABSTRACT

Advances in deep learning have led to state-of-the-art performance across a multitude of speech recognition tasks. Nevertheless, the widespread deployment of deep neural networks for on-device speech recognition remains a challenge, particularly in edge scenarios where the memory and computing resources are highly constrained (e.g., low-power embedded devices) or where the memory and computing budget dedicated to speech recognition is low (e.g., mobile devices performing numerous tasks besides speech recognition). In this study, we introduce the concept of attention condensers for building low-footprint, highly-efficient deep neural networks for on-device speech recognition on the edge. An attention condenser is a self-attention mechanism that learns and produces a condensed embedding characterizing joint local and cross-channel activation relationships, and performs selective attention accordingly. To illustrate its efficacy, we introduce TinySpeech, low-precision deep neural networks comprising largely of attention condensers tailored for on-device speech recognition using a machine-driven design exploration strategy, with one tailored specifically with microcontroller operation constraints. Experimental results on the Google Speech Commands benchmark dataset for limited-vocabulary speech recognition showed that TinySpeech networks achieved significantly lower architectural complexity (as much as $507 imes$ fewer parameters), lower computational complexity (as much as $48 imes$ fewer multiply-add operations), and lower storage requirements (as much as $2028 imes$ lower weight memory requirements) when compared to previous work. These results not only demonstrate the efficacy of attention condensers for building highly efficient networks for on-device speech recognition, but also illuminate its potential for accelerating deep learning on the edge and empowering TinyML applications.

Motivation & Objective

  • To address the challenge of deploying deep neural networks for on-device speech recognition in resource-constrained edge environments, such as low-power embedded systems and mobile devices with limited memory and compute budgets.
  • To overcome the complexity limitations of existing convolutional neural network (CNN)-based architectures by introducing a novel attention-based design pattern that reduces reliance on large convolutional modules.
  • To develop highly efficient, low-precision deep neural networks tailored for limited-vocabulary speech recognition using a machine-driven design exploration strategy.
  • To enable real-time, privacy-preserving, cloud-independent speech recognition on edge devices by minimizing architectural and computational complexity without sacrificing accuracy.

Proposed method

  • Introduce attention condensers as self-contained, stand-alone modules that learn a condensed embedding representing joint local and cross-channel activation relationships.
  • Design attention condensers to perform selective attention with emphasis on activations near strong activations, improving efficiency and representation quality.
  • Integrate attention condensers into a deep neural network architecture with sparse use of large convolutional modules and frequent use of attention condensers to reduce overall complexity.
  • Apply a machine-driven design exploration strategy to optimize network architecture, hyperparameters, and precision (e.g., quantization) for minimal footprint and high accuracy.
  • Train and evaluate TinySpeech networks on the Google Speech Commands benchmark, focusing on low-precision inference and edge deployment constraints.
  • Tailor one variant, TinySpeech-M, specifically for microcontroller operation by enforcing strict memory and compute limits during design.

Experimental results

Research questions

  • RQ1Can attention condensers significantly reduce the architectural and computational complexity of deep neural networks for on-device speech recognition without compromising accuracy?
  • RQ2How does the integration of attention condensers compare to traditional CNN-based architectures in terms of parameter count, FLOPs, and memory usage for limited-vocabulary speech recognition?
  • RQ3To what extent can a machine-driven design exploration strategy optimize low-precision neural networks for deployment on microcontroller-class edge devices?
  • RQ4Can attention condensers enable high-accuracy speech recognition under extreme resource constraints, such as those found in microcontrollers?

Key findings

  • TinySpeech networks achieved up to 507× fewer parameters compared to prior state-of-the-art models like trad-fpool13.
  • The proposed networks required up to 48× fewer multiply-add operations (FLOPs), significantly reducing computational cost.
  • Weight memory requirements were reduced by up to 2028×, making deployment on ultra-low-memory devices feasible.
  • TinySpeech-M achieved 1.4% higher accuracy than trad-fpool13 while using ~291× fewer parameters and ~1164× lower weight memory.
  • The model achieved >28.4× fewer FLOPs than trad-fpool13, demonstrating substantial computational efficiency.
  • The results confirm that attention condensers enable a strong trade-off between accuracy, model size, and inference cost, making them ideal for TinyML applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.