Skip to main content
QUICK REVIEW

[Paper Review] Instruction-ViT: Multi-Modal Prompts for Instruction Learning in ViT

Zhenxiang Xiao, Yuzhong Chen|arXiv (Cornell University)|Apr 29, 2023
Multimodal Machine Learning ApplicationsComputer Science7 citations
TL;DR

This paper proposes Instruction-ViT, a vision transformer framework that enhances image classification through multi-modal prompts—text, image, or combined—guided by instruction tuning. By jointly fine-tuning visual and textual prompt embeddings with the ViT backbone, the model achieves superior accuracy and faster adaptation across multiple datasets, outperforming standard fine-tuning and visual prompt tuning (VPT) methods.

ABSTRACT

Prompts have been proven to play a crucial role in large language models, and in recent years, vision models have also been using prompts to improve scalability for multiple downstream tasks. In this paper, we focus on adapting prompt design based on instruction tuning into a visual transformer model for image classification which we called Instruction-ViT. The key idea is to implement multi-modal prompts (text or image prompt) related to category information to guide the fine-tuning of the model. Based on the experiments of several image captionining tasks, the performance and domain adaptability were improved. Our work provided an innovative strategy to fuse multi-modal prompts with better performance and faster adaptability for visual classification models.

Motivation & Objective

  • To improve vision transformer performance in image classification by integrating instruction tuning with multi-modal prompts.
  • To investigate whether text, image, or combined prompts enhance model adaptability and accuracy in zero-shot or few-shot scenarios.
  • To reduce the need for extensive parameter updates by leveraging prompt tuning with pre-trained ViT backbones.
  • To evaluate the effectiveness of multi-modal prompts across diverse image classification benchmarks.
  • To explore the feasibility of using both textual and visual prompts as instruction signals for visual tasks.

Proposed method

  • The model uses a pre-trained ViT-B backbone with CLIP-encoders for visual and textual feature extraction.
  • Text prompts are constructed based on potential image categories and projected into the same embedding space as image tokens.
  • Image and text prompt embeddings are jointly fine-tuned with the classification head to align with input image representations.
  • A similarity score between the CLS token and each category’s prompt embedding is computed for classification.
  • The method supports both uni-modal (text or image) and multi-modal (text + image) prompts for flexible tuning.
  • Only the prompt embeddings and classification head are fine-tuned, preserving most of the pre-trained ViT parameters.

Experimental results

Research questions

  • RQ1Can instruction tuning with multi-modal prompts improve zero-shot and few-shot image classification performance in vision transformers?
  • RQ2How does the use of text-only, image-only, or combined text-and-image prompts affect model accuracy and adaptability?
  • RQ3Does prompt-based tuning with pre-trained ViT and CLIP encoders outperform standard fine-tuning and visual prompt tuning (VPT)?
  • RQ4In which datasets or scenarios do specific prompt modalities (text, image, or mix) yield optimal performance?
  • RQ5Can multi-modal prompts reduce the need for extensive parameter updates while maintaining or improving performance?

Key findings

  • Instruction-ViT achieved an average accuracy of 95.59% across four datasets, outperforming standard ViT-B (95.57%) and other models like DeiT-B and ResNet-152.
  • On the Oxford-III Pets dataset, the text prompt achieved 84.74% accuracy, the highest among all prompt types.
  • On Caltech-101, the image prompt reached 80.85% accuracy, the best among all prompt types on this dataset.
  • On Stanford Cars, the mixed text-and-image prompt achieved 66.11% accuracy, the highest of all prompt types on this dataset.
  • Instruction-ViT outperformed the VPT method by 7.9% on average, demonstrating the advantage of instruction-guided multi-modal prompting.
  • The model showed faster adaptability and better domain generalization, especially when using modality-specific prompts per dataset.

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.