VIXEN: Visual Text Comparison Network for Image Difference Captioning

Alexander Black, Jing Shi, Yifei Fan, Tu Bui, John P. Collomosse

Abstract

Image Difference Captioning (IDC) is the task of generating natural language descriptions that explain the semantic changes between two images. While existing tools focus on provenance or detection, VIXEN (Visual Text Comparison Network) provides a framework for explaining what has changed. By utilizing a dual-branch architecture that extracts features from image pairs and feeds them into a Large Language Model (GPT-J) via soft prompting, VIXEN achieves state-of-the-art performance. This paper details the model's architecture, the synthetic data pipeline used to overcome data scarcity, and the key finding that feature concatenation allows LLMs to perform internal "differencing" more effectively than explicit mathematical operations.

1. Introduction

In the current digital landscape, the proliferation of manipulated images poses a significant challenge to information integrity. While standards like C2PA help track image provenance, they often fail to provide a semantic explanation of the modifications made. Image Difference Captioning (IDC) addresses this gap by generating concise, human-readable summaries of visual changes. However, IDC faces two primary hurdles: the scarcity of high-quality, diverse datasets and the inherent difficulty of reasoning about the relationship between two distinct visual inputs.

2. The VIXEN Framework

VIXEN is designed to bridge the gap between computer vision and natural language processing for comparison tasks. The architecture is built around a streamlined two-branch system.

2.1 Architecture and Soft Prompting

The model processes a pair of images—the original and the edited version—using a pretrained visual encoder. The authors experimented with two primary encoders: CLIP (RN50x16) and a Q-Former derived from BLIP-2. These extracted visual features are then passed through a trainable linear projection layer. This layer maps the visual data into the input embedding space of a Large Language Model (GPT-J).

Rather than using a traditional text-based prompt, VIXEN employs these mapped features as "soft prompts." This allows the LLM to receive the visual information directly in a format it can process, leveraging its pre-existing reasoning capabilities to compare the two sets of features.

2.2 Feature Fusion: The Case for Concatenation

A critical design choice in VIXEN is how to combine the features of the two images. While previous approaches often used mathematical operations like subtraction or averaging to represent the "difference," VIXEN utilizes simple concatenation. The researchers found that concatenation preserves the full spatial-semantic context of both images, allowing the LLM to perform the "differencing" operation internally. This approach consistently outperformed explicit differencing in ablation studies.

3. Overcoming Data Scarcity

The lack of realistic IDC datasets led the authors to develop a synthetic training pipeline. They leveraged the InstructPix2Pix (IP2P) dataset, which contains image pairs and edit instructions. To transform these instructions into descriptive captions, the team used GPT-3 to convert "edit instructions" (e.g., "make it a dog") into "difference summaries" (e.g., "the cat has been replaced by a dog").

To further refine the model's accuracy, the training set included "distractor" pairs—sets of two identical images. This taught VIXEN to recognize when no change had occurred, effectively reducing the "hallucinations" common in generative models where a change is described even when none exists.

4. Evaluation and Results

VIXEN was evaluated against several benchmarks, including the augmented IP2P dataset, PSBattles (real-world Photoshopped images), and the Image Editing Request (IER) dataset.

4.1 Quantitative Performance

VIXEN significantly outperformed existing state-of-the-art models like CLIP4IDC. On the IP2P dataset, it achieved superior scores in CIDEr (measuring caption quality) and MPNet (measuring semantic similarity). These results indicate that VIXEN produces captions that are not only more accurate but also more aligned with human linguistic patterns.

4.2 Human Preference

A qualitative user study confirmed the quantitative findings. Crowd-sourced evaluators preferred VIXEN’s captions over baseline models in a majority of cases. Specifically, for the IP2P dataset, the VIXEN variants (VIXEN-Q and VIXEN-C) were preferred in 58% of comparisons, while the next best baseline reached only 24%.

5. Discussion and Limitations

Despite its success, VIXEN faces certain challenges common to LLM-based systems. One issue is "LM runoff," where the model's linguistic priors lead it to hallucinate details. For instance, if the model detects a "cartoon" style, it might describe "large eyes" even if they aren't present, simply because that is a common association in its training data.

Additionally, the model occasionally struggles with "directionality," sometimes reversing the order of the change (e.g., stating an object was added when it was actually removed). Finally, while the model generalizes well from synthetic data to real-world images, a performance gap remains, suggesting that future work should focus on more diverse edit types, such as complex object insertions and deletions.

6. Conclusion

VIXEN demonstrates that Large Language Models can be powerful engines for visual reasoning when provided with the right architectural framework. By treating image comparison as a sequence-to-sequence task and utilizing synthetic data augmentation, VIXEN provides a robust solution for explaining image manipulations, moving us closer to more transparent and interpretable AI systems.

Summary updated

BibTeX
@inproceedings{black2024vixen,
  author = {Alexander Black and Jing Shi and Yifei Fan and Tu Bui and John P. Collomosse},
  title = {{VIXEN: Visual Text Comparison Network for Image Difference Captioning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i2.27843},
}
Figure