music-caption-retrieval-eval
Futga: Towards Fine-grained Music Understanding through Temporally-enhanced Generative Augmentation — Junda Wu et al. (arXiv:2407.20445, 2024)
What this evaluates
Evaluates a model's ability to generate fine-grained, temporally-aware music captions and retrieve corresponding audio segments using those captions. It probes the model's capacity for temporal reasoning, structural music understanding, and cross-modal alignment.
Datasets
- MusicCaps — total ?; splits: test (-1)
- Song Descriptor — total ?; splits: test (-1)
Metrics
BLEU-1/2/3, METEOR, ROUGE-L, BERTScore (primary) — range: percent
- Standard NLP sequence-to-sequence metrics comparing generated captions against human annotations. BLEU measures n-gram precision, METEOR adds synonymy and stemming, ROUGE-L uses longest common subsequence, and BERTScore uses contextual embeddings for semantic similarity.
Recall@K, Median Rank (primary) — range: percent
- For retrieval, compute IoU between caption and audio time segments. Use CLAP to extract features and calculate IoU-weighted average cosine similarity. Rank audio clips by similarity; Recall@K is the fraction of correct clips in the top K, and Median Rank is the median position of the correct clip.
CLAP Score — range: [0, 1]
- Measures audio-text similarity by computing the cosine similarity between audio and text embeddings extracted from the CLAP model.
Input / output format
Input: Audio clips with associated time segments and text captions (global or segment-level with time boundaries).
Output: Generated text captions (global or temporally segmented), ranked list of retrieved audio clips, or generated audio tracks.
Scoring recipe
def evaluate_caption(pred, gold):
return bleu(pred, gold), meteor(pred, gold), rouge(pred, gold), bertscore(pred, gold)
def evaluate_retrieval(preds, gold, clips, segments):
ious = compute_iou(preds.segments, clips.segments)
feats = clap_encode([preds.text, clips.audio])
sims = ious * cosine_similarity(feats.text, feats.audio)
ranks = rank_by_similarity(sims)
return recall_at_k(ranks, k=[1,5,10]), median_rank(ranks)
def evaluate_generation(gen_audio, prompt):
return clap_score(gen_audio, prompt)
Common pitfalls
- Comparing FUTGA's temporally segmented captions directly to global MusicCaps captions without accounting for formal differences, which artificially penalizes the model.
- Using LLM-generated captions for retrieval without considering that CLAP's text encoder may be out-of-distribution for complex LLM language, leading to lower-than-expected retrieval scores.
- Failing to separate global vs. complete (segmented) caption evaluations, which conflates different levels of temporal granularity.
Evidence (verbatim from paper)
We follow the previous works [14, 22] and report the metrics, BLEU (B),METEOR (M), ROUGE (R), and BERT-score (B-S), in Table 3. Since our captions are formally different from original music captions, we report the evaluation metrics for the global and the complete captions in our dataset separately.
Citation
@misc{wu2024futga,
title={Futga: Towards Fine-grained Music Understanding through Temporally-enhanced Generative Augmentation},
author={Junda Wu et al.},
year={2024},
note={arXiv:2407.20445}
}
1---2name: music-caption-retrieval-eval3description: Evaluates a model's ability to generate fine-grained, temporally-aware music captions and retrieve corresponding audio segments using those captions. It probes the model's capacity for temporal reasoning, structural music understanding, and cross-modal alignment. Use when the user wants to benchmark on MusicCaps, Song Descriptor, or asks about evaluating this task. Reports BLEU-1/2/3, METEOR, ROUGE-L, BERTScore, Recall@K, Median Rank.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/music-caption-retrieval-eval6 skill_kind: dataset_eval7 source_arxiv: 2407.204458 bibtex_key: wu2024futga9 confidence: high10---1112# music-caption-retrieval-eval1314> Futga: Towards Fine-grained Music Understanding through Temporally-enhanced Generative Augmentation — Junda Wu et al. (arXiv:2407.20445, 2024)1516## What this evaluates1718Evaluates a model's ability to generate fine-grained, temporally-aware music captions and retrieve corresponding audio segments using those captions. It probes the model's capacity for temporal reasoning, structural music understanding, and cross-modal alignment.1920## Datasets2122- **MusicCaps** — total ?; splits: test (-1)23- **Song Descriptor** — total ?; splits: test (-1)2425## Metrics2627- `BLEU-1/2/3, METEOR, ROUGE-L, BERTScore` **(primary)** — range: percent28 - Standard NLP sequence-to-sequence metrics comparing generated captions against human annotations. BLEU measures n-gram precision, METEOR adds synonymy and stemming, ROUGE-L uses longest common subsequence, and BERTScore uses contextual embeddings for semantic similarity.29- `Recall@K, Median Rank` **(primary)** — range: percent30 - For retrieval, compute IoU between caption and audio time segments. Use CLAP to extract features and calculate IoU-weighted average cosine similarity. Rank audio clips by similarity; Recall@K is the fraction of correct clips in the top K, and Median Rank is the median position of the correct clip.31- `CLAP Score` — range: [0, 1]32 - Measures audio-text similarity by computing the cosine similarity between audio and text embeddings extracted from the CLAP model.3334## Input / output format3536**Input**: Audio clips with associated time segments and text captions (global or segment-level with time boundaries).3738**Output**: Generated text captions (global or temporally segmented), ranked list of retrieved audio clips, or generated audio tracks.3940## Scoring recipe4142```python43def evaluate_caption(pred, gold):44 return bleu(pred, gold), meteor(pred, gold), rouge(pred, gold), bertscore(pred, gold)4546def evaluate_retrieval(preds, gold, clips, segments):47 ious = compute_iou(preds.segments, clips.segments)48 feats = clap_encode([preds.text, clips.audio])49 sims = ious * cosine_similarity(feats.text, feats.audio)50 ranks = rank_by_similarity(sims)51 return recall_at_k(ranks, k=[1,5,10]), median_rank(ranks)5253def evaluate_generation(gen_audio, prompt):54 return clap_score(gen_audio, prompt)55```5657## Common pitfalls5859- Comparing FUTGA's temporally segmented captions directly to global MusicCaps captions without accounting for formal differences, which artificially penalizes the model.60- Using LLM-generated captions for retrieval without considering that CLAP's text encoder may be out-of-distribution for complex LLM language, leading to lower-than-expected retrieval scores.61- Failing to separate global vs. complete (segmented) caption evaluations, which conflates different levels of temporal granularity.6263## Evidence (verbatim from paper)6465> We follow the previous works [14, 22] and report the metrics, BLEU (B),METEOR (M), ROUGE (R), and BERT-score (B-S), in Table 3. Since our captions are formally different from original music captions, we report the evaluation metrics for the global and the complete captions in our dataset separately.6667## Citation6869```bibtex70@misc{wu2024futga,71 title={Futga: Towards Fine-grained Music Understanding through Temporally-enhanced Generative Augmentation},72 author={Junda Wu et al.},73 year={2024},74 note={arXiv:2407.20445}75}76```7778- arXiv: 2407.20445