Timbre-Trap: A Low-Resource Framework for Instrument-Agnostic Music Transcription

Frank Cwitkowitz, Kin Wai Cheuk, Woosung Choi, Marco A. Martínez Ramírez, Keisuke Toyama, Wei-Hsiang Liao, Yuki Mitsufuji · DOI

Abstract

Automatic Music Transcription (AMT) typically requires vast amounts of annotated data, which is often unavailable for diverse musical contexts. We present Timbre-Trap, a novel framework that treats AMT as a guided audio reconstruction task. By training a single autoencoder to simultaneously reconstruct audio and estimate pitch, the model learns to "filter out" timbre to reveal underlying notes. Timbre-Trap achieves performance comparable to state-of-the-art models while using significantly less annotated data, offering a scalable solution for instrument-agnostic transcription in low-resource environments.

Introduction

Automatic Music Transcription (AMT)—the conversion of raw audio into symbolic representations like MIDI—is a fundamental challenge in music information retrieval. High-performing models are typically "data-hungry," requiring thousands of hours of precisely aligned audio and labels. This dependency creates a bottleneck, particularly for rare instruments or complex ensembles where labels are expensive to produce. Furthermore, many existing models are instrument-specific. Timbre-Trap addresses these issues by leveraging the inherent relationship between "pitch" (the note) and "timbre" (the instrument's texture) through a self-supervised reconstruction objective.

Methodology

The core of Timbre-Trap is a fully convolutional autoencoder that unifies transcription and reconstruction within a single architecture.

The Timbre-Trap architecture utilizes a shared encoder and decoder with a latent switch to toggle between audio reconstruction and pitch transcription.

Key components include:

  1. Complex CQT Features: Unlike standard magnitude-only spectrograms, Timbre-Trap uses complex spectral coefficients from a Constant-Q Transform (CQT). This ensures the transform is invertible, allowing the model to reconstruct audio from its internal representations.
  2. The Latent Switch: A binary switch in the latent space directs the decoder. In Mode 0 (Reconstruction), it produces a full audio reconstruction. In Mode 1 (Transcription), it generates a "timbre-less" pitch salience map.
  3. Consistency Loss: A novel loss function ensures that feeding a transcription output back into the model yields consistent results, forcing the model to treat transcription as a specific subset of audio processing.

Experimental Setup

The model was trained on the URMP (University of Rochester Multi-Instrument Ensemble) dataset, which contains only 1.3 hours of audio—a tiny fraction of typical AMT training sets. Evaluation was conducted on multi-instrument datasets (Bach10, Su) and GuitarSet to test generalization. The authors also explored semi-supervised learning by adding unlabeled audio from MedleyDB and the Free Music Archive (FMA) to bolster the reconstruction task.

Results and Discussion

Timbre-Trap demonstrates that transcription can be viewed as a "filtering" problem where instrument texture is removed to leave fundamental frequencies. The reconstruction objective acts as a powerful regularizer, allowing the encoder to learn rich features even with scarce labeled data.

Comparative performance of Timbre-Trap against state-of-the-art models across various datasets.

As shown in the results table, Timbre-Trap achieves an F1-score of 82.6 on the Bach10 dataset, nearly matching the 82.9 of Basic Pitch, a state-of-the-art model trained on significantly larger datasets. It significantly outperformed older models like "Deep Salience" on several benchmarks. Qualitatively, the invertible CQT allows users to listen to the "transcription," which sounds like a synthesized, timbre-less version of the original audio.

Conclusion and Future Work

While Timbre-Trap excels with orchestral instruments, generalization to specific instruments like guitar remains a challenge. Latent space analysis suggests that while pitch and timbre are separated, they are not yet fully disentangled. Future work will focus on incorporating "timbre codes" for style-transfer and moving from frame-level to note-level transcription (tracking the start and end of individual notes).

Summary updated

BibTeX
@inproceedings{cwitkowitz2024timbre,
  author = {Frank Cwitkowitz and Kin Wai Cheuk and Woosung Choi and Marco A. Martínez Ramírez and Keisuke Toyama and Wei-Hsiang Liao and Yuki Mitsufuji},
  title = {{Timbre-Trap: A Low-Resource Framework for Instrument-Agnostic Music Transcription}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10446141},
}
Figure