Prefix Tuning for Automated Audio Captioning

Minkyu Kim, Kim Sung-Bin, Tae-Hyun Oh

Introduction

Automated Audio Captioning (AAC) is the task of generating descriptive natural language for environmental soundscapes, such as "a dog barks while a car passes by." Unlike speech recognition, which focuses on transcribing spoken words, AAC requires a model to interpret complex, often overlapping acoustic events and translate them into coherent sentences.

The primary challenge in AAC is data scarcity. While image captioning datasets like MS-COCO contain nearly a million captions, standard audio benchmarks like AudioCaps and Clotho are significantly smaller, containing roughly 50,000 and 5,000 clips respectively. Consequently, traditional encoder-decoder models often utilize "shallow" decoders that overfit to these small training sets, leading to poor generalization when encountering sounds or vocabulary outside their specific training distribution.

Methodology: The Prefix-Tuning Approach

To address the data bottleneck, this research introduces a module-based architecture centered on Prefix Tuning, a technique originally developed for Natural Language Processing. The architecture consists of three primary components:

  1. Audio Encoder: The system utilizes a pre-trained PANN (Large-scale Pre-trained Audio Neural Network) with a 14-layer CNN. This encoder is responsible for extracting both global features (providing overall context) and temporal features (capturing how the sound evolves over time).
  2. Mapping Networks: This component serves as the bridge between modalities. Since a language model cannot natively interpret raw audio vectors, these networks—employing a CNN-Transformer design—translate audio features into a sequence of continuous vectors known as prefixes.
  3. Frozen Language Model (GPT-2): Instead of training a language decoder from scratch, the authors leverage a pre-trained GPT-2. Crucially, the weights of GPT-2 remain frozen during the training process. Gradients are back-propagated through the language model to update the encoder and mapping networks, but the internal linguistic knowledge of GPT-2 is preserved. This prevents the model from "forgetting" general English structure while learning to describe audio.

Experimental Setup and Datasets

The model was evaluated on the two most prominent benchmarks in the AAC field:

  • AudioCaps: Approximately 50,000 10-second audio clips sourced from YouTube, each paired with one training caption.
  • Clotho: Approximately 5,000 audio clips (15 to 30 seconds long) with five captions each, characterized by a more diverse and complex vocabulary.

Beyond standard performance, the authors emphasized cross-dataset generalization (e.g., training on AudioCaps and testing on Clotho). This provides a more rigorous and realistic assessment of a model's ability to handle out-of-distribution data.

Key Insights and Results

The Power of Freezing

By keeping the language model frozen, the authors successfully mitigated the "catastrophic forgetting" typically observed when fine-tuning large models on small datasets. The model is forced to learn how to map audio features into the existing linguistic space of GPT-2, rather than simply memorizing the limited labels of the training set.

Bridging the Modality Gap

The mapping network acts as a translator, transforming audio data into a "prompt" that GPT-2 processes as if it were text. Ablation studies demonstrated that utilizing both temporal and global features is essential; without the mapping network to organize these features, performance dropped significantly.

Performance Metrics

The proposed method achieved State-of-the-Art (SOTA) performance across nearly all standard metrics, including BLEU, CIDEr, and SPIDEr, on both Clotho and AudioCaps. Its strength in generalization was particularly notable: in the cross-dataset scenario (AudioCaps to Clotho), the model achieved a CIDEr score of 0.192, nearly doubling the performance of several competing models.

Limitations and Future Directions

Despite its success, the model faces a vocabulary mismatch between GPT-2’s general-purpose training and the technical descriptions found in specific audio datasets. To address this, the authors occasionally used a small trainable "header" to map outputs to specific vocabularies.

Future work may involve incorporating visual data (video) to provide further grounding for audio-text pairs or leveraging larger pseudo-labeled datasets to improve the mapping network's robustness. Additionally, the researchers aim to move toward dense captioning, which involves describing multiple chronological events within a single long audio file rather than providing a single summary.

Summary updated

BibTeX
@inproceedings{kim2023prefix,
  author = {Minkyu Kim and Kim Sung-Bin and Tae-Hyun Oh},
  title = {{Prefix Tuning for Automated Audio Captioning}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=Xmq1dWlmZx},
}
Figure