Skip to main content
QUICK REVIEW

[Paper Review] Deep Learning for Music

Allen Huang, Raymond Wu|arXiv (Cornell University)|Jun 15, 2016
Music and Audio ProcessingComputer Science3 references30 citations
TL;DR

This paper proposes a deep learning approach using multi-layer Long Short-Term Memory (LSTM) networks to generate polyphonic music with both melody and harmony by modeling music as sequential tokens in two representations: MIDI and piano roll. The model achieves music generation quality comparable to state-of-the-art RNN-NADE models, as validated through human evaluation with an average rating of 6.2 out of 10 for generated samples.

ABSTRACT

Our goal is to be able to build a generative model from a deep neural network architecture to try to create music that has both harmony and melody and is passable as music composed by humans. Previous work in music generation has mainly been focused on creating a single melody. More recent work on polyphonic music modeling, centered around time series probability density estimation, has met some partial success. In particular, there has been a lot of work based off of Recurrent Neural Networks combined with Restricted Boltzmann Machines (RNN-RBM) and other similar recurrent energy based models. Our approach, however, is to perform end-to-end learning and generation with deep neural nets alone.

Motivation & Objective

  • To develop a deep generative model capable of producing music with both harmonic and melodic structure, emulating human-composed pieces.
  • To investigate whether word2vec-style vector representations can be meaningfully applied to musical notes for capturing musical semantics.
  • To evaluate end-to-end deep neural networks for music generation without relying on complex energy-based models or hybrid architectures.
  • To compare the effectiveness of different data representations—MIDI and piano roll—for capturing polyphonic music structure.
  • To assess the aesthetic quality of generated music through human evaluation, aiming to determine if models can produce music indistinguishable from human-composed or advanced model-generated music.

Proposed method

  • The model uses a character-level language model based on a multi-layer LSTM to generate sequences of musical tokens from MIDI and piano roll representations.
  • MIDI data is tokenized by converting note-on and note-off events into discrete tokens, with tracks flattened into a single sequence.
  • Piano roll representation encodes each time step as a binary vector indicating which notes are active, enabling joint modeling of polyphonic chords.
  • The model is trained end-to-end on a large corpus of classical music, including 1.6 million tokens from Bach and 25 million from a broader classical dataset.
  • t-SNE visualization is used to analyze learned embeddings, assessing whether the model captures pitch relationships and note groupings.
  • Human evaluation is conducted with 26 volunteers rating generated music on a 1–10 scale for musical plausibility and aesthetic quality.

Experimental results

Research questions

  • RQ1Can a deep neural network learn to generate music with both melody and harmony using only end-to-end training?
  • RQ2Is there a meaningful vector representation of musical notes analogous to word2vec embeddings in natural language?
  • RQ3Does the piano roll representation better preserve polyphonic structure than flattened MIDI tokenization?
  • RQ4Can a simple LSTM-based language model generate music of comparable aesthetic quality to more complex models like RNN-NADE or RTRBM?
  • RQ5How do different data representations (MIDI vs. piano roll) affect the model’s ability to learn pitch relationships and rhythmic structure?

Key findings

  • The model successfully generates music with coherent melody and harmonic structure, as indicated by t-SNE visualizations showing meaningful clustering of pitch-related tokens.
  • The piano roll representation enabled clearer separation of low and high pitches in the learned embeddings, suggesting better capture of pitch relationships.
  • Human evaluation showed that 23 out of 26 volunteers rated the model’s output as at least as good as or better than the RNN-NADE baseline, with an average rating of 6.2 out of 10.
  • The model achieved comparable aesthetic quality to RNN-NADE despite using a simpler architecture, indicating that end-to-end LSTM training is effective for music generation.
  • The model learned to group similar pitches together and preserve rhythmic patterns, as evidenced by distinct clusters in t-SNE visualizations of note embeddings.
  • The truncated dataset (11 million tokens) still produced musically plausible samples, suggesting the model generalizes well even with reduced data.

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.