[Paper Review] Multi-task Regularization Based on Infrequent Classes for Audio Captioning
This paper proposes a multi-task regularization approach for audio captioning that addresses class imbalance by weighting loss inversely to word frequency and introducing a side task for clip-level content word detection. Using the Clotho dataset, the method achieves a 37% relative improvement on the SPIDEr metric over the baseline, demonstrating enhanced learning of informative content words while reducing overfitting to function words.
Audio captioning is a multi-modal task, focusing on using natural language for describing the contents of general audio. Most audio captioning methods are based on deep neural networks, employing an encoder-decoder scheme and a dataset with audio clips and corresponding natural language descriptions (i.e. captions). A significant challenge for audio captioning is the distribution of words in the captions: some words are very frequent but acoustically non-informative, i.e. the function words (e.g. "a", "the"), and other words are infrequent but informative, i.e. the content words (e.g. adjectives, nouns). In this paper we propose two methods to mitigate this class imbalance problem. First, in an autoencoder setting for audio captioning, we weigh each word's contribution to the training loss inversely proportional to its number of occurrences in the whole dataset. Secondly, in addition to multi-class, word-level audio captioning task, we define a multi-label side task based on clip-level content word detection by training a separate decoder. We use the loss from the second task to regularize the jointly trained encoder for the audio captioning task. We evaluate our method using Clotho, a recently published, wide-scale audio captioning dataset, and our results show an increase of 37\% relative improvement with SPIDEr metric over the baseline method.
Motivation & Objective
- To address class imbalance in audio captioning where frequent function words dominate training loss, hindering learning of informative content words.
- To improve model generalization by incorporating a side task focused on detecting content words at the clip level.
- To enhance representation learning in the audio encoder by leveraging multi-task learning with a content word detection head.
- To evaluate the effectiveness of loss weighting and multi-task regularization on the DCASE 2020 Clotho benchmark.
- To produce more semantically accurate captions by prioritizing acoustically informative content words over function words.
Proposed method
- The model uses a sequence-to-sequence autoencoder with a bidirectional GRU encoder and GRU decoder, processing log-mel spectrograms with 64 bands.
- A word-level captioning task is regularized by weighting the cross-entropy loss inversely proportional to each word’s frequency in the dataset.
- A separate multi-label content word detection head is trained in parallel, predicting presence of content words per audio clip using a dedicated decoder and classifier.
- The loss from the content word detection task is used to regularize the shared encoder, improving its ability to capture discriminative audio features.
- The joint training process optimizes both the captioning and content word detection objectives simultaneously, with shared encoder parameters.
- Hyperparameters are kept consistent with the baseline for fair comparison, including 32 batch size, Adam optimizer with 1e-4 initial LR, and early stopping after 100 epochs of no improvement.
Experimental results
Research questions
- RQ1Can inverse frequency weighting of word-level loss improve learning of rare but informative content words in audio captioning?
- RQ2Does introducing a multi-label content word detection side task enhance the encoder’s representation for audio captioning?
- RQ3To what extent does multi-task regularization based on infrequent classes improve captioning performance on the Clotho dataset?
- RQ4How does the combination of loss weighting and side task supervision affect grammatical correctness and semantic richness of generated captions?
- RQ5Can the proposed method reduce overfitting to function words while maintaining or improving overall caption quality?
Key findings
- The proposed method, CWR-WL-CAPS, achieves a 37% relative improvement on the SPIDEr metric compared to the baseline, with a score of 7.4 versus 5.4.
- The method improves all major metrics: CIDEr increases from 7.4 to 10.7, SPICE from 3.3 to 4.0, and BLEU-1 from 38.9 to 40.9.
- The addition of weighted loss (CWR-CAPS) already improves performance over the baseline, indicating that frequency-based loss reweighting is beneficial.
- The multi-task regularization with content word detection provides a larger gain than loss weighting alone, especially in CIDEr, which is sensitive to TF-IDF weighting.
- Despite improvements, generated captions still lack proper grammatical structure, with function words like 'is', 'are', and 'and' appearing repetitively at sentence ends.
- The authors identify the need for future integration of language models to improve syntactic quality, suggesting this as a key direction for follow-up work.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.