CLAIR: Evaluating Image Captions with Large Language Models

David M. Chan, Suzanne Petryk, Joseph Gonzalez, Trevor Darrell, John F. Canny

Abstract

Evaluating the quality of machine-generated image captions is a complex task that traditional n-gram overlap metrics often fail to perform accurately. This paper introduces CLAIR (Criterion using LAnguage models for Image caption Rating), a novel evaluation metric that leverages the reasoning capabilities of Large Language Models (LLMs). By treating caption evaluation as a zero-shot text-completion task, CLAIR compares candidate captions against reference sets to produce both a numerical score and a natural language explanation. Experimental results demonstrate that CLAIR significantly outperforms traditional metrics like SPICE and CIDEr, achieving higher correlation with human judgment and providing unprecedented interpretability.

Introduction

In the field of computer vision and natural language processing, image captioning serves as a bridge between visual understanding and linguistic expression. However, determining the quality of these captions remains a "wicked" problem. A high-quality caption must be semantically accurate, specific, and capable of capturing the nuances of a scene.

For decades, the research community has relied on automated metrics such as BLEU, METEOR, and CIDEr. These metrics primarily measure n-gram overlap—essentially counting how many words the machine's output shares with a human-written reference. While computationally efficient, these methods often penalize captions that are semantically identical but use different vocabulary. More recent developments like SPICE utilize scene graphs, and vision-augmented metrics like CLIPScore incorporate image features, yet a significant gap remains between these automated scores and human preference. Human evaluation is the gold standard, but its cost and lack of scalability make it impractical for rapid model iteration.

The CLAIR Framework

CLAIR (Criterion using LAnguage models for Image caption Rating) addresses these limitations by utilizing the internal world logic and linguistic depth of LLMs. Unlike previous metrics that require complex mathematical modeling or specialized vision-language architectures, CLAIR operates as a zero-shot, text-only metric.

Methodology

The evaluation process is structured as a text completion task. The LLM is provided with a "candidate" caption and a set of human-written "reference" captions. The model is then prompted to answer: "On a scale of 0 to 100, how likely is it that the candidate set is describing the same image as the reference set?"

The output is returned in a structured JSON format containing:

  1. Score: A numerical value between 0 and 100.
  2. Reason: A natural language string explaining the rationale behind the score.

By comparing the candidate to references rather than the image itself, CLAIR leverages the LLM's ability to "imagine" the scene described by the references and determine if the candidate aligns with that mental model. To mitigate the biases or hallucinations of any single model, the authors also introduced CLAIR_E, an ensemble version that averages scores from GPT-3.5, Claude, and PaLM.

Experimental Evaluation

The researchers benchmarked CLAIR across several diverse datasets to ensure its robustness and generalizability:

  • MS-COCO & Flickr8k-Expert: Standard benchmarks for captioning and human judgment correlation.
  • PASCAL-50S: A dataset designed to test a metric's ability to choose the superior caption from a pair.
  • COMPOSITE & COCO-Sets: Evaluations focused on human-assigned scores and the diversity of caption sets.

Performance Highlights

CLAIR demonstrated a substantial improvement over existing state-of-the-art metrics:

  • Human Correlation: On the Flickr8k-Expert dataset, CLAIR achieved a 39.6% relative improvement in correlation with human judgments over SPICE and an 18.3% improvement over the vision-augmented RefCLIP-S.
  • System-Level Ranking: When ranking five different captioning models on MS-COCO, CLAIR (using Claude or PaLM) achieved a perfect 1.000 Kendall’s $\tau$ correlation with human rankings. In contrast, traditional metrics like BLEU@1 fell as low as 0.399.
  • Discriminative Accuracy: On the PASCAL-50S "decision-making" task, CLAIR_E correctly identified the better caption in a pair with 81.93% accuracy, outperforming all other text-only measures.

Discussion and Interpretability

One of the most significant advantages of CLAIR is its inherent interpretability. Unlike "black-box" embeddings or overlap counts, CLAIR provides a justification for its score. For instance, the model might note that a score was lowered because a candidate failed to mention a specific interaction between objects described in the references. This feedback loop is invaluable for researchers seeking to understand the specific failure modes of their captioning models.

Furthermore, the success of CLAIR_E suggests that while individual LLMs may have stochastic biases, ensembling them effectively smooths out these inconsistencies, bringing the metric closer to the level of inter-human agreement (0.627 correlation for CLAIR_E vs. 0.736 for humans on Flickr8k).

Limitations and Future Directions

Despite its performance, CLAIR faces practical challenges. The use of commercial LLM APIs introduces higher costs and latency compared to local scripts for CIDEr or SPICE. Additionally, the metric relies on "frontier" models; currently, smaller open-weight models do not yet match the performance of GPT-4 or Claude in this specific reasoning task.

Future work may explore "A vs. B" direct comparison prompts to further enhance discriminative power and the integration of smaller, fine-tuned models to reduce the computational and financial overhead of the evaluation process.

Conclusion

CLAIR represents a shift in how we evaluate generative vision-language models. By moving away from word-matching and toward semantic reasoning, CLAIR provides a more accurate, human-aligned, and interpretable metric for the next generation of image captioning research.

Summary updated

BibTeX
@inproceedings{chan2023clair,
  author = {David M. Chan and Suzanne Petryk and Joseph Gonzalez and Trevor Darrell and John F. Canny},
  title = {{CLAIR: Evaluating Image Captions with Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.841},
}
Figure