CogVLM: Visual Expert for Pretrained Language Models
Weihan Wang, Qingsong Lv, Wenmeng Yu, Wenyi Hong, Ji Qi, Yan Wang,, Junhui Ji, Zhuoyi Yang, Lei Zhao, Xixuan Song, Jiazheng Xu, Bin Xu, Juanzi, Li, Yuxiao Dong, Ming Ding, Jie Tang

TL;DR
CogVLM introduces a trainable visual expert module that enables deep vision-language feature fusion in pretrained language models, achieving state-of-the-art results across multiple cross-modal benchmarks without performance loss on NLP tasks.
Contribution
The paper proposes CogVLM, a novel visual language foundation model with a trainable visual expert module that enhances deep fusion of vision and language features in pretrained models.
Findings
Achieves state-of-the-art on 10 cross-modal benchmarks.
Ranks 2nd on VQAv2, OKVQA, TextVQA, and COCO captioning.
Surpasses or matches larger models like PaLI-X.
Abstract
We introduce CogVLM, a powerful open-source visual language foundation model. Different from the popular shallow alignment method which maps image features into the input space of language model, CogVLM bridges the gap between the frozen pretrained language model and image encoder by a trainable visual expert module in the attention and FFN layers. As a result, CogVLM enables deep fusion of vision language features without sacrificing any performance on NLP tasks. CogVLM-17B achieves state-of-the-art performance on 10 classic cross-modal benchmarks, including NoCaps, Flicker30k captioning, RefCOCO, RefCOCO+, RefCOCOg, Visual7W, GQA, ScienceQA, VizWiz VQA and TDIUC, and ranks the 2nd on VQAv2, OKVQA, TextVQA, COCO captioning, etc., surpassing or matching PaLI-X 55B. Codes and checkpoints are available at https://github.com/THUDM/CogVLM.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗zai-org/visualglm-6bmodel· 169 dl· ♡ 210169 dl♡ 210
- 🤗zai-org/cogvlm-chat-hfmodel· 976 dl· ♡ 199976 dl♡ 199
- 🤗zai-org/cogvlm-base-224-hfmodel· 15 dl· ♡ 515 dl♡ 5
- 🤗zai-org/cogvlm-base-490-hfmodel· 75 dl· ♡ 775 dl♡ 7
- 🤗zai-org/cogvlm-grounding-base-hfmodel· 21 dl· ♡ 321 dl♡ 3
- 🤗zai-org/cogvlm-grounding-generalist-hfmodel· 215 dl· ♡ 16215 dl♡ 16
- 🤗Sundogs/image_to_textmodel· 5 dl· ♡ 25 dl♡ 2
- 🤗grim3000/cogvlm-chat-hfmodel· 7 dl7 dl
- 🤗Starbourne/cogvlm-chat-hfmodel· 5 dl5 dl
- 🤗Starbourne/cogvlm-grounding-generalist-hfmodel· 4 dl4 dl
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMultimodal Machine Learning Applications · Natural Language Processing Techniques · Topic Modeling
