Abstract
Multi-modal large language models (MLLMs) have made significant progress in video understanding over the past few years. However, processing long video inputs remains a major challenge due to high memory and computational costs. This makes it difficult for current models to achieve both strong performance and high efficiency in long video understanding. To address this challenge, we propose Video-XL-2, a novel MLLM that delivers superior cost-effectiveness for long-video understanding based on task-aware KV sparsification. The proposed framework operates with two key steps: chunk-based pre-filling and bi-level key-value decoding. Chunk-based pre-filling divides the visual token sequence into chunks, applying full attention within each chunk and sparse attention across chunks. This significantly reduces computational and memory overhead. During decoding, bi-level key-value decoding selectively reloads either dense or sparse key-values for each chunk based on its relevance to the task. This approach further improves memory efficiency and enhances the model's ability to capture fine-grained information. Video-XL-2 achieves state-of-the-art performance on various long video understanding benchmarks, outperforming existing open-source lightweight models. It also demonstrates exceptional efficiency, capable of processing over 10,000 frames on a single NVIDIA A100 (80GB) GPU and thousands of frames in just a few seconds.
Introduction
Processing long videos is a significant hurdle for standard Large Language Models (LLMs). Because the self-attention mechanism scales quadratically ($O(N^2)$), doubling the video length quadruples the computational load. Existing solutions usually attempt to mitigate this by downsampling frames or compressing tokens. However, this often leads to a "lose-lose" scenario: either the model loses the fine-grained details needed to answer specific temporal questions, or the model becomes too slow and memory-hungry to be practical.
Video-XL-2 aims to break this bottleneck by being intelligent about what it remembers and how it processes visual data. By implementing a "divide-and-conquer" approach to attention, it achieves state-of-the-art performance while drastically reducing the computational and memory costs that usually plague long-context AI.
Architecture and Methods
Video-XL-2 is built upon a robust foundation consisting of four primary components: a SigLIP vision encoder, a Dynamic Token Synthesize (DTS) module, an MLP projector, and the Qwen2.5-7B LLM. The DTS module is particularly important as it groups four frames into one to reduce redundancy before the tokens reach the LLM.
The core innovation of Video-XL-2 lies in two novel efficiency strategies designed to handle long sequences:
1. Chunk-based Pre-filling
Instead of calculating attention across the entire video at once, the model divides the video into chunks. It performs full attention within a chunk but uses sparse attention between chunks. Specifically, it only looks back at a small "sliding window" of previous frames and historical timestamp tokens. This architectural shift changes the computational cost from quadratic to nearly linear, allowing the model to scale to much longer durations without a corresponding explosion in resource requirements.
2. Bi-level KV Decoding
During the generation (decoding) phase, the model maintains two versions of its Key-Value (KV) cache for every video chunk: a dense version (high detail) and a sparse version (low detail). When a user asks a question, a "relevance oracle" identifies which parts of the video are actually important to the task.
The model then reloads the high-detail (dense) memory for relevant chunks and uses the low-detail (sparse) memory for the rest. This keeps the memory footprint small without sacrificing the ability to retrieve specific, fine-grained information from distant parts of the video.
Experimental Results
Video-XL-2 underwent a rigorous four-stage incremental training process using millions of image and video-caption pairs. For evaluation, the authors tested the model against a gauntlet of long-video benchmarks, including MLVU, Video-MME, LongVideoBench, and "Needle in a Haystack" tests.
Performance Highlights
- State-of-the-Art Performance: Video-XL-2 achieved a top score of 74.8 on the MLVU dev set, outperforming InternVL2.5-8B and even GPT-4o (64.6).
- Massive Efficiency Gains: The chunk-based strategy reduced average FLOPs to just 48.8% of the baseline. The bi-level decoding reduced KV cache usage by nearly 39%.
- Extreme Context: The model successfully handled 10,000 frames on a single 80GB NVIDIA A100. Even on consumer-grade hardware (24GB VRAM), it can process thousands of frames efficiently.
- Speed: In head-to-head tests, Video-XL-2's pre-filling time was significantly faster and more stable than competitors like VideoChat-Flash as the number of input frames increased.
Conclusion
Video-XL-2 demonstrates that task-awareness is key to efficient long-video understanding. You don't need to remember every pixel of a two-hour movie to answer a question about the ending; by selectively "zooming in" on relevant chunks during decoding, the model mimics human-like selective attention. This shift to chunk-based processing and bi-level memory management proves that linear scaling is possible without sacrificing the high-level reasoning capabilities required for complex video analysis. Future work may involve scaling the backbone to larger parameter counts and refining the "relevance oracle" to ensure even more precise chunk selection.
Summary updated