ICASSP 2022accepted0 citations

Conformer-Based Speech Recognition with Linear Nyström Attention and Rotary Position Embedding

Lahiru Samarakoon, Tsun-Yat Leung

Abstract

Self-attention has become an important component for end-to-end (E2E) automatic speech recognition (ASR). Recently, Convolution-augmented Transformer (Conformer) with relative positional encoding (RPE) achieved state-of-the-art performance. However, the computational and memory complexity of self-attention grows quadratically with the input sequence length. Effect of this can be significant for the Conformer encoder when processing longer sequences. In this work, we propose to replace self-attention with a linear complexity Nyström attention which is a low-rank approximation of the attention scores based on the Nyström method. In addition, we propose to use Rotary Position Embedding (RoPE) with Nyström attention since RPE is of quadratic complexity. Moreover, we show that models can be made even lighter by removing self-attention sub-layers from top encoder layers without any drop in the performance. Furthermore, we demonstrate that Convolutional sub-layers in Conformer can effectively recover the information lost due to the Nyström approximation.

BibTeX
@inproceedings{icassp2022_conformerbasedsp,
  title = {Conformer-Based Speech Recognition with Linear Nyström Attention and Rotary Position Embedding},
  author = {Lahiru Samarakoon and Tsun-Yat Leung},
  booktitle = {ICASSP 2022},
  year = {2022}
}