English

Benchmarking Rotary Position Embeddings for Automatic Speech Recognition

Computation and Language 2025-06-17 v2 Artificial Intelligence Audio and Speech Processing

Abstract

Self-attention relies on positional embeddings to encode input order. Relative Position (RelPos) embeddings are widely used in Automatic Speech Recognition (ASR). However, RelPos has quadratic time complexity to input length and is often incompatible with fast GPU implementations of attention. In contrast, Rotary Positional Embedding (RoPE) rotates each input vector based on its absolute position, taking linear time to sequence length, implicitly encoding relative distances through self-attention dot products. Thus, it is usually compatible with efficient attention. However, its use in ASR remains underexplored. This work evaluates RoPE across diverse ASR tasks with training data ranging from 100 to 50,000 hours, covering various speech types (read, spontaneous, clean, noisy) and different accents in both streaming and non-streaming settings. ASR error rates are similar or better than RelPos, while training time is reduced by up to 21%. Code is available via the SpeechBrain toolkit.

Keywords

Cite

@article{arxiv.2501.06051,
  title  = {Benchmarking Rotary Position Embeddings for Automatic Speech Recognition},
  author = {Shucong Zhang and Titouan Parcollet and Rogier van Dalen and Sourav Bhattacharya},
  journal= {arXiv preprint arXiv:2501.06051},
  year   = {2025}
}
R2 v1 2026-06-28T21:02:45.242Z