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.
Key components include:
- 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.
- 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.
- 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.
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