Skip to main content
QUICK REVIEW

[Paper Review] Interactive Audio-text Representation for Automated Audio Captioning with Contrastive Learning

Chen Chen, Nana Hou|arXiv (Cornell University)|Mar 29, 2022
Music and Audio ProcessingComputer Science9 citations
TL;DR

This paper proposes CLIP-AAC, a novel automated audio captioning model that learns interactive cross-modal representations by jointly encoding audio and text via audio- and text-heads in a pre-trained encoder. By applying contrastive learning to align audio and text embeddings, CLIP-AAC achieves state-of-the-art performance on the Clotho dataset, outperforming strong baselines across all NLP metrics, with significant gains from both pre-training and contrastive fine-tuning.

ABSTRACT

Automated Audio captioning (AAC) is a cross-modal task that generates natural language to describe the content of input audio. Most prior works usually extract single-modality acoustic features and are therefore sub-optimal for the cross-modal decoding task. In this work, we propose a novel AAC system called CLIP-AAC to learn interactive cross-modality representation with both acoustic and textual information. Specifically, the proposed CLIP-AAC introduces an audio-head and a text-head in the pre-trained encoder to extract audio-text information. Furthermore, we also apply contrastive learning to narrow the domain difference by learning the correspondence between the audio signal and its paired captions. Experimental results show that the proposed CLIP-AAC approach surpasses the best baseline by a significant margin on the Clotho dataset in terms of NLP evaluation metrics. The ablation study indicates that both the pre-trained model and contrastive learning contribute to the performance gain of the AAC model.

Motivation & Objective

  • To address the sub-optimal performance of existing automated audio captioning (AAC) models that rely solely on single-modality acoustic features.
  • To improve cross-modal alignment between audio and text by learning interactive representations using both modalities during encoding.
  • To enhance feature quality and semantic correspondence between audio and caption inputs through contrastive learning.
  • To demonstrate the effectiveness of pre-trained audio-text models with dual-head encoders for AAC, especially in low-supervision settings.

Proposed method

  • The CLIP-AAC model employs a dual-head encoder with an audio-head (based on ESResNeXt) and a text-head (12-layer Transformer) to extract joint audio-text embeddings from paired inputs.
  • Audio inputs are converted to log-power spectrograms and processed through 2D convolutions and dual-path residual blocks to extract deep acoustic features.
  • Text inputs are tokenized and embedded, then processed through a 12-layer Transformer with layer normalization to produce contextualized text representations.
  • The model applies contrastive learning loss $L_{cl}$ to align positive audio-text pairs while pushing negative pairs apart, using a learnable coefficient $\alpha$ to balance with cross-entropy loss.
  • During inference, the text-head is discarded as captions are not available, and only the audio-head feeds into the decoder for caption generation.
  • The encoder is initialized from AudioCLIP and fine-tuned on the Clotho dataset using both contrastive and auto-regressive supervision.

Experimental results

Research questions

  • RQ1Can a dual-head encoder architecture that jointly processes audio and text improve cross-modal representation learning for automated audio captioning?
  • RQ2How does contrastive learning between audio and text embeddings affect the performance of audio captioning models?
  • RQ3To what extent does pre-training on large-scale audio-text data improve zero-shot or few-shot captioning performance on downstream datasets?
  • RQ4What is the relative contribution of the pre-trained model and contrastive fine-tuning to overall performance gain in AAC?

Key findings

  • CLIP-AAC achieves state-of-the-art performance on the Clotho dataset, surpassing the best baseline across all evaluation metrics: BLEU-n, METEOR, ROUGE-L, CIDEr, SPICE, and SPIDEr.
  • The ablation study shows that initializing the encoder with AudioCLIP and fine-tuning both audio- and text-heads leads to significant performance gains over random or audio-only initialization.
  • The contrastive learning component improves performance, with optimal results achieved at a coefficient $\alpha = 0.2$ for the contrastive loss.
  • Increasing the batch size to 16 improves performance by increasing the diversity of negative pairs in contrastive learning.
  • Visualization of cosine similarity matrices confirms that contrastive learning strengthens the alignment between true audio-text pairs after training.
  • The model demonstrates that joint audio-text encoding with contrastive optimization leads to more semantically aligned and robust cross-modal embeddings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.