MT3 (music transcription)
MT3 (Multi-Task Multitrack Music Transcription) is a model that transcribes recordings containing any combination of instruments into notes labelled by instrument. Josh Gardner and colleagues presented it at ICLR 2022. It uses a general-purpose Transformer that reads audio frames and writes a sequence of MIDI-like tokens, and it was trained on several transcription datasets at once, which greatly improved results for instruments with little training data, such as guitar.[1:1]
Background
In 2021 Curtis Hawthorne and colleagues showed that a generic encoder–decoder Transformer with standard decoding could transcribe piano as well as networks designed for the task, translating spectrograms directly into MIDI-like events.[2:1] MT3 extended the idea to many instruments. Its authors contrast transcription with speech recognition, which usually follows one speaker: transcription must follow several instruments at once while keeping fine pitch and timing, and its datasets hold between one and a few hundred hours of audio, against thousands for speech.[1:1]
Model
MT3 is the small version of the T5 encoder–decoder Transformer, with about 60 million parameters, decoded greedily one token at a time; larger models tended to overfit.[1:2] It reads log mel spectrograms and writes tokens from a vocabulary based on MIDI: an instrument token (one of the 128 General MIDI programs), note tokens for 128 pitches, note-on and note-off, time in 10 ms steps within 2.048-second segments, drum hits, and markers for notes carried across segments and for the end of a sequence. Velocity is left out because most of its datasets lack it.[1:3]
Training data and results
MT3 was trained on six datasets: Slakh2100 (969 hours of synthesized multitrack audio), Cerberus4 (543 hours derived from it), MAESTRO v3 (199 hours of piano), and three small ones, MusicNet (34 hours), GuitarSet (3 hours) and URMP (1.3 hours).[1:4] Because the usual metrics ignore which instrument plays a note, its authors added a multi-instrument F1 score that also requires the instrument to match.[1:5]
Trained on all six datasets together, MT3's onset F1 was 0.95 on MAESTRO, 0.90 on GuitarSet, 0.77 on URMP and 0.50 on MusicNet; the commercial program Melodyne scored 0.28 on GuitarSet. Training on the mixture rather than on each dataset alone raised the score for notes with correct offsets by 54% on MusicNet and 263% on URMP, but lowered it by 5% on MAESTRO.[1:6] Tested on a dataset left out of training, it still transcribed non-trivially but less well: onset F1 fell from 0.90 to 0.78 on GuitarSet and from 0.95 to 0.28 on MAESTRO, and without Slakh it could not learn to identify bass or synthesizer.[1:7] The authors also found evidence that the reference timings of MusicNet, and possibly URMP, have errors larger than the standard 50 ms tolerance.[1:8]
Limitations and later work
MT3 is trained on and applicable only to Western music made of discrete notes in 12 pitch classes; music that does not map onto them is outside its scope.[1:9] Its code was released on GitHub (magenta/mt3).[1:10] The authors of YourMT3+ wrote that MT3 lacked fully reproducible code, rebuilt it to be trainable from scratch, and in 2024 reported a model that outperformed it on multi-instrument benchmarks.[3:1][3:2]
- ^a ^b ↗ multitask-transformer ^ ↗ mt3-t5 ^ ↗ mt3-vocab ^ ↗ mt3-datasets ^ ↗ mt3-instrument-metric ^ ↗ mt3-results ^ ↗ mt3-zero-shot ^ ↗ label-timing-errors ^ ↗ mt3-western ^ ↗ mt3-code Gardner, Josh; Simon, Ian; Manilow, Ethan; Hawthorne, Curtis; et al. (2022). MT3: Multi-Task Multitrack Music Transcription. International Conference on Learning Representations (ICLR 2022). https://arxiv.org/abs/2111.03017.
- ^ ↗ s2s-abstract Hawthorne, Curtis; Simon, Ian; Swavely, Rigel; Manilow, Ethan; et al. (2021). Sequence-to-Sequence Piano Transcription with Transformers. Proceedings of the 22nd International Society for Music Information Retrieval Conference (ISMIR 2021). https://arxiv.org/abs/2107.09142.
- ^ ↗ ymt3-reproducible ^ ↗ ymt3-results Chang, Sungkyun; Benetos, Emmanouil; Kirchhoff, Holger; Dixon, Simon (2024-09). YourMT3+: Multi-instrument Music Transcription with Enhanced Transformer Architectures and Cross-dataset Stem Augmentation. 2024 IEEE International Workshop on Machine Learning for Signal Processing (MLSP). London. https://arxiv.org/abs/2407.04822.