BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
Junnan Li, Dongxu Li, Silvio Savarese, Steven Hoi
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/thudm/visualglm-6bpytorch★ 4,166
- github.com/junshutang/Make-It-3Dpytorch★ 1,886
- github.com/unispac/visual-adversarial-examples-jailbreak-large-language-modelspytorch★ 269
- github.com/yukw777/videoblippytorch★ 124
- github.com/alibaba/graphtranslatorpytorch★ 118
- github.com/kdr/videorag-mrr2024none★ 32
- github.com/linzhiqiu/clip-flant5pytorch★ 30
- github.com/rabiulcste/vqazeropytorch★ 28
- github.com/jiwanchung/vlispytorch★ 24
- github.com/albertotestoni/ndq_visual_objectspytorch★ 2
Abstract
The cost of vision-and-language pre-training has become increasingly prohibitive due to end-to-end training of large-scale models. This paper proposes BLIP-2, a generic and efficient pre-training strategy that bootstraps vision-language pre-training from off-the-shelf frozen pre-trained image encoders and frozen large language models. BLIP-2 bridges the modality gap with a lightweight Querying Transformer, which is pre-trained in two stages. The first stage bootstraps vision-language representation learning from a frozen image encoder. The second stage bootstraps vision-to-language generative learning from a frozen language model. BLIP-2 achieves state-of-the-art performance on various vision-language tasks, despite having significantly fewer trainable parameters than existing methods. For example, our model outperforms Flamingo80B by 8.7% on zero-shot VQAv2 with 54x fewer trainable parameters. We also demonstrate the model's emerging capabilities of zero-shot image-to-text generation that can follow natural language instructions.