ALCAP: Alignment-Augmented Music Captioner

Zihao He, Weituo Hao, Wei Tsung Lu, Changyou Chen, Kristina Lerman, Xuchen Song

Introduction

Music is a complex "dual" medium, blending intricate auditory signals like melody and rhythm with linguistic content in the form of lyrics. Generating accurate human-like descriptions, or "captions," for songs requires a deep understanding of how these two modalities interact. However, audio and lyrics are often only loosely aligned; a single melody can support various lyrical themes, and the same words can evoke different emotions depending on the musical arrangement.

Previous music captioning models often treated these inputs as separate streams to be fused late in the process, frequently ignoring their intricate interplay. This often results in generic or inaccurate captions. To address this, the authors propose ALCAP (Alignment-Augmented Music Captioner), a model that explicitly aligns audio and lyrics through contrastive learning to achieve superior semantic coherence.

Methodology

ALCAP builds upon the BART-fusion architecture by introducing a critical Multimodal Representation Alignment module. The process follows four key stages:

  1. Encoding: Music is encoded into latent features using a pre-trained CNN-Transformer, while lyrics are processed via a standard BART encoder.
  2. Contrastive Alignment: Before fusion, ALCAP applies a contrastive loss (InfoNCE). This forces the model to map paired audio and lyrics closer together in a shared latent space while pushing non-paired representations apart.
  3. Theoretical Grounding: Using Information Bottleneck (IB) theory, the authors demonstrate that this alignment helps the model filter out redundant noise, focusing on the most "sufficient" information for captioning.
  4. Fusion and Decoding: These aligned representations are fused through cross-modal attention—where lyrics serve as queries and music features act as keys and values—before being passed to a BART decoder for final text generation.
The ALCAP architecture, featuring a dedicated Multimodal Representation Alignment module to bridge the gap between audio and lyrics before text generation.

Experimental Setup

The model was evaluated on two primary datasets:

  • Song Interpretation (SI) Dataset: A large-scale collection of audio excerpts and user-generated interpretations, tested across three variants based on user upvotes (Full, voting ≥ 0, and voting > 0).
  • NetEase Cloud Music (NCM) Review Dataset: A newly curated dataset featuring 22,210 English songs with reviews from a popular Chinese streaming platform. This dataset presents a significant challenge due to the "weaker" correspondence between the music and the reviews compared to the SI dataset.

Key Results

ALCAP achieved State-of-the-Art (SOTA) performance across all tested benchmarks. As shown in the results table, the model consistently outperformed the baseline BART and BART-fusion models in both fluency and semantic accuracy.

Performance comparison of ALCAP against BART baselines across multiple music captioning datasets, showing significant improvements in ROUGE and METEOR scores.

On the SI (voting > 0) dataset, ALCAP reached a METEOR score of 27.7 (up from 22.6 for BART-fusion) and a ROUGE-L of 27.1 (up from 24.7). The model also demonstrated robustness on the noisier NCM Review dataset, showing significant gains over the baseline despite the weaker data correspondence.

Beyond captioning, ALCAP excelled in Text-Music Retrieval. On the SI Full dataset, the Recall@30 improved from 27.0% to 31.0%, indicating that the alignment module effectively captures the relationship between descriptive text and musical content.

Qualitative Insights

  • Focused Attention: Visualization of attention weights reveals that ALCAP focuses on specific, meaningful text tokens. In contrast, unaligned models exhibit "blurry" attention, suggesting they struggle to anchor sound to specific words.
  • Overcoming Genre Bias: In case studies, ALCAP successfully avoided common pitfalls where models rely on genre stereotypes. For example, while a baseline model misidentified a 70s rock song as a "love song" based on style, ALCAP correctly identified themes of "war" by successfully anchoring the audio to the specific lyrical content.
  • Optimal Alignment Weight: The authors identified a "Goldilocks zone" for the contrastive loss weight (α = 0.02). This balance ensures the model prioritizes alignment without sacrificing the quality of the generated text.

Conclusion and Future Work

ALCAP demonstrates that explicit multimodal alignment is crucial for high-quality music captioning. While the current model uses frozen music encoders, future work could involve end-to-end fine-tuning of the entire pipeline. Additionally, pre-training the alignment module on massive web-scraped datasets and developing strategies to mitigate biases in user-generated training data remain important avenues for further research.

Summary updated

BibTeX
@inproceedings{he2023alcap,
  author = {Zihao He and Weituo Hao and Wei Tsung Lu and Changyou Chen and Kristina Lerman and Xuchen Song},
  title = {{ALCAP: Alignment-Augmented Music Captioner}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.1028},
}
Figure