TL;DR
Audio captioning models often struggle because they over-focus on common, uninformative words like "the" or "a." This paper introduces a multi-task learning framework and frequency-based loss weighting to force models to prioritize rare but descriptive "content words," resulting in a massive 37% performance boost on the Clotho dataset.
What Problem Does This Paper Address?
Imagine trying to describe a soundscape. You’d likely say something like "a bell rings three times." In this sentence, "bell," "rings," and "three" are the content words—they carry the actual information about the audio. Words like "a" and "in" are function words—they are grammatically necessary but acoustically useless.
The problem is that in natural language datasets, function words appear far more frequently than content words. Standard machine learning models, which try to minimize their total error, naturally gravitate toward getting the frequent words right while ignoring the rare ones. For audio captioning, this means the model might get very good at predicting "the" but fail to identify the "chirp" of a bird. The authors aim to fix this "class imbalance" so that models learn to map specific acoustic features to the meaningful words that actually describe them.
Methods
The authors propose a sequence-to-sequence (seq2seq) architecture based on Gated Recurrent Units (GRUs) with two key innovations:
- Inverse Frequency Loss Weighting: Instead of treating every word's error equally, the model weighs the loss for each word inversely to how often it appears in the dataset. If a word is rare (like "flapping"), the model is penalized more heavily for missing it than for missing a common word (like "the").
- Multi-task Regularization (CWR): The system uses a shared encoder but splits into two separate decoders during training.
- The Caption Decoder performs the standard task of generating a sequence of words.
- The Content Word Decoder acts as a "side-task." It performs multi-label classification to detect which content words (nouns, verbs, adjectives) are present anywhere in the audio clip, regardless of their order.
This second task acts as a regularizer, forcing the encoder to produce internal representations that are rich in information about the actual sound events.
Datasets
The researchers used Clotho, a comprehensive audio captioning dataset. Clotho contains roughly 5,000 audio clips (15–30 seconds long) from FreeSound, each annotated with five different human-written captions. It is specifically designed to be diverse and robust, making it a challenging benchmark for the DCASE 2020 challenge.
Key Insights and Ideas
- Regularization via Detection: By adding the content word detection task, the authors ensure the encoder doesn't "forget" the actual audio events while trying to satisfy the grammatical requirements of the captioning task.
- Synergy with Metrics: Evaluation metrics like CIDEr already use TF-IDF weighting, which prioritizes rare words. By incorporating similar logic into the training loss (via inverse frequency weighting), the authors effectively align the model's training objective with its final evaluation criteria.
- The 10% Signal: The authors found that the loss from the content word detection task was consistently about 10% of the total captioning loss. This was enough to guide the encoder without overwhelming the primary goal of generating readable sentences.
Key Results
The proposed method, CWR-WL-CAPS (Content Word Regularization with Weighted Loss), significantly outperformed the baseline across all metrics.
- SPIDEr Score: The model achieved a 37% relative improvement (from 5.4 to 7.4) over the baseline.
- CIDEr Score: This metric saw the most dramatic jump, increasing from 7.4 to 10.7. This confirms that the model became much better at capturing the specific, rare content words that human evaluators (and CIDEr) care about.
Limitations and Future Work
Despite the improvements in identifying content, the authors admit that the generated captions still struggle with grammatical structure. Because the model focuses so heavily on mapping sounds to words, it sometimes produces repetitive or ungrammatical sequences (e.g., repeating "is" or "and" at the end of a sentence).
The authors suggest that future work should involve integrating external language models and using decoding strategies like beam search. This would provide a "language prior" to help the model arrange its newly-found content words into more natural, human-like sentences.
Summary updated