Recap: Retrieval-Augmented Audio Captioning

Sreyan Ghosh, Sonal Kumar, Chandra Kiran Reddy Evuru, Ramani Duraiswami, Dinesh Manocha

TL;DR

RECAP (REtrieval-Augmented Audio CAPtioning) is a novel system that describes audio by "looking up" similar captions from a massive text datastore to guide its generation. By combining the multimodal powers of CLAP and GPT-2, it significantly outperforms existing models in describing complex, multi-event sounds and handling "out-of-domain" audio it wasn't specifically trained on.

What Problem Does This Paper Address?

Automated Audio Captioning (AAC) involves translating environmental sounds—like a jackhammer at a construction site or a cat meowing over a conversation—into natural language.

The field faces two major hurdles:

  1. Domain Shift: A model trained on city sounds (like the AudioCaps dataset) often fails miserably when asked to describe nature sounds (like the Clotho dataset).
  2. Novel Concepts: Standard models are "closed-book"—they can only describe sounds they explicitly saw during training. If a new sound emerges (e.g., a specific sound effect from a new video game), the model has no way to describe it without being retrained.

The authors argue that audio captioning is a "knowledge-intensive" task. To solve it, a model needs access to an external library of descriptions rather than relying solely on its internal weights.

Methods

The authors introduce RECAP, which leverages Retrieval-Augmented Generation (RAG) for audio. The architecture consists of three main components:

  1. Retrieval via CLAP: The system uses CLAP (Contrastive Language-Audio Pretraining), a model that maps audio and text into the same mathematical space. When a new audio clip comes in, RECAP searches a "datastore" (a large collection of text captions) to find the top $k$ (specifically $k=4$) captions that are most similar to the input audio.
  2. Prompt Construction: These retrieved captions are formatted into a natural language prompt: "Audios similar to this audio sounds like: [Caption 1], [Caption 2]... This audio sounds like:". This gives the language model a "hint" about the vocabulary and structure it should use.
  3. Conditioned Generation with GPT-2: The prompt is fed into a GPT-2 decoder. Crucially, the authors don't just rely on the text prompt; they also inject the actual audio features from the CLAP encoder into GPT-2 using newly added cross-attention layers.

Efficiency Note: To keep training fast and lightweight, the authors freeze the parameters of both CLAP and GPT-2. They only train the new cross-attention layers, which represent only 5.4% of the total model parameters.

Datasets

The model was evaluated on the two gold-standard AAC benchmarks:

  • Clotho: A dataset focused on diverse, everyday sounds.
  • AudioCaps: A larger dataset derived from YouTube clips.

New Contribution: The authors released 150,000+ new weakly labeled captions for AudioSet, AudioCaps, and Clotho. These were generated using GPT-4 and then manually corrected by experts to provide a richer datastore for retrieval.

Key Insights and Ideas

  • The Power of Text-Only Datastores: Unlike previous retrieval methods that required pairs of audio and text, RECAP only needs a datastore of text. This allows it to scale easily by simply adding more descriptive sentences to its library without needing the corresponding audio files.
  • Bridging the Domain Gap: When testing on a dataset the model wasn't trained on (out-of-domain), the retrieval mechanism acts as a bridge. Even if the model's internal weights don't "know" a sound, the retrieved captions provide the necessary context to describe it accurately.
  • Compositional Awareness: Standard models often fixate on one dominant sound. Because RECAP retrieves multiple similar captions, it "sees" different ways to describe the scene, helping it capture multiple simultaneous events (e.g., identifying both a "chisel cutting wood" and a "car passing by").

Key Results

  • Out-of-Domain Superiority: In the most challenging setup—training on AudioCaps and testing on Clotho—RECAP achieved a SPIDEr score of 0.209, nearly doubling the performance of the previous State-of-the-Art (SOTA) model (0.133).
  • In-Domain Performance: RECAP remains highly competitive with SOTA models even when the training and testing data come from the same source, proving that the retrieval process doesn't "confuse" the model.
  • Zero-Shot Capabilities: The model can describe "novel" audio events never seen during training simply by finding similar descriptions in its external datastore.

Limitations and Future Work

While RECAP is powerful, the authors note a few areas for improvement:

  • Retrieval Efficiency: As the datastore grows to millions of captions, finding the "nearest neighbors" becomes computationally expensive.
  • Alignment Quality: The system's success is heavily dependent on CLAP’s ability to accurately link audio to text. If the retrieval step fails, the prompt becomes "noise" that could mislead the decoder.
  • Future Directions: The team plans to explore more advanced retrieval techniques and build even more robust audio-text models to serve as the backbone for RECAP.

Summary updated

BibTeX
@inproceedings{ghosh2024recap,
  author = {Sreyan Ghosh and Sonal Kumar and Chandra Kiran Reddy Evuru and Ramani Duraiswami and Dinesh Manocha},
  title = {{Recap: Retrieval-Augmented Audio Captioning}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10448030},
}
Figure