CIEM: Contrastive Instruction Evaluation Method for Better Instruction Tuning

Hongyu Hu, Jiyuan Zhang, Minyi Zhao, Zhenbang Sun

TL;DR

Modern Vision-Language Models (VLMs) frequently hallucinate objects and attributes because standard instruction tuning over-indexes on positive, descriptive data, training models to reflexively say "Yes." To diagnose and fix this, the authors introduce CIEM, an automated pipeline that uses LLMs to generate balanced factual and contrastive evaluation questions from image captions, and CIT (Contrastive Instruction Tuning), which trains models on contrastive question-answer pairs enriched with Chain-of-Thought (CoT) justifications to dramatically curb visual hallucination without sacrificing general downstream performance.

What Problem Does This Paper Address?

While vision-language models like LLaVA, MiniGPT-4, and InstructBLIP have made striking progress in visual reasoning and captioning, they suffer from significant visual hallucination—frequently claiming non-existent entities, hallucinating incorrect colors or actions, and confidently validating false user premises.

A primary driver of this issue is dataset distribution bias: instruction-tuning datasets almost exclusively feed models positive assertions about images. As a result, VLMs become people-pleasers, defaulting to answering "Yes" to nearly any inquiry. Furthermore, existing hallucination benchmarks (such as POPE or MME) often depend on labor-intensive human annotation, focus narrowly on object presence rather than fine-grained visual attributes (color, relations, actions), and only output simple binary answers without actionable explanations or an integrated recipe to remediate the model.

Methods

The authors propose a dual-purpose framework:

[Annotated Captions] ──(LLM Prompting)──► [Factual ("Yes") + Contrastive ("No") QAs with CoT]
                                                    │
                 ┌──────────────────────────────────┴──────────────────────────────────┐
                 ▼                                                                     ▼
       Stage 1: CIEM Evaluation                                              Stage 2: CIT Tuning
   (Benchmarking VLM Precision/Recall)                                  (Finetuning VLMs with CoT)
  1. CIEM (Contrastive Instruction Evaluation Method):
    An automated evaluation pipeline. Given ground-truth image captions, an LLM (ChatGPT) is prompted to generate two sets of queries:

  2. Factual questions where the ground-truth answer is "Yes" (querying objects, attributes, and actions explicitly stated in the caption).

  3. Contrastive questions where the answer is "No" (querying plausible but absent entities, easily confused attributes, or actions that frequently co-occur in similar contexts). Model performance is evaluated as a binary classification task using Precision, Recall, Specificity, Accuracy, and F1-score. Precision and Specificity specifically gauge how resilient a model is against hallucinating false positives.

  4. CIT (Contrastive Instruction Tuning):
    A tuning strategy applied to training datasets to mitigate the "Yes" bias. Using the CIEM generation logic, the authors synthesize contrastive Q&A pairs accompanied by Chain-of-Thought (CoT) justifications. Instead of an abrupt "No," the target answer provides clear reasoning grounded in the image context (e.g., "No, windsurfing is not shown in the image. The only people in the water are on surfboards...").

Datasets

  • COCO Caption:
  • CIEM Test Suite: Constructed from 4,929 test images, yielding 78,120 QA pairs (40,367 factual, 37,753 contrastive). Blind reviews by human moderators found an error rate of only ~4.6%, primarily caused by ground-truth captions missing background objects.
  • CIT Training Suite: Generated from 110,000 training images, producing 1.5 million contrastive and factual QA pairs with detailed CoT justifications.
  • Downstream Evaluation Benchmarks: NoCaps-Val and COCO Caption (for image captioning), alongside VQAv2 (for visual question answering), used to verify that contrastive tuning does not degrade general capabilities.

Key Insights and Ideas

  • The Illusion of High Recall: Evaluated on CIEM, popular VLMs like LLaVA and MiniGPT-4 posted deceptively high Recall scores (>94%), but plummeted in Specificity (20.8% and 32.5%) and Precision (~55–59%). They were essentially guessing "Yes" regardless of the image content.
  • Why CoT Reasoning is Non-Negotiable: Simply training a model to say "No" on negative samples (CIT w/o CoT) over-corrects the problem. On InstructBLIP (Vicuna-7B), tuning without CoT increased Precision to 93.7%, but crashed Recall down to 44.2%—the model became overly conservative and terrified of answering "Yes." Adding CoT reasoning allowed the model to balance healthy perceptual sensitivity (87.9% Recall) with high truthfulness (85.5% Precision).
  • Safety on General Tasks: Tuning heavily on synthetic binary Q&As does not ruin standard VLM functionality. Captioning metrics slightly improved, while VQA performance experienced only a negligible drop.

Key Results

Evaluating several popular open-source VLMs on CIEM confirmed widespread hallucination:

Model Visual Encoder LLM Backbone Precision Recall Specificity F1 Accuracy
LLaVA CLIP_L MPT-7B 55.42% 95.59% 20.84% 70.16 58.76%
Mini-GPT4 EVA_G Vicuna-7B 58.95% 94.14% 32.51% 72.50 63.77%
BLIP-2 CLIP_G T5-XXL 82.07% 65.27% 85.37% 72.71 75.20%
InstructBLIP CLIP_G T5-XXL 71.11% 81.75% 65.94% 76.06 73.95%

Applying CIT with CoT to InstructBLIP yielded substantial reductions in hallucination:

  • InstructBLIP (Vicuna-7B): Precision climbed from 73.9% → 85.5%, Specificity surged from 66.2% → 84.7%, and overall Accuracy improved from 79.9% → 86.3% (F1 rose from 82.5 to 86.7).
  • InstructBLIP (FLAN-T5-XL): Accuracy improved from 73.7% → 83.3%, with Precision rising from 67.4% → 78.7% and Specificity leaping from 53.7% → 74.5%.
  • Downstream Capabilities: On COCO Captioning, CIDEr scores slightly increased (131.7 → 132.6 on Vicuna-7B; 140.7 → 141.1 on T5-XL), with minimal variation on VQAv2 (76.6% → 74.4% for Vicuna-7B).

Limitations and Future Work

  • Dependence on Gold Captions: CIEM and CIT require annotated image-caption datasets. If reference annotations omit background details (e.g., failing to mention distant buildings), the LLM can generate false negative questions. The authors suggest exploring high-confidence captioning ensembles to enable working with completely unannotated images.
  • Binary Question Scope: Both the evaluation and tuning datasets currently center on binary ("Yes/No") questions. Expanding to open-ended, multi-choice, and conversational formats is left for future work.
  • Evaluation Breadth: CIEM primarily measures perception and fine-grained visual hallucination; future iterations aim to incorporate deeper visual reasoning, external knowledge retrieval, and multi-image context.

Summary updated

BibTeX
@inproceedings{hu2023ciem,
  author = {Hongyu Hu and Jiyuan Zhang and Minyi Zhao and Zhenbang Sun},
  title = {{CIEM: Contrastive Instruction Evaluation Method for Better Instruction Tuning}},
  booktitle = {Instruction @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=HVduJbHSSO},
}

Loading related content...

Figure