Convolutional Dynamic Rotary Positional Encoding

Hong, Euijin, Zhang, Meng-Chun

–arXiv.org Artificial Intelligence 

Rotary Position Embedding (RoPE) is a strong alternative to relative positional encoding in modern automatic speech recognition (ASR) encoder models. However, its discrete, uniformly-spaced chronological index is misaligned with the continuous, semantic nature of speech features. We propose Convolutional Dynamic RoPE (CD-RoPE), a dynamic positional encoding complementing Branchformer's attention path by warping the rotary temporal index conditioned on local acoustic context via a lightweight depthwise-separable convolution. Additive position modulation preserves RoPE's harmonic structure, enabling continuous input-dependent shifts. CD-RoPE achieves consistent WER improvements over RelPos on Branchformer across all LibriSpeech test sets with 2.2M fewer parameters. Targeted robustness evaluation on Speech Robust Bench (SRB) confirms that CD-RoPE's advantage is strongest under temporal perturbations, validating the temporal warping mechanism.