Positive-Augmented Contrastive Learning for Vision-and-Language Evaluation and Training

Sara Sarto, Nicholas Moratelli, Marcella Cornia, Lorenzo Baraldi, Rita Cucchiara
10/9/2024
cs.CVcs.AIcs.CL

Official code: aimagelab/pacscore (68 stars, last commit 2025-07-29).

Abstract

Despite significant advancements in caption generation, existing evaluation metrics often fail to capture the full quality or fine-grained details of captions. This is mainly due to their reliance on non-specific human-written references or noisy pre-training data. Still, finding an effective metric is crucial not only for captions evaluation but also for the generation phase. Metrics can indeed play a key role in the fine-tuning stage of captioning models, ultimately enhancing the quality of the generated captions. In this paper, we propose PAC-S++, a learnable metric that leverages the CLIP model, pre-trained on both web-collected and cleaned data and regularized through additional pairs of generated visual and textual positive samples. Exploiting this stronger and curated pre-training, we also apply PAC-S++ as a reward in the Self-Critical Sequence Training (SCST) stage typically employed to fine-tune captioning models. Extensive experiments on different image and video datasets highlight the effectiveness of PAC-S++ compared to popular metrics for the task, including its sensitivity to object hallucinations. Furthermore, we show that integrating PAC-S++ into the fine-tuning stage of a captioning model results in semantically richer captions with fewer repetitions and grammatical errors. Evaluations on out-of-domain benchmarks further demonstrate the efficacy of our fine-tuning approach in enhancing model capabilities. Source code and trained models are publicly available at: https://github.com/aimagelab/pacscore.

View on arXivView PDF

Code Implementations(1)

aimagelab/pacscoreOfficial100%

[CVPR 2023 & IJCV 2025] Positive-Augmented Contrastive Learning for Image and Video Captioning Evaluation

689PythonJan 29, 20231 years ago
captioningcaptioning-imagescaptioning-videoscomputer-visioncvpr+2 more

Similar Papers

Cite this paper

@article{sarto2024positiveaugmented,
  title  = {Positive-Augmented Contrastive Learning for Vision-and-Language Evaluation and Training},
  author = {Sara Sarto and Nicholas Moratelli and Marcella Cornia and Lorenzo Baraldi and Rita Cucchiara},
  year   = {2024},
  eprint = {2410.07336},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.07336v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.07336.svg)](https://codeofpaper.com/paper/2410.07336)

Discussion