M-LLM Based Video Frame Selection for Efficient Video Understanding

Kai Hu, Feng Gao, Xiaohan Nie, Peng Zhou, Son Tran, Tal Neiman, Lingyun Wang, Mubarak Shah, Raffay Hamid, Bing Yin, Trishul Chilimbi · DOI

Abstract

Current Multi-Modal Large Language Models (M-LLMs) face a "context crunch" when processing long-form video, often relying on uniform sampling that misses critical, short-duration events. This paper introduces a lightweight, question-aware frame selection mechanism that uses a tiny M-LLM to identify the most relevant frames for a specific query. By utilizing aggressive spatial pooling and a novel scoring mechanism trained on spatial-temporal pseudo-labels, the proposed method significantly improves accuracy on video QA benchmarks while reducing the computational load on downstream reasoning models. Our findings suggest that "smart" frames are twice as valuable as those selected via uniform sampling, enabling higher performance with half the token count.

1. Introduction

In the field of AI video understanding, models are increasingly limited by the number of tokens they can process simultaneously. To handle extended footage, most models resort to uniform sampling—picking frames at fixed intervals. This content-agnostic approach often fails when the answer to a query resides in a brief moment between samples. To address this, we propose an adaptive frame selection strategy that acts as an intelligent "scout" for larger reasoning models.

2. The Problem: The Context Crunch

Standard video M-LLMs are caught in a trade-off between density and memory. Dense sampling captures details but exceeds the model's context window; sparse uniform sampling fits the window but loses crucial context. Because different questions require looking at different parts of a video, a "one-size-fits-all" sampling rate is inherently inefficient. If a car drives by at the 3-second mark but a uniform sampler only picks frames at 0 and 5 seconds, the model cannot answer questions about that car.

3. Methodology

The core of this research is a lightweight M-LLM-based frame selector designed to prioritize relevance over regularity.

3.1 Architecture and Spatial Pooling

The selector uses a small backbone (Qwen2.5-1.5B) and applies aggressive spatial pooling. While the final reasoning model may require 144 tokens per frame to discern fine details, the selector uses just 9 tokens (a 3x3 grid). This is based on the insight that identifying if a frame is relevant requires significantly less resolution than the actual reasoning process.

3.2 Score Query and NMS-Greedy Sampling

The model incorporates a learnable "score token" at the end of the LLM's input. This token aggregates information from the question and the low-resolution video frames to output an importance score for every frame. To prevent the selection of redundant, nearly identical frames, the authors utilize a "Non-Maximum Suppression" (NMS) greedy strategy. Once a high-scoring frame is selected, its immediate temporal neighbors are penalized, forcing the model to find the next most important event elsewhere in the timeline.

3.3 Pseudo-Label Training

To overcome the lack of frame-level relevance labels, the authors developed Spatial-Temporal Pseudo-labels:

  • Spatial: A powerful M-LLM rates individual frames for their helpfulness.
  • Temporal: A text-only LLM analyzes frame captions to identify the best sequence for answering a query. By combining these, the tiny selector is trained to mimic the selection logic of much larger, more expensive models.

4. Key Insights and Results

The model was evaluated across various benchmarks, including EgoSchema, VideoMME, and LongVideoBench, showing consistent "plug-and-play" improvements for models like LLaVA-NeXT and Qwen2-VL.

4.1 The "2n" Rule

A significant finding of this research is that using the selector to pick $n$ frames often outperforms uniform sampling using $2n$ frames. This suggests that intelligently selected frames are roughly twice as valuable as random ones, allowing for better results with half the downstream compute.

4.2 Benchmark Performance

  • LongVideoBench: Qwen2-VL 7B performance increased from 53.3% to 57.0% using 32 selected frames.
  • NExT-QA: The model achieved 68.5% accuracy with only 4 selected frames, outperforming uniform sampling that used 8 frames (68.1%).
  • EgoSchema: The selector improved LLaVA-NeXT-Video 34B performance from 49.7% to 50.0% using the same frame count, demonstrating its utility in long-form, first-person video.

5. Conclusion and Future Work

Adaptive frame selection provides a scalable solution to the video context crunch. By separating the task of "finding what matters" from "reasoning about the content," we can achieve higher accuracy with lower computational overhead. While the current selector adds a small amount of inference time and relies on teacher-model pseudo-labels, future work will explore end-to-end optimization and real-time streaming applications where the model must decide which frames to retain in memory dynamically.

Summary updated

BibTeX
@inproceedings{hu2025m,
  author = {Kai Hu and Feng Gao and Xiaohan Nie and Peng Zhou and Son Tran and Tal Neiman and Lingyun Wang and Mubarak Shah and Raffay Hamid and Bing Yin and Trishul Chilimbi},
  title = {{M-LLM Based Video Frame Selection for Efficient Video Understanding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01279},
}
Figure