UniFine: A Unified and Fine-grained Approach for Zero-shot Vision-Language Understanding

Rui Sun, Zhecan Wang, Haoxuan You, Noel Codella, Kai-Wei Chang, Shih-Fu Chang

Introduction

Large-scale vision-language models like CLIP have revolutionized zero-shot capabilities by learning to align images and text from massive web-scale datasets. However, these models primarily rely on global image-text matching, which often overlooks fine-grained details necessary for complex reasoning tasks. For instance, in Visual Question Answering (VQA), a global model might fail to identify a specific small object that is critical to the answer. UniFine addresses this limitation by introducing a unified framework that leverages both visual and textual fine-grained information to enhance zero-shot performance across various tasks.

Methodology

UniFine enhances the standard CLIP architecture by incorporating two primary branches of fine-grained data to move beyond simple global matching.

Visual Fine-grained Extraction

Instead of processing only the global image, UniFine employs an object detector (Faster-RCNN) to identify salient regions. A RoBERTa model then ranks these regions based on their similarity to the input text (e.g., a question or hypothesis). The top $N$ most relevant image crops are selected to provide localized visual context, supplementing the global representation.

Textual Fine-grained Extraction

To bridge the modality gap, UniFine generates automated captions using a pre-trained model (OFA). These captions serve as a textual summary of the visual scene, allowing for direct comparison with question-answer pairs or hypotheses in the text domain. This "pseudo-labeling" approach provides a strong signal that global matching might miss.

Overview of UniFine across VQA, SNLI-VE, and VCR tasks, illustrating the integration of visual and textual fine-grained information.

Unified Inference and Answer Filtering

For multiple-choice tasks like VQA and Visual Commonsense Reasoning (VCR), UniFine ensembles scores from global matching, local region matching, and caption-based similarity. To handle the open-ended nature of VQA, a T5 model converts questions into declarative statements to filter candidate answers down to the most plausible options. In Visual Entailment (SNLI-VE), where explicit choices are absent, a clustering algorithm is used to categorize CLIP alignment scores into "Entailment," "Neutral," or "Contradiction."

Experimental Evaluation

The framework was evaluated on three major benchmarks:

  • VQAv2: The standard benchmark for Visual Question Answering.
  • SNLI-VE: A task predicting whether an image entails, contradicts, or is neutral toward a text hypothesis.
  • VCR: A complex task requiring higher-level reasoning, split into answer selection (Q2A) and rationale selection (QA2R).

Key Results

UniFine consistently outperformed existing zero-shot baselines across all evaluated tasks:

  • VQAv2: Achieved 40.33% accuracy, a 3% improvement over the previous state-of-the-art zero-shot method (TAP-C).
  • SNLI-VE: Reached 50.16% accuracy, a significant jump from the 47.37% baseline.
  • VCR: On the Q2A task, it achieved 58.48%, a gain of over 5% compared to the baseline.

Ablation studies confirmed that both visual regions and textual captions are vital, though their relative impact varies by task. Local regions were particularly effective for VQA questions requiring the identification of specific, non-obvious objects, while captions acted as a crucial bridge for reasoning tasks.

Conclusion

UniFine demonstrates that zero-shot vision-language understanding can be significantly improved by "zooming in" on fine-grained details. By structuring the inference process to include local visual regions and generated textual captions, UniFine achieves state-of-the-art results without requiring expensive task-specific human annotations. Future work will focus on improving the robustness of question-to-statement conversion and expanding the visual branch beyond fixed object detection vocabularies.

Summary updated

BibTeX
@inproceedings{sun2023unifine,
  author = {Rui Sun and Zhecan Wang and Haoxuan You and Noel Codella and Kai-Wei Chang and Shih-Fu Chang},
  title = {{UniFine: A Unified and Fine-grained Approach for Zero-shot Vision-Language Understanding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.49},
}
Figure