Skip to main content
QUICK REVIEW

[Paper Review] Symphony Generation with Permutation Invariant Language Model

Jiafeng Liu, Yuanliang Dong|arXiv (Cornell University)|May 10, 2022
Music and Audio ProcessingComputer Science9 citations
TL;DR

This paper proposes SymphonyNet, a permutation-invariant language model for symbolic symphony music generation using a novel Multi-track Multi-instrument Repeatable (MMR) representation with 3D positional embeddings and a Music BPE subword tokenization method. The model leverages a linear Transformer decoder with joint instrument classification to generate coherent, complex, and harmonious symphonies, outperforming human compositions in diversity and achieving state-of-the-art results on a new large-scale symphony dataset.

ABSTRACT

In this work, we propose a permutation invariant language model, SymphonyNet, as a solution for symbolic symphony music generation. We propose a novel Multi-track Multi-instrument Repeatable (MMR) representation for symphonic music and model the music sequence using a Transformer-based auto-regressive language model with specific 3-D positional embedding. To overcome length overflow when modeling extra-long symphony tokens, we also propose a modified Byte Pair Encoding algorithm (Music BPE) for music tokens and introduce a novel linear transformer decoder architecture as a backbone. Meanwhile, we train the decoder to learn automatic orchestration as a joint task by masking instrument information from the input. We also introduce a large-scale symbolic symphony dataset for the advance of symphony generation research. Empirical results show that the proposed approach can generate coherent, novel, complex and harmonious symphony as a pioneer solution for multi-track multi-instrument symbolic music generation.

Motivation & Objective

  • To address the challenge of modeling semi-permutation-invariant multi-track, multi-instrument symphonic music, which cannot be adequately captured by standard 1D sequence modeling.
  • To reduce sequence length and improve semantic richness in symbolic music generation by introducing Music BPE for subword-level tokenization of notes, intervals, and chords.
  • To enable end-to-end auto-orchestration by jointly training the model to predict instruments without requiring explicit instrument input.
  • To advance symphony generation research by releasing a large-scale, high-quality dataset of 46,359 symphonic MIDI files.
  • To develop a scalable architecture that handles ultra-long symphonic sequences while preserving structural and harmonic coherence.

Proposed method

  • Proposes a Multi-track Multi-instrument Repeatable (MMR) representation that models symphonic scores as 3D tensors with track, time, and voice dimensions to preserve semi-permutation invariance.
  • Introduces 3D positional embeddings that encode relative positions across tracks, time, and voice dimensions, enabling the model to understand spatial and temporal relationships in orchestral scores.
  • Designs Music BPE, a modified Byte Pair Encoding algorithm that learns to group notes into intervals and chords based on frequency, reducing sequence length from 2.28 to 1.13 tokens per note.
  • Employs a linear Transformer decoder architecture to efficiently handle long sequences and mitigate the quadratic complexity of standard self-attention in long symphonic sequences.
  • Trains the model with joint-task learning: masking instrument information during training to enable end-to-end auto-orchestration based on note distribution.
  • Constructs a large-scale symbolic symphony dataset of 46,359 high-quality MIDI files with multiple instruments and tracks to support training and evaluation.

Experimental results

Research questions

  • RQ1Can a permutation-invariant 3D positional encoding effectively model the semi-permutation-invariant structure of symphonic music scores?
  • RQ2Does subword-level tokenization via Music BPE improve sequence modeling efficiency and semantic richness in symbolic music generation?
  • RQ3Can a joint training objective for instrument prediction enable the model to learn auto-orchestration without explicit instrument supervision?
  • RQ4To what extent does the proposed model generate music that is coherent, diverse, harmonious, and structurally complex compared to human compositions?
  • RQ5How does SymphonyNet perform in comparison to existing models like MMM and PopMAG on both custom and public datasets?

Key findings

  • The model with both 3D positional embeddings and Music BPE achieved the lowest training and validation loss, demonstrating improved generalization and performance.
  • Human evaluations showed that SymphonyNet-generated music surpassed human compositions in diversity (3.72 vs. 3.43 on a 5-point scale) and matched or exceeded them in coherence, harmoniousness, structure, and orchestration.
  • In a direct comparison on the Lakh MIDI dataset, SymphonyNet outperformed MMM across all metrics: 3.33 vs. 3.20 in coherence, 2.89 vs. 2.71 in diversity, and 2.87 vs. 2.71 in overall preference.
  • Music BPE reduced average token length from 2.28 to 1.13, significantly alleviating the burden of modeling ultra-long symphonic sequences.
  • The model successfully learned auto-orchestration, generating instrument assignments that were contextually appropriate and consistent with musical conventions.
  • The proposed MMR representation and 3D positional embeddings enabled the model to preserve local musical structure and inter-track relationships, avoiding damage from 1D flattening.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.