WorksComputer Science
HAS: Hierarchical Adaptive Frame Sampling for Video Understanding
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's requirements 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.
Introduction
Multi-modal Large Language Models (MLLMs) have demonstrated impressive performance across a wide range of image perception and reasoning tasks [4, 7, 8, 12, 13, 16]. Extending these capabilities to videos is a natural next step, yet the sheer volume of visual information in videos makes this transition far from trivial. Most current video-based MLLMs [14, 22, 23, 33] follow an image-based paradigm: encoding frames into visual tokens using a vision encoder, and jointly processing these tokens with text tokens in a Large Language Model. However, the constrained context window of LLMs precludes processing all video frames simultaneously; typically, a fixed subset (e.g., 32 or 64) is chosen to represent the entire video. Thus, the frame sampling strategy becomes a pivotal factor influencing the model’s understanding.
A common strategy is uniform sampling, which selects frames at fixed intervals. While this approach preserves coarse global coverage of the storyline, it can easily miss brief yet critical moments. To alleviate this issue, relevance-based sampling, as adopted in SeViLA [32] and MVU [21], selects query-relevant frames more effectively. However, this focus on relevance often produces visually redundant selections and weakens the narrative context needed for coherent video understanding. Taken together, these methods highlight a shared limitation: existing approaches are typically governed by a single sampling principle—either emphasizing global semantic (uniform sampling) or prioritizing key evidence (relevance-based sampling). Such a one-sided strategy is ill-suited to the heterogeneous nature of video queries. Some questions demand holistic understanding of the overall narrative (e.g., “Why does the mother bird bring a fish to the fox?”), whereas others require fine-grained inspection of a few decisive events (e.g., “How did the cat manage to open the door?”). Since a single principle cannot simultaneously satisfy these competing demands, current methods struggle to adapt across query types, motivating the need for a more adaptive sampling approach.
To address this limitation, we propose Hierarchical Adaptive frame Sampling (HAS), a hierarchical framework that tailors frame selection to the specific requirements of each query. HAS proceeds in two stages. In Frame Backbone Construction, we cast frame sampling as a Determinantal Point Process (DPP). We build the DPP kernel by injecting frame relevance into the inter-frame similarity matrix, and perform greedy MAP inference to select a set of backbone frames that are both highly relevant and non-redundant. This relevance–diversity trade-off encourages the backbone to cover key moments throughout the video, providing a reliable basis for subsequent enrichment. In Adaptive Contextual Enrichment, we allocate the remaining budget to complement the backbone with two types of context. Local Context samples temporally neighboring frames around each backbone frame to recover fine-grained dynamics and short-term causal cues, whereas Global Context uniformly samples along the full timeline to maintain a holistic narrative view.
The adaptivity of HAS comes from how it distributes the remaining budget between Local and Global Context according to the temporal layout of the backbone frames. We believe that the temporal layout of the backbone frames provides a useful cue for identifying the query’s evidential needs. When backbone frames form a dense temporal cluster, the queried content is likely concentrated within a short window; HAS therefore emphasizes Local Context to enrich these key moments with nearby evidence. Conversely, when backbone frames are sparse and widely spread, the queried subject is more likely to recur across the video and require long-range temporal reasoning; HAS thus assigns more budget to Global Context to connect distant events and maintain narrative coherence. In this way, HAS can flexibly shift between zooming in on decisive moments and constructing a holistic overview, addressing the rigidity of one-sided sampling strategies.
To validate HAS, we integrate it into three representative MLLMs: Qwen2.5-VL [4], InternVL3 [39], and LLaVA-Video [36], and evaluate on three widely-used benchmarks: Video-MME [10], LongVideoBench [29], and MLVU [37]. Together, these benchmarks span diverse video lengths and query types, enabling a rigorous evaluation of effectiveness and generalization. Experimental results show that HAS not only significantly outperforms the default uniform sampling strategy used by these models but also surpasses other advanced sampling methods, such as AKS [25] and TSTAR [31].
Related Work
Multimodal Large Language models
The remarkable success of Large Language Models (LLMs) has motivated extending them to incorporate visual information, giving rise to Multimodal LLMs (MLLMs). Early models relied on heavyweight vision–language alignment designs. For instance, BLIP-2 [13] and Qwen-VL [3] adopt a Q-Former to bridge visual embeddings into the language embedding space, while Flamingo [1] injects cross-attention layers into the LLM to fuse visual and textual representations. LLaVA [17] later shows that effective vision–language alignment can be achieved with a much simpler design, using only a lightweight MLP projector and avoiding substantial architectural changes. This paradigm has since been widely adopted by other MLLMs, enabling strong visual understanding performance in models such as MiniGPT-4V [38], ShareGPT4V [6], Qwen2.5-VL [26] and InternVL3 [39].
Video-based MLLMs
Extending MLLMs from images to videos introduces a key challenge: videos contain far more information, and encoding all frames into tokens would quickly exceed the LLM’s context window. Most video-based MLLMs therefore build upon image-based architectures and sample a subset of frames as input, as in Video-ChatGPT [18], Video-LLaMA [34], Deepseek-VL2 [30], and Video-LLaVA [15]. Inevitably, this discards information from unsampled frames, and the issue becomes more severe as video length increases. To mitigate this, methods such as ADACM [19] and HierarQ [2] employ transformer-based designs to process frames sequentially and compress the entire video into a compact representation. While this reduces the information loss induced by sampling, such architectures generally underperform mainstream sampling-based MLLMs.
Frame sampling for video MLLMs
Given the limited context window of MLLMs, frame sampling has emerged as the dominant solution for adapting long videos to VideoQA tasks, making it a critical factor in model performance. Early influential methods such as SeViLA [32] and MVU [21] focused on query relevance by using MLLMs to assign importance scores to each frame individually. To address the efficiency bottleneck of scoring each frame individually, Hu et al. [11] predict all frame-level scores in a single forward pass. Other concurrent approaches deviate from explicit query-relevance scoring at inference: Koala [24] employs fixed sparse sampling to condition subsequent visual processing, while ViLA [27] trains an end-to-end module to learn a sampling strategy. More recent methods refine the selection criteria: AKS [25] simultaneously considers both the relevance of a frame and the temporal coverage of the already selected frames, and TSTAR [31] converts temporal search into spatial search by arranging frames into a large grid image. However, existing methods often suffer from a key limitation: they are typically governed by a single sampling principle (e.g., uniform coverage or relevance-only selection) and thus struggle to adapt to the heterogeneous evidential requirements of different query types. To the best of our knowledge, we are the first to explicitly highlight this query-dependent demand and propose Hierarchical Adaptive frame Sampling (HAS) to address this challenge.
Method
Preliminaries: Problem Formulation
To motivate our method, we first formalize the video question answering pipeline. A video is a sequence of frames. Given the limited context window of an MLLM , it is typically infeasible to encode all frames; instead, the model operates on a subset of frames with . We denote the sampling strategy as , which takes the video and optionally the query as input and returns a set of frame indices, . The sampled frames , together with , are then fed into to generate an answer . Consequently, the answer quality depends critically on the effectiveness of . Ideally, an optimal strategy would select indices that maximize the probability of generating the ground-truth answer .
However, learning such a strategy is intractable, as even finding for a single instance would require exhaustively evaluating all possible subsets with the MLLM. The goal of this work is therefore to design a practical and effective strategy, , that serves as a proxy to .
Hierarchical Adaptive frame Sampling
Motivated by the need to tailor evidence to different VideoQA queries, we introduce HAS, a two-stage frame sampling framework. In Backbone Frame Construction, HAS selects query-relevant yet diverse frames to form an informative backbone. In Adaptive Contextual Enrichment, it adaptively allocates the remaining budget between Local and Global Context to complement the backbone based on the needs of the query. The following sections detail each stage.
Backbone Frame Construction
HAS begins by selecting a set of backbone frames that are simultaneously highly relevant to the query and internally diverse. We model this as a subset selection problem using a Determinantal Point Process, a natural choice for balancing quality and diversity. The effectiveness of DPP has been well established in tasks like recommendation systems [5, 28] and, more recently, token pruning [35].
In our formulation, we construct a kernel matrix that jointly incorporates frame-query relevance (quality) and inter-frame redundancy (diversity) to guide backbone frame selection. Specifically, we use a pre-trained CLIP model to extract embeddings for each video frame and the query, and compute a relevance score via cosine similarity. The kernel entries are then defined as:

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.
where denotes the cosine similarity between frame embeddings.
Given , DPP assigns each candidate subset a probability proportional to the determinant of its corresponding submatrix, , which simultaneously reflects the collective relevance of the selected frames and their diversity. Selecting the backbone frames can thus be formulated as a maximum a posteriori (MAP) inference problem under the DPP model, i.e., finding the subset of size that maximizes:
where denotes the number of backbone frames to be selected.
Since this optimization is NP-hard, we employ an efficient greedy MAP inference algorithm from Chen et al. [5]. This algorithm iteratively selects the sample that provides the largest marginal gain to the log-determinant until the subset size is reached. To prevent a fixed budget from forcing the selection of low-relevance frames, we introduce an adaptive stopping criterion: during this process, we terminate when the marginal gains of adding any remaining candidate frame all fall below a predefined threshold . We denote the resulting backbone frame indices as , which are then used in the subsequent stage.
Adaptive Contextual Enrichment
The backbone frames provide a foundation basis that captures the key moments across the entire video, but remains incomplete on its own due to limited surrounding context. To enrich this foundation for more complex reasoning, we utilize the remaining frame budget, , to sample additional context frames. This budget is adaptively allocated between two types: Global Context and Local Context.
Local Context. While the backbone frames pinpoint critical moments, the DPP-enforced diversity often yields temporally sparse snapshots that lack the immediate context needed to recover local dynamics and short-term causal cues. To remedy this, we apply a ripple expansion process to sample Local Context frames, denoted as . We first sort the backbone frames by relevance (descending) and push them into a FIFO queue, treating each queued frame as an expansion point. We then repeatedly pop an expansion point and scan neighboring frames outward along the temporal axis in both directions. The search stops upon encountering either an already selected frame or an unselected frame whose similarity to the expansion point falls below . All newly qualified frames are added to and also enqueued as new expansion points, allowing the expansion to propagate to nearby regions. We stop this stage once reaches the Local Context budget . Overall, this procedure augments the backbone with temporally adjacent evidence, capturing local dynamics and short-range causal relations around key moments.
Global Context. Some queries require a coherent understanding of how the video unfolds over time, which backbone frames alone may not fully capture. To address this, HAS allocates part of the frame budget to Global Context and samples an additional set of frames to provide broad coverage of the entire video. We explored multiple Global Context sampling strategies and found that simple uniform sampling performs best. Accordingly, we adopt uniform sampling as the default Global Context strategy in this work, and provide detailed comparisons and analysis in § 4.3.3.
Adaptive Budget Allocation. A fixed allocation between Global and Local Context is suboptimal, as the appropriate balance is inherently query-dependent. We leverage the temporal layout of the backbone frames as a cue for this allocation. Intuitively, when backbone frames form a dense temporal cluster, the query is likely centered on a short, localized segment, and thus benefits more from Local Context to recover fine-grained dynamics and short-term causal cues. In contrast, when backbone frames are sparse and widely spread, the queried content is more likely to recur throughout the video, calling for broader Global Context to connect distant events and maintain narrative coherence.
To quantify this temporal layout, we compute an entropy-based globalness score . We partition the video timeline into equal temporal bins, where we set . Let denote the relevance score of a backbone frame . For each bin , we accumulate the weighted mass
where equals 1 if frame falls into bin and 0 otherwise. We normalize into a discrete distribution by
and compute the normalized entropy
Finally, we allocate the context budget by assigning frames to Global Context and using the remaining frames for Local Context. The final set of frame indices passed to the MLLM is .
Experiments
Experimental Setup
Datasets and Models. To empirically validate the effectiveness of HAS, we conduct comprehensive experiments on three widely used video understanding benchmarks: VideoMME [10], LongVideoBench [29], and MLVU [37]. These benchmarks are characterized by their diverse range of question types and video lengths, with some videos extending beyond one hour. This makes them a rigorous testbed for evaluating the efficacy of frame sampling strategies. For models, we select three powerful MLLMs: Qwen2.5-VL-7B [4], InternVL3-8B [39], and LLaVA-Video-7B [36].
Compared Methods. We compare our proposed method, HAS, against four frame sampling methods. These are: (1) UNI, which samples frames at fixed temporal intervals across the video’s timeline and serves as the default method for the models evaluated in this paper; (2) TOP, which selects frames in descending order of their query-relevance scores; (3) AKS [25], an enhancement of TOP that simultaneously considers both the relevance of a frame and the temporal coverage of the already selected set of frames and (4) TSTAR [31], which select question-relevant frames via object-centric visual search rather than semantic similarity, iteratively narrowing down the temporal region of interest through coarse-to-fine resampling.
Implementation Details. We conduct all our experiments using the VLMEvalKit framework [9]. HAS is implemented in a plug-and-play manner: we only change which frames are selected as input while keeping the model weights frozen throughout all evaluations. To improve computational efficiency, we first pre-sample a candidate pool from each video at 1 FPS, and then apply our method to select the final set of frames from this pool. For the DPP backbone selection, we construct the candidate set by taking the top- frames ranked by relevance, where is the frame budget. All relevance scores are computed using CLIP-B [20]. Unless otherwise specified, we set .
Main results
Quantitative results
As presented in Table 1, our proposed HAS is comprehensively evaluated across three models and three benchmarks. In the great majority of evaluations, HAS outperforms the other sampling strategies, achieving the best performance.
| Model | Size | Frames | LVB 600 | LVB 3600 | VideoMME Short | VideoMME Med. | VideoMME Long | MLVU Hol. | MLVU S-D | MLVU M-D |
| Proprietary | ||||||||||
| GPT4o | – | – | 66.7 | 61.6 | 77.7 | 66.2 | 59.8 | 79.4 | 53.7 | 35.7 |
| Gemini-1.5-Flash | – | – | 63.1 | 57.3 | 71.3 | 58.6 | 52.1 | 73.9 | 52.5 | 27.9 |
| Open-source | ||||||||||
| VideoChat2 | 7B | 16 | 39.0 | 37.5 | 54.2 | 42.8 | 39.9 | 71.7 | 50.0 | 24.9 |
| Long-VITA | 14B | 64 | 52.7 | 46.8 | 74.6 | 61.2 | 55.0 | 81.0 | 69.8 | 50.1 |
| LLAVA-OV | 72B | 64 | 61.6 | 56.5 | 77.2 | 63.2 | 58.2 | 83.1 | 74.9 | 48.6 |
| LLAVA-Video | 72B | 64 | 63.9 | 59.3 | 80.8 | 68.6 | 62.1 | 81.2 | 78.7 | 55.7 |
| Qwen2.5VL | 7B | 64 | 59.0 | 51.1 | 73.9 | 62.3 | 52.2 | 80.6 | 66.0 | 43.9 |
| + TOP | 7B | 64 | 62.9 | 56.0 | 74.2 | 62.3 | 53.8 | 76.5 | 72.2 | 54.4 |
| + TStar | 7B | 64 | 62.6 | 55.8 | 74.2 | 63.4 | 50.3 | 78.8 | 72.4 | 55.5 |
| + AKS | 7B | 64 | 62.1 | 56.2 | 74.4 | 65.1 | 54.9 | 82.3 | 71.4 | 51.0 |
| + HAS | 7B | 64 | 63.8 | 56.4 | 74.8 | 65.3 | 55.4 | 80.8 | 73.4 | 57.2 |
| LLAVA-Video | 7B | 64 | 59.2 | 50.9 | 75.9 | 63.2 | 52.1 | 79.7 | 75.0 | 53.7 |
| + TOP | 7B | 64 | 62.1 | 53.7 | 76.9 | 59.8 | 51.9 | 75.6 | 74.4 | 57.7 |
| + TStar | 7B | 64 | 61.9 | 53.9 | 76.6 | 63.7 | 51.4 | 76.7 | 75.1 | 56.8 |
| + AKS | 7B | 64 | 61.4 | 54.3 | 77.0 | 65.1 | 55.0 | 79.3 | 74.9 | 52.7 |
| + HAS | 7B | 64 | 63.1 | 56.2 | 77.6 | 64.3 | 55.0 | 80.6 | 76.1 | 60.6 |
| InternVL3 | 8B | 64 | 61.7 | 53.0 | 76.2 | 66.4 | 55.4 | 84.7 | 73.9 | 52.5 |
| + TOP | 8B | 64 | 63.6 | 56.2 | 77.8 | 63.6 | 54.6 | 80.8 | 75.4 | 57.0 |
| + TStar | 8B | 64 | 64.1 | 55.7 | 77.6 | 66.9 | 54.1 | 81.7 | 76.3 | 57.5 |
| + AKS | 8B | 64 | 63.3 | 54.8 | 77.2 | 68.9 | 55.3 | 82.3 | 75.0 | 52.9 |
| + HAS | 8B | 64 | 64.6 | 56.4 | 78.1 | 70.0 | 56.3 | 82.3 | 77.6 | 58.1 |
Table 1. Main results on long video understanding benchmarks. The LVB-60s subset is excluded from our evaluation since our approach re-samples from an initial 1fps stream. Bold indicates the best performance and underline indicates the second-best within each group.
The results on the LVB and VideoMME benchmarks particularly highlight our method’s advantage in long-duration video understanding. For instance, on the challenging LVB-3600 benchmark, HAS boosts the LLAVA-Video-7B model’s score to 56.2, a clear +1.9 improvement over the next-best method, AKS. Similarly, on the VideoMME Long benchmark, HAS (on InternVL-3) achieves a score of 56.3, significantly outperforming AKS (55.3). Moreover, this strong performance across both LVB, which emphasizes single-scene analysis, and VideoMME, which requires a holistic understanding of the video timeline to answer, showcases our method’s ability to adapt to diverse problem types.
The results on the MLVU benchmark further showcase our method’s adaptability. HAS achieves top scores on detail-oriented tasks like Single-Detail (S-D) and Multi-Detail (M-D) (e.g., 77.6 and 58.1 with InternVL3-8B), while also securing highly competitive results on Holistic (Hol.) tasks, including scores of 80.6 with LLAVA-Video and 82.3 with InternVL3, the best and second-best results among all sampling strategies. This demonstrates HAS’s dual capability: providing a global perspective for holistic queries, while also capturing the local dynamics and short-term context for questions focused on specific moments.
Notably, HAS enables smaller open-source models to achieve performance competitive with, and in some cases even superior to, much larger or proprietary counterparts. For example, HAS-enhanced LLaVA-Video-7B achieves 60.6 on MLVU M-D, outperforming its 10× larger 72B counterpart (55.7), demonstrating immense gains at a fraction of the computational cost. In another compelling case, InternVL3-8B with HAS (70.0) outperforms the proprietary GPT-4o (66.2) on VideoMME Med. These results highlight a key insight: in certain scenarios, employing our economical HAS as a video sampling method is a more effective strategy for performance enhancement than the costly alternative of training ever-larger models.
Qualitative results
Figure 2 illustrates the behavior of different sampling strategies on two representative cases. In the first case, HAS, benefiting from DPP, accurately captures three distinct question-relevant scenes that are all necessary for answering the question, whereas AKS and TOP ignore some of these key scenes to varying degrees. In addition, the global context provide a more complete view of how the video evolves over time, so that the final sampled frame set offers a coherent and sufficient basis for answering the question. In the second case, HAS enriches the selected query-relevant backbone frames with local context which supplies the crucial short term context required to answer the question correctly. In comparison, AKS and TOP rely solely on key frames, which results in incomplete contextual understanding and incorrect predictions. Jointly, these two cases collectively demonstrate the effectiveness of HAS. We provide additional qualitative examples in the appendix, covering diverse scenarios under different frame budgets.
Figure 2. Two examples of how different sampling strategies impact video understanding. The curve illustrates the video’s temporal relevance profile. A frame’s border color matches the color of its sampling dot on the curve.
Ablation study
Ablation Study On Frame Budgets
Table 2 presents a performance comparison under varying input frame budgets (64, 32, and 16). The results demonstrate the strong performance and robustness of our method across different frame budgets. Under ample budgets of 64 and 32 frames, HAS consistently achieves the best performance across all benchmarks. For instance, at 32 frames, HAS secures top scores of 66.7 on VideoMME and 61.5 on LVB, clearly surpassing the next-best scores of 66.2 (AKS) and 60.9 (TOP), respectively. When the frame budget is constrained to 16 frames, splitting the budget into three components (DPP backbone, Local Context, and Global Context) may allocate too few frames to each part, limiting their effectiveness under such extreme constraints. To address this issue, we simplify HAS by retaining only the first-stage DPP backbone construction at 16 frames, avoiding over-fragmentation of the limited budget. With this adaptation, HAS remains the best-performing method under the 16-frame setting across all benchmarks, achieving 66.2 on VideoMME, 60.7 on LVB, and 71.4 on MLVU.
| Metric | LVB | VideoMME | MLVU | ||||||
| Frames | 64 | 32 | 16 | 64 | 32 | 16 | 64 | 32 | 16 |
| UNI | 59.8 | 56.4 | 55.1 | 66.0 | 64.4 | 61.9 | 73.1 | 70.0 | 65.8 |
| TOP | 61.8 | 60.9 | 60.0 | 65.3 | 63.5 | 61.0 | 74.6 | 73.0 | 69.4 |
| AKS | 61.1 | 59.5 | 60.1 | 67.1 | 66.2 | 65.8 | 74.3 | 73.1 | 65.0 |
| HAS | 62.2 | 61.5 | 60.7 | 68.1 | 66.7 | 66.2 | 75.8 | 74.1 | 71.4 |
Table 2. Ablation study on frame budget for HAS on InternVL3.
| Model | Frames | LVB | VideoMME | MLVU | |||||
| 600 | 3600 | Short | Med. | Long | HoI. | S-D | M-D | ||
| TOP | 64 | 63.6 | 56.2 | 77.8 | 63.6 | 54.6 | 80.8 | 75.4 | 57.0 |
| DPP | 64 | 63.8 | 55.7 | 78.0 | 64.8 | 55.4 | 82.2 | 76.3 | 56.8 |
| DPP+GC | 64 | 64.3 | 56.0 | 77.9 | 68.3 | 57.0 | 82.3 | 77.1 | 57.9 |
| DPP+LC | 64 | 61.7 | 56.4 | 78.0 | 67.0 | 55.2 | 82.3 | 77.9 | 59.1 |
| HAS | 64 | 64.6 | 56.4 | 78.1 | 70.0 | 56.3 | 82.3 | 77.6 | 58.1 |
Table 3. Ablation study of HAS components on InternVL3.
Ablation study on the components of HAS
To validate the contribution of each component in HAS, we conducted a detailed ablation study, with results presented in Table 3. Our ablation study (Table 3) begins by comparing DPP against TOP. DPP improves over TOP on most metrics, with notable gains on benchmarks like VideoMME-Med (64.8 vs. 63.6) and MLVU HoL (82.2 vs. 80.8). This superiority stems from DPP’s inherent ability to balance both relevance and diversity. Therefore, we select DPP for our backbone frame sampling.
Building on this, we observe that different context types cater to different benchmark demands. Specifically, adding Global Context (DPP+GC) yields substantial gains on benchmarks emphasizing global semantics, boosting the VideoMME-Med score from 64.8 to 68.3. Conversely, Local Context (DPP+LC) proves highly effective for tasks requiring fine-grained detail, achieving excellent scores on MLVU S-D 77.9 and M-D 59.1. These results show that GC and LC each offer unique, complementary advantages. This directly motivates our adaptive approach.
By successfully synthesizing these complementary strengths, our full method, HAS, achieves the best or second-best performance across all benchmarks. It secures top scores of 64.6 on LVB-600 and 70.0 on VideoMME-Med, and remains highly competitive even where not strictly the top performer, such as on VideoMME-Long (56.3). In a few cases, a single-context variant (e.g., DPP+LC or DPP+GC) can be slightly better, likely because some benchmarks strongly prefer either local or global context. Overall, HAS provides a strong balance between high performance and generalization, avoiding large swings across benchmarks.
Ablation study of Alternative Strategies for Global Context Sampling.
In HAS, a portion of the budget is dedicated to Global Context to provide a global perspective of the video. To identify the most effective GC sampling strategy, we evaluated four approaches: (i)Uniform (UNI), which samples frames at uniform temporal intervals; (ii)Max-in-Segment (MiS), which divides the video into uniform segments and selects the most relevant frame to the query from each; (iii)Clustering-based (CLUS), which performs clustering within each uniform segment and then selects the centroid of the largest cluster; and (iv)Temporal Bridging (TB), which iteratively samples the midpoint of the largest temporal gap. As shown in Table 4, the simple UNI proves highly effective, with leading performance in benchmarks such as LVB and VideoMME. We attribute this to a mismatch: Global Context aims to offer a broad, unbiased temporal overview, whereas methods like MiS and CLUS introduce relevance or centrality biases. These biases conflict with this goal and compromise the uniform coverage vital for a holistic view. Therefore, we conclude that a simple unbiased strategy like Uniform sampling is the most robust choice for supplementing a query-focused backbone.
| Method | LVB | VideoMME | MLVU |
| UNI | 62.2 | 68.1 | 75.8 |
| MiS | 61.0 | 67.4 | 76.0 |
| CLUS | 61.1 | 67.9 | 75.7 |
| TB | 61.9 | 67.4 | 75.2 |
Table 4. Ablation study of GC strategies.
Ablation study of different fps
Table 5 reports the performance of HAS under different pre-sampling FPS. Using a higher FPS generally yields better accuracy, as a denser candidate pool provides more fine-grained temporal coverage and is less likely to miss critical moments or key evidence. In our main experiments, we set the pre-sampling rate to 1 FPS to balance performance with efficiency, since computing query-frame relevance scores becomes increasingly expensive as FPS grows.
| FPS | LVB | VideoMME | MLVU |
| 2 | 62.3 | 68.7 | 76.1 |
| 1 | 62.2 | 68.1 | 75.8 |
| 0.5 | 61.3 | 68.0 | 75.3 |
| 0.25 | 61.1 | 67.6 | 75.4 |
Table 5. Ablation study of different FPS.
Ablation study of hyperparameters
In this section, we analyze , the marginal-gain threshold in our DPP-based backbone selection (smaller selects more frames). As shown in Figure 3, the performance exhibits a consistent trend across benchmarks, first increasing and then decreasing. With a low , the backbone may include low-relevance frames and leave too little budget for the second-stage enrichment. With a high , too few backbone frames are selected, causing the model to miss some key moments. As a result, performance is best at a moderate (around –), which strikes a good balance between capturing sufficient key moments and reserving enough budget for contextual enrichment. This behavior further supports the necessity of our two-stage design. We therefore set in all main experiments. The sensitivity to the similarity threshold is further analyzed in Appendix ??.

Figure 3. Analysis of the hyperparameter . (a)–(c) show the model performance under different values of on three benchmarks, and (d) shows the number of selected backbone frames under different values of .
Conclusion
In this work, we find that existing video frame sampling methods are often governed by a one-sided principle, making it hard to simultaneously meet the heterogeneous evidential needs of different queries. To address this limitation, we propose HAS, a hierarchical framework that dynamically tailors sampled frames to the specific needs of each query. HAS first constructs a query-aware backbone via DPP to capture diverse and relevant key moments, and then adaptively allocates the remaining sampling budget between Global Context (to cover the broader video timeline for holistic queries) and Local Context (to capture fine-grained temporal dynamics for moment-centric queries). With this adaptive design, HAS consistently delivers strong performance across multiple benchmarks and a range of MLLMs.
References
- [1]Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katherine Millikan, Malcolm Reynolds, et al. Flamingo: a visual language model for few-shot learning. Advances in neural information processing systems, 35: 23716–23736, 2022.arxiv.org/abs/2204.14198
- [2]Shehreen Azad, Vibhav Vineet, and Yogesh Singh Rawat. Hierarq: Task-aware hierarchical q-former for enhanced video understanding. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 8545–8556, 2025.arxiv.org/abs/2503.08585
- [3]Jinze Bai, Shuai Bai, Shusheng Yang, Shijie Wang, Sinan Tan, Peng Wang, Junyang Lin, Chang Zhou, and Jingren Zhou. Qwen-vl: A frontier large vision-language model with versatile abilities. arXiv preprint arXiv:2308.12966, 2023.
- [4]Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, et al. Qwen2. 5-vl technical report. arXiv preprint arXiv:2502.13923, 2025.arxiv.org/abs/2502.13923
- [5]Laming Chen, Guoxin Zhang, and Eric Zhou. Fast greedy map inference for determinantal point process to improve recommendation diversity. Advances in neural information processing systems, 31, 2018.arxiv.org/abs/1709.05135
- [6]Lin Chen, Jinsong Li, Xiaoyi Dong, Pan Zhang, Conghui He, Jiaqi Wang, Feng Zhao, and Dahua Lin. Sharegpt4v: Improving large multi-modal models with better captions. In European Conference on Computer Vision, pages 370–387. Springer, 2024.arxiv.org/abs/2311.12793
- [7]Gheorghe Comanici, Eric Bieber, Mike Schaekermann, Ice Pasupat, Noveen Sachdeva, Inderjit Dhillon, Marcel Blistein, Ori Ram, Dan Zhang, Evan Rosen, et al. Gemini 2.5: Pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. arXiv preprint arXiv:2507.06261, 2025.arxiv.org/abs/2507.06261
- [8]Wenliang Dai, Junnan Li, Dongxu Li, Anthony Meng Huat Tiong, Junqi Zhao, Weisheng Wang, Boyang Li, Pascale Fung, and Steven Hoi. Instructblip: Towards general-purpose vision-language models with instruction tuning, 2023. URL https://arxiv.org/abs/2305.06500.
- [9]Haodong Duan, Junming Yang, Yuxuan Qiao, Xinyu Fang, Lin Chen, Yuan Liu, Xiaoyi Dong, Yuhang Zang, Pan Zhang, Jiaqi Wang, et al. Vlmevalkit: An open-source toolkit for evaluating large multi-modality models. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 11198–11201, 2024.arxiv.org/abs/2407.11691
- [10]Chaoyou Fu, Yuhan Dai, Yongdong Luo, Lei Li, Shuai Ren, Renrui Zhang, Zihan Wang, Chenyu Zhou, Yunhang Shen, Mengdan Zhang, et al. Video-mme: The first-ever comprehensive evaluation benchmark of multi-modal llms in video analysis. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 24108–24118, 2025.arxiv.org/abs/2405.21075
- [11]Kai Hu, Feng Gao, Xiaohan Nie, Peng Zhou, Son Tran, Tal Neiman, Lingyun Wang, Mubarak Shah, Raffay Hamid, Bing Yin, et al. M-llm based video frame selection for efficient video understanding. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 13702–13712, 2025.arxiv.org/abs/2502.19680
- [12]Feng Li, Renrui Zhang, Hao Zhang, Yuanhan Zhang, Bo Li, Wei Li, Zejun Ma, and Chunyuan Li. Llava-next-interleave: Tackling multi-image, video, and 3d in large multimodal models. arXiv preprint arXiv:2407.07895, 2024.arxiv.org/abs/2407.07895
- [13]Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. In International conference on machine learning, pages 19730–19742. PMLR, 2023.arxiv.org/abs/2301.12597
- [14]Xinhao Li, Yi Wang, Jiashuo Yu, Xiangyu Zeng, Yuhan Zhu, Haian Huang, Jianfei Gao, Kunchang Li, Yinan He, Chenting Wang, et al. Videochat-flash: Hierarchical compression for long-context video modeling. arXiv preprint arXiv:2501.00574, 2024.arxiv.org/abs/2501.00574
- [15]Bin Lin, Yang Ye, Bin Zhu, Jiaxi Cui, Munan Ning, Peng Jin, and Li Yuan. Video-llava: Learning united visual representation by alignment before projection. arXiv preprint arXiv:2311.10122, 2023.arxiv.org/abs/2311.10122
- [16]Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. Improved baselines with visual instruction tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 26296–26306, 2024.arxiv.org/abs/2310.03744
- [17]Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. Advances in neural information processing systems, 36, 2024.
- [18]Muhammad Maaz, Hanoona Rasheed, Salman Khan, and Fahad Shahbaz Khan. Video-chatgpt: Towards detailed video understanding via large vision and language models. arXiv preprint arXiv:2306.05424, 2023.arxiv.org/abs/2306.05424
- [19]Yuanbin Man, Ying Huang, Chengming Zhang, Bingzhe Li, Wei Niu, and Miao Yin. Adam^ 2: On understanding extremely long-term video with adaptive cross-modality memory reduction. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 8534–8544, 2025.
- [20]Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PMLR, 2021.arxiv.org/abs/2103.00020
- [21]Kanchana Ranasinghe, Xiang Li, Kumara Kahatapitiya, and Michael S Ryoo. Understanding long videos in one multimodal language model pass. arXiv preprint arXiv:2403.16998, 3(4):12, 2024.
- [22]Xiaoqian Shen, Yunyang Xiong, Changsheng Zhao, Lemeng Wu, Jun Chen, Chenchen Zhu, Zechun Liu, Fanyi Xiao, Balakrishnan Varadarajan, Florian Bordes, et al. Longvu: Spatiotemporal adaptive compression for long video-language understanding. arXiv preprint arXiv:2410.17434, 2024.arxiv.org/abs/2410.17434
- [23]Yan Shu, Zheng Liu, Peitian Zhang, Minghao Qin, Junjie Zhou, Zhengyang Liang, Tiejun Huang, and Bo Zhao. Video-xl: Extra-long vision language model for hour-scale video understanding. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 26160–26169, 2025.arxiv.org/abs/2409.14485
- [24]Reuben Tan, Ximeng Sun, Ping Hu, Kui-shien Wang, Hanieh Delamsalyeh, Bryan A Plummer, Bryan Russell, and Kate Saenko. Koala: Key frame-conditioned long video-llm. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13581–13591, 2024.arxiv.org/abs/2404.04346
- [25]Xi Tang, Jihao Qiu, Lingxi Xie, Yunjie Tian, Jianbin Jiao, and Qixiang Ye. Adaptive keyframe sampling for long video understanding. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 29118–29128, 2025.arxiv.org/abs/2502.21271
- [26]Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, et al. Qwen2-vl: Enhancing vision-language model’s perception of the world at any resolution. arXiv preprint arXiv:2409.12191, 2024.arxiv.org/abs/2409.12191
- [27]Xijun Wang, Junbang Liang, Chun-Kai Wang, Kenan Deng, Yu Lou, Ming C Lin, and Shan Yang. Vila: Efficient video-language alignment for video question answering. In European Conference on Computer Vision, pages 186–204. Springer, 2024.arxiv.org/abs/2312.08367
- [28]Mark Wilhelm, Ajith Ramanathan, Alexander Bonomo, Sagar Jain, Ed H Chi, and Jennifer Gillenwater. Practical diversified recommendations on youtube with detrimental point processes. In Proceedings of the 27th ACM International Conference on Information and Knowledge Management, pages 2165–2173, 2018.
- [29]Haoning Wu, Dongxu Li, Bei Chen, and Junnan Li. Longvideobench: A benchmark for long-context interleaved video-language understanding. Advances in Neural Information Processing Systems, 37:28828–28857, 2024.arxiv.org/abs/2407.15754
- [30]Zhiyu Wu, Xiaokang Chen, Zizheng Pan, Xingchao Liu, Wen Liu, Damai Dai, Huazuo Gao, Yiyang Ma, Chengyue Wu, Bingxuan Wang, et al. Deepseek-vl2: Mixture-of-experts vision-language models for advanced multimodal understanding. arXiv preprint arXiv:2412.10302, 2024.arxiv.org/abs/2412.10302
- [31]Jinhui Ye, Zihan Wang, Haosen Sun, Keshigeyan Chandrasegaran, Zane Durante, Cristobal Eyzaguirre, Yonatan Bisk, Juan Carlos Niebles, Ehsan Adeli, Li Fei-Fei, et al. Re-thinking temporal search for long-form video understanding. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 8579–8591, 2025.DOI
- [32]Shoubin Yu, Jaemin Cho, Prateek Yadav, and Mohit Bansal. Self-chained image-language model for video localization and question answering. Advances in Neural Information Processing Systems, 36:76749–76771, 2023.arxiv.org/abs/2305.06988
- [33]Boqiang Zhang, Kehan Li, Zesen Cheng, Zhiqiang Hu, Yuqian Yuan, Guanzheng Chen, Sicong Leng, Yuming Jiang, Hang Zhang, Xin Li, et al. Videollama 3: Frontier multimodal foundation models for image and video understanding. arXiv preprint arXiv:2501.13106, 2025.arxiv.org/abs/2501.13106
- [34]Hang Zhang, Xin Li, and Lidong Bing. Video-llama: An instruction-tuned audio-visual language model for video understanding. arXiv preprint arXiv:2306.02858, 2023.arxiv.org/abs/2306.02858
- [35]Qizhe Zhang, Mengzhen Liu, Lichen Li, Ming Lu, Yuan Zhang, Junwen Pan, Qi She, and Shanghang Zhang. Beyond attention or similarity: Maximizing conditional diversity for token pruning in mllms. arXiv preprint arXiv:2506.10967, 2025.arxiv.org/abs/2506.10967
- [36]Yuanhan Zhang, Jinming Wu, Wei Li, Bo Li, Zejun Ma, Ziwei Liu, and Chunyan Li. Video instruction tuning with synthetic data. arXiv preprint arXiv:2410.02713, 2024.arxiv.org/abs/2410.02713
- [37]Junjie Zhou, Yan Shu, Bo Zhao, Boya Wu, Shitao Xiao, Xi Yang, Yongping Xiong, Bo Zhang, Tiejun Huang, and Zheng Liu. Mlvu: A comprehensive benchmark for multi-task long video understanding. arXiv e-prints, pages arXiv–2406, 2024.
- [38]Deyao Zhu, Jun Chen, Xiaoqian Shen, Xiang Li, and Mohamed Elhoseiny. Minigpt-4: Enhancing vision-language understanding with advanced large language models. arXiv preprint arXiv:2304.10592, 2023.arxiv.org/abs/2304.10592
- [39]Jinguo Zhu, Weiyun Wang, Zhe Chen, Zhaoyang Liu, Shenglong Ye, Lixin Gu, Hao Tian, Yuchen Duan, Weijie Su, Jie Shao, et al. Internvl3: Exploring advanced training and test-time recipes for open-source multimodal models. arXiv preprint arXiv:2504.10479, 2025.arxiv.org/abs/2504.10479
