Skip to main content
QUICK REVIEW

[Paper Review] Diffsound: Discrete Diffusion Model for Text-to-sound Generation

Dongchao Yang, Jianwei Yu|arXiv (Cornell University)|Jul 20, 2022
Music and Audio ProcessingComputer Science8 citations
TL;DR

This paper proposes Diffsound, a non-autoregressive discrete diffusion model for text-to-sound generation that improves generation speed and quality over autoregressive baselines. By predicting and refining mel-spectrogram tokens in a diffusion-based iterative process, Diffsound achieves a 3.56 MOS score and fivefold faster inference than autoregressive methods, while maintaining high audio fidelity and text-sound alignment.

ABSTRACT

Generating sound effects that humans want is an important topic. However, there are few studies in this area for sound generation. In this study, we investigate generating sound conditioned on a text prompt and propose a novel text-to-sound generation framework that consists of a text encoder, a Vector Quantized Variational Autoencoder (VQ-VAE), a decoder, and a vocoder. The framework first uses the decoder to transfer the text features extracted from the text encoder to a mel-spectrogram with the help of VQ-VAE, and then the vocoder is used to transform the generated mel-spectrogram into a waveform. We found that the decoder significantly influences the generation performance. Thus, we focus on designing a good decoder in this study. We begin with the traditional autoregressive decoder, which has been proved as a state-of-the-art method in previous sound generation works. However, the AR decoder always predicts the mel-spectrogram tokens one by one in order, which introduces the unidirectional bias and accumulation of errors problems. Moreover, with the AR decoder, the sound generation time increases linearly with the sound duration. To overcome the shortcomings introduced by AR decoders, we propose a non-autoregressive decoder based on the discrete diffusion model, named Diffsound. Specifically, the Diffsound predicts all of the mel-spectrogram tokens in one step and then refines the predicted tokens in the next step, so the best-predicted results can be obtained after several steps. Our experiments show that our proposed Diffsound not only produces better text-to-sound generation results when compared with the AR decoder but also has a faster generation speed, e.g., MOS: 3.56 extit{v.s} 2.786, and the generation speed is five times faster than the AR decoder.

Motivation & Objective

  • To address the lack of effective text-to-sound generation models that produce high-fidelity, contextually relevant audio from natural language descriptions.
  • To overcome the limitations of autoregressive token-decoders, including error accumulation and slow generation speed due to sequential prediction.
  • To design a non-autoregressive token-decoder based on discrete diffusion modeling that enables faster, more accurate mel-spectrogram token generation.
  • To develop objective evaluation metrics—FID, KL divergence, and audio caption loss—to comprehensively assess audio quality, fidelity, and text alignment.
  • To release code, pre-trained models, and generated samples to support reproducibility and further research in text-to-sound generation.

Proposed method

  • The framework uses a text encoder to extract textual features from input descriptions, which are then used to condition a non-autoregressive token-decoder based on discrete diffusion.
  • The token-decoder generates mel-spectrogram tokens in a denoising diffusion process: first predicting all tokens in one step, then refining them iteratively to improve accuracy.
  • A pre-trained VQ-VAE compresses mel-spectrograms into discrete token sequences, enabling sequence modeling in a discrete latent space.
  • A vocoder (e.g., MelGAN) converts the generated mel-spectrogram into a final waveform, completing the audio synthesis pipeline.
  • The diffusion process is formulated with noise schedules αₜ and βₜ, where αₜ = 1 - Kβₜ and the reverse process uses learned denoising steps to recover the original token sequence.
  • The model is trained using a combination of reconstruction loss and diffusion objectives, with iterative refinement to reduce prediction errors.

Experimental results

Research questions

  • RQ1Can a non-autoregressive diffusion-based token-decoder outperform autoregressive models in text-to-sound generation in terms of both quality and speed?
  • RQ2Does the iterative refinement mechanism in the discrete diffusion model effectively reduce error accumulation compared to autoregressive generation?
  • RQ3To what extent can the proposed objective metrics (FID, KL, audio caption loss) reliably assess the fidelity and relevance of generated audio samples?
  • RQ4How does the proposed Diffsound model perform on real-world text-to-sound generation benchmarks compared to existing state-of-the-art methods?
  • RQ5Can the model generalize to diverse sound effects and maintain strong alignment with diverse text prompts?

Key findings

  • Diffsound achieves a mean opinion score (MOS) of 3.56, significantly outperforming the autoregressive baseline (2.786), indicating superior perceptual quality.
  • The model generates audio five times faster than the autoregressive baseline, demonstrating a substantial improvement in inference speed.
  • The objective evaluation metrics—FID, KL divergence, and audio caption loss—show strong correlation with human evaluation, validating their effectiveness in automated assessment.
  • The iterative refinement process in the diffusion-based token-decoder effectively reduces error propagation, leading to more accurate mel-spectrogram generation.
  • The model generalizes well across diverse text prompts, generating contextually relevant and perceptually plausible sound effects.
  • The authors release code, pre-trained models, and sample generations at http://dongchaoyang.top/text-to-sound-synthesis-demo/, enabling community access and reproducibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.