Automated Audio Captioning with Weakly Supervised Pre-Training and Word Selection Methods

Qichen Han, Weiqiang Yuan, Dong Liu, Xiang Li, Zhen YangDCASE 2021

Introduction

Automated Audio Captioning (AAC) involves generating natural language descriptions for audio signals, a task analogous to image captioning but in the acoustic domain. Effective AAC requires a model to recognize sound events, identify acoustic scenes, and understand the temporal and semantic relationships between them. However, the field faces two significant challenges: data insufficiency, as high-quality human-annotated datasets like Clotho are relatively small, and word selection indeterminacy, where the vast variety of ways to describe a sound makes it difficult for models to learn consistent mappings.

Methodology

To address these challenges, researchers developed an encoder-decoder framework based on the Transformer architecture, utilizing three core strategies.

Three-Stage Training Pipeline

The system employs a hierarchical training approach to maximize the utility of available data:

  1. Pre-training: The decoder is trained while the encoder (a Pre-trained Audio Neural Network, or PANN) remains frozen, using a large-scale weakly labeled dataset.
  2. Training: Both the encoder and decoder are unfrozen and jointly trained on the combined dataset.
  3. Fine-tuning: The model is specialized using only the high-quality Clotho dataset.
The three-stage training pipeline: Pre-training, Training, and Finetuning.

Word Selection and Enhancement

To guide the model's vocabulary, the authors introduced "Similar Audio Searching." By finding the top 10 most similar clips in the training set for any given audio, the system extracts frequent keywords from their captions. These keywords are used in Keyword Enhancement (KD), where the log-likelihood of these words is boosted during generation. Additionally, a Tag Enhanced Decoder (TD) predicts high-level audio tags (e.g., "Animal") before generating the full sentence to ground the description.

Datasets

The study leverages several datasets to bridge the gap between small-scale high-quality data and large-scale noisy data:

  • Clotho v2: The primary target benchmark (~5,000 clips).
  • AudioCaps: A large-scale dataset (~51,000 pairs).
  • Weakly Labeled Dataset: A custom collection of 65,667 audios scraped from web sources (Freesound, Zapsplat, etc.) and cleaned using heuristic rules.
  • AudioSet: Used for initial PANN encoder training.

Results and Discussion

The proposed system achieved top performance in the DCASE 2021 Challenge Task 6. An ensemble of multiple architectures (CNN14, ResNet38, and Wavegram-Logmel CNN) reached a SPIDEr score of 0.318.

Ablation studies highlight the contribution of each component. Adding Keyword Enhancement (KD) to a pre-trained model significantly improved the SPIDEr score, demonstrating that guiding the word selection process is a viable strategy for generating more accurate captions.

Ablation study showing the performance gains from Pre-training (PE), Keyword Enhancement (KD), and other strategies.

The researchers found that their custom weakly labeled web data was more beneficial than the AudioCaps dataset, likely due to a closer distributional match with the Clotho dataset. However, the Tag Enhanced Decoder's performance remains sensitive to the accuracy of the upstream tagging model; errors in tag prediction can propagate to the final caption.

Conclusion

By combining massive weakly supervised pre-training with retrieval-augmented word selection, this work effectively mitigates the issues of data scarcity and linguistic ambiguity in audio captioning. Future research will focus on scaling pre-training and improving the robustness of external information integration.

Summary updated

BibTeX
@inproceedings{han2021automated,
  author = {Qichen Han and Weiqiang Yuan and Dong Liu and Xiang Li and Zhen Yang},
  title = {{Automated Audio Captioning with Weakly Supervised Pre-Training and Word Selection Methods}},
  booktitle = {DCASE},
  year = {2021},
}
Figure