Abstract
Current Video Large Language Models (Vid-LLMs) often struggle with long-form video understanding due to uniform frame sampling and token compression strategies that ignore the uneven distribution of information. We present KFFocus (Key Frame Focus), a framework that adopts a human-like approach to video processing. By identifying critical I-frames and employing query-aware dynamic token condensation, KFFocus prioritizes relevant visual information. Our method achieves state-of-the-art results on challenging benchmarks, including a 58.2% accuracy on EgoSchema, while significantly improving computational efficiency.
Introduction
Processing long video sequences presents a significant challenge for LLMs due to context window limitations. Conventional methods typically rely on uniform inter-frame sampling and fixed intra-frame token condensation. However, this "Uniform Sampling Trap" fails to account for varying semantic density; a few seconds of action in a long video are often more critical than minutes of static background. KFFocus addresses this by introducing a smart, two-tier compression strategy that prioritizes "what to watch" based on both inherent video structure and user intent.
Methodology
KFFocus comprises three primary components designed to enhance temporal and semantic awareness:
1. Hybrid Token Compression
Drawing from traditional video codec principles, KFFocus identifies I-frames—self-contained reference images—as primary keyframes. This ensures the selection of frames rich in motion and independent information, supplemented by compensation frames for continuous coverage.
2. Dynamic Token Condensation
To optimize resource allocation, KFFocus uses a pre-trained CLIP model to assess the similarity between user queries and sampled frames. High-relevance frames are allocated a larger number of tokens (e.g., 64) to preserve spatial detail, while less relevant frames are compressed more aggressively (e.g., 16 tokens).
3. Spatiotemporal Modeling
To improve grounding, KFFocus utilizes a discretized tokenizer that explicitly encodes relative temporal positions and spatial structures. This allows the LLM to better reconstruct the chronological and geometric context of visual tokens.
Evaluation and Results
The model was trained in two stages: modality alignment using large-scale image-text and video-caption datasets, followed by temporal enhancement using instruction-following and fine-grained temporal datasets.
KFFocus demonstrates a clear advantage in long-video scenarios:
- EgoSchema: Achieved 58.2% accuracy, outperforming LLaVA-NeXT (34.0%) and GPT-4-based methods like Vamos (36.7%).
- VideoMME: Reached an overall score of 57.6%, showing superior performance across short, medium, and long durations compared to Video-LLaVA and VideoChat2.
As illustrated in the radar charts, KFFocus maintains high accuracy while utilizing a fraction of the visual tokens required by competitors, effectively balancing performance and efficiency.
Conclusion
KFFocus demonstrates that integrating classic video compression principles with query-aware attention can significantly enhance the capabilities of Vid-LLMs. By moving away from uniform sampling, the framework achieves state-of-the-art performance on long-video reasoning tasks. Future work will explore dynamic coverage ratios and further optimization of the relevance-based condensation bottleneck.
Summary updated