Retrieval-Augmented Text-to-Audio Generation

Yi Yuan, Haohe Liu, Xubo Liu, Qiushi Huang, Mark D. Plumbley, Wenwu Wang

TL;DR

Re-AudioLDM introduces a retrieval-augmented framework to solve the "long-tail" problem in text-to-audio (TTA) generation, where models struggle to produce rare or complex sounds. By retrieving similar audio-text pairs from a database and using them as additional conditioning, the model achieves a state-of-the-art Frechet Audio Distance (FAD) of 1.37 on the AudioCaps dataset.

What Problem Does This Paper Address?

While diffusion-based models have revolutionized text-to-audio generation, they suffer from a significant bias: they are only as good as the data they are trained on. Most audio-text datasets, like AudioCaps, have a highly imbalanced "long-tailed" distribution. Common sounds (like "a man talking") are represented thousands of times, while rare sounds (like "champagne popping") appear infrequently.

Consequently, state-of-the-art models often ignore rare or complex keywords in a prompt, defaulting to the most common acoustic patterns they've learned. This limits the model's ability to handle complex scenes or generate high-fidelity audio for niche sound events. The authors aim to "break the barrier of imbalanced data" by providing the model with explicit references during the generation process.

Methods

The authors propose Re-AudioLDM, which enhances the existing AudioLDM architecture with a retrieval module. The process works in three main stages:

  1. Retrieval: When a user provides a text prompt, the system uses a CLAP (Contrastive Language Audio Pretraining) model to search a database for the top-$k$ most similar text-audio pairs.
  2. Feature Extraction:
    • The retrieved audio clips are processed through a pre-trained AudioMAE (Masked Autoencoder) to extract acoustic features.
  3. The retrieved text captions are processed through a T5 language model to extract high-level semantic features.
  4. Conditioning the LDM: These extracted features (acoustic and textual) are fed into the Latent Diffusion Model (LDM) via cross-attention layers. This allows the model to use the retrieved pairs as "anchors" or templates to guide the generation of the new audio clip.

Finally, a VAE decoder and a HiFi-GAN vocoder are used to reconstruct the final waveform from the latent representation.

Datasets

  • AudioCaps: The primary dataset used for training and evaluation, containing roughly 46,000 ten-second audio clips with human-annotated captions.
  • AudioSet: Mentioned in the context of baseline models (like AudioGen and AudioLDM) which were pre-trained on this much larger, though noisier, dataset.

Key Insights and Ideas

  • Retrieval as a "Cheat Sheet": The core insight is that the model doesn't need to memorize every rare sound if it can "look up" similar examples at inference time. This effectively provides the model with the necessary acoustic "DNA" for rare events that it might have missed during standard training.
  • The Power of Paired Information: An important finding in their ablation study was that retrieving both audio and text features is significantly better than retrieving audio alone. The text features help the model understand the relationship between different sound events in a complex scene (e.g., the sequence of "popping" followed by "laughing").
  • Stability Across Frequencies: Unlike baseline models, whose performance drops sharply as sound events become rarer, Re-AudioLDM maintains a much more stable performance (measured by CLAP score) across the entire frequency spectrum, including zero-shot (unseen) entities.

Key Results

  • State-of-the-Art Performance: Re-AudioLDM achieved an FAD score of 1.37 on AudioCaps, outperforming the previous best model (Tango) which sat at 1.68.
  • Qualitative Improvement: In a prompt like "A man is talking then pops the champagne and laughs," baseline models often only generated the "man talking" part. Re-AudioLDM successfully generated all three distinct events in the correct semantic order.
  • Efficiency vs. Quality: The authors found that performance improves as the number of retrieved pairs ($k$) increases, but plateaus around $k=5$ to $k=10$, allowing for a balance between computational cost and generation quality.

Limitations and Future Work

  • Database Dependency: The model's performance is inherently tied to the quality and diversity of the retrieval database. If the database doesn't contain anything remotely similar to the prompt, the retrieval benefit may diminish.
  • Computational Overhead: Adding a retrieval step and processing multiple extra features (AudioMAE and T5) increases the computational cost during both training and inference compared to "vanilla" diffusion models.
  • Future Directions: The authors plan to explore using much larger external datasets for retrieval and testing the framework's robustness on more diverse downstream tasks, such as zero-shot generation in entirely new domains.

Summary updated

BibTeX
@inproceedings{yuan2024retrieval,
  author = {Yi Yuan and Haohe Liu and Xubo Liu and Qiushi Huang and Mark D. Plumbley and Wenwu Wang},
  title = {{Retrieval-Augmented Text-to-Audio Generation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10447898},
}
Figure