Evaluating Image Caption via Cycle-consistent Text-to-Image Generation

Tianyu Cui, Jinbin Bai, Guo-Hua Wang, Qing-Guo Chen, Zhao Xu, Weihua Luo, Kaifu Zhang, Ye ShiarXiv 2025 · DOI

TL;DR

This paper introduces CAMScore, a novel reference-free metric for evaluating image captions. By leveraging a cycle-consistent approach that generates images from captions and compares them to original images, CAMScore overcomes the "modality gap" that plagues existing metrics and shows superior correlation with human judgments.

What Problem Does This Paper Address?

Evaluating the quality of automatically generated image captions is a crucial but challenging task. Traditionally, this relies on comparing generated captions to human-written "reference" captions. However, obtaining these references is expensive and time-consuming, and human captions can be highly diverse and subjective, leading to inconsistencies. While reference-free metrics exist, many rely on cross-modal comparisons (e.g., between text and image representations) which can be unreliable due to the "modality gap" – the inherent difficulty in perfectly aligning representations from different modalities. This gap can cause metrics like CLIPScore to misjudge captions, especially concerning attributes like numeracy and spatial relationships. The paper aims to bridge this gap by proposing a metric that evaluates captions without references and within the same modality.

Methods

The core of CAMScore is a "cycle-consistent" framework. It involves two main steps:

  1. Image Caption Generation: The image captioning model being evaluated generates a caption ($T_{gen}$) for an input image ($I_{ori}$).
  2. Text-to-Image Generation: A pre-trained text-to-image model then generates a new image ($I_{gen}$) from the caption ($T_{gen}$).

The novelty lies in how $I_{gen}$ is evaluated against $I_{ori}$. Instead of relying on cross-modal comparisons, CAMScore uses a three-level evaluation framework:

  • Pixel Level: Measures the direct pixel-wise difference between $I_{ori}$ and $I_{gen}$ using an Lp norm.
  • Semantic Level: Compares the feature representations of $I_{ori}$ and $I_{gen}$ extracted by a pre-trained image encoder (ViT-B16) using cosine similarity. This captures the overall semantic content.
  • Object Level: Employs an object detector (YOLOv8x) and depth estimation (Depth Anything V2) to match objects between $I_{ori}$ and $I_{gen}$. It considers object presence, semantic similarity, and 3D spatial relationships (using CIoU loss and scale-invariant error).

These individual scores are then integrated using a multilayer perceptron (MLP) to produce the final CAMScore. The cycle consistency ensures that the evaluation happens within the image modality, mitigating the modality gap.

Datasets

The paper evaluates CAMScore on several standard image captioning datasets:

  • Flickr8k-Expert: Contains expert annotations for image-caption pairs.
  • Flickr8k-CF: Features binary quality judgments from crowd-workers.
  • Composite: Includes human judgments on image-caption pairs from MSCOCO, Flickr30K, and Flickr8k.
  • Pascal-50S: Used for pairwise ranking accuracy, where annotators choose the better of two captions.

Key Insights and Ideas

  • The Modality Gap is Real and Problematic: The paper strongly emphasizes that relying on cross-modal comparisons (text-image) for evaluation is inherently flawed due to the difficulty in perfectly aligning representations from different modalities. This can lead to metrics misinterpreting caption quality.
  • Cycle Consistency as a Solution: By generating an image from a caption and comparing it to the original image, the evaluation stays within the same modality (image-to-image). This elegantly sidesteps the modality gap.
  • Multi-Level Evaluation is Crucial: A single evaluation metric isn't enough. CAMScore's three-level approach (pixel, semantic, object) provides a more comprehensive assessment, with the object-level evaluation proving particularly important for capturing nuanced details.
  • Object Detection and Depth Estimation are Key for Granularity: The object-level evaluation, incorporating object detection and depth estimation, allows for fine-grained analysis of object presence, similarity, and spatial relationships, which are often missed by other metrics.

Key Results

CAMScore consistently demonstrated superior performance across various datasets:

  • Human Correlation: CAMScore achieved the highest Kendall correlation coefficients (a measure of agreement with human judgments) on Flickr8k-Expert, Flickr8k-CF, and Composite datasets compared to both reference-based and reference-free baselines. For example, it improved Kendall's $\tau_b$ by 0.9 points over PAC-S on Flickr8k-Expert.
  • Pairwise Ranking Accuracy: On the Pascal-50S dataset, CAMScore achieved state-of-the-art (SOTA) pairwise ranking accuracy of 85.8%, outperforming other metrics.
  • Ablation Study: Removing individual evaluation levels revealed their importance. The semantic level was found to be the most critical, followed by the object level, highlighting the effectiveness of the proposed multi-level framework.

Limitations and Future Work

  • Dependence on Object Detector Performance: CAMScore's object-level evaluation is limited by the performance of the underlying object detector. Current detectors, often trained on MS-COCO, have a limited number of categories and may struggle with non-photorealistic images, leading to metric failures in such cases.
  • Computational Cost: Text-to-image models and object detection models can be computationally intensive, requiring significant processing time and resources.
  • Future Directions: The authors suggest improving CAMScore by integrating it directly into model training procedures to enhance specific capabilities. They also anticipate that advancements in object detection models will further improve CAMScore's robustness.

Summary updated

BibTeX
@misc{cui2025evaluating,
  author = {Tianyu Cui and Jinbin Bai and Guo-Hua Wang and Qing-Guo Chen and Zhao Xu and Weihua Luo and Kaifu Zhang and Ye Shi},
  title = {{Evaluating Image Caption via Cycle-consistent Text-to-Image Generation}},
  year = {2025},
  eprint = {2501.03567},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.03567},
}
Figure