Skip to main content
QUICK REVIEW

[Paper Review] Bach in 2014: Music Composition with Recurrent Neural Network

I-Ting Liu, Bhiksha Ramakrishnan|arXiv (Cornell University)|Dec 10, 2014
Music and Audio ProcessingComputer Science13 references19 citations
TL;DR

This paper proposes a recurrent neural network (RNN) framework using Long Short-Term Memory (LSTM) units and Resilient Propagation (RProp) for music composition, demonstrating superior performance in reconstructing and predicting J.S. Bach chorales compared to traditional Back-Propagation Through Time (BPTT). The system achieves higher accuracy (31.91%) and F1 score (20.29%) using RProp, showing faster convergence and better capture of musical structure and long-term dependencies.

ABSTRACT

We propose a framework for computer music composition that uses resilient propagation (RProp) and long short term memory (LSTM) recurrent neural network. In this paper, we show that LSTM network learns the structure and characteristics of music pieces properly by demonstrating its ability to recreate music. We also show that predicting existing music using RProp outperforms Back propagation through time (BPTT).

Motivation & Objective

  • To develop a deep learning framework for computer music composition that captures long-term musical structures and rhythmic patterns.
  • To address the vanishing gradient problem in standard RNNs that limits learning of long-term dependencies in music sequences.
  • To improve training efficiency and performance in music generation by replacing BPTT with RProp for weight updates.
  • To evaluate the model’s ability to reconstruct and predict complex musical pieces like J.S. Bach’s chorales.
  • To explore limitations in current music representation and evaluation metrics for neural music generation.

Proposed method

  • The system uses a Long Short-Term Memory (LSTM) recurrent neural network to model sequential dependencies in music, enabling effective learning of long-term musical structures.
  • Resilient Propagation (RProp) is employed as the optimization algorithm to update network weights, avoiding issues with vanishing gradients seen in standard backpropagation.
  • Music is represented as a sequence of discrete note events (pitch, duration, onset), encoded in a fixed time-step format to enable sequence modeling.
  • The network is trained using teacher-forcing, where ground-truth notes are fed at each time step during training to stabilize learning.
  • Evaluation is performed using frame-level accuracy and F1 score on a test set of Bach chorales, comparing RProp and BPTT training.
  • The model is evaluated on both reconstruction (replaying known music) and prediction (generating new music) tasks.

Experimental results

Research questions

  • RQ1Can an LSTM-based RNN effectively learn and reconstruct the structural and rhythmic characteristics of complex polyphonic music like Bach chorales?
  • RQ2Does RProp outperform BPTT in training RNNs for music generation in terms of convergence speed and predictive accuracy?
  • RQ3To what extent can the trained network generalize to generate new, plausible musical compositions after learning from existing pieces?
  • RQ4How do current evaluation metrics like accuracy and F1 score correlate with human perception of musical similarity?
  • RQ5What are the limitations of current music representation schemes in distinguishing melody, harmony, and note duration in neural sequence models?

Key findings

  • The LSTM-RNN trained with RProp achieved a frame-level accuracy of 31.91% and F1 score of 20.29% on the Bach chorales dataset, significantly outperforming BPTT, which achieved 21.03% accuracy and 11.84% F1 score.
  • The network converged rapidly, successfully reconstructing entire chorales in just tens of training epochs, demonstrating effective learning of musical structure.
  • RProp training resulted in faster convergence and lower mean squared error (MSE) during training compared to BPTT, as shown in visual comparisons of training loss curves.
  • The model successfully captured long-term dependencies in music, such as phrase structures and harmonic progressions, enabling plausible music generation after training.
  • Despite high accuracy, the evaluation metrics did not fully correlate with human perception of musical similarity, indicating a need for perceptually grounded evaluation methods.
  • The study identified limitations in current representation, such as inability to distinguish melody from accompaniment and note end times, suggesting need for improved encoding schemes.

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.