v9.1.1
Menu
Paper breakdownVision-LanguageFREE2024

Qwen2-VL

Enhancing Vision-Language Model's Perception of the World at Any Resolution

Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai,

9

Concepts

6

Formulas

12

Figures

5

Demos

Paper Overview

Qwen2-VL (Qwen Team, Alibaba Group, 2024) asks a plain question: why should a vision-language model look at every image through the same keyhole? Most LVLMs of the time resized each input to a fixed size such as 224×224, or scaled and padded it, before the vision encoder ever saw it. A receipt, a 1092×8204 web page and a thumbnail all came out as the same number of tokens, and fine text in large images was simply lost.

The paper keeps the Qwen-VL framework (vision encoder, connector, LLM) and makes three changes. Naive Dynamic Resolution lets the 675M-parameter ViT take images at native resolution and emit a variable number of tokens: one LLM token per 28×28 pixel block, so a 224×224 image costs 66 tokens and a long web page costs over eleven thousand. Multimodal Rotary Position Embedding (M-RoPE) splits rotary position into temporal, height and width components, so one positional scheme covers text, images and video. A unified image/video pipeline samples video at 2 fps and runs a depth-2 3D convolution, so frames are encoded as tubes and an image is just a two-frame video.

Training follows Qwen-VL's three stages over 1.4T pre-training tokens, and the open-weight family comes in 2B, 7B (8B total) and 72B sizes. Qwen2-VL-72B reaches 96.5 on DocVQA, 877 on OCRBench and 77.8 on RealWorldQA, ahead of GPT-4o and Claude 3.5 Sonnet on most document and general-VQA benchmarks. The paper is also candid about where it trails: 64.5 vs GPT-4o's 69.1 on MMMU, and far behind specialist models on vision-language navigation.

Explainer video

Chapter Roadmap

Click any topic to jump in

Interactive demo
1
The Fixed-Resolution Bottleneck

Most LVLMs squash every image to one size such as 224×224, losing detail in large images and treating video as a separate modality.

addressed by
2
Architecture and Model Family

One 675M ViT shared across Qwen2 LLMs of 1.5B, 7.6B and 72B parameters, keeping vision cost constant as the LLM grows.

upgraded with

Three architectural changes

3
Naive Dynamic Resolution

Images enter at native resolution; 2D-RoPE replaces absolute positions and a 2×2 MLP merge gives one LLM token per 28×28 pixels.

4
M-RoPE

Rotary embedding split into temporal, height and width components, so text, images and video share one positional scheme.

5
Unified Image and Video

Video at 2 fps through a depth-2 3D convolution; images are two identical frames; at most 16,384 tokens per video.

trained via
6
Three-Stage Training

ViT-only, then everything, then LLM-only instruction tuning: 1.4T pre-training tokens with loss on text tokens only.

evaluated on

Perception and action

7
Results

72B scores 96.5 DocVQA, 877 OCRBench and 77.8 RealWorldQA, ahead of GPT-4o on documents, though behind it on MMMU (64.5 vs 69.1).

8
The Visual Agent

Function calls, phone UI, card games, ALFRED and navigation: 72.1 exact match on AITZ against GPT-4o’s 35.3.

scaled and probed
9
Scaling and Limits

Math improves with model size, OCR is strong even at 2B, and navigation remains far behind specialist models.

Concept by concept

9 sections, in reading order.

01 / 09The Fixed-Resolution Bottleneck

The standard LVLM recipe of 2023 was visual encoder → cross-modal connector → LLM, trained with next-token prediction. It worked, but it carried an assumption from image classification: every image is first forced to one resolution. Models either down- or up-sampled to something like 224×224, or used a scale-then-pad approach. That is convenient for batching and disastrous for detail. A dense document page shrunk to 224 pixels wide no longer has legible characters, and no amount of LLM capacity can recover information the encoder never received.

The paper names two more problems. First, many LVLMs keep a frozen CLIP-style encoder, so the visual representation cannot adapt to OCR, charts, or fine-grained reasoning. Qwen-VL had already shown that fine-tuning the ViT helps; Qwen2-VL keeps it trainable and adds dynamic resolution on top. Second, video is usually bolted on as a separate modality, and positions are encoded one-dimensionally. Text is a 1D sequence, but an image is 2D and a video is 3D. Flattening them into a single running index throws away which tokens are neighbours in space or time.

Qwen2-VL's thesis is that perception should scale with the input: more pixels should mean more tokens, and position should carry the input's true geometry. A small icon should be cheap, a 20-minute video should still fit, and the model should know that two patches are vertically adjacent rather than 40 positions apart.

Key Points

  • 1

    Standard LVLMs encode inputs at a fixed resolution (e.g. 224×224) by resizing, or with a scale-then-padding approach

  • 2

    One-size-fits-all resolution causes significant loss of detail in high-resolution images, such as documents, charts and screenshots

  • 3

    Many LVLMs use a static, frozen CLIP-style encoder, which raises doubts about whether its features are adequate for fine-grained reasoning

  • 4

    Video is often treated as an independent modality, and 1D position embeddings cannot express 2D layout or temporal order

  • 5

    Scaling laws for LVLMs, meaning how performance changes with model and data size, were still largely unexplored

  • 6

    Qwen2-VL's answer: native-resolution input, a trainable ViT with 2D-RoPE, M-RoPE in the LLM, and one pipeline for images and video