Paper commentary
Qwen2.5-VL Technical Report
Qwen2.5-VL keeps native-resolution images and long video affordable in a vision-language model
- 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
- 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
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}
}