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

Instrument Separation of Symbolic Music by Explicitly Guided Diffusion Model

Sangjun Han, Hyeongrae Ihm, DaeHan Ahn, Woohyung LimarXiv 2022

Abstract

Similar to colorization in computer vision, instrument separation is to assign instrument labels (e.g. piano, guitar...) to notes from unlabeled mixtures which contain only performance information. To address the problem, we adopt diffusion models and explicitly guide them to preserve consistency between mixtures and music. The quantitative results show that our proposed model can generate high-fidelity samples for multitrack symbolic music with creativity.

Introduction

In digital music production, "zoning" allows a single keyboardist to play multiple instruments by splitting keys into sections. However, this is physically limiting and often results in overlapping pitch ranges. Researchers from LG AI Research address this through Instrument Separation (Mixture2Music), the task of assigning specific instrument labels to a flattened "mixture" of MIDI notes.

This is an "ill-posed" problem because a single note in a mixture could theoretically be assigned to any instrument. The challenge is twofold:

  1. Consistency: Every note assigned to an instrument must exist in the original mixture.
  2. Diversity: The model should generate various plausible arrangements, as there isn't always one "correct" answer.

Methodology

The authors employ Diffusion Models (specifically DDPM and DDIM) to handle the discrete structure of symbolic music. Unlike previous methods requiring complex differentiable tricks for binary data, diffusion models naturally handle these structures by iteratively denoising random noise into a structured signal.

Architecture and Explicit Guidance

The core denoiser is a TransUNet, combining the spatial processing of a U-Net with the global context-awareness of Transformers. To enforce strong consistency, the authors introduce Explicit Guidance.

Explicitly guided diffusion process using multiplicative conditioning with the input mixture.

Standard diffusion models often use "weak" conditioning. In this work, the authors multiply the input mixture into both the inputs and the targets of the denoiser. Since multiplying by zero always results in zero, this mathematical constraint prevents the model from "hallucinating" notes that weren't in the original performance.

Dataset and Preprocessing

The study utilizes the Lakh MIDI Dataset (LMD), filtering for 4/4 time signatures and five core instruments: piano, guitar, bass, strings, and drums. Music was quantized to 16th notes and sliced into 1-bar phrases. Training mixtures were created by summing multitrack songs into a single binary layer.

Results and Discussion

The diffusion approach was compared against a VAE baseline using Consistency (Hamming distance) and Diversity metrics.

Model Consistency (Lower is better) Diversity (Higher is better)
VAE 4.500e-3 8.625e-3
DDPM (Ours) 8.974e-5 1.107e-2
DDIM (Ours) 2.469e-4 1.138e-2

Diffusion models significantly outperformed the VAE. DDPM achieved the best consistency, while DDIM provided the highest diversity.

Qualitative result showing multitrack music generated from a single mixture.

The model acts as a creative discrete solver. By forcing the model to work within the footprint of the mixture via multiplicative masking, it solves the consistency problem while allowing for "over-generation" or "under-generation" that remains musically valid.

Conclusion

While effective, the current model is limited to 4/4 time signatures and five instruments. Future work will expand the rhythmic and orchestral palette. Additionally, while Hamming distance provides a mathematical benchmark, subjective listening tests are needed to fully evaluate the "musicality" of the generated arrangements.

Summary updated

BibTeX
@misc{han2022instrument,
  author = {Sangjun Han and Hyeongrae Ihm and DaeHan Ahn and Woohyung Lim},
  title = {{Instrument Separation of Symbolic Music by Explicitly Guided Diffusion Model}},
  year = {2022},
  eprint = {2209.02696},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.02696},
}
Figure