English

Music Generation based on Generative Adversarial Networks with Transformer

Sound 2023-10-11 v4

Abstract

Autoregressive models based on Transformers have become the prevailing approach for generating music compositions that exhibit comprehensive musical structure. These models are typically trained by minimizing the negative log-likelihood (NLL) of the observed sequence in an autoregressive manner. However, when generating long sequences, the quality of samples from these models tends to significantly deteriorate due to exposure bias. To address this issue, we leverage classifiers trained to differentiate between real and sampled sequences to identify these failures. This observation motivates our exploration of adversarial losses as a complement to the NLL objective. We employ a pre-trained Span-BERT model as the discriminator in the Generative Adversarial Network (GAN) framework, which enhances training stability in our experiments. To optimize discrete sequences within the GAN framework, we utilize the Gumbel-Softmax trick to obtain a differentiable approximation of the sampling process. Additionally, we partition the sequences into smaller chunks to ensure that memory constraints are met. Through human evaluations and the introduction of a novel discriminative metric, we demonstrate that our approach outperforms a baseline model trained solely on likelihood maximization.

Keywords

Cite

@article{arxiv.2309.09075,
  title  = {Music Generation based on Generative Adversarial Networks with Transformer},
  author = {Ziyi Jiang and Ruoxue Wu and Zhenghan Chen and Xiaoxuan Liang},
  journal= {arXiv preprint arXiv:2309.09075},
  year   = {2023}
}

Comments

arXiv admin note: This version has been removed by arXiv administrators due to copyright infringement

R2 v1 2026-06-28T12:23:43.967Z