NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Compound Token Representations for Symbolic Music

This direction is split into other directions: multi-attribute token grouping. Its last version stays readable and citable here.

Version 1 of 129 papers44 conceptsfrozen 2026-10-04

In the domain of symbolic music generation, Transformers have become the standard architecture. However, music presents a unique structural challenge: a single musical "event" (like a note) is defined by multiple simultaneous attributes, such as pitch, duration, velocity, and instrument.

Traditional approaches used "flat" tokenization, where each attribute is a separate token in a long sequence. This creates a massive computational bottleneck. Recent research has shifted toward Compound Token Representations, which pack these multi-dimensional attributes into a single representational unit per time step.

The Bottleneck of Flat Sequences

Standard symbolic music formats like MIDI-Like or REMI represent music as a linear stream of events. For example, to describe a single note, a model might need to output four consecutive tokens: [Pitch: C4], [Duration: Quarter], [Velocity: 80], and [Time-Shift: 10].

This approach has two major flaws:

  1. Quadratic Complexity: Transformers suffer from $O(n^2)$ memory and computational costs relative to sequence length. Flat sequences are unnecessarily long, quickly exhausting the model's context window.
  2. Attribute Dissociation: The model must learn that the fourth token (Time-Shift) is logically linked to the first token (Pitch). As the sequence grows, maintaining this coherence becomes difficult.

Packing Attributes into Compound Tokens

To solve this, researchers like Hao‐Wen Dong and Shangzhe Di proposed grouping related attributes into multi-dimensional tuples or "compound words."

In the Multitrack Music Transformer (MMT), Hao‐Wen Dong demonstrates that by encoding musical events as multi-variable tuples, the effective sequence length is reduced by a factor of 3 to 4. Instead of four steps to describe a note, the Transformer takes one. This allows the model to process segments that are 3.5x longer and achieve 3x faster inference within the same memory constraints.

Similarly, the Controllable Music Transformer (CMT) by Shangzhe Di uses compound tokens to synchronize musical attributes with visual features from video, such as motion speed and saliency. By aggregating pitch, duration, and velocity into a single token, the model ensures that these attributes are processed simultaneously, maintaining the integrity of the musical "event."

Structural Coherence and Infilling

Compound tokens do more than just save memory; they improve the model's understanding of musical structure. When attributes are bundled, the Transformer's attention mechanism can focus on the relationships between notes rather than the relationships between attributes of the same note.

This structural benefit is evident in tasks like "music score infilling." Chin-Jui Chang and Yi‐Hsuan Yang utilized compound tokens with an XLNet-based architecture to bridge gaps between musical segments. By grouping features into a single representational unit per time step, their model maintains better harmonic and rhythmic consistency across the "inpainted" sections.

In MelodyGLM, Kejun Zhang and Xu Tan further refined this by using compound tokens for multi-task pre-training. Their approach targets both local motifs and long-term structural spans, proving that a compressed, multi-dimensional representation is more effective at capturing the multi-scale nature of melody than flat tokenization.

Disentanglement and Compression

Beyond simple grouping, this research direction explores how to organize the internal space of these tokens. Shulei Ji and Xinyu Yang introduced MusER, which uses regularization to disentangle discrete elements like pitch and duration within a latent space. This allows for fine-grained control, such as swapping the "emotional" characteristics of a piece by only modifying specific dimensions of the compound representation.

Finally, some researchers have looked toward NLP for inspiration on sequence compression. Nathan Fradet demonstrated that Byte Pair Encoding (BPE)—the standard for subword tokenization—can be adapted for symbolic music. By merging frequent sequences of musical attribute triplets into single tokens, Fradet achieved significant reductions in sequence length, further mitigating the quadratic constraints of the attention mechanism.

Summary of Benefits

The transition from flat sequences to compound tokens represents a fundamental shift in how AI "reads" music:

  • Efficiency: Drastic reductions in sequence length enable the generation of longer, more complex compositions (e.g., multitrack arrangements).
  • Synchronicity: Related attributes (pitch, timing, volume) are updated in a single model step, preventing the "drift" or incoherence common in long flat sequences.
  • Control: Multi-dimensional representations allow researchers to isolate and manipulate specific musical elements, such as rhythm or emotion, without affecting the rest of the composition.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_compound_token_representations_for_symbo_0424cfa9,
  title = {Compound Token Representations for Symbolic Music},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/compound-token-representations-for-symbolic-music/rdr_0424cfa9745749b5816f501cbe35acdf},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-30},
}

This exact version (version 1, frozen text):

@misc{lacuna_compound_token_representations_for_symbo_0424cfa9_v1,
  title = {Compound Token Representations for Symbolic Music},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/compound-token-representations-for-symbolic-music/rdr_0424cfa9745749b5816f501cbe35acdf/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-30},
}