Automated Audio Captioning with Epochal Difficult Captions for curriculum learning

Andrew Koh, Soham Tiwari, Eng Siong Chng2022

Introduction

Automated Audio Captioning (AAC) involves generating descriptive natural language sentences for audio signals. This task is inherently challenging as it requires a model to bridge the gap between low-level acoustic features and high-level semantic concepts. Traditional approaches often rely on "keyword estimation" as an intermediate step, where models are first trained to predict specific tags before generating full sentences. However, this requires significant preprocessing and lacks a standardized extraction method.

This paper introduces Epochal Difficult Captions (EDC), a curriculum learning strategy designed to simplify the training process by gradually increasing the complexity of target captions without requiring additional architectural changes or preprocessing overhead.

Methodology: Epochal Difficult Captions

The core idea of EDC is to modify the training targets based on the current epoch. The difficulty level, $D$, is calculated using an exponential function that scales from 0 to 1 over the course of training.

During early epochs (low $D$), the algorithm identifies common "stopwords" (e.g., the, is, at) using the NLTK library. The probability of removing a stopword from a training target is $(1 - D)$. Consequently, early training focuses on "difficult" content words—primarily nouns and verbs—forcing the model to prioritize identifying core audio events. As $D$ increases, these stopwords are gradually reintroduced, allowing the model to learn the syntactic scaffolding necessary for grammatically correct sentences.

Experimental Framework

The researchers evaluated EDC using the Clotho Dataset v2.1, which contains 6,974 audio samples with human-annotated captions. The curriculum was tested on two distinct CNN-Transformer architectures, referred to as System 1 and System 2.

The architectures for System 1 and System 2 utilize a CNN-Transformer encoder-decoder structure to map audio to text.

System 1 and System 2 both utilize PANNs (Pre-trained Audio Neural Networks) as encoders. System 1 uses a Word2Vec embedding for the decoder input, while System 2 employs a standard word embedding layer. The models were trained using both standard Cross-Entropy loss and Reinforcement Learning (Self-Critical Sequence Training).

Results and Discussion

The implementation of EDC led to consistent performance gains across nearly all evaluation metrics. The most significant improvements were observed in the SPIDEr score, a comprehensive metric that combines CIDEr and SPICE to measure both fluency and semantic accuracy.

Performance comparison of System 1 and System 2 with and without the EDC stopword curriculum across various metrics.

As shown in the results table, System 2 saw a notable jump in SPIDEr from 0.235 to 0.248 when trained with cross-entropy and the EDC curriculum. System 1, when optimized with reinforcement learning, improved its SPIDEr score from 0.278 to 0.284. These results suggest that focusing on semantic content words early in training helps the encoder better map audio patterns to labels before the decoder masters sentence structure.

Conclusion

Epochal Difficult Captions provide a standardized, reproducible method for curriculum learning in AAC. By evolving training targets from keywords to full sentences, the approach offers a "free" performance boost with zero computational overhead during inference. This method avoids the complexities of manual keyword extraction and demonstrates that strategic scheduling of training data can significantly enhance cross-modal model performance.

Summary updated

Abstract

In this paper, we propose an algorithm, Epochal Difficult Captions, to supplement the training of any model for the Automated Audio Captioning task. Epochal Difficult Captions is an elegant evolution to the keyword estimation task that previous work have used to train the encoder of the AAC model. Epochal Difficult Captions modifies the target captions based on a curriculum and a difficulty level determined as a function of current epoch. Epochal Difficult Captions can be used with any model architecture and is a lightweight function that does not increase training time. We test our results on three systems and show that using Epochal Difficult Captions consistently improves performance by up to 0.013 SPIDEr score.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Clotho v2.1 · Clotho Dataset v2.1Epochal Difficult Captions (System 1 - cross entropy + stopwords)SPIDEr0.253epochs=30 · beam-size=3 · curriculum=stopwords
Source quote
L110: System 1 - cross entropy + stopwords │ 0.558 │ 0.362 │ 0.242 │ 0.159 │ 0.170 │ 0.375 │ 0.391 │ 0.115 │ 0.253
Clotho v2.1 · Clotho Dataset v2.1Epochal Difficult Captions (System 1 - scst + stopwords)SPIDEr0.284+0.01 vs baselinebeam-size=3 · curriculum=stopwords · scst-epochs=60 · cross-entropy-epochs=30
Source quote
L112: System 1 - scst + stopwords │ 0.642 │ 0.409 │ 0.272 │ 0.172 │ 0.182 │ 0.402 │ 0.444 │ 0.124 │ 0.284
Clotho v2.1 · Clotho Dataset v2.1Epochal Difficult Captions (System 2 - cross entropy + stopwords)SPIDEr0.248epochs=100 · beam-size=4 · curriculum=stopwords
Source quote
L114: System 2 - cross entropy + stopwords │ 0.558 │ 0.376 │ 0.258 │ 0.172 │ 0.167 │ 0.376 │ 0.381 │ 0.115 │ 0.248
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
Clotho v2.1 · Clotho Dataset v2.1System 1 - cross entropy baselineSPIDEr0.249epochs=30 · beam-size=3
Source quote
L109: Model │ BLEU\textsubscript{1} │ BLEU\textsubscript{2} │ BLEU\textsubscript{3} │ BLEU\textsubscript{4} │ ROUGE\textsubscript{L} │ METEOR │ CIDEr │ SPICE │ SPIDEr System 1 - cross entropy │ 0.559 │ 0.358 │ 0.237 │ 0.153 │ 0.169 │ 0.374 │ 0.382 │ 0.116 │ 0.249
Clotho v2.1 · Clotho Dataset v2.1System 1 - scst baselineSPIDEr0.278beam-size=3 · scst-epochs=60 · cross-entropy-epochs=30
Source quote
L111: System 1 - scst │ 0.641 │ 0.417 │ 0.277 │ 0.174 │ 0.182 │ 0.407 │ 0.432 │ 0.124 │ 0.278
Clotho v2.1 · Clotho Dataset v2.1System 2 - cross entropy baselineSPIDEr0.235epochs=100 · beam-size=4
Source quote
L113: System 2 - cross entropy │ 0.553 │ 0.367 │ 0.248 │ 0.160 │ 0.162 │ 0.372 │ 0.359 │ 0.111 │ 0.235
BibTeX
@misc{koh2022automated,
  author = {Andrew Koh and Soham Tiwari and Eng Siong Chng},
  title = {{Automated Audio Captioning with Epochal Difficult Captions for curriculum learning}},
  year = {2022},
  eprint = {2206.01918},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.01918},
}
Figure