A Benchmarking Initiative for Audio-Domain Music Generation Using the Freesound Loop Dataset

Tun-Min Hung, Bo-Yu Chen, Yen-Tung Yeh, Yi-Hsuan Yang

Abstract

This paper proposes a new benchmark task for generating musical passages in the audio domain by using the drum loops from the FreeSound Loop Dataset, which are publicly re-distributable. Moreover, we use a larger collection of drum loops from Looperman to establish four model-based objective metrics for evaluation, releasing these metrics as a library for quantifying and facilitating the progress of musical audio generation. Under this evaluation framework, we benchmark the performance of three recent deep generative adversarial network (GAN) models we customize to generate loops, including StyleGAN, StyleGAN2, and UNAGAN. We also report a subjective evaluation of these models. Our evaluation shows that the one based on StyleGAN2 performs the best in both objective and subjective metrics.

Introduction

While symbolic music generation (such as MIDI) has seen significant advancement, generating raw audio remains a primary challenge in the field of AI music. Most existing research focuses on isolated notes or utilizes massive, private datasets that preclude fair comparison and reproducibility.

This paper identifies musical loops as an ideal middle ground for benchmarking. Loops are short, repeatable, and musically complete units that capture essential elements of rhythm, timbre, and structure. By providing a standardized dataset and a suite of evaluation metrics, the authors aim to establish a measurable framework for audio generation, similar to how ImageNet transformed computer vision.

Methodology

Data Representation

The authors treat audio generation as a visual task by converting raw audio into Mel-spectrograms. These visual representations map frequency over time, allowing the researchers to leverage powerful image-generation architectures.

Mel-spectrogram representations of various musical genres, illustrating the visual patterns the GANs must learn to replicate.

Generative Pipeline

The pipeline follows a three-step process:

  1. Generation: A GAN generates a Mel-spectrogram.
  2. Vocoding: A pre-trained MelGAN vocoder converts the generated spectrogram back into a listenable audio waveform.
  3. Evaluation: The output is measured against both objective algorithms and human subjective testing.

Model Architectures

The study benchmarks three prominent Generative Adversarial Network (GAN) architectures:

  • StyleGAN & StyleGAN2: Originally designed for high-resolution facial synthesis, these models were adapted to generate 80x320 spectrograms. StyleGAN2 improves on the original by utilizing weight modulation/demodulation instead of traditional normalization.
  • UNAGAN: A model specifically designed for audio that uses a sequence of latent vectors to handle variable-length generation.
The generator architecture based on StyleGAN, showing the upsampling process to produce 80x320 spectrograms.

Datasets

The study utilizes two primary sources to balance public accessibility with robust evaluation:

  • FreeSound Loop Dataset (FSLD): A public, Creative Commons-licensed dataset. The authors extracted 2,608 drum loops to serve as the open benchmark for training.
  • Looperman Dataset: A much larger, private collection of approximately 24,000 loops. While copyright prevents redistribution, this data was used to train the evaluation metrics (such as the genre classifier), ensuring the metrics are robust and capable of distinguishing high-quality drum loops.

All audio was standardized to 44.1kHz, downmixed to mono, and tempo-stretched to a uniform 120 BPM (2 seconds per loop).

Key Results

StyleGAN2 emerged as the superior model across nearly all metrics:

  • Inception Score (IS): StyleGAN2 achieved a score of 5.24, significantly outperforming UNAGAN (3.33) and StyleGAN (1.31), and approaching the "oracle" score of the real Freesound dataset (6.30).
  • Diversity: Using the Number of Statistically-Different Bins (NDB) metric, StyleGAN2 demonstrated the best coverage of the dataset, indicating it learned a wide variety of drum styles rather than just memorizing a few samples.
  • Human Evaluation: In subjective listening tests, StyleGAN2 was rated significantly higher in "Drumness" and "Preference." Users found StyleGAN2 loops nearly indistinguishable from human-made loops in terms of basic drum quality.

Discussion and Future Work

The success of StyleGAN2 suggests that the spatial correlations in a Mel-spectrogram are sufficiently similar to image textures that state-of-the-art vision models can be ported to audio with minimal architectural changes. Furthermore, the strong correlation between objective metrics (like IS) and human preference validates these automated scores for future iterative research.

Future work will focus on moving beyond fixed-tempo, 1-bar drum loops. The next frontier includes expanding to diverse instruments (basslines, vocals), integrating phase generation directly into the GAN for crisper audio, and generating longer 4-bar phrases that exhibit complex musical evolution.

Summary updated

BibTeX
@inproceedings{hung2021benchmarking,
  author = {Tun-Min Hung and Bo-Yu Chen and Yen-Tung Yeh and Yi-Hsuan Yang},
  title = {{A Benchmarking Initiative for Audio-Domain Music Generation Using the Freesound Loop Dataset}},
  booktitle = {ISMIR},
  year = {2021},
  url = {https://openreview.net/forum?id=nQfvg2SMiV},
}
Figure