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 · DOI

Abstract

Zero-shot vision-language understanding (VLU) has traditionally relied on global image-text matching, which often overlooks critical fine-grained details necessary for complex reasoning. This paper introduces UniFine, a unified framework that enhances zero-shot performance by extracting and leveraging fine-grained visual regions and textual priors. By "zooming in" on relevant image patches and utilizing generated captions as semantic bridges, UniFine achieves state-of-the-art results on benchmarks such as VQA, SNLI-VE, and VCR without requiring task-specific training data.

Introduction

Vision-Language Understanding (VLU) tasks, including Visual Question Answering (VQA) and Visual Entailment (SNLI-VE), typically demand extensive human-annotated datasets for supervised training. While models like CLIP have demonstrated significant zero-shot potential through global image-text alignment, they often struggle with complex reasoning that hinges on localized visual details or specific textual nuances. For instance, distinguishing between a subject eating "pizza" versus "pancakes" requires a level of granularity that global matching frequently misses.

Methodology: The UniFine Framework

UniFine addresses the limitations of global matching by introducing two fine-grained extraction branches that supplement the standard CLIP alignment process.

Figure 1: UniFine utilizes visual and textual fine-grained information to improve zero-shot reasoning across VQA, SNLI-VE, and VCR tasks.

1. Visual Fine-grained Extraction

Rather than processing the entire image as a single entity, UniFine employs a Faster-RCNN object detector to identify specific regions of interest. A RoBERTa-based selector then identifies the $N$ most relevant regions based on the input question or hypothesis. These high-relevance patches are concatenated with the original image, providing the CLIP image encoder with "zoomed-in" visual context.

2. Textual Fine-grained Extraction

To bridge the gap between raw pixels and semantic concepts, UniFine generates image captions using a pre-trained OFA model. It then computes a "prior score" by measuring the semantic similarity between candidate answer choices and both the generated caption and the original question using RoBERTa.

3. Unified Scoring and Task Handling

  • VQA and VCR: The framework uses a T5 model to narrow down thousands of potential answers to a "Top-K" set. It then ensembles CLIP alignment scores with textual prior scores to determine the final answer.
  • Visual Entailment (SNLI-VE): To handle tasks without explicit answer choices, the authors implement a clustering algorithm. CLIP scores across the evaluation set are clustered into three groups representing Entailment, Neutral, and Contradiction, allowing the model to define these relationships relative to the data distribution.

Experimental Evaluation

The researchers evaluated UniFine on three major benchmarks: VQAv2 (Visual Question Answering), SNLI-VE (Visual Entailment), and VCR (Visual Commonsense Reasoning).

Key Results

UniFine consistently outperformed existing zero-shot baselines:

  • VQAv2: Achieved 40.33% accuracy, surpassing the previous state-of-the-art zero-shot method, TAP-C.
  • SNLI-VE: Improved accuracy to 50.16%, up from the 47.37% baseline.
  • VCR: Demonstrated significant gains, reaching 58.48% on the Q2A task and 51.88% on the QA2R task (improvements of ~5% and ~5.3% respectively).

Ablation studies confirmed that the synergy between visual region extraction and textual captioning is critical for these performance gains.

Discussion and Insights

The success of UniFine highlights several key principles in zero-shot VLU:

  • The "Zoom" Factor: CLIP’s performance is often limited by resolution. Providing cropped, high-relevance regions acts as a visual hint that corrects global alignment errors.
  • Captions as a Semantic Bridge: Since CLIP is trained on image-caption pairs, comparing candidate answers to generated captions in text space is often more reliable than direct image-to-text matching.
  • Relative Entailment: Treating visual entailment as a clustering problem bypasses the need for the model to understand abstract logical categories in isolation.

Limitations and Future Directions

Despite its success, UniFine faces certain constraints. The reliance on T5 for question conversion means that failures in capturing question nuance can propagate. Additionally, the visual branch is limited by the object categories of the underlying Faster-RCNN detector. Future work may involve replacing this with open-vocabulary vision modules to enhance flexibility.

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