Towards Efficient and Real-Time Piano Transcription Using Neural Autoregressive Models
Taegyun Kwon, Dasaem Jeong, Juhan Nam
TL;DR
The paper addresses real-time piano transcription using neural autoregressive models, focusing on lightweight, low-latency deployment. It introduces PAR, a Pitchwise AutoRegressive architecture with a frequency-conditioned FiLM acoustic module, pitchwise LSTM for intra-pitch transitions, and Enhanced Recursive Context to incorporate velocity and duration. Two models are proposed: PAR for high performance and PAR_compact for compact deployment, both achieving competitive note-level accuracy on MAESTRO while maintaining real-time latency. Ablation studies confirm the crucial role of the pitchwise LSTM and autoregressive connections, with cross-dataset tests showing reasonable generalization to unseen piano data. The work advances practical online piano transcription and informs design choices for note length and pitch-range behavior.
Abstract
In recent years, advancements in neural network designs and the availability of large-scale labeled datasets have led to significant improvements in the accuracy of piano transcription models. However, most previous work focused on high-performance offline transcription, neglecting deliberate consideration of model size. The goal of this work is to implement real-time inference for piano transcription while ensuring both high performance and lightweight. To this end, we propose novel architectures for convolutional recurrent neural networks, redesigning an existing autoregressive piano transcription model. First, we extend the acoustic module by adding a frequency-conditioned FiLM layer to the CNN module to adapt the convolutional filters on the frequency axis. Second, we improve note-state sequence modeling by using a pitchwise LSTM that focuses on note-state transitions within a note. In addition, we augment the autoregressive connection with an enhanced recursive context. Using these components, we propose two types of models; one for high performance and the other for high compactness. Through extensive experiments, we show that the proposed models are comparable to state-of-the-art models in terms of note accuracy on the MAESTRO dataset. We also investigate the effective model size and real-time inference latency by gradually streamlining the architecture. Finally, we conduct cross-data evaluation on unseen piano datasets and in-depth analysis to elucidate the effect of the proposed components in the view of note length and pitch range.
