# Qwen2-VL (2024)

> Replaced fixed square crops and patch grids with Naive Dynamic Resolution and Multimodal RoPE so one ViT+LLM reads images and video at their native sizes.

Page: https://mralbu.github.io/ai-datasets/p/qwen2-vl

## Key facts

- Title: Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution
- Authors: Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Yang Fan, Kai Dang, et al.
- Venue: arXiv September 2024
- Category: Vision
- Paper: https://www.alphaxiv.org/abs/2409.12191

## Why it matters

Fixed square resolutions (224px–896px) and rigid image-tiling heuristics had become the biggest engineering friction in ViT+LLM architectures. Qwen2-VL showed how to feed native-resolution documents, charts, screenshots and video cleanly into one Transformer, setting the architectural template for modern open-weight VLMs.

## The idea

Remove the ViT's fixed absolute position embeddings and introduce 2D rotary embeddings so images of any resolution and aspect ratio become a variable number of visual tokens, compressed 2×2 via a lightweight MLP before entering the LLM. Inside the language model, Multimodal Rotary Position Embedding (M-RoPE) splits positional coordinates into temporal, height and width components, unifying text, arbitrary-size images and multi-minute video in one sequence.

## The result

Qwen2-VL-72B scored 96.5 on DocVQA, 88.3 on ChartQA, 85.5 on TextVQA and 64.5 on MMMU—surpassing GPT-4o on DocVQA and ChartQA—while even the 7B model reached 94.5 on DocVQA and 84.3 on TextVQA.

## The data

- [MMMU (2023)](https://mralbu.github.io/ai-datasets/d/mmmu.md): 11,500 exam questions over charts, diagrams, maps, music and more, across 30 subjects.
- [DocVQA (2020)](https://mralbu.github.io/ai-datasets/d/docvqa.md): 50,000 questions over 12,767 scanned industry documents—forms, tables, letters and handwritten notes.
- [ChartQA (2022)](https://mralbu.github.io/ai-datasets/d/chartqa.md): 32,700 questions over 20,882 real-world bar, line and pie charts requiring reading values and doing math.
- [TextVQA (2019)](https://mralbu.github.io/ai-datasets/d/textvqa.md): 45,000 questions about signs, labels, clocks and book covers in everyday photos, each answered by ten people.

## Builds on

- [LLaVA (2023)](https://mralbu.github.io/ai-datasets/p/llava.md)
- [ViT (2020)](https://mralbu.github.io/ai-datasets/p/vit.md)

## Part of

- [Modern VLMs](https://mralbu.github.io/ai-datasets/t/modern-vlms.md) (step 7 of 8)
