Introduction
Audio captioning is the task of generating natural language descriptions for environmental sounds, such as "a car braking" or "birds chirping." Unlike speech-to-text, which focuses on linguistic content, audio captioning requires a model to interpret complex acoustic scenes and human actions. Traditionally, this has relied on large-scale supervised datasets, which limits a model's ability to generalize to novel sounds.
Presented at the NeurIPS 2023 ML for Audio Workshop, ZerAuCap is a training-free framework designed to overcome these limitations. By leveraging the extensive "world knowledge" embedded in Large Language Models (LLMs) and the cross-modal alignment of audio-language models, ZerAuCap generates high-quality audio descriptions without any task-specific fine-tuning.
The ZerAuCap Framework
The ZerAuCap framework operates by guiding a pre-trained LLM (specifically OPT-1.3B) using a pre-trained audio-language model (WavCaps). The process consists of two primary stages:
1. Zero-shot Keyword Selection
The system begins with a predefined list of 614 keywords derived from AudioSet. The audio-language model encodes both the input audio and the keyword list into a shared embedding space. It then identifies the top-$l$ keywords (typically two) that are most semantically similar to the audio. These keywords are then used to construct a text prompt, such as "OBJECTS: [keywords]. THIS IS A SOUND OF", which provides the LLM with essential context about the acoustic scene.
2. Audio-Relevancy Guiding
During the generation phase, the LLM predicts the next token based on both its internal linguistic knowledge and external audio guidance. For each potential candidate token, the audio-language model calculates a "fitness score" by evaluating how well the entire generated sequence (including the candidate) matches the original audio signal.
The final selection for each token is determined by a weighted sum of the LLM’s linguistic probability and the audio-text matching score. This dual-guidance mechanism ensures that the resulting caption is both grammatically fluent and acoustically accurate.
Experimental Evaluation
The authors evaluated ZerAuCap on two benchmark datasets:
- AudioCaps: A large-scale dataset of YouTube clips with human-annotated captions.
- Clotho: A diverse dataset featuring nature and machinery sounds. Notably, this work establishes a new zero-shot benchmark for Clotho, as previous research in this area had focused almost exclusively on AudioCaps.
Key Results and Ablation Analysis
ZerAuCap achieved a new state-of-the-art (SOTA) for zero-shot audio captioning. On the AudioCaps dataset, it reached a METEOR score of 12.3 and a CIDEr score of 28.1, significantly outperforming previous optimization-based methods.
The ablation studies (shown in the table above) provide crucial insights into the framework's components:
- The Power of Keywords: Removing the keyword selection step caused the CIDEr score on AudioCaps to drop from 28.1 to 2.5. This demonstrates that providing the LLM with a "hint" about the objects present is vital for grounding the generation process.
- Efficiency: Unlike prior zero-shot methods that require iterative optimization of the LLM's internal states—a computationally expensive process—ZerAuCap’s token-level re-weighting is faster and more effective.
Conclusion and Future Directions
ZerAuCap demonstrates that LLMs already possess a vast internal map of how objects and sounds relate. By providing "shallow" guidance through keywords and token re-weighting, we can effectively steer this knowledge toward accurate audio interpretation without the need for massive supervised training.
While successful, the model occasionally produces captions that are accurate but lack fine-grained detail. Future work could involve expanding the keyword vocabulary beyond the fixed AudioSet list or scaling the framework to larger LLMs (such as Llama 3) to capture more nuanced acoustic details.
Reference: Salewski, L., Fauth, S., Koepke, A. S., & Akata, Z. (2023). Zero-shot audio captioning with audio-language model guidance and audio context keywords. 37th Conference on Neural Information Processing Systems (NeurIPS 2023).
Summary updated