TL;DR
Vision-Language Models (VLMs) choke on long videos and continuous live streams because standard Transformer attention scales poorly, quickly exhausting GPU memory. InfiniteVL solves this without training a new model from scratch—instead, it surgically retrofits an existing Transformer VLM into a snappy linear-sparse hybrid using less than 2% of standard pretraining data. The result is a model that reads fine-grained text and charts just like its parent, processes 256K-token videos 5× faster, and handles real-time streaming at 25 FPS with a flat memory footprint.
What Problem Does This Paper Address?
Watching an hour-long video is mostly an exercise in redundancy—backgrounds stay static, scenes linger—punctuated by tiny, decisive details like a street sign or a sudden gesture. Standard Transformer VLMs treat every single visual token with equal, painstaking care. Because self-attention scales quadratically during initial processing (prefilling) and requires an ever-expanding Key-Value (KV) memory cache during generation, feeding ultra-long videos or endless camera streams into a Transformer quickly triggers Out-Of-Memory (OOM) crashes.
Alternative "linear" architectures (like Mamba or linear attention) fix the memory problem by squashing history into a fixed-size state. However, that compression acts like a blurry lens, wiping out high-frequency details needed for OCR, reading charts, or spotting small objects. Furthermore, training a brand-new hybrid VLM from scratch takes astronomical compute. The authors ask: Can we take an already-smart Transformer VLM, convert it into an architecture that balances heavy compression with sharp recall, and do it on a modest academic budget?
Methods
InfiniteVL’s core philosophy is compression-recall factorization—splitting the job of "remembering the gist" and "looking up exact details" across different layers.
Starting with a pretrained Qwen2.5-VL backbone, the authors replace 75% of the dense self-attention layers with Gated DeltaNet layers (a linear recurrent module that maintains a constant-size state for long-range context) while keeping 25% of the original attention layers for high-precision visual recall (a 1:3 ratio).
Because swapping 75% of a model's brain with randomly initialized layers causes immediate chaos, they introduce a three-stage progressive knowledge transfer pipeline:
- Stage I (Architectural Alignment): Using distillation, each new Gated DeltaNet layer is trained to mimic the exact hidden-state outputs of the Transformer layer it replaced, followed by end-to-end logit distillation.
- Stage II (Capability Recovery): Supervised fine-tuning restores broad multimodal skills, while constraining the remaining attention layers to local Sliding-Window Attention (SWA) as a stepping stone.
- Stage III (Long-Sequence Adaptation): Depending on the target deployment, those SWA recall layers are converted into one of two specialized mechanisms:
- Sparse InfiniteVL (for offline long videos): Combines local window attention with top-$k$ block routing to retrieve relevant historical chunks across massive contexts.
- Streaming InfiniteVL (for live video): Uses a "sink-window" pattern—retaining initial prompt/anchor tokens plus a sliding window of recent frames—keeping memory strictly constant forever.
Datasets
No new benchmarks are introduced, though the authors build a custom capability-oriented data curation pipeline (normalizing, deduplicating, and balancing tasks like OCR, math, and VQA) requiring less than 2% of from-scratch VLM training data.
- Training mixtures: Built from FineVision, LLaVA-OneVision-1.5, PixMo, The Cauldron, Docmatix, and LLaVA-Video-178K (plus VideoNSA data for specific long-video comparisons).
- Evaluation: Tested via VLMEvalKit across foundational tasks (MME, MMStar, MMBench, SeedBench, ScienceQA, RealWorldQA, AI2D, ChartQA, TextVQA, DocVQA, OCRBench, MMMU, MathVista) and long-context/streaming benchmarks (Vstar, BLINK, HRBench4K, Video-MME, LongVideoBench, StreamingBench, and VideoNIAH).
Key Insights and Ideas
- Pure linear models go blind on text, but a 25% lifeline fixes it: In ablations, purely linear models (0% attention) suffer on OCR and document tasks, and architectures like Mamba or GLA degrade heavily on DocVQA (scoring below 20%). Keeping just 1 attention layer for every 3 Gated DeltaNet layers jumps DocVQA to 87.8%—virtually tied with full attention (88.1%).
- Distillation needs both micro and macro steps: Skipping Stage I alignment causes training to underperform dramatically, while stopping after Stage I leaves capabilities half-baked. Matching layer-by-layer mechanics before general fine-tuning is the secret sauce that makes sub-2%-data conversion viable.
- Not all linear layers are created equal: Vanilla linear attention failed to converge entirely (NaNs), whereas Gated DeltaNet's gating and delta-update rules gracefully absorbed knowledge from pretrained Transformer layers.
Key Results
Performance and efficiency overview comparing InfiniteVL against leading Transformer VLMs across foundational benchmarks, streaming FPS, and ultra-long prefill speed.
- Foundational Parity: On general benchmarks, InfiniteVL-4B averages 75.8 (slightly beating the controlled Qwen2.5-VL baseline at 75.3) and hits 73.6 on text-rich/reasoning tasks (matching Qwen2.5-VL's 73.8).
- Decoding & Memory: While Qwen2.5-VL-3B hits an OOM wall around 454K tokens, InfiniteVL scales smoothly to 1.5M tokens. At 450K context, InfiniteVL delivers a 1.7× per-token decoding speedup and 2.7× memory reduction.
- Ultra-Long Video Prefill: At a 256K context length, Sparse InfiniteVL slashes Time-to-First-Token from 118.7s down to 24.7s—a 5× prefill speedup—while matching baseline accuracy (48.3) on VideoNIAH needle-in-a-haystack tests with 70.8% fewer FLOPs.
- Real-Time Streaming: With CUDA Graph acceleration, Streaming InfiniteVL sustains ~25 FPS (a 16× speedup over the degrading Transformer baseline on long streams) with a constant memory footprint and top StreamingBench accuracy (68.0).
Limitations and Future Work
Not discussed in the paper. (While pages 1–10 do not include an explicit limitations section, the experimental tables show a natural trade-off between the two Stage III variants: Streaming InfiniteVL drops several accuracy points on offline high-resolution and long-video benchmarks compared to Sparse InfiniteVL, as its strict constant-size cache intentionally discards non-recent token-level history outside the recurrent state.)
Summary updated