NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning from Fine-Grained Visual Discrepancies: Mitigating Multimodal Hallucinations via In-Context Visual Contrastive Optimization

Haolin Deng, Xin Zou, Zhiwei Jin, Chen Chen, Haonan Lu, Xuming Hu

TL;DR

This paper introduces In-Context Visual Contrastive Optimization (IC-VCO), a novel method to combat "multimodal hallucinations" in Vision-Language Models (VLMs). By presenting original and contrasting images in a shared context and employing a sophisticated data editing strategy, IC-VCO achieves more robust visual grounding and significantly improves VLM performance on hallucination-prone tasks.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) are powerful tools that can understand and generate content based on both images and text. However, they often suffer from "multimodal hallucinations," where their generated text contradicts the provided image or fabricates information not present. This is a critical issue for applications like visual assistants or educational tools. Standard methods for aligning VLMs with human preferences, like Direct Preference Optimization (DPO), struggle with this because they treat images as static conditions and lack explicit visual supervision. Existing attempts to incorporate visual information often use "coarse-grained" negative images that are too different from the original, allowing models to learn shortcuts rather than truly understanding visual details. This leads to theoretically inconsistent optimization objectives and limits the effectiveness of these approaches.

Methods

The paper proposes In-Context Visual Contrastive Optimization (IC-VCO), which tackles the problem in several key ways:

  • Shared Multi-Image Context: Instead of processing images in isolation, IC-VCO places the original and a contrastive "negative" image into a single, shared context. This allows the model to directly compare and contrast visual information.
  • Anchor Prompt Extension: To ensure the model knows which image to focus on within the shared context, an "anchor prompt extension" is used to explicitly direct its attention.
  • Theoretically Rigorous Objective: By using a shared context, IC-VCO ensures that the partition functions (a key component in DPO's mathematical formulation) cancel out, leading to a theoretically consistent optimization objective.
  • Visual Contrast Distillation (VCDist): To bridge the gap between multi-image training and single-image inference (how VLMs are typically used), VCDist is introduced. This is a "reliability-gated regularizer" that uses the multi-image preference signal to calibrate the single-image policy, ensuring consistency.
  • Contrastive Sample Editing: To address the issue of "coarse-grained" negative images, the authors propose a novel strategy to generate "hard negatives." This involves precise, localized semantic perturbations to original images, creating subtle but crucial discrepancies that force the model to learn fine-grained visual details rather than relying on superficial differences.

Datasets

  • SymMPO dataset: Used as the seed corpus for generating contrastive samples. This dataset is derived from VQA v2, MSCOCO, and TextVQA.
  • Contrastive Sample Editing Dataset: The authors construct a new dataset of 19,453 contrastive samples using their proposed editing pipeline.
  • Evaluation Benchmarks: The method is evaluated on five diverse benchmarks:
  • HallusionBench
    • AMBER
    • CRPE
    • R-Bench
    • BLINK

Key Insights and Ideas

  • The power of direct visual comparison: Presenting contrasting images in a shared context, rather than in isolation, significantly improves the model's ability to learn fine-grained visual distinctions.
  • Theory matters for optimization: The theoretical inconsistency in previous visual DPO methods was a real bottleneck. IC-VCO's approach of using a shared context resolves this, leading to more stable and effective training.
  • Hard negatives are crucial: Simply creating "different" negative images is insufficient. Precisely edited images that introduce subtle, localized semantic conflicts are far more effective at forcing models to learn genuine visual grounding.
  • Bridging the training-inference gap: VCDist is a clever way to ensure that the benefits of multi-image training translate to single-image inference, a common practical challenge.

Key Results

  • IC-VCO achieves the best overall performance across all compared preference-optimization methods on the evaluated benchmarks.
  • On LLaVA-NeXT-Interleave, IC-VCO outperforms the strongest baseline by 1.19 points with synthetic samples and 1.24 points with contrastive edited samples.
  • The Contrastive Sample Editing strategy consistently improves performance across various baselines and base models, demonstrating its effectiveness in generating useful hard negatives.
  • IC-VCO shows particular strength in attribute and existence-oriented grounding, achieving top scores on AMBER-Attr and AMBER-Exist.
  • Ablation studies confirm the importance of each component: removing the single-image branch, VCDist, or anchor losses significantly degrades performance.

Limitations and Future Work

  • Edited dataset bias: The authors note that their current edited dataset is skewed towards attribute and existence edits, with fewer relation edits. They suggest that richer relation-oriented editing would be beneficial.
  • External VLM dependency: The contrastive sample editing pipeline relies on external expert VLMs and image editing models, which could introduce their own biases or artifacts.
  • Computational cost: The proposed method introduces additional computational cost due to multi-image training and the data construction pipeline.
  • Generalizability: While effective for hallucination mitigation, the authors acknowledge that the method is not a complete solution and doesn't replace broader safety mechanisms. Models trained with this method may still produce errors, especially in high-stakes domains.
  • Future work: The authors suggest exploring more sophisticated editing strategies and further investigating the interplay between different components of their framework.

Summary updated

BibTeX
@inproceedings{deng2026learning,
  author = {Haolin Deng and Xin Zou and Zhiwei Jin and Chen Chen and Haonan Lu and Xuming Hu},
  title = {{Learning from Fine-Grained Visual Discrepancies: Mitigating Multimodal Hallucinations via In-Context Visual Contrastive Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=dtHEthIjmu},
}
Figure