Paper commentary
Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyond
Qwen-VL adds vision to a language model for grounding and text reading
- Problem Large language models cannot take images as input. Most open-source vision-language models describe images only coarsely, so they cannot do object grounding or text reading.
- Method Qwen-VL attaches a ViT encoder to Qwen-7B through a cross-attention adapter with 256 learnable queries. It writes boxes as text and trains in three stages.
- Results Qwen-VL reaches 85.8 CIDEr zero-shot on Flickr30K, above Flamingo-80B. On Nocaps it reaches 121.4, slightly below InstructBLIP at 121.9.
Why open vision-language models fall short on fine detail
Large language models work well on text but cannot read images, speech or video, which limits where they can be deployed. Large vision-language models attach a visual pathway to a language model to close this gap, and many of them have been built in recent work.
The authors say open-source models of this kind have had less training and tuning than proprietary ones, which slows wider use of them. Most open-source models also describe an image coarsely and cannot perform fine-grained tasks such as object grounding or text reading, which the authors treat as the key gap.
How an image becomes tokens for the language model
The model has three components: a language model initialized from Qwen-7B weights, a ViT visual encoder initialized from OpenCLIP ViT-bigG weights, and a position-aware adapter between them. Images are resized to a fixed resolution and cut into patches with a stride of 14, so the encoder returns a long sequence of image features.
The adapter is one cross-attention layer with randomly initialized learnable queries. The queries attend to the encoder features, which act as keys, and the output is compressed to a fixed length of 256. Because compression can discard positional detail, 2D absolute positional encodings are added to the query and key pairs inside the cross-attention.
Each image feature sequence is wrapped by an image start token and an image end token, so the model can separate visual input from text.
Writing boxes and phrases as text
Boxes are normalized into the range [0, 1000) and written as a string of two corner points, so grounding needs no separate position vocabulary. Box tokens mark a coordinate string as a box, and ref tokens mark the phrase or sentence that the box refers to, which ties a description to its location. The training data for this covers region descriptions, questions and detections, which the authors treat as harder than standard captioning or question answering.
First stage: pre-training on weakly labeled pairs
The first stage draws on web-crawled, weakly labeled image-text pairs. The pool started at 5 billion pairs, and cleaning left 1.4 billion, of which 77.3% are English and 22.7% Chinese text. Table 2 splits the pool by source, from LAION-en, which shrank from 2B to 280M, to LAION-COCO, DataComp, Coyo, the academic caption sets and in-house data.
The maximum learning rate is 2e−4 with a global batch of 30720 image-text pairs, and the stage runs for 50,000 steps, about 1.5 billion image-text samples.
Second stage: multi-task pre-training at higher resolution
The second stage raises the input resolution to 448 × 448, and the whole model is trained, including the language model, which the first stage kept frozen.
Grounding samples come from GRIT, and the referring and grounded captioning samples are built from GRIT, Visual Genome, RefCOCO, RefCOCO+ and RefCOCOg. Text-reading ability is targeted with PDF and HTML pages from Common Crawl and synthetic OCR images that use natural scenery backgrounds.
Third stage: instruction tuning into Qwen-VL-Chat
The final stage instruction-tunes the pre-trained model into Qwen-VL-Chat. The visual encoder stays frozen, while the language model and the adapter are optimized. Multimodal and pure-text dialogue are mixed during training to keep general dialogue ability.
As a result, Qwen-VL-Chat handles multiple image inputs, multi-round dialogue and multilingual conversation, which the paper illustrates with qualitative examples.
Captioning and general VQA results
Captioning is scored with CIDEr on Nocaps and Flickr30K, using greedy decoding and a fixed English captioning prompt. General VQA covers VQAv2, OKVQA, GQA, ScienceQA image set and VizWiz. Open-ended answers are generated for the first four and the answer is chosen from options for ScienceQA, where the top-1 accuracy is reported.
On Flickr30K, Qwen-VL reaches 85.8 CIDEr zero-shot, above Flamingo-80B with 80B parameters and the other generalist rows in Table 4. On Nocaps, Qwen-VL reaches 121.4, which is below InstructBLIP at 121.9 in the same table, so it is not the top score on that split.
Specialist SOTA entries in the same table come from task-specific systems and serve as reference points, not as matched comparisons.
Text-oriented VQA and referring expression results
On TextVQA, Qwen-VL reaches 63.8 and Qwen-VL-Chat reaches 61.5. On OCR-VQA the two reach 75.7 and 70.5. Qwen-VL-Chat scores higher than Qwen-VL on ChartQA, at 66.3 against 65.7, so the chat model is not uniformly weaker on text-oriented tasks.
For referring expression comprehension, accuracy is measured on RefCOCO, RefCOCO+, RefCOCOg and GRIT. Qwen-VL-7B reaches 89.36 on RefCOCO val and 78.22 on the GRIT refexp split. Specialist models such as UNINEXT-H reach 92.64 on RefCOCO val, so the generalist models are described as top-tier among generalists, not as best overall.
Few-shot learning with random exemplars
The authors describe performance as comparable with the much larger models.
The demonstration examples are picked by random sampling, not by retrieval methods such as RICES, which the authors note could yield better results.
Instruction-following benchmarks
Qwen-VL-Chat is evaluated on TouchStone, SEED-Bench and MME, which are open-ended and multiple-choice benchmarks covering real-user behavior. TouchStone is compared in both English and Chinese.
In the TouchStone column, Qwen-VL-Chat scores 645.2, higher than the other instruction-tuned LVLM rows that report a value, such as 605.4 for mPLUG-Owl and 552.4 for InstructBLIP. The authors say the advantage is clearest in Chinese and in the understanding and recognition categories, including text recognition and chart analysis.
For SEED-Bench, the authors transfer the image capability to video by sampling four frames.
Limitations
Qwen-VL-Chat is not uniformly stronger than Qwen-VL. It scores 120.2 against 121.4 on Nocaps and 81.0 against 85.8 on Flickr30K, and it scores 61.5 against 63.8 on TextVQA.
The video result rests on SEED-Bench with four sampled frames, and the few-shot results use random exemplars rather than a tuned selection method. Pre-training data are weakly labeled web pairs, and cleaning addressed only certain patterns.
The conclusion frames further work around more modalities, scale and resolution, but the paper does not test these directions.
Paper info
- Authors
- Jinze Bai, Shuai Bai, Shusheng Yang, Shijie Wang, Sinan Tan, Peng Wang, Junyang Lin, Chang Zhou, Jingren Zhou
- Venue
- arXiv · Preprint
- First published
- 2023-8-24
- Added
- 2026-11-12
- Updated
- 2023-10-13
- Version
- v3
- arXiv
- 2308.12966
- Category
- cs.CV · cs.CL
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Jinze Bai, Shuai Bai, Shusheng Yang, Shijie Wang, Sinan Tan, Peng Wang, Junyang Lin, Chang Zhou, Jingren Zhou (2023). Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyond. arXiv:2308.12966v3. https://arxiv.org/abs/2308.12966v3
BibTeX
@misc{bai2023qwen,
title = {{Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyond}},
author = {Jinze Bai and Shuai Bai and Shusheng Yang and Shijie Wang and Sinan Tan and Peng Wang and Junyang Lin and Chang Zhou and Jingren Zhou},
year = {2023},
eprint = {2308.12966},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2308.12966v3}
}