Music Mixing Style Transfer: A Contrastive Learning Approach to Disentangle Audio Effects

Junghyun Koo, Marco A. Martínez Ramírez, Wei-Hsiang Liao, Stefan Uhlich, Kyogu Lee, Yuki Mitsufuji · DOI

Abstract

Automating the music mixing process requires transferring the "sonic signature" of a reference track to new recordings, a task complicated by the scarcity of unprocessed "dry" audio and the inherent entanglement of musical timbre with applied effects. This paper introduces an end-to-end system that utilizes contrastive learning to disentangle audio effects (FX) from musical content. By employing a novel FX normalization technique and a probability-scheduled encoder, the system learns to extract mixing styles from professional "wet" tracks. A Temporal Convolutional Network, conditioned via Feature-wise Linear Modulation (FiLM), then applies these styles to target multitracks. Evaluation on the MUSDB18 dataset shows that the proposed method significantly outperforms baselines in both objective disentanglement metrics and subjective listening tests conducted by professional audio engineers.

Introduction

Music mixing is a highly skilled, subjective process where engineers apply a chain of audio effects (FX)—such as EQ, compression, and reverb—to create a cohesive and professional sound. For AI to assist in this, it must perform mixing style transfer: extracting the "sonic signature" of a reference track and applying it to a new set of recordings. This task faces two primary challenges: the scarcity of "dry" (unprocessed) audio for training and the difficulty of distinguishing between an instrument's natural timbre and the effects applied to it.

Methods

The proposed architecture consists of two primary modules: the FXencoder ($\Phi$) and the MixFXcloner ($\Psi$).

FX Normalization and Contrastive Learning

To bypass the need for rare dry data, the system uses FX normalization to strip existing wet tracks of their original EQ, loudness, and panning, creating a homogeneous baseline. The FXencoder is then trained using contrastive learning to recognize audio effects regardless of musical content. By applying identical random FX chains to different song snippets and treating them as positive pairs, the model learns to ignore melodic features and focus solely on processing.

Probability Scheduling and Style Conversion

To ensure the model captures subtle effects like stereo imaging, the authors introduced probability scheduling, which increases the frequency of "difficult" effects during training based on validation loss. The final MixFXcloner uses a Temporal Convolutional Network (TCN) conditioned via FiLM (Feature-wise Linear Modulation) to apply the reference style to the input stems.

Overview of the training and inference pipelines for the mixing style transfer system.

Results and Discussion

The system was validated using the MUSDB18 dataset. A key insight is that specifically designing the contrastive task for FX allows the model to learn a latent space where mixing style is distinct from musical content.

Quantitative and Visual Disentanglement

The proposed encoder ($\Phi_{p.s.}$) significantly outperformed baselines like the Music Effects Encoder (MEE) on disentanglement metrics. t-SNE visualizations confirm that the model successfully clusters audio effects, with probability scheduling ($\Phi_{p.s.}$) providing much clearer separation than standard normalization ($\Phi_{norm}$) or baseline methods.

t-SNE plots demonstrating the superior disentanglement of audio effects achieved by the proposed probability-scheduled encoder.

Subjective Evaluation

In listening tests, 11 professional audio engineers rated the system's multitrack conversions as significantly more similar to reference tracks than baseline models. While the system excels at single-stem transfers, the engineers noted the inherent complexity of full multitrack mixing, suggesting areas for future refinement.

Conclusion

By leveraging contrastive learning and a clever normalization strategy, this work enables mixing style transfer directly from professional recordings. While currently limited to a fundamental set of six effects, the framework provides a scalable path toward more complex, creative AI-assisted music production.

Summary updated

BibTeX
@inproceedings{koo2023music,
  author = {Junghyun Koo and Marco A. Martínez Ramírez and Wei-Hsiang Liao and Stefan Uhlich and Kyogu Lee and Yuki Mitsufuji},
  title = {{Music Mixing Style Transfer: A Contrastive Learning Approach to Disentangle Audio Effects}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10096458},
}
Figure