F-StrIPE: Fast Structure-Informed Positional Encoding for Symbolic Music Generation

Manvi Agarwal, Changhong Wang, Gael Richard
2/14/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, recent progress has been made by exploiting suitable musically-informed priors. One technique to leverage information about musical structure in Transformers is inserting such knowledge into the positional encoding (PE) module. However, Transformers carry a quadratic cost in sequence length. In this paper, we propose F-StrIPE, a structure-informed PE scheme that works in linear complexity. Using existing kernel approximation techniques based on random features, we show that F-StrIPE is a generalization of Stochastic Positional Encoding (SPE). We illustrate the empirical merits of F-StrIPE using melody harmonization for symbolic music.

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{agarwal2025fstripe,
  title  = {F-StrIPE: Fast Structure-Informed Positional Encoding for Symbolic Music Generation},
  author = {Manvi Agarwal and Changhong Wang and Gael Richard},
  year   = {2025},
  eprint = {2502.10491},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.10491v1}
}

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

Discussion