[Paper Review] Polyphonic Music Generation with Sequence Generative Adversarial Networks
This paper proposes a SeqGAN-based approach for polyphonic music generation by encoding MIDI sequences into a compact word vector representation that captures duration, pitch, octaves, and chords. The method uses RNNs to generate coherent musical sequences with improved musicality and BLEU scores through adversarial training, demonstrating that careful reinforcement learning signal optimization is crucial for performance.
We propose an application of sequence generative adversarial networks (SeqGAN), which are generative adversarial networks for discrete sequence generation, for creating polyphonic musical sequences. Instead of a monophonic melody generation suggested in the original work, we present an efficient representation of a polyphony MIDI file that simultaneously captures chords and melodies with dynamic timings. The proposed method condenses duration, octaves, and keys of both melodies and chords into a single word vector representation, and recurrent neural networks learn to predict distributions of sequences from the embedded musical word space. We experiment with the original method and the least squares method to the discriminator, which is known to stabilize the training of GANs. The network can create sequences that are musically coherent and shows an improved quantitative and qualitative measures. We also report that careful optimization of reinforcement learning signals of the model is crucial for general application of the model.
Motivation & Objective
- To extend SeqGAN from monophonic to polyphonic music generation by modeling both melodies and chords simultaneously.
- To design an efficient, minimal-preprocessing word representation of polyphonic MIDI that encodes duration, pitch, octaves, and chord information.
- To improve musical coherence and realism in generated sequences through adversarial training with GANs.
- To investigate the impact of reinforcement learning signal optimization on sequence quality in discrete sequence generation.
- To evaluate the model using both quantitative (BLEU) and qualitative (MOS) metrics to assess perceptual quality.
Proposed method
- Represent polyphonic MIDI sequences as word vectors that encode note duration, pitch class, octave, and chord information in a single embedding.
- Use an RNN-based generator to predict sequences from the embedded musical word space, trained via policy gradient reinforcement learning.
- Implement a discriminator using CNNs to distinguish real vs. generated sequences, providing adversarial rewards for training the generator.
- Apply both standard GAN and least squares GAN (LSGAN) loss functions to stabilize training and improve convergence.
- Use Monte Carlo rollouts with a rollout policy to estimate reward signals for policy gradient updates, reducing exposure bias.
- Pre-train the generator with negative log-likelihood (NLL) loss before adversarial fine-tuning to improve initial policy quality.
Experimental results
Research questions
- RQ1Can SeqGAN be effectively adapted to generate musically coherent polyphonic sequences that include both melodies and chords?
- RQ2How does the proposed word vector representation of MIDI sequences affect the model’s ability to learn dynamic timing and harmonic structure?
- RQ3Does adversarial training with GANs improve the perceptual quality and diversity of generated music compared to NLL pretraining?
- RQ4What role does reinforcement learning signal optimization play in the success of sequence generation with discrete sequences?
- RQ5To what extent do quantitative metrics like BLEU correlate with human perception (MOS) in evaluating music generation models?
Key findings
- Adversarial training with SeqGAN significantly improved both quantitative (BLEU score) and qualitative (MOS) performance over NLL-pretrained models.
- Sequences from the adversarially trained model exhibited longer-range harmonic consistency and more coherent chord progressions compared to repetitive, short-term focused outputs from NLL pretraining.
- The model achieved improved BLEU scores through adversarial training, though scores remained below 0.2 in some cases, indicating room for improvement.
- The use of least squares GAN (LSGAN) loss helped stabilize training and reduce mode collapse compared to standard GANs.
- Reinforcement learning signals showed high variance, requiring multiple training runs for reproducible performance gains.
- Human evaluation (MOS) confirmed that adversarially trained samples were perceived as more realistic and musically coherent than NLL-pretrained samples.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.