All models

blip (visual question answering)

One encoder-decoder mixture for captioning, matching and VQA, bootstrapped on filtered web captions; five builds traced.

Multimodal · 1,628 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (22 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
BLIP
Parameters
361.2M
Operations
1,628
Framework
PyTorch
Recurrent
No
Published
ICML 2022
Cited by
863 (as of 5 October 2026)
Authors
Junnan Li, Dongxu Li, Caiming Xiong, Steven Hoi
Name in source
blip:visual-question-answering
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3701
Graph hash
22dabbb5e9f0b26648963e0303924eb0303e4aab44e3651012e2876b066d0e43
Skeleton hash
d75ec5b1ad81c7cbd9bbb17b8d00dc03473f12e44a7fef6bdfb35de055227728
Architecture hash
8d47949478dc43a71e3c23153f84c9d3ced27e50df83d36e2a7046f1fe0a1884
Diagram SHA-256
f65e2ab3b884a32d131dc649264b30a09febfe3b6f3393ad2cbad3cecb7661f6
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

The visual question answering build encodes the image and question together before the answer decoder, following the paper's answer generation formulation.

About this model's family

BLIP, Bootstrapping Language-Image Pre-training, is Junnan Li, Dongxu Li, Caiming Xiong and Steven Hoi's vision-language model built to do both halves of the field at once. Its premise is that most existing pre-trained models only excel in either understanding-based tasks or generation-based tasks, and that gains had come largely from scaling up the dataset with noisy image-text pairs collected from the web, which is a suboptimal source of supervision. BLIP is pitched as a new VLP framework which transfers flexibly to both vision-language understanding and generation tasks.

The architecture is the Multimodal mixture of Encoder-Decoder (MED), which can operate either as a unimodal encoder, or an image-grounded text encoder, or an image-grounded text decoder. It is jointly pre-trained with three vision-language objectives: image-text contrastive learning, image-text matching, and image-conditioned language modeling. The image side is a vision transformer and the text transformer is initialized from BERTbase; the authors explore two variants of ViTs, ViT-B/16 and ViT-L/16, and all results reported as BLIP use ViT-B. The data-side idea is Captioning and Filtering (CapFilt): a pre-trained MED is finetuned into a captioner to produce synthetic captions given web images, and a filter to remove noisy captions from both the original web texts and the synthetic texts.

The paper reports state-of-the-art results across image-text retrieval (+2.7% in average recall@1), image captioning (+2.8% in CIDEr), and VQA (+1.6% in VQA score), plus strong zero-shot transfer to video-language tasks. The five members here are the same MED rearranged for different heads: the transformers captioning, contrastive and visual question answering builds, and the authors' VQA model with its ViT base backbone. For VQA the authors consider it as an answer generation task, which enables open-ended VQA: an image-question is first encoded into multimodal embeddings and then given to an answer decoder, finetuned with the LM loss using ground-truth answers as targets. Pre-training used random image crops of resolution 224 × 224, with the image resolution increased to 384 × 384 during finetuning, which is the input size the transformers members take. The original repository is now marked deprecated and no longer supported, with BLIP officially integrated into LAVIS, a one-stop library for language-and-vision research and applications.

Key idea. One Multimodal mixture of Encoder-Decoder trained with contrastive, matching and language-modeling losses, plus CapFilt, which bootstraps cleaner captions out of noisy web pairs.

  • blip
  • bootstrapping language-image pre-training
  • blip vqa
  • blip captioning
  • blipforquestionanswering
  • blip-vqa-base
  • salesforce blip
  • image captioning
  • visual question answering
  • image-text retrieval
  • med
  • capfilt
  • li xiong hoi

AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{li2022blipbootstrappinglanguageimagepretraining,
      title={BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation}, 
      author={Junnan Li and Dongxu Li and Caiming Xiong and Steven Hoi},
      year={2022},
      eprint={2201.12086},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2201.12086}, 
}