Nested Music Transformer: Sequentially Decoding Compound Tokens in Symbolic Music and Audio Generation

Jiwoo Ryu, Hao-Wen Dong, Jongmin Jung, Dasaem Jeong
8/2/2024
cs.SDcs.IRcs.LG

No official code found. Best implementation: JudeJiwoo/nmt (15 stars, last commit 2025-04-13).

Abstract

Representing symbolic music with compound tokens, where each token consists of several different sub-tokens representing a distinct musical feature or attribute, offers the advantage of reducing sequence length. While previous research has validated the efficacy of compound tokens in music sequence modeling, predicting all sub-tokens simultaneously can lead to suboptimal results as it may not fully capture the interdependencies between them. We introduce the Nested Music Transformer (NMT), an architecture tailored for decoding compound tokens autoregressively, similar to processing flattened tokens, but with low memory usage. The NMT consists of two transformers: the main decoder that models a sequence of compound tokens and the sub-decoder for modeling sub-tokens of each compound token. The experiment results showed that applying the NMT to compound tokens can enhance the performance in terms of better perplexity in processing various symbolic music datasets and discrete audio tokens from the MAESTRO dataset.

View on arXivView PDF

Code Implementations(1)

JudeJiwoo/nmtCommunity100%
150PythonAug 1, 20241 years ago

Similar Papers

Cite this paper

@article{ryu2024nested,
  title  = {Nested Music Transformer: Sequentially Decoding Compound Tokens in Symbolic Music and Audio Generation},
  author = {Jiwoo Ryu and Hao-Wen Dong and Jongmin Jung and Dasaem Jeong},
  year   = {2024},
  eprint = {2408.01180},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.01180v1}
}

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

Discussion