Revisiting Image Captioning Training Paradigm via Direct CLIP-based Optimization

Nicholas Moratelli, Davide Caffagni, Marcella Cornia, Lorenzo Baraldi, Rita Cucchiara
8/26/2024
cs.CVcs.AIcs.CL

Official code: aimagelab/DiCO (20 stars, last commit 2024-09-11).

Abstract

The conventional training approach for image captioning involves pre-training a network using teacher forcing and subsequent fine-tuning with Self-Critical Sequence Training to maximize hand-crafted captioning metrics. However, when attempting to optimize modern and higher-quality metrics like CLIP-Score and PAC-Score, this training method often encounters instability and fails to acquire the genuine descriptive capabilities needed to produce fluent and informative captions. In this paper, we propose a new training paradigm termed Direct CLIP-Based Optimization (DiCO). Our approach jointly learns and optimizes a reward model that is distilled from a learnable captioning evaluator with high human correlation. This is done by solving a weighted classification problem directly inside the captioner. At the same time, DiCO prevents divergence from the original model, ensuring that fluency is maintained. DiCO not only exhibits improved stability and enhanced quality in the generated captions but also aligns more closely with human preferences compared to existing methods, especially in modern metrics. Additionally, it maintains competitive performance in traditional metrics. Our source code and trained models are publicly available at https://github.com/aimagelab/DiCO.

View on arXivView PDF

Code Implementations(1)

aimagelab/DiCOOfficial100%

[BMVC 2024 Oral ✨] Revisiting Image Captioning Training Paradigm via Direct CLIP-based Optimization

201Shell, PythonJul 30, 20242 years ago
bmvc2024caption-generationcaptioning-imagesimage-captioningvision-and-language

Similar Papers

Cite this paper

@article{moratelli2024revisiting,
  title  = {Revisiting Image Captioning Training Paradigm via Direct CLIP-based Optimization},
  author = {Nicholas Moratelli and Davide Caffagni and Marcella Cornia and Lorenzo Baraldi and Rita Cucchiara},
  year   = {2024},
  eprint = {2408.14547},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.14547v1}
}

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/2408.14547.svg)](https://codeofpaper.com/paper/2408.14547)

Discussion