Score Warping: Two-Dimensional Flow Pseudo-Labels for Transcribing Bent and Microtonal Pitch

Music transcription models learn what a "note" looks like from data that is mostly Western piano. Piano pitch is fixed: a key sounds one tempered frequency from attack to release. Much of the world's music does not behave this way. Guitarists bend strings, singers glide and use vibrato, and many non-Western traditions use pitches between the piano keys. The usual way to train on such music without hand annotation is to take a written score, stretch it in time until it lines up with the recording, and use the stretched score as a training label. That procedure can fix when notes happen. It cannot fix what pitch they have. The label therefore always claims the singer hit the tempered note, and the model learns to ignore exactly the inflections that define the genre.

We propose to borrow the central move of appearance-flow image synthesis: instead of painting a new image, predict where every pixel should be moved from. Here the "image" is the score drawn as a picture on a time × log-frequency grid. Training labels are made by warping that picture in two dimensions at once, shifting it in time to match rhythm and bending it in frequency to match each note's actual pitch path. Because the warp only moves score content and never invents it, the labels keep the score's note identities while acquiring continuous pitch curves taken from the recording. The core claim is that replacing one-dimensional time alignment with constrained two-dimensional differentiable warping, inside the same self-training loop, yields transcribers that report bends, glides and microtonal pitch in polyphonic music where current weakly supervised systems structurally cannot.

Core Claim

The closest existing method is NoteEM, from Unaligned Supervision for Automatic Music Transcription in The Wild. It bootstraps a transcriber on synthetic audio. It then alternates two steps: dynamic time warping (DTW, a discrete algorithm that finds the best monotone time stretch between two sequences) aligns an unaligned score to the model's own note predictions, and the model is retrained on the aligned score. NoteEM reaches 89.7% note-level F1 on MAESTRO and 87.3% on MAPS. Its warp acts only on the time axis, so every pseudo-label it produces is quantized to the score's pitches. Our method keeps NoteEM's loop and replaces its alignment step with a differentiable 2D flow field. In this field, the time component is monotone and shared across voices up to small asynchronies. The frequency component is a smooth per-note deviation curve, bounded to a few hundred cents. The prediction is falsifiable. On polyphonic material with annotated continuous pitch, the 2D-warped labels should raise fine-resolution pitch accuracy well above NoteEM's while leaving onset F1 on piano essentially unchanged, because piano offers nothing to bend.

Relation to Prior Work

Three papers supply the method. View Synthesis by Appearance Flow predicts a dense field of source coordinates and resamples the source with differentiable bilinear interpolation, so losses backpropagate through the coordinates. We use exactly this sampling operator on the score image. Coordinate-Based Texture Inpainting for Pose-Guided Human Image Generation shows that predicting where to copy from avoids the blur of regressing values under uncertainty. That is our reason to warp the score rather than regress a pitch contour directly, since a regressed contour drifts toward the average of candidate notes. VITON constrains warps with thin-plate splines and blends them through a learned composition mask. We adopt both ideas. Per-note spline control points keep pitch curves smooth. A learned "unexplained energy" mask marks regions where the recording contains notes the score lacks, such as improvised ornaments, which a warp cannot create. This is the audio form of the total-occlusion limit that appearance-flow work documents.

Two papers motivate the gap. Musical Composition Style Transfer via Disentangled Timbre Representations already treats pitch as spatial structure on a log-frequency image, but it uses convolutional bottlenecks rather than any coordinate field. Timbre-Trap reaches 82.6 F1 on Bach10 from 1.3 hours of labels, yet reports that guitar remains hard. We read this partly as a pitch-geometry problem, not only a timbre problem.

One paper constrains the design. Scaling Polyphonic Transcription with Mixtures of Monophonic Transcriptions shows that musically incoherent mixtures teach acoustic separation. We use such mixtures for the bootstrap model. Our warp, however, depends on a coherent score, which is the opposite regime. We resolve this tension by giving each regime a separate job: incoherent data teaches what notes sound like, and coherent scores supply which notes are present.

We considered and rejected the most obvious intersection: applying appearance flow to spectrograms to synthesize audio by relocating patches from a reference bank. Moving magnitude bins does not preserve phase. Shifting harmonics in log-frequency also drags the formants, which changes timbre. And "copy real audio rather than generate it" already describes sample-based and concatenative synthesis, so a skeptic's simpler baseline would likely match it. The idea survives only where warping offers something sampling does not, which is exact, invertible transport of labels.

Research Program

Let $S$ be the score rendered as a binary piano roll on a grid of 20-cent log-frequency bins and 10 ms frames. Let $P$ be the current model's pitch-salience posterior on the same grid, and let $F=(\delta_t,\delta_f)$ be a displacement field. The label-making step solves

$$ F^\star=\arg\min_F \; D\big(P,\ \mathcal{W}(S,F)\big)+\lambda_t R_t(\delta_t)+\lambda_f R_f(\delta_f), $$

where $\mathcal{W}$ is bilinear grid-sampling of $S$ at displaced coordinates and $D$ is a masked binary cross-entropy that ignores cells the unexplained-energy mask flags. $R_t$ penalizes non-monotone or voice-inconsistent time shifts and is initialized from NoteEM's DTW path. $R_f$ penalizes curvature of each note's spline deviation curve, its magnitude beyond a genre-agnostic bound, and jumps larger than a third of a semitone between adjacent frames. The jump penalty is what stops the warp from snapping a note onto an overtone. The frequency field is parameterized per score note by spline control points, not per pixel, so the warp can bend a note but cannot split or tear it.

$\mathcal{W}(S,F^\star)$ becomes a continuous-pitch pseudo-label. The transcriber is a CQT-input convolutional network with a fine-resolution pitch output plus onset and offset heads. It is retrained on these labels, and the two steps alternate as in NoteEM.

Training audio is unaligned audio–score pairs: MusicNet recordings with their scores, and GTSinger (corpus; paper) with its MusicXML. We discard GTSinger's alignment and treat its glissando and vibrato takes as inflection-rich material, with the paired natural-voice takes of the same passage serving as controls. For GuitarSet we build simulated unaligned scores by snapping the hexaphonic pitch annotations to equal temperament and applying random smooth tempo perturbations. We state plainly that this is simulation. The file contains no annotated microtonal non-Western corpus. A genuinely cross-tradition test therefore needs a small newly annotated set, which we would collect as a final stage.

Baselines

The naive reference is the bootstrap model trained only on synthetic audio and incoherent monophonic mixtures, with no self-training on real recordings. It measures how much any alignment loop helps.

The strongest existing competitor is NoteEM itself, with 1D DTW pseudo-labels. Its reported 89.7% note F1 on MAESTRO and 87.3% on MAPS set the bar on piano. We will rerun it with the identical backbone, bootstrap checkpoint, real-audio pool, number of iterations and GPU budget, so that the alignment step is the only difference. Beating it means a clear gain in pitch accuracy at a 20-cent tolerance and in frame-level multi-pitch accuracy on GuitarSet, URMP and Bach10, with note-onset F1 on MAESTRO within one point of the NoteEM rerun. No reported result was found on Lacuna for NoteEM on GuitarSet, so that comparison rests entirely on our rerun.

For a reference from the instrument-agnostic line, we compare against Timbre-Trap's reported Bach10 F1 of 82.6, and Basic Pitch's 82.9 as quoted in that paper, at the standard note tolerance.

Three ablations isolate the key ingredient. A NoteEM variant with fine pitch bins tests whether resolution alone helps when labels stay quantized. An unconstrained per-pixel flow without splines or jump penalties tests whether the structural constraints are what prevent harmonic snapping. A variant without the unexplained-energy mask tests the cost of forcing score content onto ornaments it does not contain.

Why not just…?

Why not just run DTW and then refine each note's pitch with a monophonic pitch tracker inside its time window? For solo voice this is a real threat, and on GTSinger we expect it may tie with our method. We will report that result honestly rather than hide it. In polyphony, a single pitch tracker inside a note window sees several overlapping sources and locks onto the loudest one. The score-guided 2D warp instead attaches each contour to a specific score note. The GuitarSet and URMP mixture experiments settle this, because they have per-string or per-instrument pitch ground truth under real overlap.

Why not just scale incoherent synthetic mixtures further, as in Simon et al.? That work reports a 56% relative F1 gain on URMP and LODO MAESTRO F1 rising from 0.28 to 0.39. These gains come from timbre diversity, and the targets remain quantized notes, so no amount of such data teaches a model to output a 30-cent bend. We already use this recipe as our bootstrap, so any gain we report is on top of it.

Why not just augment with global pitch-shift and time-stretch? Global transforms are rigid, while bends, vibrato and micro-timing are local and vary note by note. A stronger version of this alternative would apply random smooth 2D warps to labeled audio and to its labels together. We include this as an extra baseline. If it matches our method, the conclusion is that the learned, recording-matched warp adds nothing beyond warp-shaped augmentation, and we would say so.

Decisive Experiments

The first test is the piano non-regression check. On MAESTRO and MAPS, frequency deviations should collapse toward zero and note F1 should stay near the NoteEM rerun. Large learned bends on piano would indicate that the warp fits noise.

The second, and central, test is polyphonic inflection. On GuitarSet, URMP and Bach10 we measure pitch accuracy at 50- and 20-cent tolerances, mean absolute cents error on voiced frames, and note F1 with and without offsets, comparing the 2D warp against the NoteEM rerun, the fine-bin ablation and random-warp augmentation.

The third test is controlled inflection on GTSinger. Comparing glissando and vibrato takes with their natural-voice twins should show the gap between our method and NoteEM widening only on the inflected takes. A gap that also appears on natural takes would point to a confound.

A further diagnostic plots pitch error against the size of each note's ground-truth deviation. NoteEM's error should grow roughly linearly with that deviation, since its labels cannot move off the score pitch, while ours should stay flat up to the warp bound.

The method is disproved if gains appear only on monophonic data where the pitch-tracker refinement baseline already wins, or if random smooth warps match it.