Introduction
Vision-Language Models (VLMs) have revolutionized video understanding but face significant computational hurdles. Processing video requires managing a strict "token budget," limiting the number of frames a model can analyze. Traditional approaches rely on uniform sampling or fixed frame budgets, which often lead to redundancy in simple videos or information loss in complex ones. FrameOracle addresses this by introducing an adaptive mechanism that determines both which frames are relevant and how many are necessary for a given query.
Methodology
FrameOracle is a lightweight, backbone-agnostic module designed to act as an intelligent filter for any VLM. Its architecture features a cross-modal fusion layer based on a small Transformer, complemented by two specialized heads:
- Rank Head: Scores candidate frames based on their relevance to the input question.
- K Head: Predicts the optimal number of frames ($K$) required by the VLM to answer accurately.
The module is trained using a four-stage curriculum:
- Text-Visual Alignment: Initial alignment using SigLIP as a teacher.
- Rank Head Optimization: Employs a "Leave-One-Out" (LOO) strategy to measure frame importance based on VLM performance drops.
- K Head Optimization: Balances accuracy and computational cost through a specialized loss function.
- Supervised Fine-tuning: Final refinement on a dedicated ground-truth dataset.
The FrameOracle-41K Dataset
To support this research, the authors developed FrameOracle-41K, a large-scale VideoQA dataset containing 40,992 video-question pairs. Distinct from existing datasets, it includes validated annotations for the "minimal sufficient" set of frames needed to answer each question. These annotations were verified by three independent VLMs and human reviewers, providing a robust benchmark for adaptive frame selection.
Key Results and Discussion
Evaluation across six major benchmarks—including EgoSchema, Video-MME, and MLVU—demonstrates that FrameOracle significantly enhances both efficiency and accuracy.
Efficiency and Accuracy
FrameOracle achieves substantial computational savings. When applied to a 16-frame candidate pool, it reduced the input to an average of 10.4 frames without sacrificing accuracy. More impressively, when starting with 64 frames, it condensed the input to just 13.9 frames while improving average accuracy by 1.5%. This improvement stems from the removal of "visual noise"—redundant or irrelevant frames that can distract a VLM's attention.
Task-Dependent Budgeting
A critical insight from the study is that the optimal frame budget is highly task-dependent. For instance, "Spatial" queries typically require fewer frames (~5.3), whereas "Binary" or "Action" questions demand a broader temporal context (~13 frames). FrameOracle's ability to adapt to these requirements allows it to cut VLM TFLOPs by nearly 40% and reduce end-to-end latency by 41% on models like LLaVA-Video-7B.
Conclusion
FrameOracle represents a significant step toward more efficient and adaptive video understanding. By decoupling frame selection from the core VLM, it offers a portable solution that improves performance while drastically reducing resource consumption. Future work will look toward extending this selection to variable-length clips and optimizing the initial encoding costs for extremely long-form video content.
Summary updated