Improving Image Captioning Descriptiveness by Ranking and LLM-based Fusion

Luigi Celona, Simone Bianco, Marco Donzella, Paolo NapoletanoarXiv 2023 · DOI

This paper presents a training-free pipeline to enhance the descriptiveness of image captions by leveraging an ensemble of state-of-the-art (SoTA) models and the reasoning power of Large Language Models (LLMs). By ranking candidate captions with a novel metric and fusing the best ones, the authors produce descriptions that are more detailed, diverse, and human-aligned than those generated by any single model.

TL;DR

The authors propose a "ranking and fusion" approach that combines multiple image captioning models with an LLM to generate richer, more informative descriptions without requiring additional training. Their method significantly outperforms individual SoTA models in human preference and semantic alignment metrics, effectively bridging the gap between generic automated captions and detailed human-like descriptions.

What Problem Does This Paper Address?

Most modern image captioning models are trained on datasets like MS-COCO, where human-annotated captions are notoriously short—averaging only about ten tokens. Consequently, these models often suffer from "mode collapse," tending to produce generic, "average" captions that overlook fine-grained details or complex scene dynamics.

While web-scale datasets exist, their "alt-text" descriptions are often noisy and inaccurate. There is a clear need for a method that can generate high-quality, highly descriptive image-text pairs automatically, both for end-user applications and to create better training data for future vision-language models.

Methods

The proposed pipeline consists of three main stages, as illustrated in the figure below:

Fig. 2: Overview of the proposed image captioning pipeline.
  1. Caption Generation: The system uses five diverse SoTA models (BLIP-2, ExpansionNet v2, GIT, OFA, and ViT-GPT2) to generate a set of candidate captions for a single image.
  2. Caption Ranking (BLIPScore): To select the best candidates, the authors introduce BLIPScore. This metric uses a pre-trained BLIP model to calculate both the cosine similarity (global alignment) and the matching probability (fine-grained alignment via cross-attention) between the image and each candidate text.
  3. LLM-based Fusion: The top two ranked captions are sent to an LLM (specifically OpenAI’s Davinci/GPT-3) with a carefully engineered "Sem-Syn Merge" prompt. The LLM is tasked with combining the unique information from both sentences into a single, cohesive, and non-redundant description.

Crucially, this entire process is training-free, acting as a "black-box" wrapper around existing models.

Datasets

The authors evaluated their method on two standard benchmarks:

  • MS-COCO: Using the Karpathy split (5,000 test images).
  • Flickr30k: (1,000 test images).

They also demonstrated that using their fused captions as "ground truth" to fine-tune a smaller model (OFA-Base) led to measurable performance gains, suggesting the method's utility for data augmentation.

Key Insights and Ideas

  • Complementary Strengths: Different models often notice different things. One might identify the main subject, while another catches a background detail. Fusing them allows the final output to be more than the sum of its parts.
  • LLMs as Semantic Glue: LLMs excel at resolving coreferences (e.g., understanding that "a child" in one caption and "a young girl" in another refer to the same person) and removing linguistic redundancy that simple concatenation would produce.
  • Prompt Engineering is Critical: The authors found that a "Basic" prompt yielded mediocre results. Their "Sem-Syn Merge" prompt, which explicitly instructs the model to consider both semantic meaning and syntactic structure, was vital for high-quality fusion.
  • Efficiency vs. Quality: While GPT-3 Davinci provided the best results, the authors showed that open-weight models like Mixtral-8x7B could achieve similar performance at a 98% lower cost, making the pipeline viable for large-scale dataset generation.

Key Results

The method's success is evident in both quantitative metrics and human judgment:

  • Semantic Richness: The fused captions are significantly longer and contain more adjectives, nouns, and verbs than the individual model outputs (and even the original MS-COCO ground truth).
  • Alignment Metrics: The model achieved the highest scores in SPICE (26.5 on COCO) and modern alignment metrics like ALOHa, CAPTURE, and Polos, which are designed to penalize hallucinations and reward detail.
  • Human Preference: In a subjective study, human participants preferred the fused captions 37.77% of the time, compared to just 16.18% for the next best model (OFA). Expert raters showed an even stronger preference, choosing the fused captions over 51% of the time.
Fig. 1: Comparison between ground-truth captions (Original) and enriched captions generated by our method (Ours) for sample images from the COCO dataset.

Limitations and Future Work

The authors acknowledge a few key limitations:

  • Input Similarity: If all five base models generate nearly identical, simple captions, the fusion step has no "new" information to add, resulting in a simple output.
  • LLM Hallucinations: Occasionally, the LLM adds "emotional" or "vivid" adjectives (e.g., "captivating scene") that weren't in the source captions.
  • Structural Artifacts: In rare cases (16 out of 5,000), the LLM included meta-text like "The caption for the image could be:".

Future Work: The authors suggest improving the ranking policy to prioritize diversity among the top-selected captions, rather than just raw alignment scores, to further mitigate mode collapse and maximize the information gain during fusion.

Summary updated

BibTeX
@misc{celona2023improving,
  author = {Luigi Celona and Simone Bianco and Marco Donzella and Paolo Napoletano},
  title = {{Improving Image Captioning Descriptiveness by Ranking and LLM-based Fusion}},
  year = {2023},
  eprint = {2306.11593},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.11593},
}
Figure