Skip to main content
QUICK REVIEW

[Paper Review] Efficient Audio Captioning Transformer with Patchout and Text Guidance

Thodoris Kouzelis, Grigoris Bastas|arXiv (Cornell University)|Apr 6, 2023
Music and Audio ProcessingComputer Science3 citations
TL;DR

This paper proposes an efficient audio captioning transformer that combines Patchout regularization and text-guided captioning using fine-tuned AudioSet labels to improve performance and reduce computational cost. By leveraging a pre-trained PaSST encoder with structured patch dropping and semantically aligned text conditioning, the model achieves a SPIDEr score of 0.296 on the DCASE 2022 challenge, winning the Judges Award.

ABSTRACT

Automated audio captioning is multi-modal translation task that aim to generate textual descriptions for a given audio clip. In this paper we propose a full Transformer architecture that utilizes Patchout as proposed in [1], significantly reducing the computational complexity and avoiding overfitting. The caption generation is partly conditioned on textual AudioSet tags extracted by a pre-trained classification model which is fine-tuned to maximize the semantic similarity between AudioSet labels and ground truth captions. To mitigate the data scarcity problem of Automated Audio Captioning we introduce transfer learning from an upstream audio-related task and an enlarged in-domain dataset. Moreover, we propose a method to apply Mixup augmentation for AAC. Ablation studies are carried out to investigate how Patchout and text guidance contribute to the final performance. The results show that the proposed techniques improve the performance of our system and while reducing the computational complexity. Our proposed method received the Judges Award at the Task6A of DCASE Challenge 2022.

Motivation & Objective

  • To address data scarcity in automated audio captioning (AAC) by leveraging transfer learning and an enlarged in-domain dataset.
  • To reduce computational complexity in transformer-based AAC models through structured Patchout during training.
  • To improve caption quality by conditioning generation on semantically aligned text derived from fine-tuned AudioSet predictions.
  • To enhance robustness and generalization using Mixup augmentation in both audio and caption embedding spaces.
  • To achieve state-of-the-art performance in AAC with reduced model complexity and improved training stability.

Proposed method

  • The model uses a PaSST encoder with 2D convolutional feature extraction, decoupled time and frequency positional encoding, and structured Patchout that drops frequency bins and time frames during training.
  • Guiding text is generated by fine-tuning a pre-trained PaSST model on Clotho audio-label pairs to maximize semantic similarity with ground-truth captions using BERT-based sentence embeddings.
  • Text conditioning is implemented by concatenating trainable word embeddings of top-p sampled AudioSet labels to the input patch sequence.
  • A novel Mixup augmentation strategy is applied in the embedding space, combining audio features and caption embeddings with a beta-distributed mixing coefficient (a=0.3).
  • The system employs a two-stage training setup: first freezing the encoder and fine-tuning on a larger dataset, then unfreezing with a lower initial learning rate.
  • During inference, beam search with beam width 3 is used, and the model applies dropout (0.2) and label smoothing (0.1) to mitigate overfitting.
Figure 1: The overview of our system. Blue and Green colors indicate learned and frozen modules respectively. The input to the decoder is omitted for clarity.
Figure 1: The overview of our system. Blue and Green colors indicate learned and frozen modules respectively. The input to the decoder is omitted for clarity.

Experimental results

Research questions

  • RQ1How does Patchout affect the computational efficiency and performance of transformer-based audio captioning models?
  • RQ2Can fine-tuned AudioSet predictions serve as effective text guidance to improve semantic alignment between generated captions and ground truth?
  • RQ3To what extent does Mixup augmentation in the embedding space improve generalization in audio captioning?
  • RQ4How does pre-training on a larger in-domain dataset impact performance when data is scarce?
  • RQ5What is the combined effect of Patchout, text guidance, and Mixup on overall captioning quality and model complexity?

Key findings

  • The proposed model achieved a SPIDEr score of 0.296 on the DCASE 2022 development set, outperforming the baseline and earning the Judges Award.
  • Patchout with p_t=120 (dropping 120 time frames) reduced the input sequence length by nearly half, significantly lowering computational complexity.
  • Text guidance via top-p sampled AudioSet labels improved caption quality by aligning predicted labels more closely with ground-truth caption semantics.
  • Mixup augmentation in the embedding space improved model generalization, even when the loss was computed on unmixed captions.
  • Fine-tuning the PaSST model on audio-label pairs using BERT-based similarity optimization led to more semantically relevant guiding text than raw model outputs.
  • The ablation study confirmed that both Patchout and text guidance independently contribute to performance gains, with their combination yielding the best results.

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.