Dual Transformer Decoder based Features Fusion Network for Automated Audio Captioning

Jianyuan Sun, Xubo Liu, Xinhao Mei, Volkan Kiliç, Mark D. Plumbley, Wenwu Wang

Introduction

Automated Audio Captioning (AAC) is a complex cross-modal task that requires a model to translate audio signals into descriptive natural language. Unlike simple audio tagging, AAC involves understanding temporal relationships, acoustic nuances, and linguistic structures to describe events like "a car engine revs followed by tires screeching."

Most contemporary AAC models rely exclusively on high-dimensional representations—abstract embeddings generated at the final stage of an audio encoder. While these embeddings are semantically rich, they can be overly complex, potentially causing the model to overlook specific, recurring acoustic details. The Low and High-Dimensional Feature Fusion (LHDFF) network addresses this by integrating low-level acoustic "anchors" with high-level context to produce more accurate and detailed captions.

Methodology

The RPANNs Encoder

The LHDFF architecture utilizes a specialized Residual PANNs (RPANNs) encoder, built upon the CNN10 framework. Rather than relying solely on the final output, the RPANNs encoder extracts features from two distinct stages of the neural network:

  1. Low-Dimensional Features: Extracted from the third convolutional block, these capture simpler, localized acoustic information.
  2. High-Dimensional Features: Extracted from the final layer, providing a global semantic summary of the audio clip.

Because features from different layers have different temporal lengths, the authors employ a "filling 0" (zero-padding) technique to align them. These features are then projected to a matching size and fused via element-wise addition. This fusion emphasizes recurring audio scenes, providing a more robust representation for the decoder.

Dual Transformer Decoder

To leverage these multi-resolution features, the model employs a Dual Transformer Decoder structure. Instead of a single decoding path, the architecture uses two decoders in parallel:

  • Decoder 1 ($TD_1$): Processes the fused (low + high) features.
  • Decoder 2 ($TD_2$): Processes only the high-dimensional features.

The final caption is generated by combining the probabilistic outputs (log-softmax) of both decoders. This ensemble-like approach allows the model to benefit from the specific acoustic details captured in the low-level features while maintaining the broad context provided by the high-level embeddings.

Experimental Results

The LHDFF model was evaluated on two industry-standard benchmarks: Clotho v2 and AudioCaps. The model outperformed several competitive baselines, including CL4AC and AT-CNN10, across nearly all evaluation metrics.

  • Clotho Dataset: LHDFF achieved a SPIDEr score of 0.265, surpassing the baseline of 0.256.
  • AudioCaps Dataset: The model reached a SPIDEr score of 0.426, a significant improvement over the baseline of 0.404.

Ablation studies confirmed that the third convolutional block is the "sweet spot" for feature extraction; using features from earlier layers (like the second block) proved less effective, suggesting that a certain level of abstraction is necessary even for low-dimensional features.

Discussion: The "Forest and the Trees"

The success of the LHDFF network can be conceptualized as a "Forest and the Trees" approach. High-dimensional features provide the "forest" (the global context), while low-dimensional features provide the "trees" (specific acoustic events). By fusing these resolutions, the model avoids getting lost in the complexity of high-level data. Qualitative results indicated that LHDFF is particularly adept at capturing fine details, such as identifying the "loud clicks" that precede a gunshot, which standard models often omit.

Conclusion and Future Work

The LHDFF network demonstrates that multi-resolution feature fusion significantly enhances the performance of automated audio captioning. While the dual-decoder structure increases computational overhead, the resulting improvements in caption accuracy and detail are substantial. Future research will focus on exploring more complex fusion mechanisms, such as cross-attention, and integrating modern language models like BERT or GPT to further improve the linguistic quality of the generated text.

Summary updated

BibTeX
@inproceedings{sun2023dual,
  author = {Jianyuan Sun and Xubo Liu and Xinhao Mei and Volkan Kiliç and Mark D. Plumbley and Wenwu Wang},
  title = {{Dual Transformer Decoder based Features Fusion Network for Automated Audio Captioning}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-943},
}
Figure