Preprint
Computer Vision

BLIP 2

January 1, 2023

0

Citations

0

Influential Citations

Venue

2023

Year

Abstract

A Vision-Language Pre-training (VLP) framework that proposes Q-Former, a trainable module to bridge the gap between a frozen image encoder and a frozen LLM to bootstrap vision-language pre-training.

Analysis

Why This Paper Matters

BLIP-2 addresses a critical bottleneck in vision-language pre-training: the prohibitive cost of training large-scale multimodal models from scratch. By introducing Q-Former, the paper shows that a small, trainable module can effectively bridge a frozen image encoder (e.g., ViT) and a frozen large language model (e.g., OPT, FlanT5). This modular approach dramatically reduces the number of trainable parameters, making state-of-the-art multimodal capabilities accessible to more researchers and practitioners.

The paper is significant because it decouples the training of vision and language components, allowing practitioners to leverage the rapid progress in both fields independently. This is especially timely given the explosion of large language models and vision transformers, each requiring enormous resources to train. BLIP-2 provides a blueprint for efficient multimodal integration without sacrificing performance.

Technical Contributions

  • Q-Former Architecture: A lightweight transformer with learnable query tokens that interact with frozen image features via cross-attention. The queries are designed to extract task-relevant visual information.
  • Two-Stage Pre-training: Stage 1 trains Q-Former with image-text pairs using three objectives: image-text contrastive learning, image-grounded text generation, and image-text matching. Stage 2 connects Q-Former to a frozen LLM via a linear layer, training only the Q-Former and the projection.
  • Frozen Model Utilization: The approach keeps both the image encoder and LLM completely frozen, avoiding catastrophic forgetting and reducing memory footprint.
  • Efficiency: BLIP-2 achieves competitive or superior results with orders of magnitude fewer trainable parameters than end-to-end methods.

Results

BLIP-2 achieves state-of-the-art zero-shot performance on image captioning (e.g., 132.8 CIDEr on COCO Caption) and visual question answering (e.g., 65.0% accuracy on VQAv2 zero-shot). On the VQAv2 benchmark, it outperforms prior methods by 8.7% while using only 1/54th of the trainable parameters of Flamingo. The method also shows strong generalization across multiple LLM backbones, including OPT and FlanT5.

Significance

BLIP-2 has broad implications for the AI field. It provides a practical recipe for combining the best available vision and language models without retraining them, enabling rapid prototyping and deployment of multimodal systems. The modular design also facilitates future upgrades as better frozen models become available. This work likely influences subsequent research on parameter-efficient multimodal learning and may accelerate the development of applications such as image captioning, visual question answering, and multimodal chatbots.