VQA4CIR: Boosting Composed Image Retrieval with Visual Question Answering

Chun-Mei Feng, Yang Bai, Tao Luo, Zhen Li, Salman H. Khan, Wangmeng Zuo, Rick Siow Mong Goh, Yong Liu

TL;DR

This paper introduces VQA4CIR, a novel post-processing technique that leverages Visual Question Answering (VQA) to improve Composed Image Retrieval (CIR). By generating and answering questions about retrieved images based on a textual description, VQA4CIR identifies and re-ranks inconsistent results, significantly boosting retrieval performance on benchmark datasets.

What Problem Does This Paper Address?

Composed Image Retrieval (CIR) aims to find target images based on a query composed of a reference image and a descriptive text. While current CIR methods have made significant progress, a notable percentage of their retrieval results are inconsistent with the provided textual descriptions. This inconsistency leads to suboptimal performance, as the retrieved images don't accurately reflect the desired attributes. The authors identify this as a key challenge and propose VQA4CIR to address it by introducing a VQA-based self-verification pipeline.

Methods

VQA4CIR is a post-processing method that can be integrated with existing CIR models. Its core idea is a "QA generation → VQA" self-verification pipeline:

  1. QA Generation: A fine-tuned Large Language Model (LLM), specifically LLaMA, is used to generate question-answer (QA) pairs from the relative caption. This process aims to break down the caption into specific, verifiable attributes.
  2. VQA Model: A fine-tuned Large Vision-Language Model (LVLM), such as LLaVA, acts as the VQA model. It takes a retrieved image and a generated question as input and predicts an answer.
  3. Self-Verification & Re-ranking: For each retrieved image, the VQA model's answers to the generated questions are compared with the ground-truth answers from the QA generation step. If the VQA model's answer is inconsistent with the expected answer, the image is flagged as inconsistent with the relative caption. These flagged images are then re-ranked to push them further down the list, thereby improving the overall retrieval performance.

The authors also introduce a soft re-ranking scheme using a decay function based on the consistency score (pA) to handle cases where the VQA model's confidence is not absolute.

Datasets

The proposed VQA4CIR method was evaluated on two standard Composed Image Retrieval datasets:

  • CIRR: A widely recognized dataset for CIR tasks.
  • Fashion-IQ: A dataset specifically focused on fashion items.

The authors also mention using instruction datasets for fine-tuning LLaMA and LLaVA, with 5,000 and 3,000 samples for CIRR and Fashion-IQ respectively.

Key Insights and Ideas

  • VQA as a Debugging Tool for CIR: The core insight is that VQA can serve as a powerful mechanism to identify and correct errors in CIR systems, specifically those arising from inconsistencies between retrieved images and textual descriptions.
  • Deconstructing Captions with QA: Breaking down complex textual descriptions into discrete, verifiable questions allows for a more granular assessment of image-caption alignment.
  • LLMs and LVLMs as Synergistic Components: The paper effectively demonstrates how LLMs (for QA generation) and LVLMs (for VQA) can be combined to create a robust self-verification system for image retrieval.
  • Post-processing Power: VQA4CIR's effectiveness as a post-processing step highlights its flexibility, as it can be readily integrated with various existing CIR methods without requiring modifications to their core architectures.

Key Results

  • Significant Performance Boost: VQA4CIR consistently improves the performance of baseline CIR methods (CLIP4CIR* and SPRC) across various metrics on both CIRR and Fashion-IQ datasets. For instance, on CIRR, Recall@10 improved from 89.74% (SPRC) to 91.85% with VQA4CIR.
  • Outperforming State-of-the-Art: The method achieves state-of-the-art results, outperforming existing methods, including a re-ranking method that does not use VQA.
  • Effective Re-ranking: Qualitative analysis shows that VQA4CIR successfully re-ranks images, bringing the true target images to higher positions, even when baseline methods fail to do so.
  • Ablation Studies: Experiments confirm the effectiveness of the caption-wise re-ranking approach over question-wise, and the benefits of fine-tuning LLaVA with LoRA.

Limitations and Future Work

  • Inference Cost: The authors acknowledge that VQA4CIR, due to its reliance on LLMs and LVLMs for re-ranking, incurs a higher inference cost.
  • Future Work: The authors plan to investigate more efficient solutions for verifying the consistency between retrieved images and relative captions to mitigate the inference cost.

Summary updated

BibTeX
@inproceedings{feng2023vqa,
  author = {Chun-Mei Feng and Yang Bai and Tao Luo and Zhen Li and Salman H. Khan and Wangmeng Zuo and Rick Siow Mong Goh and Yong Liu},
  title = {{VQA4CIR: Boosting Composed Image Retrieval with Visual Question Answering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=gozZjJhwyl},
}
Figure