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

Comparison Visual Instruction Tuning

Wei Lin, Muhammad Jehanzeb Mirza, Sivan Doveh, Rogério Feris, Raja Giryes, Sepp Hochreiter, Leonid Karlinsky

Abstract

While Large Multimodal Models (LMMs) have demonstrated remarkable capabilities in single-image understanding, they frequently struggle with comparative reasoning across multiple images. This paper introduces CaD-VI (Commonalities and Differences Visual Instruction), a novel two-phase instruction tuning framework designed to bridge this gap. By training on CaD-Inst, a massive new dataset of 349K image pairs, and utilizing an iterative self-refinement process, the resulting model—CaD-LLaVA—achieves state-of-the-art performance in visual comparison tasks. Notably, the model shows an absolute improvement of up to 17.5% on the BISON benchmark and demonstrates improved generalization to video tasks, effectively mitigating common issues like "content merging."

Introduction

Humans are naturally adept at "spotting the difference," a fundamental cognitive skill used to navigate and understand the world. However, current LMMs such as LLaVA or GPT-4V often falter when presented with two images simultaneously. These models frequently suffer from "content merging"—a phenomenon where the model mistakenly attributes an object or attribute from one image to another—or fails to detect subtle changes in count, position, or action between scenes.

The primary cause of this deficiency is a significant data gap: the vast majority of visual instruction tuning datasets focus exclusively on single-image descriptions. When multi-image data is available, the instructions are often too simple or lack the structure necessary for complex reasoning. This research addresses these challenges by endowing LMMs with the fundamental capability of understanding Commonalities and Differences (CaD).

The CaD-VI Framework

The authors propose a two-phase approach to develop robust comparative reasoning in LMMs:

Phase 1: Cold-Start Instruction Generation

In the absence of a pre-existing model capable of high-quality visual comparison, the researchers utilized a powerful text-only Large Language Model (Mixtral 8x7B) to act as a teacher. By feeding the LLM dense, human-written captions of image pairs (sourced from datasets like Localized Narratives), the LLM was tasked with generating structured summaries. These summaries were organized across six specific axes: object types, attributes, counts, actions, locations, and relative positions. This phase resulted in the CaD-Inst V1 dataset, containing 278K pairs.

Phase 2: Iterative Self-Refinement

To move beyond purely text-based proxies, the authors trained an initial model (CaD-LLaVA V1) on the Phase 1 data. This "cold-start" model was then used to analyze new image pairs and generate refined, image-informed summaries. This iterative process created CaD-Inst V2 (71K pairs), which significantly reduced hallucinations because the model was required to ground its reasoning in actual pixel data rather than relying solely on symbolic text descriptions.

The final CaD-LLaVA model was fine-tuned using Low-Rank Adaptation (LoRA) on a mixture of standard single-image LLaVA data and the new CaD instructions to ensure the model retained general knowledge while gaining comparative expertise.

Data Contributions: CaD-Inst and CaD-QA

The paper introduces two major resources to the research community:

  1. CaD-Inst: A comprehensive training dataset of 349K image pairs featuring detailed, structured summaries of similarities and differences.
  2. CaD-QA: A specialized evaluation benchmark consisting of 7.5K open-ended question-answer pairs. This benchmark tests a model's ability to reason about specific details across images, such as identifying objects present in one image but missing from another.

Key Insights and Results

The Power of Structured Reasoning

Forcing the model to generate comparisons across specific axes (e.g., counting or relative position) proved more effective than generic paragraph generation. This structure provides a roadmap for the model to systematically evaluate visual information.

Performance Gains

CaD-LLaVA demonstrated superior performance across both closed-ended and open-ended benchmarks:

  • State-of-the-Art (SOTA): The model outperformed larger and more recent models, including LLaVA 1.6 and InternLM-XComposer2, on five distinct comparison benchmarks.
  • BISON Benchmark: On the BISON text-to-image matching task, CaD-LLaVA achieved a 17.5% absolute improvement over the baseline.
  • Video Generalization: Interestingly, although trained on static pairs, the model showed improved performance on the SEED-Bench video task. This suggests that learning to compare discrete frames is a foundational step toward understanding temporal changes in video.

Human-Centric Evaluation

Using GPT-4 as a judge for open-ended evaluations, CaD-LLaVA's summaries were rated significantly higher in terms of quality and accuracy compared to existing LMMs, indicating a more human-like reasoning process.

Limitations and Future Work

Despite its successes, the framework has limitations. It is currently optimized for comparing exactly two images, making it difficult to scale to "N-image" scenarios like photo albums or long-form video. Additionally, while Phase 2 reduced hallucinations, the model may still struggle if the underlying visual encoder fails to capture extremely fine-grained details. Future research will focus on scaling these capabilities to more complex visual reasoning tasks and integrating them into video-native architectures.

Conclusion

By introducing a structured approach to visual comparison and a massive specialized dataset, CaD-VI provides a clear path forward for improving the multi-image reasoning capabilities of LMMs. CaD-LLaVA stands as a significant step toward models that can perceive and analyze the world with the comparative nuance of a human observer.

Summary updated

BibTeX
@inproceedings{lin2025comparison,
  author = {Wei Lin and Muhammad Jehanzeb Mirza and Sivan Doveh and Rogério Feris and Raja Giryes and Sepp Hochreiter and Leonid Karlinsky},
  title = {{Comparison Visual Instruction Tuning}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure