Piano Transcription by Hierarchical Language Modeling with Pretrained Roll-based Encoders
Dichucheng Li, Yongyi Zang, Qiuqiang Kong
TL;DR
Automatic Music Transcription (AMT) faces a trade-off between frame-level piano-roll approaches that require thresholding and post-processing and language-model (LM) based methods that contend with long, flattened sequences. The authors propose a hybrid method that fuses pre-trained roll-based encoders with a decoder-only Transformer LM and a hierarchical prediction scheme predicting onset-pitch, velocity, and offset in sequence, reducing the effective sequence length to improve efficiency and accuracy, with a theoretical time complexity of $O(3(T+N)^2D)$ compared to $O((T+3N)^2D)$ for a single model. On Maestro, using two encoders (CRNN and HPPNet) and an LM decoder, the approach yields improvements of about 0.01 and 0.022 in onset-offset-velocity F1 over traditional piano-roll baselines, and shows that encoder choice dominates LM size in performance. The results highlight the importance of encoder design for AMT and suggest that hierarchical, LM-based decoding can be a practical plug-in for roll-based transcription, with future work needed to scale LM-based AMT further.
Abstract
Automatic Music Transcription (AMT), aiming to get musical notes from raw audio, typically uses frame-level systems with piano-roll outputs or language model (LM)-based systems with note-level predictions. However, frame-level systems require manual thresholding, while the LM-based systems struggle with long sequences. In this paper, we propose a hybrid method combining pre-trained roll-based encoders with an LM decoder to leverage the strengths of both methods. Besides, our approach employs a hierarchical prediction strategy, first predicting onset and pitch, then velocity, and finally offset. The hierarchical prediction strategy reduces computational costs by breaking down long sequences into different hierarchies. Evaluated on two benchmark roll-based encoders, our method outperforms traditional piano-roll outputs 0.01 and 0.022 in onset-offset-velocity F1 score, demonstrating its potential as a performance-enhancing plug-in for arbitrary roll-based music transcription encoder.
