Auffusion: Leveraging the Power of Diffusion and Large Language Models for Text-to-Audio Generation

Jinlong Xue, Yayue Deng, Yingming Gao, Ya Li

Introduction

Text-to-Audio (TTA) generation has advanced rapidly, yet it faces significant challenges in data efficiency and fine-grained alignment. High-performing models typically require massive datasets and extensive computational resources. Furthermore, ensuring that generated audio precisely reflects complex textual prompts—such as "a dog barking followed by a gunshot"—remains difficult for many existing systems.

Auffusion addresses these hurdles by "repurposing" the generative capabilities of pretrained text-to-image (T2I) diffusion models. By representing audio mel-spectrograms as images, Auffusion leverages the deep cross-modal alignment learned from billions of images to produce high-quality, temporally accurate audio with substantially less training data than its predecessors.

Methodology

Auffusion is built upon the Latent Diffusion Model (LDM) framework, specifically adapting Stable Diffusion v1.5. The core innovation lies in treating audio as visual data to exploit pretrained visual priors.

The Auffusion architecture leverages a pretrained T2I pipeline, converting audio to mel-spectrograms that are processed within a latent diffusion space.

The pipeline consists of several key stages:

  1. Audio as Images: Raw audio is converted into mel-spectrograms. A specialized normalization process transforms these into RGB-like "images" to maintain precision during the diffusion process.
  2. Text Encoding: The model uses an ensemble of encoders, combining CLAP for acoustic feature alignment and FlanT5 for deep semantic understanding of complex, multi-event prompts.
  3. Denoising and Decoding: A U-Net, initialized with Stable Diffusion weights, performs denoising in a compressed latent space. A VAE decoder then reconstructs the "pixel" spectrogram from the latent representation.
  4. Vocoding: A pretrained HiFi-GAN vocoder converts the final spectrogram back into high-fidelity 16kHz audio.

A unique aspect of Auffusion is the use of cross-attention maps to visualize the alignment between specific words in a prompt and the corresponding segments in the generated audio, ensuring distinct activations for different events.

Experimental Setup

Auffusion was trained on approximately 0.47 million audio-text pairs (~2,000 hours), a relatively small dataset compared to other state-of-the-art models. The training data included benchmarks such as AudioCaps (AC), WavCaps, and Clotho, alongside specialized sets like ESC50 and UrbanSound8K. Despite using a dataset nearly 60 times smaller than models like AudioLDM2, Auffusion achieves comparable or superior performance.

Results and Discussion

Auffusion demonstrates state-of-the-art performance across both objective and subjective metrics.

Quantitative comparison of Auffusion against baseline models on AudioCaps and Clotho benchmarks, showing superior FD and IS scores.

On the AudioCaps benchmark, Auffusion achieved a Frechet Distance (FD) of 21.99, significantly outperforming the previous state-of-the-art, Tango (24.82). Its zero-shot performance on the Clotho dataset further underscores its robustness. Human evaluations also favored Auffusion for overall quality (OVL) and relevance (REL) to the text prompts.

Key Insights

  • The Image Shortcut: Pretrained T2I weights provide a massive head start. Spatial patterns in mel-spectrograms are sufficiently similar to natural images that fine-tuning a visual model for audio is highly effective.
  • Encoder Synergy: Combining CLAP and FlanT5 allows the model to handle both acoustic grounding and complex sentence structures, leading to better event isolation and distinguishability in multi-event prompts.

Conclusion and Future Work

Auffusion proves that visual generative knowledge can be successfully transferred to the audio domain. However, limitations remain, such as a fixed 10-second generation duration and the potential lossiness of mel-spectrogram representations. Future work will explore direct waveform generation, higher-resolution spectrograms, and expanding the model's capabilities to longer, more complex musical and interactive audio tasks.

Summary updated

BibTeX
@article{xue2024auffusion,
  author = {Jinlong Xue and Yayue Deng and Yingming Gao and Ya Li},
  title = {{Auffusion: Leveraging the Power of Diffusion and Large Language Models for Text-to-Audio Generation}},
  journal = {IEEE ACM Trans. Audio Speech Lang. Process.},
  year = {2024},
  url = {https://openreview.net/forum?id=GSwEN8e9Sq},
}
Figure