Of All StrIPEs: Investigating Structure-informed Positional Encoding for Efficient Music Generation

Manvi Agarwal, Changhong Wang, Gael Richard
4/7/2025
cs.SDcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

While music remains a challenging domain for generative models like Transformers, a two-pronged approach has recently proved successful: inserting musically-relevant structural information into the positional encoding (PE) module and using kernel approximation techniques based on Random Fourier Features (RFF) to lower the computational cost from quadratic to linear. Yet, it is not clear how such RFF-based efficient PEs compare with those based on rotation matrices, such as Rotary Positional Encoding (RoPE). In this paper, we present a unified framework based on kernel methods to analyze both families of efficient PEs. We use this framework to develop a novel PE method called RoPEPool, capable of extracting causal relationships from temporal sequences. Using RFF-based PEs and rotation-based PEs, we demonstrate how seemingly disparate PEs can be jointly studied by considering the content-context interactions they induce. For empirical validation, we use a symbolic music generation task, namely, melody harmonization. We show that RoPEPool, combined with highly-informative structural priors, outperforms all methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{agarwal2025stripes,
  title  = {Of All StrIPEs: Investigating Structure-informed Positional Encoding for Efficient Music Generation},
  author = {Manvi Agarwal and Changhong Wang and Gael Richard},
  year   = {2025},
  eprint = {2504.05364},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.05364v1}
}

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

Discussion