Enhancing Monotonic Multihead Attention for Streaming ASR

Hirofumi Inaguma, Masato Mimura, Tatsuya Kawahara
5/19/2020
eess.AScs.CLcs.LG

Official code: hirofumi0810/neural_sp (595 stars, Python, Apache-2.0, PyTorch, last commit 2021-08-30).

Abstract

We investigate a monotonic multihead attention (MMA) by extending hard monotonic attention to Transformer-based automatic speech recognition (ASR) for online streaming applications. For streaming inference, all monotonic attention (MA) heads should learn proper alignments because the next token is not generated until all heads detect the corresponding token boundaries.

Show full abstract

However, we found not all MA heads learn alignments with a naïve implementation. To encourage every head to learn alignments properly, we propose HeadDrop regularization by masking out a part of heads stochastically during training. Furthermore, we propose to prune redundant heads to improve consensus among heads for boundary detection and prevent delayed token generation caused by such heads. Chunkwise attention on each MA head is extended to the multihead counterpart. Finally, we propose head-synchronous beam search decoding to guarantee stable streaming inference.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

End-to-end ASR/LM implementation with PyTorch

595132Python, ShellSep 10, 20175 years agoApache-2.0
asrattentionattention-mechanismautomatic-speech-recognitionctc+11 more

Similar Papers

Cite this paper

@article{inaguma2020enhancing,
  title  = {Enhancing Monotonic Multihead Attention for Streaming ASR},
  author = {Hirofumi Inaguma and Masato Mimura and Tatsuya Kawahara},
  year   = {2020},
  eprint = {2005.09394},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.09394}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2005.09394.svg)](https://codeofpaper.com/paper/2005.09394)

Discussion