Toward Fully Self-Supervised Multi-Pitch Estimation

Frank Cwitkowitz, Zhiyao DuanarXiv 2024

TL;DR

Researchers have developed a fully self-supervised framework (SS-MPE) that learns to detect multiple concurrent musical pitches without ever seeing a human-annotated label. By training exclusively on synthetic, single-note samples and leveraging the geometric properties of audio representations, the model generalizes remarkably well to complex polyphonic music, rivaling the performance of supervised systems.

What Problem Does This Paper Address?

Multi-pitch estimation (MPE) is the "holy grail" of music information retrieval: it involves identifying every fundamental frequency (F0) active in a piece of music at any given moment. While we can track a single singer with near-perfect accuracy, polyphonic music—where harmonics from different instruments overlap and mask one another—remains a massive challenge.

The primary bottleneck isn't just the math; it's the data. Creating high-quality ground truth for polyphonic music requires tedious manual correction by experts, making large-scale datasets scarce. This paper asks: Can we bypass the need for labels entirely by teaching a model the intrinsic "rules" of how pitch and timbre behave?

Methods

The authors propose a framework called SS-MPE, which uses a fully convolutional 2D autoencoder as its backbone. The process starts with the Harmonic Constant-Q Transform (HCQT), a time-frequency representation that stacks multiple versions of a spectrogram, each aligned to a different harmonic.

Figure 2. HCQT power spectrogram (in dB) for an audio signal (top-left), the corresponding first-harmonic channel (bottom-left) and weighted harmonic average (top-right), and an example multi- pitch salience-gram estimate (bottom-right). Self-supervised ob- jectives (Lhar and Lsup) are employed to encourage the model to concentrate energy around strong F0 candidates.

Instead of using labels, the model is trained using a suite of self-supervised objectives:

  1. Energy Concentration: The model is encouraged to focus its output on frequencies that show strong harmonic activity across the HCQT channels, while suppressing noise and spurious activations.
  2. Timbre Invariance: By applying random Gaussian equalization curves to the input (boosting or cutting different frequency bands), the model learns that the underlying pitch remains the same regardless of the instrument's specific "tone" or harmonic balance.
  3. Geometric Equivariance: The CQT has a unique property: shifting a pitch up or down is equivalent to a vertical translation on the spectrogram. The model is trained to ensure that if the input is shifted or stretched, the output pitch estimate follows that transformation exactly.
Figure 4. Examples (by row) of sampled geometric transformations (center) applied to CQT spectrograms (left) to produce transformed spectrograms (right) for the geometric-equivariance objective.

Datasets

  • Training: The model was trained exclusively on NSynth, a dataset of ~300k synthetic monophonic (single-note) samples. Crucially, the model was agnostic to the provided labels.
  • Evaluation: To test generalization, the authors used several standard polyphonic benchmarks:
  • Bach10 & URMP: Multitrack classical music (quartets, quintets, etc.).
  • Su & TRIOS: Mixtures of piano, strings, and jazz trios.
  • GuitarSet: Polyphonic acoustic guitar recordings.

Key Insights and Ideas

  • Monophonic to Polyphonic Generalization: Perhaps the most striking finding is that a model trained only on single notes can effectively transcribe mixtures of multiple instruments. The self-supervised objectives teach the model the "concept" of a pitch, which then naturally scales to concurrent events.
  • The Power of Priors: By using the HCQT, the authors bake musical domain knowledge (harmonic structure) into the input features, making the self-supervised task much more tractable for the neural network.
  • Timbre vs. Geometry: The ablation studies show that while energy concentration provides the foundation, adding timbre invariance and geometric equivariance significantly boosts performance, especially in terms of output sparsity and robustness to different instrument types.

Key Results

SS-MPE achieves performance comparable to state-of-the-art supervised models like Deep-Salience and Basic-Pitch.

  • On the Bach10 dataset, the full SS-MPE model achieved an accuracy of 57.1%, outperforming monophonic baselines (like CREPE at 23.5%) and approaching supervised benchmarks.
  • The model demonstrated high recall, meaning it is excellent at finding active notes, though it occasionally suffers from lower precision due to false alarms on harmonics.
  • Qualitatively, the model produces much cleaner, sparser "salience-grams" (pitch maps) than simpler energy-based methods, effectively separating overlapping notes in complex classical arrangements.

Limitations and Future Work

Despite its success, the model is still prone to false alarms, particularly during percussive note attacks or releases where the harmonic structure is messy. It also occasionally misses notes entirely if they are significantly different from the synthetic training samples in NSynth.

The authors suggest that future work should focus on:

  • Scaling to real-world audio: Moving beyond synthetic samples to large-scale unlabeled datasets of real music.
  • Robustness: Incorporating noise-invariance and time-varying transformations to better simulate the "imperfections" of live recordings, such as vibrato and room acoustics.
  • Language Modeling: Integrating a "music language model" to help the system make more musically informed guesses when the audio is ambiguous.

Summary updated

BibTeX
@misc{cwitkowitz2024toward,
  author = {Frank Cwitkowitz and Zhiyao Duan},
  title = {{Toward Fully Self-Supervised Multi-Pitch Estimation}},
  year = {2024},
  eprint = {2402.15569},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.15569},
}
Figure