EnCLAP++: Analyzing the EnCLAP Framework for Optimizing Automated Audio Captioning Performance

Jaeyeon Kim, Minjeong Jeon, Jaeyoon Jung, Sang Hoon Woo, Jinjoo LeearXiv 2024

Abstract

In this work, we aim to analyze and optimize the EnCLAP framework, a state-of-the-art model in automated audio captioning. We investigate the impact of modifying the acoustic encoder components, explore pretraining with different dataset scales, and study the effectiveness of a reranking scheme. Through extensive experimentation and quantitative analysis of generated captions, we develop EnCLAP++, an enhanced version that significantly surpasses the original.

Introduction

Automated Audio Captioning (AAC) involves generating natural language descriptions for audio signals, such as "A car engine revs followed by tires screeching on pavement." This task is inherently challenging due to the overlapping nature of audio events and the ambiguity of soundscapes, which often require significant world knowledge to interpret correctly.

A primary hurdle in AAC is the scarcity of high-quality labeled data. Benchmarks like AudioCaps and Clotho contain only tens of thousands of samples, a fraction of what is available for image or text tasks in computer vision or NLP. This data sparsity leads to two critical issues: overfitting in large-scale models and the production of "safe" but generic captions via standard decoding methods like beam search. To address these challenges, we present EnCLAP++, an optimized framework that leverages improved acoustic embeddings, large-scale pretraining, and a novel reranking strategy.

Methodology

The EnCLAP++ framework builds upon the original EnCLAP architecture, which utilizes a pretrained BART encoder-decoder model. Our enhancements focus on three key technical areas:

1. Timestep-level Acoustic Embedding with DAC

The original EnCLAP used EnCodec for acoustic representations. We replaced this with the Descript Audio Codec (DAC), a high-fidelity neural audio codec. By compressing audio into discrete codebooks more effectively, DAC preserves more signal information, providing the language model with a richer "vocabulary" of acoustic tokens. This swap provided a consistent boost across all evaluation metrics.

2. Large-Scale Weakly-Labeled Pretraining

To mitigate overfitting in larger model variants (e.g., BART-large), we introduced a pretraining phase using WavCaps, a massive dataset containing approximately 400,000 weakly-labeled audio clips. This pretraining provides the model with a broader range of sound-text associations before fine-tuning on smaller, high-quality datasets like Clotho or AudioCaps.

3. Hybrid Reranking Strategy

Standard beam search often prioritizes high-probability but uninformative sequences. We implemented a hybrid reranking scheme using nucleus sampling to generate 30 candidate captions. These candidates are then scored based on a combination of an Encoder Score (cosine similarity between audio and text via a CLAP retriever) and a Decoder Score (log-likelihood from the BART model).

The EnCLAP++ architecture, showcasing the integration of DAC, BART, and the hybrid reranking module.

Experimental Results

We evaluated EnCLAP++ on the Clotho and AudioCaps datasets, focusing on metrics like SPIDEr (a combination of CIDEr for syntax and SPICE for semantics).

Quantitative Performance

Our ablation studies demonstrate that each component of the "++" enhancement contributes significantly to performance. On the Clotho dataset, the integration of DAC and hybrid reranking pushed the SPIDEr score to 0.310, a notable improvement over the base EnCLAP's 0.294.

Ablation study of EnCLAP++ components on the Clotho dataset, highlighting the impact of DAC, pretraining, and reranking.

On the AudioCaps benchmark, the "Large" variant of EnCLAP++ achieved a CIDEr score of 0.823, outperforming other state-of-the-art models such as CoNeTTE and WavCaps. These refinements also propelled the model to a 2nd place finish in the DCASE 2024 Challenge (Task 6), where it particularly excelled in semantic accuracy metrics like METEOR and SPICE.

Key Insights

The results confirm that the choice of audio codec is critical; the higher resolution of DAC tokens directly improves the language model's scene understanding. Furthermore, the hybrid reranking approach successfully encourages the inclusion of supplementary acoustic details—such as background birds chirping—that are typically lost during standard beam search. Finally, the use of WavCaps for pretraining proved essential for scaling, allowing the "Large" model to finally outperform the "Base" version by preventing early overfitting.

Conclusion

EnCLAP++ demonstrates that state-of-the-art audio captioning can be significantly improved through better acoustic discretization, large-scale pretraining, and sophisticated decoding strategies. While the current framework is highly effective, future research will explore the integration of even larger Large Language Models (LLMs) to better resolve complex, overlapping acoustic scenes through enhanced reasoning capabilities.

Summary updated

BibTeX
@misc{kim2024enclap,
  author = {Jaeyeon Kim and Minjeong Jeon and Jaeyoon Jung and Sang Hoon Woo and Jinjoo Lee},
  title = {{EnCLAP++: Analyzing the EnCLAP Framework for Optimizing Automated Audio Captioning Performance}},
  year = {2024},
  eprint = {2409.01201},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.01201},
}
Figure