Hierarchical Adaptive Frame Sampling For Video Understanding

Yuyao Sun, Daiqi Shi, Shuang Li, Liao Zhang, Yang Cai, deqing wang

TL;DR

Multimodal Large Language Models (MLLMs) can’t swallow hours of video at once; they have to "read" a video by looking at just a handful of snapshots (say, 64 frames). Instead of blindly spacing those snapshots out evenly or greedily picking 64 nearly identical frames of the main subject, Hierarchical Adaptive Frame Sampling (HAS) dynamically infers what kind of question you’re asking and tailors its frame selection on the fly. Without retraining a single model weight, this plug-and-play sampler enables smaller open-source models to rival—and sometimes beat—giants like GPT-4o.

What Problem Does This Paper Address?

Imagine trying to understand a two-hour movie when you are only allowed to see 64 still frames. Because MLLMs convert images into heavy visual tokens that quickly max out context windows, frame sampling is the bottleneck of video AI.

Historically, researchers have relied on one-dimensional rules to pick those frames:

  1. Uniform sampling: Grabbing a frame every few minutes. Great for getting the gist of the plot, terrible if the answer hinges on a 3-second sleight-of-hand.
  2. Relevance-based sampling: Using a lightweight vision-text model (like CLIP) to score frames against the user's prompt and picking the highest scorers. Great for finding a needle in a haystack, terrible because the top 64 frames often end up being visually redundant shots of the exact same moment, stripping away the broader storyline.

The core problem is that video queries are heterogeneous. "Why did the bird bring a fish to the fox?" requires a holistic narrative arc, whereas "How did the cat open the door?" requires zooming in on a rapid sequence of micro-actions. A single rigid sampling rule will inevitably fail one of these.

Methods

HAS is a training-free, two-stage framework that treats frame selection like a smart detective allocating a strict budget of $K$ frames (after pre-sampling the raw video at 1 FPS and scoring frame-query similarity via a standard CLIP model).

Figure 1: The overall flowchart of HAS. HAS is a training-free approach that enhances model performance solely by modifying the frames sampled from the video. In the Adaptive Contextual Enrichment module, different colors denote different frame types: orange for Backbone Frames, green for Global Context, and blue for Local Context.

Stage 1: Backbone Frame Construction (Standard Math, Smart Stopping) First, HAS establishes a "backbone" of key moments that are relevant to the prompt and visually distinct from one another. It models this using a Determinantal Point Process (DPP)—a mathematical tool borrowed from quantum physics and recommendation systems designed to balance quality (CLIP query-relevance) and diversity (visual dissimilarity between frames). Using greedy inference, HAS picks frames one by one, stopping automatically when the marginal gain of adding another frame drops below a threshold ($\eta$).

Stage 2: Adaptive Contextual Enrichment (The Novel Twist) Once the backbone frames are chosen, HAS looks at where they landed on the timeline to deduce what kind of context the remaining frame budget should buy:

  • Adaptive Budget Allocation: HAS divides the timeline into bins and calculates the normalized Shannon entropy of the backbone frames' distribution. High entropy means key moments are scattered everywhere (a global query); low entropy means they are tightly bunched together (a localized event).
  • Global Context: Allocated proportionally to that entropy score. HAS fills this quota using simple uniform sampling across the timeline to connect isolated dots.
  • Local Context: Allocated the rest of the budget. Starting from the most relevant backbone frames, HAS performs a "ripple expansion"—scanning outward backward and forward in time to grab adjacent frames (as long as they remain visually similar above a threshold $\tau$), capturing short-term cause-and-effect dynamics.

Datasets

Because HAS is training-free, no training datasets are used. Instead, the authors evaluate it across three established long-video benchmarks (with videos stretching past an hour):

  • Video-MME: Tests holistic comprehension across short, medium, and long videos.
  • LongVideoBench (LVB): Emphasizes single-scene reasoning within long videos (note: the 60-second subset was excluded since HAS pre-samples at 1 FPS).
  • MLVU: Conveniently splits tasks into Holistic understanding versus Single-Detail and Multi-Detail extraction, directly testing HAS's adaptability.

Key Insights and Ideas

  • The geometry of evidence reveals the nature of the question: You don't need an LLM to classify whether a question is "global" or "local." Simply measuring the temporal entropy of the initial CLIP-matched frames tells you whether to zoom in or zoom out.
  • Smarter inputs beat bigger weights: Scaling up model parameters is expensive; feeding a small model better frames is cheap. Better sampling unlocks latent reasoning capabilities that uniform sampling starves.
  • Keep Global Context "dumb": When testing ways to sample Global Context, simple uniform sampling beat clever clustering and relevance-guided segment methods. Why? Because the backbone already has relevance bias—global context needs to be a pure, unbiased safety net.
Qualitative example showing how Local Context ("ripple expansion") captures what happens *after* the swim session, whereas relevance-only methods get stuck in the pool.

Key Results

Plugged into Qwen2.5-VL-7B, LLaVA-Video-7B, and InternVL3-8B (typically at a 64-frame budget), HAS consistently outperformed uniform sampling and state-of-the-art samplers like AKS and TSTAR:

  • Punching above its weight class: On MLVU’s Multi-Detail tasks, 7B LLaVA-Video + HAS scored 60.6, decisively beating the 10$\times$ larger 72B LLaVA-Video model (55.7). Similarly, InternVL3-8B + HAS scored 70.0 on Video-MME Medium, surpassing GPT-4o (66.2).
  • Long-video gains: On the grueling LVB-3600 (hour-long) subset, HAS boosted LLaVA-Video-7B from 50.9 (uniform) to 56.2, beating the next-best sampler (AKS) by +1.9 points.

Limitations and Future Work

While the authors do not dedicate a separate section to future work, two practical constraints emerge from their ablation studies:

  • Extreme budget fragmentation: When the total budget drops to just 16 frames, splitting frames three ways (Backbone, Local, Global) spreads each bucket too thin. Under tight budgets, the authors have to turn off Stage 2 entirely and rely purely on DPP backbone selection.
  • Pre-sampling FPS vs. Compute: HAS defaults to pre-sampling videos at 1 FPS. Increasing to 2 FPS improves accuracy (e.g., Video-MME rises from 68.1 to 68.7), but running CLIP over dense frame pools creates a growing compute-efficiency trade-off on very long videos, and 1 FPS remains too coarse for sub-minute clips.

Summary updated

Abstract

Due to context-length constraints, most MLLMs cannot process full-length videos and therefore rely on sampling a subset of frames as input. However, existing sampling methods, ranging from uniform sampling to relevance-based selection, are often driven by a single sampling principle and thus struggle to accommodate the heterogeneous evidential requirements of different queries: some demand a holistic understanding of how the video unfolds over time, while others hinge on fine-grained events within a short temporal window. To address this limitation, we propose Hierarchical Adaptive Frame Sampling (HAS), a two-stage frame sampling framework. In the first stage, Backbone Frame Construction, we apply a Determinantal Point Process (DPP) to sample frames that are both query-relevant and non-redundant. These selected frames capture key moments across the video and form the backbone of the sampling set, providing a foundation for subsequent enrichment. In the second stage, Adaptive Contextual Enrichment, we analyze the temporal distribution of the backbone frames to infer the query type and adaptively allocate the remaining frame budget between Local and Global Context. The Local Context enriches the backbone with fine-grained temporal dynamics and short-range causal relations, whereas the Global Context connects temporally isolated evidence and provides a holistic view of the entire video to support global understanding. Through such a hierarchical two-stage process, HAS effectively addresses diverse query requirements. Incorporated into three leading MLLMs, it demonstrates consistently superior performance across the Video-MME, LongVideoBench, and MLVU benchmarks. We have released our code.
BibTeX
@inproceedings{sun2026hierarchical,
  author = {Yuyao Sun and Daiqi Shi and Shuang Li and Liao Zhang and Yang Cai and deqing wang},
  title = {{Hierarchical Adaptive Frame Sampling For Video Understanding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=dfK9DJR2XH},
}
Figure