Revisiting Image Captioning Training Paradigm via Direct CLIP-based Optimization
Nicholas Moratelli, Davide Caffagni, Marcella Cornia, Lorenzo Baraldi, Rita Cucchiara
TL;DR
This work tackles instability when optimizing modern multimodal captioning metrics by introducing Direct CLIP-Based Optimization (DiCO), which distills a reward model from a learnable captioning evaluator and integrates it directly into the captioner with a KL regularizer to prevent divergence. The method derives a PPO-inspired objective with a distilled reward, and trains the reward model via a contrastive winner-vs-losers objective, enabling gradient-based optimization without reinforcement learning at fine-tuning. Empirically, DiCO achieves state-of-the-art performance on CLIP-based metrics and retrieval measures while maintaining competitive traditional metrics and demonstrating stable training across diverse backbones and datasets. Overall, DiCO offers a practical, human-aligned, and robust alternative to SCST and RLHF for modern image captioning, with strong generalization to out-of-domain data.
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.
