A hybrid recurrent neural network for music transcription

Siddharth Sigtia, Emmanouil Benetos, Nicolas Boulanger-Lewandowski, Tillman Weyde, Artur S. d'Avila Garcez, Simon Dixon

TL;DR

This paper introduces a hybrid neural network architecture for Automatic Music Transcription (AMT) that seamlessly combines an acoustic classifier with a symbolic music language model. By utilizing an RNN-NADE to model complex polyphonic musical structures and a novel acoustic-guided beam search for decoding, the system effectively smooths acoustic predictions and achieves state-of-the-art results on polyphonic piano transcription.

What Problem Does This Paper Address?

Automatic Music Transcription (AMT) is the process of converting an audio signal into a symbolic musical score (like MIDI). Historically, most AMT systems have focused almost entirely on acoustic modeling—trying to identify pitches directly from the audio spectrogram. However, just like human speech, music contains deep structural and grammatical regularities.

Using "Music Language Models" (MLMs) to provide prior knowledge about what notes should logically follow one another can vastly improve transcription. The challenge is that polyphonic music (multiple notes playing at once) requires predicting high-dimensional binary vectors at every time step. Traditional methods used in speech recognition, like Hidden Markov Models (HMMs), become computationally intractable because the number of hidden states grows exponentially with the number of simultaneous notes. The authors tackle the problem of how to effectively integrate a powerful recurrent neural network (RNN) language model with an acoustic model without falling into computational traps.

Methods

The authors adapt a generative architecture originally designed for speech recognition to combine two distinct models:

  1. Acoustic Model: They experiment with Deep Neural Networks (DNNs), Recurrent Neural Networks (RNNs), and a combined approach (DNN features fed into an RNN) to predict the probability of pitches at the frame level based on audio spectrograms.
  2. Language Model (MLM): They use an RNN-NADE (Neural Autoregressive Density Estimator). Standard RNNs assume that output variables (notes) are independent of each other at a given time step, which is a terrible assumption for music where notes group into highly correlated chords. The NADE solves this by modeling the joint distribution of all notes at a single time step.

Inference via High-Dimensional Beam Search: To decode the final transcription, the system must find the most likely sequence of notes. Because the output space is massive, exhaustively searching is impossible, and randomly sampling from the language model is inefficient. The authors propose a modified beam search algorithm that uses the acoustic model's top predictions to guide the search. This prevents the language model from making early mistakes and hallucinating incorrect paths.

Datasets

  • MAPS (MIDI Aligned Piano Sounds): The system is trained and evaluated on this standard dataset, which contains 270 pieces of piano music with ground-truth MIDI transcriptions. It includes 210 tracks rendered by software synthesizers and 60 tracks played on real pianos. The authors used a split of 200 tracks for training, 20 for validation, and 50 for testing.

Key Insights and Ideas

  • HMMs are insufficient for polyphonic music: Because multiple notes can play simultaneously, the state space for an HMM blows up. RNNs are a much better fit because their distributed hidden representations make parameter estimation tractable for high-dimensional outputs.
  • Notes are not independent: A standard RNN output layer fails to capture that the presence of one note heavily influences the likelihood of another (e.g., forming a C-major chord). Using a NADE on top of the RNN explicitly captures these co-occurrences.
  • Acoustic-guided search is highly efficient: In a massive search space, relying on the language model to propose candidate sequences is risky; if it guesses wrong early, it can't recover. Using the independent, frame-level predictions of the acoustic model to propose the most likely paths keeps the beam search grounded in the actual audio.

Key Results

  • The hybrid architecture consistently outperformed baseline methods (such as raw acoustic predictions, simple thresholding, or HMM post-processing).
  • The best performing setup used a DNN+RNN acoustic model combined with the hybrid architecture, achieving a Frame F-measure of 69.62% and a Note F-measure of 64.69%.
  • The proposed beam search post-processing yielded a 3% absolute increase in frame-based F-measure and a 6% increase in note-onset F-measure compared to a simple greedy search (beam width of 1).
  • RNN acoustic models naturally perform temporal smoothing, making them significantly better at accurately predicting note onsets compared to raw DNNs.

Limitations and Future Work

  • Computational Cost: The proposed high-dimensional beam search is slow. The authors note it takes 20 hours on a CPU to decode just the first 30 seconds of the test tracks, making it currently unfeasible for real-time applications.
  • Theoretical Violations: Using an RNN as the acoustic model technically violates an independence assumption in the hybrid model's math (causing some factors to be counted twice), though the authors note this didn't hurt empirical performance.
  • False Alarms: The system still struggles with accurately modeling note durations, leading to false alarms (a problem that also exists in the ground truth data).
  • Future Work: The authors plan to optimize the beam search for real-time use, improve the individual acoustic and language components, and expand their evaluations to datasets featuring multiple instruments rather than just solo piano.

Summary updated

BibTeX
@inproceedings{sigtia2015hybrid,
  author = {Siddharth Sigtia and Emmanouil Benetos and Nicolas Boulanger-Lewandowski and Tillman Weyde and Artur S. d'Avila Garcez and Simon Dixon},
  title = {{A hybrid recurrent neural network for music transcription}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2015},
  url = {https://openreview.net/forum?id=UvcMvbH4jh1},
}

Loading related content...

Figure