Abstract
We introduce Diffusion-based Audio Captioning (DAC), a non-autoregressive diffusion model tailored for diverse and efficient audio captioning. Although existing captioning models relying on language backbones have achieved remarkable success in various captioning tasks, their insufficient performance in terms of generation speed and diversity impedes progress in audio understanding and multimedia applications. Our diffusion-based framework offers unique advantages stemming from its inherent stochasticity and holistic context modeling in captioning. Through rigorous evaluation, we demonstrate that DAC not only achieves superior performance levels compared to existing benchmarks in the caption quality, but also significantly outperforms them in terms of generation speed and diversity.
Introduction
The field of audio captioning has traditionally been dominated by Autoregressive (AR) architectures. These models generate descriptions token-by-token, which, while effective for linguistic coherence, introduces significant bottlenecks. Specifically, AR models suffer from low generation efficiency—especially when paired with large-scale language models—and a lack of diversity, often converging on generic or repetitive descriptions. Furthermore, these models are prone to "hallucinations," where they describe sounds not present in the audio due to a lack of holistic context.
To address these challenges, we propose Diffusion-based Audio Captioning (DAC). By utilizing a non-autoregressive diffusion process, DAC captures the global context of an audio clip while maintaining high generation speeds and linguistic variety.
Methodology
DAC is a pure Non-Autoregressive (NAR) diffusion model that operates in a continuous latent space. Instead of sequential prediction, the model starts with Gaussian noise and iteratively refines it into a coherent text embedding.
The architecture consists of several key components:
- Audio Encoding: Pre-trained encoders like BEATs or HTSAT extract features from Mel Spectrograms.
- Text Latent Space: DAC maps text to a continuous embedding space using BERT, facilitating the diffusion process.
- Diffusion Backbone: The denoising process is handled by modern transformer architectures, specifically UViT or DiT.
- Conditioning: Audio features are integrated via cross-attention, ensuring the generated text remains grounded in the input signal.
- Classifier-Free Guidance: This technique is employed during inference to enhance the alignment between the generated caption and the audio input.
Experimental Setup
The models were primarily evaluated on the AudioCaps dataset. To improve the model's linguistic capabilities, we implemented a large-scale pre-training regimen using the Wavcaps and Audioset datasets, totaling over 2 million training instances. This pre-training proved essential, as diffusion models require substantial data to master complex language modeling tasks.
Results and Discussion
Our evaluation focused on three primary axes: quality, diversity, and efficiency.
Caption Quality
DAC variants, particularly those utilizing BEATs encoders and DiT backbones with pre-training (pt), achieved competitive results against state-of-the-art (SOTA) baselines. As shown in the table below, DAC matches or exceeds many established AR models in metrics like BLEU and SPIDEr.
Diversity and Efficiency
A standout feature of DAC is its ability to produce diverse captions. By leveraging the inherent stochasticity of the diffusion process, DAC avoids the "monotony trap" of AR models, achieving a high Distinct-1 score of 0.102.
In terms of efficiency, DAC's non-autoregressive nature allows for parallel generation, reaching speeds of 60.23 Tokens Per Second (TPS). This is significantly faster than LLM-based competitors like Audio-Flamingo (12.99 TPS) and Qwen-audio (23.12 TPS), making it highly suitable for real-time applications.
Semantic Alignment
Interestingly, while traditional metrics like BLEU focus on exact word matches, semantic metrics such as CLAP and BERT-score reveal that DAC's captions are often more contextually accurate. GPT-4 based evaluations further confirmed that DAC's outputs are perceived as more meaningful and accurate by human-like evaluators compared to many traditional models.
Conclusion
DAC represents a significant step forward in audio captioning by balancing quality, diversity, and speed. While the model's performance is currently sensitive to the size of the training corpus—requiring large-scale pre-training to reach its full potential—it offers a compelling alternative to autoregressive systems. Future research will focus on optimizing the transition from continuous latents to discrete tokens and extending the framework to more complex multimodal tasks.
Summary updated