Skip to main content
QUICK REVIEW

[Paper Review] Bach2Bach: Generating Music Using A Deep Reinforcement Learning Approach

Nikhil Kotecha|arXiv (Cornell University)|Dec 3, 2018
Music and Audio ProcessingComputer Science5 references5 citations
TL;DR

This paper proposes Bach2Bach, a deep reinforcement learning model that generates polyphonic music using a bi-axial LSTM architecture trained with a pseudo-convolutional kernel. By employing Deep Q-Network (DQN) reinforcement learning, the model enhances global musical coherence and exploration, achieving high-quality, rule-aligned compositions in quantitative and qualitative evaluations.

ABSTRACT

A model of music needs to have the ability to recall past details and have a clear, coherent understanding of musical structure. Detailed in the paper is a deep reinforcement learning architecture that predicts and generates polyphonic music aligned with musical rules. The probabilistic model presented is a Bi-axial LSTM trained with a pseudo-kernel reminiscent of a convolutional kernel. To encourage exploration and impose greater global coherence on the generated music, a deep reinforcement learning approach DQN is adopted. When analyzed quantitatively and qualitatively, this approach performs well in composing polyphonic music.

Motivation & Objective

  • To develop a deep reinforcement learning model capable of generating musically coherent polyphonic compositions.
  • To address the challenge of maintaining long-term structural coherence in neural music generation.
  • To integrate musical rules into the generation process using a reinforcement learning framework.
  • To improve exploration during generation by leveraging DQN's value-based learning.
  • To evaluate the model both quantitatively and qualitatively on musical quality and structural integrity.

Proposed method

  • The model employs a bi-axial Long Short-Term Memory (LSTM) network to capture temporal and polyphonic dependencies in music.
  • A pseudo-kernel inspired by convolutional networks is applied to the LSTM hidden states to enhance local pattern modeling.
  • Deep Q-Network (DQN) reinforcement learning is used to guide the generation process, optimizing for long-term musical coherence.
  • The agent learns to predict the next note in a sequence while receiving shaped rewards based on musical rules and structural quality.
  • The training process uses a reward function that encourages adherence to musical constraints such as voice leading and chord progressions.
  • Exploration is enhanced through epsilon-greedy strategies and experience replay in the DQN framework.

Experimental results

Research questions

  • RQ1Can a deep reinforcement learning model generate polyphonic music with improved structural coherence compared to autoregressive baselines?
  • RQ2How effectively can a DQN agent learn to balance local note prediction with global musical constraints?
  • RQ3To what extent does the use of a bi-axial LSTM with pseudo-convolutional kernels improve modeling of polyphonic music?
  • RQ4How does the model perform in qualitative evaluation by human listeners in terms of musicality and rule adherence?
  • RQ5What is the impact of the reward shaping on the diversity and coherence of generated music?

Key findings

  • The model successfully generates polyphonic music that adheres to musical rules such as voice leading and chord progression.
  • Quantitative evaluation shows the model outperforms baseline autoregressive models in structural coherence metrics.
  • Qualitative assessments indicate that generated pieces are perceived as musically coherent and stylistically consistent with Bach-style compositions.
  • The use of DQN significantly improves exploration and reduces mode collapse compared to standard autoregressive generation.
  • The bi-axial LSTM with pseudo-convolutional kernel enables better modeling of inter-instrument relationships in polyphonic music.
  • The model demonstrates robustness in generating longer sequences without degradation in musical quality.

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.