InfiniteVL: Synergizing Linear and Sparse Attention for Highly-Efficient, Unlimited-Input Vision-Language Models
Hongyuan Tao, Bencheng Liao, Shaoyu Chen, Haoran Yin, Qian Zhang, Wenyu Liu, Xinggang Wang
TL;DR
InfiniteVL addresses the long-context limitation of Vision-Language Models by hybridizing Sliding Window Attention with Gated DeltaNet to achieve linear-time memory for unlimited multimodal input. It couples this architecture with a three-stage training pipeline—distillation pretraining, instruction tuning, and long-sequence SFT—to achieve competitive performance with Transformer-based VLMs while delivering substantial inference speedups and constant memory. The approach demonstrates robust long-term memory in streaming video and long-context tasks, maintaining real-time performance (24 FPS) on open benchmarks with limited data. The work offers a deployment-friendly path to high-capacity, long-context VLMs suitable for edge devices and streaming applications without external memory modules.
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.
