Abstract
Current Video Large Language Models (Video-LLMs) are often limited by the short temporal sequences they were trained on, typically around 8 frames. Extending these models to longer sequences usually requires expensive retraining. This paper presents INTP, a training-free "plug-and-play" framework that enables Video-LLMs to process significantly longer video sequences. By combining token rearrangement, context-window scaling, and memory optimization, INTP allows models to understand 32 frames or more without additional fine-tuning, achieving state-of-the-art results on multiple video reasoning benchmarks.
Introduction
Most state-of-the-art Video-LLMs, such as Video-LLaVA, face a "short-sightedness" problem. Due to the high computational costs of training, these models are typically optimized for short video clips. When presented with longer content, they encounter two primary obstacles:
- The Structural Wall: Fixed video encoders and projectors cannot easily adapt to concatenated frame sequences, leading to temporal distortions.
- The Context Wall: The LLM's fixed context window is quickly overwhelmed by the surge of visual tokens from additional frames, leading to performance degradation or hallucinations.
INTP addresses these challenges without the need for thousands of GPU hours for retraining.
Methodology: The INTP Framework
The INTP approach consists of three main components designed to bypass architectural and memory limits:
Alternative Video Token Rearrangement
Instead of simple concatenation, INTP divides long videos into overlapping subsequences. These are processed by the frozen encoder and then rearranged based on their absolute temporal location. This preserves temporal consistency, ensuring the fixed encoder provides representations that the LLM can still interpret effectively.
Context Window Scaling (RoPE Interpolation)
To accommodate the increased number of visual tokens, INTP utilizes NTK-aware scaling to modify the Rotary Position Embeddings (RoPE) within the LLM. This technique "stretches" the model's positional understanding, allowing it to process more tokens than its original training limit without losing accuracy.
KV-Cache Compression
Processing more frames significantly increases the memory footprint of the Key-Value (KV) cache. INTP implements Post-Training Quantization (PTQ) to compress the KV cache down to 2-bit integers (INT2). This drastically reduces memory requirements, making long-video inference feasible on consumer-grade hardware.
Experimental Results
The researchers evaluated INTP on standard benchmarks including MSVD-QA, MSRVTT-QA, and ActivityNet-QA.
Performance Gains
Integrating INTP with Video-LLaVA (7B) yielded consistent improvements across all benchmarks. Notably, accuracy on ActivityNet-QA increased by 3.6%, and NExT-QA saw an average accuracy boost of 2.2%. Qualitative analysis showed that the INTP-enhanced model was better at identifying complex, temporally extended actions and specific objects compared to the base model, which often hallucinated details.
Efficiency and Memory Optimization
The use of INT2 quantization proved critical for scalability. For a 128-frame video, the memory required for the KV cache was reduced from 17.2 GB to just 2.1 GB. This optimization allows for high-frequency frame sampling without exceeding the memory limits of standard GPUs.
Discussion and Limitations
While INTP significantly extends the capabilities of Video-LLMs, it encounters a performance plateau at approximately 64 frames. This suggests an upper limit to how much NTK-based context extension can stretch a model's reasoning before degradation occurs. Future research will focus on more robust context extension methods and further optimizing the efficiency of video encoders for high-frequency sampling.
Conclusion
INTP provides a powerful, training-free solution for the long-video understanding gap in current LMMs. By intelligently rearranging tokens and compressing memory, it transforms "short-sighted" models into capable long-sequence reasoners, setting a new standard for efficient Video-LLM deployment.
Summary updated