Comparing Representations for Audio Synthesis Using Generative Adversarial Networks

Javier Nistal, Stefan Lattner, Gaël Richard

Abstract

In this paper, we compare different audio signal representations, including the raw audio waveform and a variety of time-frequency representations, for the task of audio synthesis with Generative Adversarial Networks (GANs). We conduct the experiments on a subset of the NSynth dataset. The architecture follows the benchmark Progressive Growing Wasserstein GAN. We perform experiments both in a fully non-conditional manner as well as conditioning the network on the pitch information. We quantitatively evaluate the generated material utilizing standard metrics for assessing generative models, and compare training and sampling times. We show that complex-valued as well as the magnitude and Instantaneous Frequency of the Short-Time Fourier Transform achieve the best results, and yield fast generation and inversion times.

Introduction

While deep learning has revolutionized audio synthesis, a persistent debate remains regarding the optimal way to represent audio data for neural networks. State-of-the-art autoregressive models, such as WaveNet, produce high-quality results but suffer from slow training and sampling speeds. Generative Adversarial Networks (GANs) offer a significantly faster alternative but are highly sensitive to data representation. This study systematically evaluates seven audio representations—ranging from raw waveforms to various time-frequency transforms—using a standardized GAN architecture to determine which yields the best balance of perceptual quality and computational efficiency.

Methods

The benchmark architecture employed is the Progressive Growing Wasserstein GAN (P-GAN). Originally designed for high-resolution image generation, P-GAN stabilizes training by starting with low-resolution data and gradually adding layers to increase resolution.

The Progressive Growing GAN architecture, including Scale and Format blocks.

The study compares the following representations:

  1. Raw Waveform: The time-domain signal.
  2. Complex STFT: Short-Time Fourier Transform retaining both real and imaginary components.
  3. Mag-IF: STFT magnitude combined with Instantaneous Frequency (phase rate of change).
  4. CQT (cqt & cq-nsgt): Logarithmically spaced frequency bins, musically motivated.
  5. Mel Spectrogram: Perceptually scaled frequency representation (phase discarded).
  6. MFCC: Highly compressed spectral envelope representation.

Models were evaluated in both unconditional (random sound generation) and conditional (pitch-specific generation) modes.

Datasets

Experiments were conducted on a subset of the NSynth dataset, focusing on acoustic instruments (brass, flutes, guitars, keyboards, and mallets) within the MIDI pitch range of 44 to 70 (~103Hz to 466Hz). The dataset comprised approximately 22,000 one-second sounds at a 16kHz sample rate.

Key Insights

  • Phase Preservation: Representations that explicitly include phase information (e.g., complex STFT or mag-if) significantly outperformed those that discard it (e.g., mel or mfcc). Discarding phase necessitates iterative reconstruction algorithms like Griffin-Lim, which are slow and prone to artifacts.
  • The "Complex" Advantage: The complex-valued STFT yielded superior results, providing a linear, perfectly invertible structure that convolutional layers can effectively navigate.
  • Waveform Challenges: Training directly on raw waveforms proved difficult, as the GAN struggled to capture long-term dependencies, often resulting in broad-band noise.
  • Conditioning Benefits: Providing pitch information (conditioning) not only ensured correct pitch but also improved overall audio quality by reducing the variance the model needed to learn.

Key Results

Quantitative evaluation using metrics such as Fréchet Audio Distance (FAD) highlighted the superiority of STFT-based methods. In the conditional setting, the complex representation achieved an FAD of 0.11, vastly outperforming raw waveforms (1.87) and Mel-spectrograms (4.79).

Quantitative results for conditional models, showing the superior performance of complex and mag-if representations.

Furthermore, STFT-based methods demonstrated near-instantaneous inversion times (~0.01s), whereas mfcc required over 10 seconds per sample due to iterative phase retrieval. Qualitative listening tests confirmed that mag-if and complex produced the most realistic textures.

Conclusion

This research demonstrates that complex-valued and Mag-IF STFT representations are highly effective for GAN-based audio synthesis, offering a superior trade-off between quality and speed compared to raw waveforms or Mel-spectrograms. While these findings are currently limited to pitched, single-note musical sounds, they provide a strong foundation for future work in polyphonic music and speech synthesis using advanced architectures.

Summary updated

BibTeX
@inproceedings{nistal2020comparing,
  author = {Javier Nistal and Stefan Lattner and Gaël Richard},
  title = {{Comparing Representations for Audio Synthesis Using Generative Adversarial Networks}},
  booktitle = {EUSIPCO},
  year = {2020},
  doi = {10.23919/eusipco47968.2020.9287799},
}
Figure