StemMatching
Research preprint · 2026

StemMatching

Hierarchical Flow Matching for Multi-Track Music Generation

One flow model generates a full ensemble, then instrument pairs and individual stems. Each new part can follow the performance already taking shape.

Yu Liang1, Tiantian Feng2, Xuan Shi2, Yueqian Lin1, Yiran Chen1, Shrikanth Narayanan2

1 Duke University · 2 University of Southern California

Ridged frequency surface of the illustrative ensemble; sustained low notes form tall peaks on the left.
Ensemble spectrum45 Hz – 5.9 kHz

Listening room

Inside the mix.

Solo a stem or mute a part to hear how the arrangement fits together. This original synthesized loop illustrates the groupings used in the paper.

96 BPM · 4/400:00 / 00:10
TracksChannel

Method

From ensemble to stem.

Training targets come directly from the session. Aligned waveforms are summed first, then each group is encoded separately.

Ensemble

A coarse latent of the full mix sets a shared reference for the performance.

Group noise ρ = 0.75

Instrument pairs

Two cleaner submixes are drawn in sequence. The second pair can read the first at the same time position.

Group noise ρ = 0.40

Individual stems

One clean stem becomes the anchor. The other three are drawn in parallel using that anchor and the group history.

Stem noise ρ = 0

Results

On Slakh.

Evaluated on 3,526 four-stem clips from 141 test songs. The same model weights cover joint generation and all 14 completion tasks.

Four-stem joint generation Lower is better
ModelMixFADStemFADIRS
StemMatching0.911.060.0285
SyncTrack1.351.060.0196
MSG-LD1.271.460.0400
MSLDM3.044.860.0151
MSDM4.875.750.0338