Keyword Transformer: A Self-Attention Model for Keyword Spotting
Preprint
Abstract
The Transformer architecture has been successful across many domains, including natural language processing, computer vision and speech recognition. In keyword spotting, self-attention has primarily been used on top of convolutional or recurrent encoders. We investigate a range of ways to adapt the Transformer architecture to keyword spotting and introduce the Keyword Transformer (KWT), a fully self-attentional architecture that exceeds state-of-the-art performance across multiple tasks without any pre-training or additional data. Surprisingly, this simple architecture outperforms more complex models that mix convolutional, recurrent and attentive layers. KWT can be used as a drop-in replacement for these models, setting two new benchmark records on the Google Speech Commands dataset with 98.6% and 97.7% accuracy on the 12 and 35-command tasks respectively.Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet2021
- Video Transformer Network2021
- Learning Efficient Representations for Keyword Spotting with Triplet Loss2021
- Developing Real-Time Streaming Transformer Transducer for Speech Recognition on Large-Scale Dataset2021
- SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning2021
- MatchboxNet: 1D Time-Channel Separable Convolutional Neural Network Architecture for Speech Commands Recognition2020
- MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices2020