# Qwen2.5-VL Technical Report

Qwen2.5-VL keeps native-resolution images and long video affordable in a vision-language model

Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song and 21 more · arXiv · 2025-2-19

- **Problem** Attention cost grows quadratically with the number of patches, and native-resolution inputs make that count vary from image to image. Video makes the problem worse, so vision encoders stay expensive.
- **Method** Qwen2.5-VL uses windowed attention in most vision layers and full attention in only a few. It also merges each group of four neighbouring patch features into one token before the LLM sees them.
- **Results** The flagship Qwen2.5-VL-72B model matches GPT-4o and Claude 3.5 Sonnet, particularly on document and diagram understanding, while keeping the core language ability of Qwen2.5.

## Why native resolution and long video are expensive

The authors start from bottlenecks they see in current vision-language models: computational cost, limited context, weak fine-grained perception and uneven results across sequence lengths. Attention is the first pressure point. Its cost grows quadratically with the number of patches, and native-resolution inputs make that count differ from one image to the next.

Video makes the problem worse. In Qwen2-VL the temporal position IDs followed the number of frames, so the model had no direct sense of how quickly events unfolded. The question is therefore whether one model can keep native resolution and long video while keeping the vision encoder affordable.

## Windowed attention in the vision encoder

The key idea is to let most vision layers attend only within local windows and to reserve full attention for a few layers. Height and width are resized to multiples of 28 in training and inference, and patches are taken with a stride of 14. Windows are at most 112×112, which corresponds to 8×8 patches, and smaller regions are processed without padding, so their original resolution is kept.

Full self-attention sits at block indexes 7, 15, 23 and 31 of the 32 layers, and every other layer is windowed.

The ViT also borrows LLM-style parts: RMSNorm for normalization and SwiGLU as the activation function. The ViT is trained from scratch through CLIP pre-training, vision-language alignment and end-to-end fine-tuning, with images sampled at their original aspect ratios.

## From patch features to LLM tokens

The key idea is to combine four neighbouring patch features into one token before the LLM sees them, which shortens the visual sequence. Rather than passing raw patch features on, the model groups spatially adjacent sets of four. The grouped features are concatenated and passed through a two-layer MLP that maps them into the embedding size of the LLM.

This cuts the number of tokens the LLM must process, and because the grouping follows the image's own patch count, it handles sequences of different lengths.

For video, two consecutive frames are grouped together, which reduces the number of tokens further. The LLM side starts from the pre-trained Qwen2.5 LLM, so the merged visual tokens are fed to a pretrained text model.

## Time IDs that follow absolute time

The key change is to space the temporal position IDs so their gaps reflect absolute timestamps, which lets the model read tempo from the intervals between them. MRoPE already splits positions into temporal, height and width parts, and for text all three share one ID, which makes it equivalent to 1D RoPE. For images the temporal ID stays fixed, while for video the temporal ID advances with each frame.

The change is that the temporal step now follows real time rather than frame count, so videos sampled at different FPS rates line up.

The authors claim this adds no extra computation and needs no textual timestamps or extra heads, unlike some other approaches. Training samples frame rates dynamically, so the FPS values in the training set are spread more evenly. Grounding targets also use coordinates in the actual dimensions of the input image rather than normalized values.

## Three pre-training phases and post-training

Pre-training grows from 1.2 trillion tokens in Qwen2-VL to about 4 trillion tokens here. Phase one trains only the ViT on image captions, visual knowledge and OCR data, so it aligns with the language model first. Phase two unfreezes all parameters and adds interleaved data, VQA, multimodal mathematics, agent tasks, video and pure text. Phase three adds long video, long agent and long document data, and the packed sequence length rises from 8,192 to 32,768.

The three phases use 1.5T, 2T and 0.6T tokens. Samples are packed by their input length so that the LLM's computational load stays balanced across GPUs.

Post-training runs SFT and then DPO, and the ViT stays frozen in both. The SFT set has about 2 million entries, split evenly between pure text and multimodal data. Rejection sampling keeps only generated responses whose answers match the ground truth. The DPO phase uses only image-text and pure text preference data, and each sample is processed once.

## General, document and text benchmark results

On MMBench-EN it scored 88.6, slightly above the earlier 88.3. On MMBench-EN-V1.1 it reached 88.4%, and on MMStar it reached 70.8%. The MMBench-EN margin is small, so this comparison supports parity more than a clear lead.

On OCRBench\_v2 it exceeds Gemini 1.5-Pro by 9.6% on the English track and by 20.6% on the Chinese track.

This table checks whether vision training left the language ability intact.

## Grounding, video and agent results

On ODinW-13 open-vocabulary detection it reaches 43.1 mAP.

GPT-4o scores 35.7 on the same metric in the same table. Frames were capped at 768 per video and video tokens at 24,576, so the result holds under those limits.

The authors read this grounding strength as the reason the model can also act as an agent. For online agent tests, Set-of-Mark was added to some baselines, so those comparisons don't use identical inputs.

## Open problems and limits of the evidence

The authors say that aligning chain-of-thought reasoning with both text and images is still an ongoing challenge. The text gives no controlled ablation that removes windowed attention or absolute-time MRoPE on its own. Video numbers come from a frame and token cap, so longer or denser video settings were not tested.

## Paper info

- **Authors**: Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, Humen Zhong, Yuanzhi Zhu, Mingkun Yang, Zhaohai Li, Jianqiang Wan, Pengfei Wang, Wei Ding, Zheren Fu, Yiheng Xu, Jiabo Ye, Xi Zhang, Tianbao Xie, Zesen Cheng, Hang Zhang, Zhibo Yang, Haiyang Xu, Junyang Lin
- **Venue**: arXiv · Preprint
- **First published**: 2025-2-19
- **Added**: 2026-11-11
- **Updated**: 2025-2-19
- **Version**: v1
- **arXiv**: 2502.13923
- **Category**: cs.CV · cs.CL
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2502.13923v1) · [PDF ↗](https://arxiv.org/pdf/2502.13923v1)

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

Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, Humen Zhong, Yuanzhi Zhu, Mingkun Yang, Zhaohai Li, Jianqiang Wan, Pengfei Wang, Wei Ding, Zheren Fu, Yiheng Xu, Jiabo Ye et al. (2025). Qwen2.5-VL Technical Report. arXiv:2502.13923v1. https://arxiv.org/abs/2502.13923v1

**BibTeX**

```
@misc{bai2025qwen2,
  title = {{Qwen2.5-VL Technical Report}},
  author = {Shuai Bai and Keqin Chen and Xuejing Liu and Jialin Wang and Wenbin Ge and Sibo Song and Kai Dang and Peng Wang and Shijie Wang and Jun Tang and Humen Zhong and Yuanzhi Zhu and Mingkun Yang and Zhaohai Li and Jianqiang Wan and Pengfei Wang and Wei Ding and Zheren Fu and Yiheng Xu and Jiabo Ye and Xi Zhang and Tianbao Xie and Zesen Cheng and Hang Zhang and Zhibo Yang and Haiyang Xu and Junyang Lin},
  year = {2025},
  eprint = {2502.13923},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.13923v1}
}
```

## Other paper commentary

- [GPT-4o System Card](https://refivu.com/en/papers/7f73de51-bae5-43e2-85f2-6decfe19e7c4-gpt-4o-system-card.md)
- [Qwen3 Technical Report](https://refivu.com/en/papers/efd0e142-cc80-4bf8-b7fa-33c525cf374d-qwen3-technical-report.md)
- [Prompting Is Programming: A Query Language for Large Language Models](https://refivu.com/en/papers/688fcde1-89d3-44fe-b9ec-673455f09c78-prompting-is-programming-a-query-language-for-large.md)
- [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://refivu.com/en/papers/805208af-12ea-4b4b-b1a8-6db7601b1c37-sentence-bert-sentence-embeddings-using-siamese-bert.md)
- [DriveMLM: Aligning Multi-Modal Large Language Models with Behavioral Planning States for Autonomous Driving](https://refivu.com/en/papers/a8c14912-7460-43dd-9905-2047682d37fa-drivemlm-aligning-multi-modal-large-language-models-with.md)
- [GPT Understands, Too](https://refivu.com/en/papers/1bee23a9-1e12-440d-bf82-0263604d14f2-gpt-understands-too.md)
- [3D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotation](https://refivu.com/en/papers/47c4aa8a-4522-4109-b8e8-dec7f7502462-3d-u-net-learning-dense-volumetric-segmentation-from.md)
- [Show, Attend and Tell: Neural Image Caption Generation with Visual Attention](https://refivu.com/en/papers/167ebd87-d3c8-4b72-a59d-bf158aa626aa-show-attend-and-tell-neural-image-caption-generation.md)
- [Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting](https://refivu.com/en/papers/7ad4deea-e731-4a26-bf4d-732c619c1b7a-informer-beyond-efficient-transformer-for-long-sequence-time.md)
- [Hierarchical Text-Conditional Image Generation with CLIP Latents](https://refivu.com/en/papers/a54e72c7-9aba-4f0a-b093-9f8704564243-hierarchical-text-conditional-image-generation-with-clip.md)
- [On the Properties of Neural Machine Translation: Encoder-Decoder Approaches](https://refivu.com/en/papers/63546f31-7951-40c2-8cd8-fccae107022a-on-the-properties-of-neural-machine-translation-encoder.md)
- [Overcoming catastrophic forgetting in neural networks](https://refivu.com/en/papers/e39e1a97-7b59-4a3d-95cd-a82be4c40f43-overcoming-catastrophic-forgetting-in-neural-networks.md)

## Terms in this paper

- [mIoU](https://refivu.com/en/terms/901dcc5384c2-miou)
- [mAP](https://refivu.com/en/terms/477dad058d88-map)
- [RMSNorm](https://refivu.com/en/terms/9b1cafd281f0-rmsnorm)
- [SwiGLU](https://refivu.com/en/terms/9b64288c190e-swiglu)
- [Vision Transformer (ViT)](https://refivu.com/en/terms/5676f2cc1c70-vision-transformer-vit)
- [Rejection Sampling](https://refivu.com/en/terms/40f65d094f14-rejection-sampling)
- [supervised fine-tuning (SFT)](https://refivu.com/en/terms/b08583cba2aa-supervised-fine-tuning-sft)
- [Direct Preference Optimization (DPO)](https://refivu.com/en/terms/4314fe503882-direct-preference-optimization-dpo)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/d6d371c0-2b43-451e-8129-a5fc723ff2ae-qwen2-5-vl-technical-report)
