Source-linked AI summary
An End-to-End Neural Network for Polyphonic Piano Music Transcription
Siddharth Sigtia, Emmanouil Benetos, Simon Dixon
TL;DR
Polyphonic piano transcription requires modeling complex acoustic mixtures and high-dimensional note combinations. The paper combines neural acoustic models with an RNN music language model and probabilistic beam-search inference. ConvNet acoustic models perform best among the tested acoustic models, music language models improve performance, and hashed beam search reduces runtime by an order of magnitude.
Problem
Polyphonic AMT involves overlapping harmonics, instrument variability, and a combinatorially large output space, while available AMT datasets are comparatively small.
Source: §I · p. 1, A. Hybrid RNN · p. 5Method
The paper combines neural acoustic models, an RNN-based music language model, probabilistic graphical-model decoding, and efficient hashed beam search for polyphonic piano transcription.
Source: §I · p. 2, §V · p. 11Results
ConvNet acoustic models outperform the other tested acoustic models across evaluation metrics, music language models improve performance, and hashed beam search reduces decoding time by an order of magnitude.
Source: §I · p. 2, F. Results · p. 10, §V · p. 11Takeaways & Limitations
The proposed hybrid model provides accurate polyphonic piano transcription with decoding runtimes suitable for real-time applications.
Source: §V · p. 11The music language models can maximize likelihood by repeating note frames, causing smoothing rather than imposing an effective musical prior.
Source: §V · p. 12
Abstract
from arXiv · showhide
We present a supervised neural network model for polyphonic piano music transcription. The architecture of the proposed model is analogous to speech recognition systems and comprises an acoustic model and a music language model. The acoustic model is a neural network used for estimating the probabilities of pitches in a frame of audio. The language model is a recurrent neural network that models the correlations between pitch combinations over time. The proposed model is general and can be used to transcribe polyphonic music without imposing any constraints on the polyphony. The acoustic and language model predictions are combined using a probabilistic graphical model. Inference over the output variables is performed using the beam search algorithm. We perform two sets of experiments. We investigate various neural network architectures for the acoustic models and also investigate the effect of combining acoustic and music language model predictions using the proposed architecture. We compare performance of the neural network based acoustic models with two popular unsupervised acoustic models. Results show that convolutional neural network acoustic models yields the best performance across all evaluation metrics. We also observe improved performance with the application of the music language models. Finally, we present an efficient variant of beam search that improves performance and reduces run-times by an order of magnitude, making the model suitable for real-time applications.
EDICS Category: AUD-MSP, AUD-MIR, MLR-DEEP
Polyphonic automatic music transcription must model complex acoustic mixtures and a combinatorially large output space. This paper develops an end-to-end neural architecture combining acoustic and music language models, with efficient inference for piano transcription.
I. INTRODUCTION
- The paper addresses polyphonic AMT, where overlapping harmonics, instrument variability, and unconstrained polyphony create a difficult modeling problem.Current systems often constrain maximum polyphony or use spectrogram factorization methods to represent pitch structure.Source: §I · p. 1
- Music language models can capture temporal structure and pitch dependencies that acoustic models alone may not resolve.Prior AMT systems commonly use pitch-specific HMMs, while modeling high-dimensional polyphonic outputs remains challenging.Source: §I · pp. 1–2
- The proposed end-to-end system jointly models acoustic evidence and musical context using neural acoustic models, an RNN language model, beam search, and hashed beam search.The study evaluates DNN, RNN, and ConvNet acoustic models against two spectrogram-factorization baselines.Source: §I · p. 2
- ConvNet acoustic models outperform the other acoustic models across evaluation metrics, while music language models improve performance and hashed beam search reduces decoding time by an order of magnitude.These findings support real-time use within the reported piano-transcription setting.Source: §I · p. 2
II. BACKGROUND
- Neural networks support end-to-end learning from low-level inputs by jointly learning feature transformations and classifiers.This contrasts with methods whose performance depends on separately extracted features.Source: §II · p. 2
1) Deep Neural Networks:
The paper uses DNNs to estimate pitch posteriors from audio features and RNNs to incorporate temporal context. RNN hidden states summarize prior inputs, making recurrent models suited to sequential AMT data.
1) Deep Neural Networks:
- A DNN applies stacked nonlinear transformations to an input frame and produces a posterior probability distribution over pitches.For acoustic modeling, inputs can include magnitude spectrograms or CQT features.Source: 1) Deep Neural Networks · pp. 2–3
- The DNN architecture is illustrated alongside recurrent and convolutional alternatives as neural-network architectures for acoustic modeling.The figure distinguishes the architectures used in the acoustic-modeling experiments.Source: Figure 1 · p. 3, 1) Deep Neural Networks · p. 3
2) Recurrent Neural Networks:
- An RNN extends the DNN with recurrent connections, allowing its hidden state at time t to depend implicitly on inputs through time t.This temporal representation addresses short- and long-term patterns in consecutive audio frames.Source: 2) Recurrent Neural Networks · p. 3
- RNN acoustic models process feature sequences and output distributions over pitches using recurrent hidden-state updates.Their parameters are trained with backpropagation through time and stochastic gradient descent.Source: 2) Recurrent Neural Networks · p. 3
3) Convolutional Networks:
ConvNets process local structure across time and frequency while reducing parameter counts through shared weights and pooling. The music language model represents correlated polyphonic note combinations rather than independent pitches.
3) Convolutional Networks:
- ConvNets apply shared weights to local regions, combine convolutional and pooling layers, and then use fully connected layers.The acoustic input is a window of feature frames, and the output is a posterior distribution over pitches.Source: 3) Convolutional Networks · p. 3
- ConvNets learn features across time and frequency, can exploit pitch-invariant CQT structure, and use fewer parameters than fully connected DNNs.These properties are useful when labeled AMT data are limited.Source: 3) Convolutional Networks · pp. 3–4
B. Music Language Models
- The music language model defines a prior over piano-roll note vectors, whose jointly active pitches are correlated through harmonies and chords.This avoids the simplifying assumption that all pitches evolve independently.Source: B. Music Language Models · p. 4
1) Generative RNN:
- A generative RNN can model sequences by feeding previous outputs into later inputs, but its individual pitch outputs remain conditionally independent.The paper therefore uses a more expressive output distribution conditioned on the RNN hidden state.Source: 1) Generative RNN · p. 4
2) Neural Autogressive Distribution Estimator:
NADE provides a tractable distribution estimator for high-dimensional binary note vectors. Conditioning NADE parameters on an RNN hidden state yields a sequence model for polyphonic music.
2) Neural Autogressive Distribution Estimator:
- NADE estimates joint distributions over high-dimensional binary variables as a tractable alternative to restricted Boltzmann machines.It is also similar to a fully visible sigmoid belief network.Source: 2) Neural Autogressive Distribution… · p. 4
- NADE permits exact likelihood gradients, enabling joint training with other models using gradient-based optimizers.This property distinguishes it from RBMs in the described formulation.Source: 2) Neural Autogressive Distribution… · p. 4
3) RNN-NADE:
- The RNN-NADE combines an RNN with a sequence of NADEs whose parameters depend on the RNN hidden state at each time step.This construction models temporal distributions over sequences of polyphonic music.Source: 3) RNN-NADE · p. 4
- To limit free parameters, only the NADE biases vary with the RNN hidden state, while the weight matrices remain constant over time.The joint model is trained with backpropagation through time using chain-rule gradients.Source: 3) RNN-NADE · p. 4
III. PROPOSED MODEL
The proposed end-to-end AMT model combines a frame-level acoustic model with an RNN music language model in a hybrid graphical architecture. It supports unconstrained polyphony and can train the two models independently, enabling language models to use larger MIDI corpora.
A. Hybrid RNN
- The hybrid RNN combines arbitrary frame-level acoustic predictions with an RNN-based music language model for end-to-end polyphonic AMT.The acoustic model estimates pitch posteriors, while the language model supplies priors over note combinations across time.Source: §III · p. 4, A. Hybrid RNN · pp. 4–5
III. PROPOSED MODEL
- The model represents audio time-frequency features as input sequences and piano-roll transcriptions as output sequences, without imposing a maximum polyphony.Source: §III · p. 4, A. Hybrid RNN · p. 5
A. Hybrid RNN
- The graphical model combines the language-model prior P(y_t|y_0...y_{t-1}) with the acoustic posterior P(y_t|x_t) to form the conditional transcription distribution.Its independence assumptions are analogous to those used in hidden Markov models.Source: A. Hybrid RNN · p. 5
- Independent acoustic and language-model training is useful because transcription datasets are small, whereas large MIDI music corpora are relatively easy to obtain.This permits language-model training on broader MIDI data than the paired transcription data may provide.Source: A. Hybrid RNN · p. 5
B. Inference
Inference seeks globally likely transcription sequences, but the exponential output space makes exhaustive decoding impractical. The proposed hashed beam search prunes similar candidates efficiently while retaining the hybrid model’s temporal structure.
B. Inference
- Exhaustive search is intractable because each frame has 2^n possible pitch configurations for n pitches, while greedy framewise decoding need not optimize p(y|x).Source: B. Inference · p. 5
- Standard beam search retains at most w partial solutions, trading computational cost against accuracy, but becomes prohibitively inefficient for large output spaces.A branching factor K can restrict candidate expansion for each partial solution.Source: B. Inference · p. 5
- The method samples candidates from the acoustic posterior because independent class probabilities allow likelihood-ordered enumeration and avoid accumulated RNN prediction errors.At test time, feeding sampled RNN outputs back into later steps differs from training on true previous outputs.Source: B. Inference · p. 6
- The hashed beam search algorithm improves efficiency by pruning solutions similar to higher-likelihood candidates, addressing beam saturation on long sequences.Similarity is encoded with a locality-sensitive hash function, and the method is reported to improve results with smaller beam widths.Source: B. Inference · p. 6
- Hash similarity is defined over the last n frames: n=1 approaches dynamic-programming decoding, whereas n=len(sequence) recovers regular beam search.Chaining can retain multiple solutions per hash key.Source: B. Inference · p. 6
IV. EVALUATION
The evaluation section introduces experiments measuring the proposed model on a polyphonic transcription task.
IV. EVALUATION
- The proposed model is evaluated on a polyphonic transcription task.Source: §IV · p. 6
A. Dataset
Experiments use the MAPS dataset of annotated piano recordings and assess both language-model effects and acoustic-model generalization across instrument sources. The two configurations separate music-piece-independent evaluation from a more realistic instrument-source-independent test.
A. Dataset
- The MAPS dataset contains 270 classical piano pieces across nine recording categories, including 210 synthesized and 60 Yamaha Disklavier recordings.The experiments use full musical pieces with audio and MIDI annotations.Source: A. Dataset · p. 7
- Configuration 1 uses four music-piece-independent splits, with 216 pieces for training, 54 for testing, and 26 held-out tracks per training split for validation.Reported metrics are means over the four splits and support investigation of RNN music language models.Source: A. Dataset · p. 7
- Configuration 2 trains on synthesized piano recordings and tests on 60 Yamaha Disklavier recordings from disjoint instrument types for source-independent evaluation.Language models are not applied because the train and test sets contain overlapping musical pieces.Source: A. Dataset · p. 7
B. Metrics
The system evaluates transcription with frame- and note-based metrics, using CQT audio features and synchronized MIDI sequences to train pitch and language models.
B. Metrics
- Frame- and note-based F-measure, precision, recall, and accuracy assess transcription quality.Frame metrics compare binary outputs with MIDI ground truth frame by frame, while note metrics evaluate predicted pitch, onset, and offset events.Source: B. Metrics · p. 7
- A note event is correct when its predicted pitch onset falls within ±50 ms of the ground-truth onset.Source: B. Metrics · p. 7
C. Preprocessing
- CQT replaces STFT as the audio representation because its frequency axis is linear in pitch and its lower dimensionality reduces neural-network parameters.Source: C. Preprocessing · p. 7
- Audio is downsampled to 16 kHz and converted into standardized 252-dimensional CQT vectors at 31.25 frames per second.The CQT spans 7 octaves with 36 bins per octave and a 512-sample hop size.Source: C. Preprocessing · p. 7
- Language-model training uses 88-dimensional binary MIDI vectors sampled at the audio rate, corresponding to piano notes A0–C8.Source: C. Preprocessing · pp. 7–8
D. Network Training
- Acoustic models produce 88 independent pitch probabilities through sigmoid outputs and are trained by maximizing training-set log-likelihood.Source: D. Network Training · p. 8
1) DNN Acoustic Models:
The experiments tune DNN, RNN, ConvNet, and RNN-NADE architectures, then compare them with established NMF and PLCA approaches across two evaluation configurations.
1) DNN Acoustic Models:
- DNN acoustic models are tuned over layer counts, hidden sizes, activations, dropout, ADADELTA, early stopping, and mini-batch settings.Source: 1) DNN Acoustic Models · p. 8
2) RNN Acoustic Models:
- RNN acoustic models use tanh recurrent layers, scheduled learning rates, momentum, subsequences, early stopping, and gradient clipping to control training.Source: 2) RNN Acoustic Models · p. 8
3) ConvNet Acoustic Models:
- ConvNets use context windows, frequency-axis pooling, dropout, and grid-searched convolutional and fully connected architectures; longer frequency filters sharply reduce classification performance.Source: 3) ConvNet Acoustic Models · p. 8
- RNN-NADE language models are trained with 100-frame sequences while jointly searching recurrent and NADE hidden-unit sizes.Source: 3) ConvNet Acoustic Models · p. 8
- The selected architecture is chosen on one train/test split and reused for subsequent experiments.Source: 3) ConvNet Acoustic Models · p. 8
E. Comparative Approaches
- Comparisons use NMF and shift-invariant PLCA systems whose representations model harmonic structure, instrument sources, or pitch activations under configuration-specific training conditions.PLCA uses CQT inputs and is trained on isolated piano sounds, with training sources differing between configurations.Source: E. Comparative Approaches · pp. 8–9
- ConvNet acoustic models outperform the other neural-network models across all precision, recall, and accuracy metrics after RNN-MLM decoding.Source: Table II · p. 9
- Table III reports F-measures for acoustic models trained on synthesised pianos and tested on real recordings under evaluation Configuration 2.Source: Table III · p. 9
F. Results
Across evaluation configurations, ConvNet acoustic models generally deliver the strongest frame-based results, while RNN music language models improve transcription performance. Hashed beam search also achieves better decoding performance with substantially shorter runtimes.
Configuration 1
- ConvNet acoustic models outperform other neural and spectrogram-factorisation models on frame-based F-measure, with approximately 5% gains over other neural networks and 10% over factorisation models.For note-based F-measure, RNN and ConvNet models outperform DNN models, partly because contextual inputs implicitly smooth predictions.Source: F. Results · p. 10
- RNN music language models improve both frame- and note-based F-measure across acoustic models, with the largest relative gain for DNN acoustic models.The smaller gains for RNN and ConvNet acoustic models are attributed to their contextual predictions violating the independence assumption and causing some factors to be counted twice.Source: F. Results · p. 10
- After RNN-MLM decoding, ConvNet models outperform all other neural models across precision, recall, and accuracy metrics.PLCA and NMF show low frame precision but high frame recall, with the converse pattern for note-based precision.Source: F. Results · p. 10
Configuration 2
- In synthesised-to-real testing, ConvNet models lead frame-based F-measure by approximately 5%, while the acoustic model achieves the best note-based metrics.ConvNet performance is similar to PLCA on note-based evaluations, whereas DNN and RNN models are outperformed by the other systems.Source: F. Results · p. 10
Beam-search analysis
- Hashed beam search achieves better decoding performance in 22 minutes with w = 10, whereas high-dimensional beam search takes 20 hours with w = 100 to decode the entire test set.For all experiments, the branching factor was set to K = 4 and the number of entries per hash key to k = 2.Source: F. Results · p. 10
Qualitative analysis
- ConvNet posteriograms produce few harmonic errors, but longer notes can fragment and note offsets can be estimated incorrectly because sustain-pedal effects make ground-truth offsets noisy.Figure 4 compares the ConvNet pitch-activation matrix, its RNN-MLM and beam-search transcription, and the ground-truth piano roll.Source: F. Results · p. 11, Figure 4 · p. 11
V. CONCLUSIONS AND FUTURE WORK
The hybrid RNN model combines neural acoustic and music language models for polyphonic piano transcription, with ConvNet acoustic models performing best and hash beam search enabling shorter runtimes. The authors identify data scarcity, representation choices, music-language modeling issues, and a conditional-independence assumption as limitations and future-work directions.
- ConvNet acoustic models outperform other acoustic models, while hash beam search achieves good decoding accuracy with significantly shorter runtimes for real-time applications.The hybrid model combines a neural network acoustic model with an RNN-based music language model.Source: §V · p. 11
- RNN music language models consistently improve performance across evaluation metrics, although their current training can encourage smoothing rather than learning musical structure.Repeated note frames can make likelihood maximization favor copying previous inputs; beat-aligned modeling is proposed as one remedy.Source: §V · pp. 11–12
- Deep neural acoustic modeling is constrained by the scarcity of large labelled AMT datasets, especially outside piano music.The authors note that available AMT datasets are considerably smaller than those in speech, computer vision, and NLP.Source: §V · pp. 11–12
- Higher-temporal-resolution input representations such as ERB or variable-Q transforms could improve note-based metrics over the CQT representation.Source: §V · p. 12
- Future MLMs should address tonality by learning invariance to pitch transpositions, potentially through transposed training data or pitch-axis convolutions.Source: §V · p. 12
- The hybrid model assumes time-t acoustic predictions depend only on the input at t, so violated independence can double-count factors and reduce MLM impact.MLM gains are largest with frame-based acoustic models and comparatively smaller with RNN or ConvNet acoustic models, even though ConvNets perform best acoustically.Source: §V · p. 12