Adversarial Audio Synthesis

Chris Donahue, Julian J. McAuley, Miller S. Puckette

Introduction

Synthesizing high-fidelity audio is a notoriously difficult challenge in machine learning. The primary hurdle is dimensionality: audio signals possess extremely high temporal resolution, often sampled at 16,000 times per second or more. To sound natural, a generative model must capture complex structures across multiple timescales, from the micro-level oscillations of a single sound wave to the macro-level structure of a spoken word or musical phrase.

Existing state-of-the-art models, such as WaveNet, tackle this by using autoregressive architectures. While these models produce exceptional audio quality, they generate audio sequentially—one sample at a time—making them agonizingly slow for practical applications. Generative Adversarial Networks (GANs), which have revolutionized high-resolution image generation, offer a compelling "parallel" alternative that could generate audio almost instantly. However, applying GANs to audio introduces unique challenges:

  1. Dimensionality: Audio is a 1D, periodic signal, whereas traditional GANs are optimized for 2D spatial data (images).
  2. Artifacts: Standard upsampling techniques in GANs (like transposed convolutions) often create periodic "checkerboard" artifacts. In images, these are minor visual nuisances; in audio, they manifest as piercing, metallic pitched noise that severely degrades the output.

This paper introduces WaveGAN, the first successful application of GANs to synthesize raw-waveform audio in an unsupervised setting, demonstrating that GANs can generate intelligible speech and coherent musical sounds orders of magnitude faster than traditional autoregressive models.

Methods: Adapting GANs for Audio

The authors explore two distinct strategies for adversarial audio synthesis: adapting the architecture to the waveform directly, and transforming the audio into an image-like representation.

1. WaveGAN (The Waveform Approach)

To process raw audio, the researchers adapted the popular DCGAN architecture—typically used for image generation—by "flattening" it. They replaced the standard 2D $5 \times 5$ spatial filters with 1D filters of length 25, and increased the upsampling stride from 2 to 4 to handle the longer sequence lengths of audio data.

Comparison of 2D upsampling used in standard image GANs (left) and the flattened 1D upsampling used in WaveGAN (right).

The Phase Shuffle Technique: A critical innovation in WaveGAN is the "phase shuffle." Because audio is highly periodic, the discriminator network can easily "cheat" by learning to identify the specific phase alignments of upsampling artifacts rather than evaluating the actual audio content. Phase shuffle randomly shifts the phase of the discriminator's activations by a few samples. This forces the discriminator to focus on the underlying frequency content and structure of the audio, preventing the generator from getting stuck producing misaligned noise.

2. SpecGAN (The Spectrogram Approach)

As an alternative, the authors developed SpecGAN, which treats audio generation as an image generation task. This method converts audio into spectrograms (2D time-frequency representations) and trains a standard image GAN on these visual representations. To make this viable, they designed a "semi-invertible" spectrogram format and utilized the iterative Griffin-Lim algorithm to convert the generated spectrogram images back into listenable audio waveforms.

Both WaveGAN and SpecGAN were trained using the WGAN-GP (Wasserstein GAN with Gradient Penalty) loss function to ensure stable training dynamics.

Experimental Setup and Datasets

The models were evaluated across five diverse audio domains to test their versatility:

  • SC09 (Speech Commands): A subset of the Google Speech Commands dataset featuring 1-second clips of spoken digits (zero through nine). This served as the "MNIST of audio" for the experiments.
  • Drum Sound Effects: 0.7 hours of percussive sounds (kicks, snares, cymbals).
  • Bird Vocalizations: 12.2 hours of wild bird recordings.
  • Piano: 0.3 hours of Bach compositions.
  • TIMIT: A large-vocabulary speech dataset used to test the model's capacity for complex, multi-speaker data.

Key Insights and Results

The experiments yielded several compelling insights into the viability of audio GANs:

  • 1D Representations are Sufficient: The success of WaveGAN proves that complex 2D representations are not strictly necessary for audio generation. By simply increasing the filter length and stride of a standard 1D convolutional network, the model captures enough temporal context to generate intelligible words.
  • Human Preference vs. Metrics: Interestingly, while SpecGAN achieved higher "Inception Scores" (an automated metric for diversity and clarity), human listeners consistently preferred the audio generated by WaveGAN. On a 1–5 scale, human judges rated WaveGAN's sound quality at 2.3, compared to SpecGAN's 1.9. This suggests that the phase artifacts introduced by the Griffin-Lim algorithm (used in SpecGAN) are more jarring to the human ear than the raw, underlying noise of WaveGAN.
  • Intelligibility: In blind listening tests conducted via Amazon Mechanical Turk, humans correctly identified the spoken digits generated by WaveGAN 58% of the time (where random chance is 10%), proving the model successfully learned phonetic structures.
  • Massive Speedup: WaveGAN's parallel generation capabilities allow it to synthesize an hour of audio in less than two seconds on a standard GPU. This represents a roughly $2,500\times$ speedup over the original autoregressive WaveNet.
  • The "Feline Turing Test": In a qualitative test of the model's fidelity, the authors played synthetic bird sounds for their cats. The cats exhibited increased alertness and interest, suggesting the synthetic audio contained realistic acoustic properties even to non-human listeners.

Limitations and Future Work

While a significant step forward, WaveGAN has notable limitations. The current architecture is restricted to generating 1-second slices of audio, making it unsuitable for long-form speech or full musical tracks. Furthermore, because the model is entirely unsupervised, it lacks conditioning; users cannot prompt it to generate a specific word or sound. Finally, despite the phase shuffle technique, WaveGAN still produces some characteristic background hiss and metallic artifacts that distinguish its outputs from pristine real-world recordings. Future work will likely focus on extending the generation window and incorporating conditional inputs for controlled synthesis.

Summary updated

BibTeX
@inproceedings{donahue2019adversarial,
  author = {Chris Donahue and Julian J. McAuley and Miller S. Puckette},
  title = {{Adversarial Audio Synthesis}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=PsDIRxrLt7},
}
Figure