[Paper Review] A Whisper transformer for audio captioning trained with synthetic captions and transfer learning
This paper proposes a fine-tuned Whisper transformer for audio captioning, leveraging synthetic captions from AudioSet and transfer learning from pretrained speech-to-text models. By pretraining on a mixture of synthetic AudioSet captions, AudioCaps, and Clotho, and finetuning on Clotho with layer freezing, the approach achieves state-of-the-art performance, with the largest model (whisper-large-v2) attaining a SPIDEr score of 0.2794 on the Clotho dev-eval set.
The field of audio captioning has seen significant advancements in recent years, driven by the availability of large-scale audio datasets and advancements in deep learning techniques. In this technical report, we present our approach to audio captioning, focusing on the use of a pretrained speech-to-text Whisper model and pretraining on synthetic captions. We discuss our training procedures and present our experiments' results, which include model size variations, dataset mixtures, and other hyperparameters. Our findings demonstrate the impact of different training strategies on the performance of the audio captioning model. Our code and trained models are publicly available on GitHub and Hugging Face Hub.
Motivation & Objective
- To improve audio captioning performance using transfer learning from a pretrained speech-to-text model.
- To investigate the effectiveness of synthetic captions derived from AudioSet labels for pretraining audio captioning models.
- To evaluate the impact of model size, dataset mixture ratios, and regularization strategies on captioning performance.
- To explore data scaling and stronger supervision for future improvements in audio captioning.
Proposed method
- Fine-tuned a pretrained Whisper encoder-decoder transformer on audio captioning using synthetic captions from AudioSet and human-annotated captions from AudioCaps and Clotho.
- Generated synthetic captions by traversing the AudioSet hierarchical ontology, mapping labels to natural language descriptions with parent class prefixes.
- Preprocessed audio to 16 kHz and converted to log-mel spectrograms using the WhisperFeatureExtractor with original Whisper hyperparameters.
- Used a dual prefix strategy: a standard Whisper prefix for task and language, plus a custom prefix indicating dataset and captioning task (caption vs keywords).
- Applied beam search decoding with 5 beams as the optimal decoding strategy across all model sizes.
- Employed layer freezing during finetuning, specifically freezing all feed-forward layers (fc1) to prevent overfitting on the smaller Clotho dataset.
Experimental results
Research questions
- RQ1How does pretraining on synthetic captions from AudioSet impact audio captioning performance compared to finetuning alone?
- RQ2What is the optimal mixture ratio of synthetic (AudioSet) and human-annotated (AudioCaps, Clotho) data during pretraining?
- RQ3How does model size influence performance on the audio captioning task?
- RQ4Which regularization strategy—weight decay, dropout, or layer freezing—yields the best generalization on the Clotho dataset?
- RQ5Can temporally strong supervision from datasets like AudioSet Strong further improve captioning quality when used in synthetic caption generation?
Key findings
- The largest model, whisper-large-v2, achieved the highest performance with a SPIDEr score of 0.2794 on the Clotho development-evaluation split.
- Pretraining on a mixture of synthetic AudioSet captions, AudioCaps, and Clotho (12:3:1) significantly improved performance over finetuning alone.
- Beam search with 5 beams outperformed greedy and higher-beam strategies, with the highest SPIDEr scores across all model sizes.
- Layer freezing during finetuning proved more effective than weight decay or dropout in preventing overfitting on the smaller Clotho dataset.
- A higher emphasis on the large synthetic dataset (AudioSet subset) during pretraining helped mitigate overfitting and improved generalization.
- The model achieved a SacreBLEU score of 16.50 and CIDEr score of 0.4331 on the Clotho dev-eval set, demonstrating strong performance across multiple metrics.
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.