Relaxed Attention: A Simple Method to Boost Performance of End-to-End Automatic Speech Recognition

Timo Lohrenz, Patrick Schwarz, Zhengyang Li, Tim Fingscheidt
7/2/2021
eess.AScs.CLcs.LG
transformer-attention

Official code: freewym/espresso (941 stars, Python, PyTorch, last commit 2024-09-04).

Abstract

Recently, attention-based encoder-decoder (AED) models have shown high performance for end-to-end automatic speech recognition (ASR) across several tasks. Addressing overconfidence in such models, in this paper we introduce the concept of relaxed attention, which is a simple gradual injection of a uniform distribution to the encoder-decoder attention weights during training that is easily implemented with two lines of code.

Show full abstract

We investigate the effect of relaxed attention across different AED model architectures and two prominent ASR tasks, Wall Street Journal (WSJ) and Librispeech. We found that transformers trained with relaxed attention outperform the standard baseline models consistently during decoding with external language models. On WSJ, we set a new benchmark for transformer-based end-to-end speech recognition with a word error rate of 3.65%, outperforming state of the art (4.20%) by 13.1% relative, while introducing only a single hyperparameter.

View on arXivView PDF

Code Implementations(1)

freewym/espressoOfficial100%
PyTorch

Espresso: A Fast End-to-End Neural Speech Recognition Toolkit

941116Python, CudaDec 2, 20182 years agoNOASSERTION
asrend-to-endfairseqkaldipython+2 more

Similar Papers

Cite this paper

@article{lohrenz2021relaxed,
  title  = {Relaxed Attention: A Simple Method to Boost Performance of End-to-End Automatic Speech Recognition},
  author = {Timo Lohrenz and Patrick Schwarz and Zhengyang Li and Tim Fingscheidt},
  year   = {2021},
  eprint = {2107.01275},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.01275}
}

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/2107.01275.svg)](https://codeofpaper.com/paper/2107.01275)

Discussion