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

DisMix: Disentangling Mixtures of Musical Instruments for Source-level Pitch and Timbre Manipulation

Yin-Jyun Luo, Kin Wai Cheuk, Woosung Choi, Toshimitsu Uesaka, Keisuke Toyama, Koichi Saito, Chieh-Hsin Lai, Yuhta Takida, Wei-Hsiang Liao, Simon Dixon, Yuki MitsufujiarXiv 2024 · DOI

Abstract

DisMix is a generative framework designed to disentangle pitch (melody) and timbre (instrument identity) directly from multi-instrument musical mixtures. By representing each instrument as a modular latent object, DisMix enables high-fidelity attribute swapping—such as changing a violin to a trumpet while preserving the original notes—without the artifacts typically introduced by traditional source separation pre-processing.

Introduction

In music information retrieval and generation, "disentanglement" refers to the ability to isolate independent factors of variation, specifically the what (pitch/melody) from the how (timbre/instrument). While significant progress has been made for monophonic solo instruments, polyphonic musical mixtures (e.g., string quartets) remain a significant challenge.

Conventional approaches often rely on a two-step pipeline: source separation followed by disentanglement. However, imperfect separation introduces auditory artifacts that degrade downstream manipulation. DisMix proposes a "mixture-first" approach, learning to identify and manipulate these attributes directly within the context of the full recording.

Methodology

DisMix treats each instrument in a mixture as a "source-level representation" composed of two distinct latent variables: a pitch latent ($\nu$) and a timbre latent ($\tau$).

Graphical model of the DisMix generative process (left) and inference procedure (right).

The architecture incorporates several key innovations:

  • Query-Based Encoding: The model identifies specific instruments within a mixture using a "query" (a short reference snippet of the target instrument).
  • Stochastic Binarization (SB): To prevent the pitch latent from encoding instrument-specific information, the model employs a binarization layer. By restricting the pitch representation to a discrete binary space, the model is forced to relegate all timbre-related details to the dedicated timbre latent.
  • Latent Diffusion Transformer (DiT): A set-conditioned Diffusion Transformer reconstructs the final mixture by considering the representations of all instruments simultaneously, rather than reconstructing them in isolation.
  • Barlow Twins Loss: A simplified Barlow Twins objective ensures the timbre latent is highly correlated with the instrument query, resulting in a more discriminative and organized timbre space.

Experimental Evaluation

The framework was evaluated on two primary datasets: MusicSlot, a synthetic collection of isolated chords (piano, violin, flute), and CocoChorale, a complex dataset of 60,000 four-part Bach-style chorales featuring 13 orchestral instruments across Soprano, Alto, Tenor, and Bass (SATB) parts.

Key Results and Insights

DisMix demonstrates exceptional performance in "Mixture Rendering," where attributes of the original mixture are manipulated and then re-synthesized.

Visualization of the organized timbre latent space (left) and examples of mixture manipulation including isolation, removal, and replacement (right).
  • Disentanglement Performance: On the CocoChorale dataset, DisMix achieved 97.49% instrument classification accuracy and 97.15% pitch accuracy following attribute swapping.
  • Generative Quality: The model achieved a Fréchet Audio Distance (FAD) score of 2.10, significantly outperforming baseline models and indicating high-fidelity reconstruction.
  • The Importance of Constraints: Ablation studies highlighted that the binarization of the pitch latent is critical. Without this bottleneck, the pitch latent becomes "contaminated" with timbre information, leading to poor disentanglement.
  • Holistic Reconstruction: Reconstructing the mixture from a set of source latents proved superior to summing individually reconstructed sources, suggesting that the model successfully captures inter-instrument interactions.

Conclusion and Future Work

DisMix provides a robust framework for source-level manipulation within complex musical mixtures. While currently requiring an instrument query and operating on a fixed number of sources, it paves the way for advanced "attribute inpainting" and automatic source identification. Future research will focus on extending the model to more diverse musical genres and removing the requirement for explicit queries.

Summary updated

BibTeX
@misc{luo2024dismix,
  author = {Yin-Jyun Luo and Kin Wai Cheuk and Woosung Choi and Toshimitsu Uesaka and Keisuke Toyama and Koichi Saito and Chieh-Hsin Lai and Yuhta Takida and Wei-Hsiang Liao and Simon Dixon and Yuki Mitsufuji},
  title = {{DisMix: Disentangling Mixtures of Musical Instruments for Source-level Pitch and Timbre Manipulation}},
  year = {2024},
  eprint = {2408.10807},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.10807},
}
Figure