An Investigation of Time-Frequency Representation Discriminators for High-Fidelity Vocoder

Yicheng Gu, Xueyao Zhang, Liumeng Xue, Haizhou Li, Zhizheng Wu

Abstract

Generative Adversarial Network (GAN) based vocoders are superior in both inference speed and synthesis quality when reconstructing an audible waveform from an acoustic representation. This study focuses on improving the discriminator for GAN-based vocoders. Most existing Time-Frequency Representation (TFR)-based discriminators are rooted in Short-Time Fourier Transform (STFT), which owns a constant Time-Frequency (TF) resolution, linearly scaled center frequencies, and a fixed decomposition basis, making it incompatible with signals like singing voices that require dynamic attention for different frequency bands and different time intervals. Motivated by that, we propose a Multi-Scale Sub-Band Constant-Q Transform CQT (MS-SB-CQT) discriminator and a Multi-Scale Temporal-Compressed Continuous Wavelet Transform CWT (MS-TC-CWT) discriminator. Both CQT and CWT have a dynamic TF resolution for different frequency bands. In contrast, CQT has a better modeling ability in pitch information, and CWT has a better modeling ability in short-time transients. Experiments conducted on both speech and singing voices confirm the effectiveness of our proposed discriminators. Moreover, the STFT, CQT, and CWT-based discriminators can be used jointly for better performance. The proposed discriminators can boost the synthesis quality of various state-of-the-art GAN-based vocoders, including HiFi-GAN, BigVGAN, and APNet.

Introduction

Neural vocoders based on Generative Adversarial Networks (GANs) have set the benchmark for high-fidelity audio synthesis due to their impressive balance of speed and quality. However, even state-of-the-art models like HiFi-GAN frequently exhibit artifacts such as metallic "hissing" or blurred transients, particularly in complex signals like singing voices. This research identifies a fundamental limitation in the discriminators of these models: their reliance on the Short-Time Fourier Transform (STFT).

STFT operates with a fixed window size, imposing a constant time-frequency (TF) resolution across all frequency bands. This is physically suboptimal for audio; low-frequency components (e.g., pitch) require high frequency resolution for precision, whereas high-frequency components (e.g., percussive "clicks") require high temporal resolution to capture rapid changes.

Proposed Methodology: Dynamic Time-Frequency Resolution

To overcome the "one-size-fits-all" limitation of STFT, we propose two novel discriminators that leverage transforms with dynamic TF resolution: the Constant-Q Transform (CQT) and the Continuous Wavelet Transform (CWT).

Comparison of Time-Frequency resolution between (a) STFT and (b) CQT/CWT. STFT uses a fixed window size, while CQT/CWT adapt resolution based on frequency.

Multi-Scale Sub-Band CQT (MS-SB-CQT)

The CQT utilizes geometrically spaced frequency bins, aligning with the logarithmic nature of human hearing and musical scales. This makes it ideal for modeling the pitch and harmonics of singing voices. To address the temporal desynchronization between octaves in CQT, we developed a Sub-Band Processor (SBP). This module segments the CQT spectrogram into octaves and employs a learned CNN to synchronize them into a coherent latent representation for the discriminator.

Multi-Scale Temporal-Compressed CWT (MS-TC-CWT)

Wavelets are inherently suited for capturing "step transients"—sudden, sharp changes in a signal. However, CWT generates high-dimensional data that is computationally prohibitive for standard training. We introduced a Temporal Compressor (TC) module that uses overlapped convolutions to compress this data while maintaining the temporal continuity of the signal.

Key Insights: Addressing the Gibbs Phenomenon

A significant finding of this study is how STFT-based discriminators struggle with transients due to the Gibbs phenomenon. When reconstructing square waves or sharp transitions, Fourier-based methods produce significant error spikes.

The Fourier Error Function highlights significant reconstruction errors at signal transients, a limitation addressed by wavelet-based discriminators.

By contrast, wavelet-based discriminators can model these transients with much lower error, leading to cleaner audio. We also found that these discriminators are complementary; joint training with STFT, CQT, and CWT discriminators allows the model to benefit from multiple mathematical perspectives simultaneously.

Experimental Results

The proposed discriminators were tested on a massive 114-hour corpus of speech and singing voices across English, Chinese, Korean, and Japanese. We integrated them into three major architectures: HiFi-GAN, BigVGAN, and APNet.

  • Subjective Quality: In Mean Opinion Score (MOS) tests for singing voices, HiFi-GAN's score improved from 3.30 to 3.80, a substantial subjective gain.
  • Pitch Accuracy: The F0 Root Mean Square Error (F0RMSE) dropped significantly (e.g., from 56.5 to 36.1), indicating much more stable and accurate pitch reconstruction.
  • Efficiency: Because these enhancements are applied only to the discriminator during the training phase, the resulting generator remains just as fast during inference as the baseline models.

Conclusion

By moving beyond the fixed resolution of the Fourier Transform, the MS-SB-CQT and MS-TC-CWT discriminators provide a more nuanced critique of synthesized audio. These improvements lead to significant gains in the quality of singing voices and transients without sacrificing inference speed. Future work will investigate more efficient wavelet bases and the potential for integrating these dynamic-resolution features directly into generator architectures.

Summary updated

Abstract

Generative Adversarial Network (GAN) based vocoders are superior in both inference speed and synthesis quality when reconstructing an audible waveform from an acoustic representation. This study focuses on improving the discriminator for GAN-based vocoders. Most existing Time-Frequency Representation (TFR)-based discriminators are rooted in Short-Time Fourier Transform (STFT), which owns a constant Time-Frequency (TF) resolution, linearly scaled center frequencies, and a fixed decomposition basis, making it incompatible with signals like singing voices that require dynamic attention for different frequency bands and different time intervals. Motivated by that, we propose a Multi-Scale Sub-Band Constant-Q Transform CQT (MS-SB-CQT) discriminator and a Multi-Scale Temporal-Compressed Continuous Wavelet Transform CWT (MS-TC-CWT) discriminator. Both CQT and CWT have a dynamic TF resolution for different frequency bands. In contrast, CQT has a better modeling ability in pitch information, and CWT has a better modeling ability in short-time transients. Experiments conducted on both speech and singing voices confirm the effectiveness of our proposed discriminators. Moreover, the STFT, CQT, and CWT-based discriminators can be used jointly for better performance. The proposed discriminators can boost the synthesis quality of various state-of-the-art GAN-based vocoders, including HiFi-GAN, BigVGAN, and APNet.
BibTeX
@article{gu2024investigation,
  author = {Yicheng Gu and Xueyao Zhang and Liumeng Xue and Haizhou Li and Zhizheng Wu},
  title = {{An Investigation of Time-Frequency Representation Discriminators for High-Fidelity Vocoder}},
  journal = {IEEE/ACM Transactions on Audio, Speech, and Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=xy8KjuksjX},
}
Figure