ViLBERTScore: Evaluating Image Caption Using Vision-and-Language BERT

Hwanhee Lee, Seunghyun Yoon, Franck Dernoncourt, Doo Soon Kim, Trung Bui, Kyomin Jung

Abstract

Traditional image captioning metrics often fail to account for visual grounding, leading to evaluations that ignore factual alignment with the image. We present ViLBERTScore, a metric that utilizes a vision-and-language BERT (ViLBERT) to generate image-conditioned contextual embeddings. By incorporating visual information into the embedding process, ViLBERTScore achieves significantly higher correlation with human judgment than existing text-only metrics like BLEU or BERTScore. Our results on benchmark datasets show that visual grounding is essential for robust caption evaluation.

Introduction

How do we determine if an AI-generated image caption is truly accurate? Historically, researchers have relied on n-gram similarity metrics such as BLEU or CIDEr. These metrics are often brittle, penalizing valid synonyms and failing to capture semantic meaning. While BERTScore improved upon this by using contextual embeddings, it remains limited to the text domain. A caption can be grammatically perfect and semantically similar to a reference while being factually incorrect about the visual scene. ViLBERTScore addresses this "blind spot" by grounding the evaluation process in the image itself.

Methodology

ViLBERTScore adapts the logic of BERTScore to a multimodal setting using ViLBERT (Vision-and-Language BERT). ViLBERT employs "co-attention" layers that allow textual representations to be influenced by image features and vice versa.

The ViLBERTScore calculation process involves extracting image-conditioned embeddings for both reference and candidate captions.

The process follows these steps:

  1. Input Processing: The system takes an image, a reference caption, and a candidate caption. Region-level features are extracted from the image using a pre-trained object detector.
  2. Contextual Embedding: The (Image + Reference) and (Image + Candidate) pairs are passed through ViLBERT. This produces token embeddings that are image-conditioned; for example, the vector for the word "dog" is modified based on the specific visual characteristics of the dog in the image.
  3. Similarity Scoring: Similar to BERTScore, ViLBERTScore computes the cosine similarity between the tokens of the reference and candidate captions using greedy matching to calculate Precision, Recall, and F1 scores.

The authors also evaluated ViLBERTScore*, a version using a model fine-tuned on 12 different vision-and-language tasks to provide richer representations.

Experimental Results

The metric was evaluated on three major benchmarks: Composite, Flickr8k, and PASCAL-50S.

ViLBERTScore consistently outperforms traditional and text-only metrics in correlation with human judgment.

Key Findings

  • Superior Correlation: On the Flickr8k and Composite datasets, ViLBERTScore* achieved Kendall correlations of 0.542 and 0.514, respectively. This significantly outperforms BERTScore (~0.39) and traditional metrics like CIDEr (~0.44).
  • Robustness on PASCAL-50S: In sub-tasks designed to distinguish "bad" captions from "good" ones (e.g., Human-Incorrect), ViLBERTScore* reached near-perfect accuracy (up to 100.0), demonstrating its ability to detect factual mismatches.
  • Layer Depth: Analysis of ViLBERT’s six co-attentional layers revealed that higher layers, which more deeply integrate vision and language, generally correlate better with human judgment.

Conclusion

ViLBERTScore demonstrates that visual grounding is essential for the accurate evaluation of image captions. By "looking" at the image while comparing text, the metric avoids the pitfalls of text-only similarity. While it introduces higher computational overhead due to the transformer architecture and object detection requirements, the gain in human correlation makes it a powerful tool for developing more accurate image captioning systems. Future work may focus on improving efficiency and exploring more advanced multimodal architectures.

Summary updated

BibTeX
@inproceedings{lee2020vilbertscore,
  author = {Hwanhee Lee and Seunghyun Yoon and Franck Dernoncourt and Doo Soon Kim and Trung Bui and Kyomin Jung},
  title = {{ViLBERTScore: Evaluating Image Caption Using Vision-and-Language BERT}},
  booktitle = {Eval4NLP},
  year = {2020},
  doi = {10.18653/v1/2020.eval4nlp-1.4},
}
Figure