TL;DR
Matryoshka Evidence-to-Context (MEC) is a training-free frame selection framework that generates a single, budget-agnostic priority ranking of video frames for long-video understanding. By dynamically shifting its objective from query-specific evidence in early ranks to broader temporal coverage in later ranks, MEC allows a single ranking to be truncated to any frame budget while slashing selection latency by roughly 50%.
What Problem Does This Paper Address?
Large Multimodal Models (LMMs) have advanced significantly, but processing long videos remains a massive challenge due to extreme frame redundancy and strict context window limits. To make long-video processing feasible, researchers use keyframe selectors to pick a compact subset of frames ($K$).
However, existing selectors typically optimize an isolated subset of frames for a single, predefined budget. If the budget changes—due to fluctuating latency constraints or switching to a different downstream LMM—the selector must be rerun from scratch. Even worse, the chosen frames can completely change between budgets, leading to unstable performance. Simple fixed-score ranking methods allow frame reuse, but they apply the same criteria across all ranks, failing to balance the need for highly specific evidence early on with broad temporal context later.
Methods
The authors introduce Matryoshka Evidence-to-Context (MEC) Frame Selection, a training-free framework that constructs a single, nested priority sequence. The pipeline consists of three main stages:
- Reusable Sparse Video Index: To avoid heavy per-query computation, MEC builds a query-independent index. It samples a duration-adaptive set of sparse probes, computes ultra-compact low-resolution appearance encodings (32x32 grayscale), and estimates local visual changes and observability (sharpness and exposure metrics).
- Query-Conditioned Evidence Discovery: For a given query, MEC scores the sparse probes using a combination of text-frame relevance (via a lightweight BLIP-2 ITM head), local visual change, and observability. It activates the top 25% highest-scoring segments and performs "local zooming" (sampling extra frames around the best anchors) to build a refined candidate pool.
- Evidence-to-Context Matryoshka Ranking: MEC greedily constructs the final ranking using a position-adaptive weight schedule. Early ranking positions heavily prioritize query-conditioned evidence, while later positions progressively favor temporal coverage and visual diversity.
Datasets
The framework was evaluated across four challenging long-video understanding benchmarks:
- Video-MME: 900 videos and 2,700 multiple-choice questions across short, medium, and long durations.
- Video-MME-v2: 800 videos with 3,200 questions structured in correlated groups to test multi-point aggregation and complex reasoning consistency.
- LongVideoBench (LVB): 3,763 videos and 6,678 questions focusing on long-context referring and temporal reasoning.
- MLVU: 1,730 videos and 3,102 QA pairs spanning global and local video understanding tasks.
Key Insights and Ideas
- The Matryoshka Principle for Ranking: Inspired by Russian nesting dolls, frame selection should be inherently nested. Shorter prefixes should contain the dense "core evidence" needed for quick answers, while expanding the budget should naturally layer in "temporal context" rather than replacing previous frames.
- Position-Adaptive Objectives: A static scoring function cannot serve multiple budgets well. By explicitly decaying the weight of query relevance and increasing the weight of temporal coverage as the rank index increases, MEC elegantly transitions from an evidence detector to a global video summarizer within a single sequence.
- Decoupling Query-Independent vs. Query-Dependent Costs: Caching low-resolution visual features and observability priors allows the system to remain incredibly fast, avoiding the need to process full-resolution video frames repeatedly for different queries.
Key Results
- Accuracy Boost: Across all four benchmarks, MEC improves average accuracy over uniform sampling by 3.77 percentage points. It is particularly dominant at tight budgets (e.g., a +8.30 pp gain on LongVideoBench at a budget of $K=8$).
- Massive Speedup: MEC processes 74.24% fewer candidate frames on average than state-of-the-art budget-specific selectors like AKS and WFS-SB. This translates to an end-to-end latency reduction of 47.37% to 51.19%.
- Strong Generalization: The exact same MEC configuration was tested across different LMM architectures (Qwen3.5-9B, LLaVA-OneVision-2-8B, and InternVL3.5-8B) and consistently outperformed uniform sampling without any model- or budget-specific tuning.
Limitations and Future Work
- Sparse-Discovery Blind Spots: Because the initial evidence discovery relies on a sparse global grid, brief or visually isolated events that fall between the initial probes might be missed entirely. If a segment isn't activated initially, the local zooming phase will never inspect it.
- Lightweight Proxy Limitations: Using a frame-level image-text matching model (BLIP-2 ITM) means MEC can miss complex evidence that only emerges from long-term temporal dependencies or ordered pairs of actions.
- Greedy Optimization: The ranking is constructed greedily frame-by-frame, which guarantees exact nesting but doesn't guarantee global mathematical optimality for a specific target budget aggregate. The authors suggest exploring beam search or adaptive boundary proposals in future work to mitigate this.
Summary updated