InfiniteVL: Synergizing Linear and Sparse Attention for Highly-Efficient, Unlimited-Input Vision-Language Models

Hongyuan Tao, Bencheng Liao, Shaoyu Chen, Haoran Yin, Qian Zhang +2 more
12/9/2025
cs.CVcs.AI

Official code: hustvl/InfiniteVL (109 stars, Apache-2.0, last commit 2026-04-20).

Abstract

Window attention and linear attention represent two principal strategies for mitigating the quadratic complexity and ever-growing KV cache in Vision-Language Models (VLMs). However, we observe that window-based VLMs suffer performance degradation when sequence length exceeds the window size, while linear attention underperforms on information-intensive tasks such as OCR and document understanding. To overcome these limitations, we propose InfiniteVL, a linear-complexity VLM architecture that synergizes sliding window attention (SWA) with Gated DeltaNet. For achieving competitive multimodal performance under constrained resources, we design a three-stage training strategy comprising distillation pretraining, instruction tuning, and long-sequence SFT. Remarkably, using less than 2\% of the training data required by leading VLMs, InfiniteVL not only substantially outperforms previous linear-complexity VLMs but also matches the performance of leading Transformer-based VLMs, while demonstrating effective long-term memory retention. Compared to similar-sized Transformer-based VLMs accelerated by FlashAttention-2, InfiniteVL achieves over 3.6\times inference speedup while maintaining constant latency and memory footprint. In streaming video understanding scenarios, it sustains a stable 24 FPS real-time prefill speed while preserving long-term memory cache. Code and models are available at https://github.com/hustvl/InfiniteVL.

View on arXivView PDF

Code Implementations(1)

hustvl/InfiniteVLOfficial100%
Apache-2.0

InfiniteVL: Synergizing Linear and Sparse Attention for Highly-Efficient, Unlimited-Input Vision-Language Models

1096Shell, PythonDec 6, 20256 months agoApache-2.0

Similar Papers

Cite this paper

@article{tao2025infinitevl,
  title  = {InfiniteVL: Synergizing Linear and Sparse Attention for Highly-Efficient, Unlimited-Input Vision-Language Models},
  author = {Hongyuan Tao and Bencheng Liao and Shaoyu Chen and Haoran Yin and Qian Zhang and Wenyu Liu and Xinggang Wang},
  year   = {2025},
  eprint = {2512.08829},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.08829v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.08829.svg)](https://codeofpaper.com/paper/2512.08829)

Discussion