Skip to main content
QUICK REVIEW

[Paper Review] Convolutional Generative Adversarial Networks with Binary Neurons for Polyphonic Music Generation

Hao‐Wen Dong, Yi‐Hsuan Yang|arXiv (Cornell University)|Apr 25, 2018
Music and Audio ProcessingComputer Science35 citations
TL;DR

This paper proposes a two-stage convolutional GAN with binary neurons to directly generate binary-valued piano-rolls for polyphonic music, avoiding post-processing. By training a refiner network with deterministic binary neurons, the model achieves superior music quality and reduced note fragmentation compared to hard thresholding or Bernoulli sampling, with subjective evaluations favoring deterministic over stochastic binarization.

ABSTRACT

It has been shown recently that deep convolutional generative adversarial networks (GANs) can learn to generate music in the form of piano-rolls, which represent music by binary-valued time-pitch matrices. However, existing models can only generate real-valued piano-rolls and require further post-processing, such as hard thresholding (HT) or Bernoulli sampling (BS), to obtain the final binary-valued results. In this paper, we study whether we can have a convolutional GAN model that directly creates binary-valued piano-rolls by using binary neurons. Specifically, we propose to append to the generator an additional refiner network, which uses binary neurons at the output layer. The whole network is trained in two stages. Firstly, the generator and the discriminator are pretrained. Then, the refiner network is trained along with the discriminator to learn to binarize the real-valued piano-rolls the pretrained generator creates. Experimental results show that using binary neurons instead of HT or BS indeed leads to better results in a number of objective measures. Moreover, deterministic binary neurons perform better than stochastic ones in both objective measures and a subjective test. The source code, training data and audio examples of the generated results can be found at https://salu133445.github.io/bmusegan/ .

Motivation & Objective

  • To address the limitation of existing GANs that generate real-valued piano-rolls requiring post-processing to achieve binary outputs.
  • To investigate whether using binary neurons in the generator's output layer can produce higher-quality, more musically coherent polyphonic music.
  • To compare deterministic vs. stochastic binary neurons in terms of objective metrics and subjective perception.
  • To evaluate the effectiveness of a two-stage training strategy where the refiner network is trained after pretraining the generator and discriminator.
  • To explore the impact of a multi-stream, shared/private discriminator design on intertrack harmony and note quality.

Proposed method

  • A two-stage training process is employed: first pretraining the generator and discriminator on real piano-rolls, then fine-tuning the refiner network with the discriminator.
  • The refiner network uses binary neurons—either deterministic or stochastic—at the output layer to directly produce binary-valued piano-rolls from real-valued generator outputs.
  • The refiner is trained to minimize the adversarial loss while ensuring the output is binarized, effectively integrating binarization into the training process.
  • A residual block architecture is used in the refiner to stabilize training and improve feature learning.
  • The discriminator employs a multi-stream design with shared and private branches to model both intertrack harmonicity and onset/offering patterns.
  • The model uses a combination of adversarial loss and reconstruction loss to guide the generator and refiner toward realistic, coherent piano-roll outputs.

Experimental results

Research questions

  • RQ1Can a GAN model directly generate binary-valued piano-rolls using binary neurons, eliminating the need for post-processing like hard thresholding or Bernoulli sampling?
  • RQ2Does using deterministic binary neurons yield better objective and subjective music quality than stochastic binary neurons or conventional post-processing methods?
  • RQ3How does the two-stage training strategy compare to joint or end-to-end training in terms of music quality and stability?
  • RQ4What is the impact of the multi-stream, shared/private discriminator design on intertrack harmony and note coherence?
  • RQ5Can the integration of binary neurons during training improve the discriminator's ability to distinguish real from generated music by focusing on musically relevant features?

Key findings

  • The model with deterministic binary neurons achieved a qualified note rate (QN) of 0.81 and polyphonicity (PP) of 0.68, significantly outperforming baseline methods.
  • The use of deterministic binary neurons reduced note fragmentation, as evidenced by a QN of 0.81 and a 44% preference in user studies for better note continuity.
  • The two-stage training strategy outperformed both joint and end-to-end training, with the joint strategy showing degradation in QN after 10,000 steps.
  • The proposed multi-stream discriminator design improved intertrack harmonicity, reducing the total duration (TD) metric by 12% compared to the ablated-II model.
  • In user studies, 84% of participants preferred the deterministic binary neuron model over the stochastic version, particularly citing fewer fragmented notes.
  • The model with deterministic binary neurons maintained consistent improvement in QN and PP throughout training, while stochastic versions showed instability and lower performance.

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.