Skip to main content
QUICK REVIEW

[Paper Review] Sequence-to-Sequence Piano Transcription with Transformers

Curtis Hawthorne, Ian Simon|arXiv (Cornell University)|Jul 19, 2021
Music and Audio ProcessingComputer Science20 citations
TL;DR

This paper proposes a generic sequence-to-sequence Transformer model for automatic piano transcription that maps raw spectrogram inputs directly to MIDI-like note events using standard attention mechanisms and greedy decoding. It achieves state-of-the-art performance on the MAESTRO dataset without task-specific architectural modifications, demonstrating that complex model design is unnecessary when using a unified, end-to-end Transformer framework.

ABSTRACT

Automatic Music Transcription has seen significant progress in recent years by training custom deep neural networks on large datasets. However, these models have required extensive domain-specific design of network architectures, input/output representations, and complex decoding schemes. In this work, we show that equivalent performance can be achieved using a generic encoder-decoder Transformer with standard decoding methods. We demonstrate that the model can learn to translate spectrogram inputs directly to MIDI-like output events for several transcription tasks. This sequence-to-sequence approach simplifies transcription by jointly modeling audio features and language-like output dependencies, thus removing the need for task-specific architectures. These results point toward possibilities for creating new Music Information Retrieval models by focusing on dataset creation and labeling rather than custom model design.

Motivation & Objective

  • To simplify automatic music transcription by replacing complex, domain-specific architectures with a generic sequence-to-sequence Transformer.
  • To evaluate whether a standard Transformer can achieve competitive performance on piano transcription without pretraining or architectural customization.
  • To demonstrate the flexibility of the approach across different transcription tasks by modifying only the training labels.
  • To explore whether standard representations and off-the-shelf components can outperform specialized models in music information retrieval.
  • To advocate for a shift in MIR research focus from custom model design to dataset creation and labeling.

Proposed method

  • The model uses a standard encoder-decoder Transformer architecture, inspired by T5, with no modifications to the core architecture.
  • Audio input is represented as log-mel spectrogram frames, processed by the encoder to extract acoustic features.
  • The decoder autoregressively generates token sequences representing MIDI-like events (note on, note off, velocity, end-of-sequence) using greedy decoding.
  • The model is trained end-to-end to minimize cross-entropy loss between predicted and ground-truth event sequences.
  • Input representations are varied in ablation studies: log-mel spectrograms, raw audio samples, and STFT without log scaling.
  • The approach supports multiple transcription tasks (e.g., onset-only) by redefining the output vocabulary and labels without changing the model structure.

Experimental results

Research questions

  • RQ1Can a generic, unmodified Transformer architecture achieve state-of-the-art performance in piano transcription without domain-specific architectural design?
  • RQ2Does using standard input representations (log-mel spectrograms) and standard decoding (greedy) yield competitive results compared to specialized models?
  • RQ3Can the same model architecture be flexibly adapted to different transcription tasks (e.g., onset-only) by only changing the output labels?
  • RQ4Is the performance gain from complex, task-specific components (e.g., separate onset/frame/offset heads) truly necessary, or can attention mechanisms capture dependencies end-to-end?
  • RQ5Does the model’s performance scale with size, or is a smaller architecture sufficient for high accuracy in piano transcription?

Key findings

  • The model achieves competitive F1 scores on the MAESTRO V1.0.0 dataset, matching or exceeding those of specialized models like Onsets and Frames and the state-of-the-art approach by Kong et al.
  • The model successfully transcribes onset-only tasks by training only on Note and EOS tokens, demonstrating task flexibility without architectural changes.
  • Using log-mel spectrograms as input yields significantly better performance than raw audio or STFT without log scaling, suggesting mel scaling provides useful inductive bias.
  • Relative time shifts in the model lead to unstable predictions and large metric variance during training, while absolute time shifts yield more stable and accurate results.
  • A larger model with 213M parameters overfits quickly and underperforms the smaller 54M-parameter version, indicating that model capacity is not the bottleneck in this task.
  • The ablation study confirms that the core strength lies in the sequence-to-sequence attention mechanism, which jointly models audio and output dependencies without requiring explicit onset or frame prediction heads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.