Benchmarking Rotary Position Embeddings for Automatic Speech Recognition

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Shucong, Parcollet, Titouan, van Dalen, Rogier, Bhattacharya, Sourav
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908408349720576
author Zhang, Shucong
Parcollet, Titouan
van Dalen, Rogier
Bhattacharya, Sourav
author_facet Zhang, Shucong
Parcollet, Titouan
van Dalen, Rogier
Bhattacharya, Sourav
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2501_06051
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Benchmarking Rotary Position Embeddings for Automatic Speech Recognition
Zhang, Shucong
Parcollet, Titouan
van Dalen, Rogier
Bhattacharya, Sourav
Computation and Language
Artificial Intelligence
Audio and Speech Processing
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.
title Benchmarking Rotary Position Embeddings for Automatic Speech Recognition
topic Computation and Language
Artificial Intelligence
Audio and Speech Processing
url https://arxiv.org/abs/2501.06051