Skip to main content
QUICK REVIEW

[Paper Review] How Much Can CLIP Benefit Vision-and-Language Tasks?

Sheng Shen, Liunian Harold Li|arXiv (Cornell University)|Jul 13, 2021
Multimodal Machine Learning ApplicationsComputer Science68 references152 citations
TL;DR

The paper investigates using CLIP as the visual encoder in V&L models, in direct fine-tuning and in V&L pre-training, achieving competitive and state-of-the-art results on several tasks.

ABSTRACT

Most existing Vision-and-Language (V&L) models rely on pre-trained visual encoders, using a relatively small set of manually-annotated data (as compared to web-crawled data), to perceive the visual world. However, it has been observed that large-scale pretraining usually can result in better generalization performance, e.g., CLIP (Contrastive Language-Image Pre-training), trained on a massive amount of image-caption pairs, has shown a strong zero-shot capability on various vision tasks. To further study the advantage brought by CLIP, we propose to use CLIP as the visual encoder in various V&L models in two typical scenarios: 1) plugging CLIP into task-specific fine-tuning; 2) combining CLIP with V&L pre-training and transferring to downstream tasks. We show that CLIP significantly outperforms widely-used visual encoders trained with in-domain annotated data, such as BottomUp-TopDown. We achieve competitive or better results on diverse V&L tasks, while establishing new state-of-the-art results on Visual Question Answering, Visual Entailment, and V&L Navigation tasks. We release our code at https://github.com/clip-vil/CLIP-ViL.

Motivation & Objective

  • Motivate improving visual encoders for V&L by leveraging CLIP's large-scale, language-supervised training.
  • Evaluate CLIP as a visual encoder in two setups: direct task-specific fine-tuning and V&L pre-training with transfer to downstream tasks.
  • Demonstrate improvements over traditional in-domain annotated encoders across diverse V&L tasks.
  • Identify strengths and limitations of CLIP across V&L tasks and provide open-source resources for reproducibility.

Proposed method

  • Plug CLIP visual encoders into existing V&L models and fine-tune on three tasks: VQA, image captioning, and Vision-and-Language Navigation (VLN).
  • Compare CLIP variants (CLIP-Res50, CLIP-Res101, CLIP-Res50x4, CLIP-ViT-B) against ImageNet-pretrained baselines.
  • In V&L pre-training, replace region-based representations with CLIP features and pre-train with reconstructive, image-text matching, and VQA objectives.
  • Propose CLIP-ViL and CLIP-ViL_p architectures to perform V&L pre-training with a unified Transformer that ingests text and CLIP visual embeddings.
  • Evaluate zero-shot CLIP performance in VQA and analyze the impact of unfreezing the visual backbone during pre-training/fine-tuning.

Experimental results

Research questions

  • RQ1How does replacing the visual encoder with CLIP affect performance on V&L tasks (VQA, image captioning, VLN)?
  • RQ2Do CLIP-based V&L models achieve competitive or state-of-the-art results compared to region-based encoders?
  • RQ3What are the benefits and limitations of combining CLIP with V&L pre-training for downstream tasks?
  • RQ4How does unfreezing the CLIP visual backbone influence V&L performance?
  • RQ5Is zero-shot CLIP capable of solving V&L tasks without fine-tuning?

Key findings

  • CLIP-ViL improves VQA accuracy by 1.4 percentage points over strong baselines in direct fine-tuning setups.
  • In image captioning, CLIP-Res50 and CLIP-Res50x4 outperform in-domain ImageNet baselines, achieving notable CIDEr and SPICE gains.
  • CLIP-ViL_p with CLIP-Res50x4 sets new state-of-the-art on VQA (76.70% test) and SNLI-VE (80.20% test).
  • CLIP-Res50x4 in V&L pre-training surpasses VinVL (region-based) on VQA, with fewer pre-training steps, and approaches VinVL on GQA where region data advantages exist.
  • Unfreezing the CLIP visual backbone during pre-training/fine-tuning yields larger gains for CLIP-Res50 than for some region-based baselines, indicating adaptive benefits of backpropagating into the visual encoder.
  • Zero-shot CLIP performs near-chance on VQA when not fine-tuned, even with prompt engineering, highlighting the need for interactive modeling and task-specific training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.