πŸŽ‰ Accepted to  ECCV 2026

LENS: Adaptive Spatio-Temporal Zooming for Keyframe Sampling in Long-Form Videos

A training-free framework that dynamically decides when to zoom in πŸ” for fine-grained details and when to zoom out πŸ”­ for broader temporal context β€” based on the text query.

Ce Zhang Β· Jinxi He Β· Katia Sycara Β· Yaqi Xie
Robotics Institute, Carnegie Mellon University
πŸ“„ arXiv Β· coming soon Code ✏️ BibTeX
+7.4%
Video-MME gain over uniform sampling (8 frames, Qwen2.5-VL)
67.1%
Video-MME accuracy at 32 frames β€” best among all sampling baselines
4Γ—
faster than LLM-agent & video-RAG pipelines on the same benchmark
0
training required β€” plug-and-play with open & proprietary MLLMs
Overview

Why spatio-temporal zooming?

Understanding long-form videos with Multi-modal Large Language Models (MLLMs) is bottlenecked by limited context windows. Keyframe sampling distills a video into a compact set of query-relevant frames β€” but navigating the vast spatio-temporal search space is hard, because spatial detail and temporal coverage often conflict. Detail-oriented questions hinge on fine-grained evidence inside a few frames, while event-level questions require broad temporal context; a fixed sampling strategy cannot serve both.

Illustration of LENS for multi-granular video understanding
Figure 1 β€” LENS for multi-granular video understanding. For detail-oriented questions (left), uniform/coarse sampling misses fine-grained visual evidence, while our spatial zoom-in highlights query-relevant regions. For event-level questions (right), prior approaches suffer from limited temporal coverage, while our temporal zoom-out expands long-range context.
πŸ”

Spatial Zoom-In

Narrows the spatial field of view within a frame to amplify local detail: ITM relevance scoring with watershed-based candidate selection, then pixel-level visual prompting from CLIP attention maps highlights query-relevant regions while suppressing background noise.

πŸ”­

Temporal Zoom-Out

Widens the temporal field of view across frames: a video graph propagates relevance via message passing to capture global structure, and each selected anchor is aggregated with its neighbors into a hyperframe β€” trading spatial resolution for long-range temporal coverage.

Method

The LENS framework

LENS adaptively allocates a limited frame budget between spatial zoom-ins and temporal zoom-outs, enabling the model to reason across multiple granularities while capturing both high-fidelity details and long-range context β€” without any training.

Overview of the LENS framework
Figure 2 β€” Overview of LENS. (A) Spatial zoom-in selects query-relevant frames via image–text similarity and enhances fine-grained evidence with CLIP attention–based visual prompting. (B) Temporal zoom-out builds a video graph, refines relevance scores through message passing, and composes context-rich hyperframes. (C) An adaptive budget allocator distributes the frame budget between both branches for final reasoning.
A

Spatial Zoom-In via Visual Prompting

CLIP/BLIP scores every frame against the query; a watershed algorithm partitions the relevance curve into temporal segments and keeps each segment's peak. Query-conditioned attention attribution, fused with visual saliency, forms an alpha mask that amplifies query-relevant regions at full resolution.

B

Temporal Zoom-Out with Video Graph Reasoning

Frames become nodes of a sparse graph connected by visual similarity until fully connected. Iterative message passing y⁽ᡗ⁾ = Ξ±Sy⁽ᡗ⁻¹⁾ + (1βˆ’Ξ±)y⁽⁰⁾ refines relevance with the video's intrinsic structure; refined anchors are packed with neighbors into 2Γ—2 hyperframes.

C

Adaptive Budget Allocation

A lightweight query-aware controller β€” the MLLM itself with a short allocation prompt β€” predicts a ratio r = C(Q, P) that splits the budget: more zoom-in for detail questions, more zoom-out for event-level questions. Frames from both branches merge in temporal order.

Experiments

Results on long-form video benchmarks

Across Video-MME, LongVideoBench (LVB), and MLVU, LENS consistently outperforms state-of-the-art training-free keyframe sampling methods (BOLT, AKS, Q-Frame) at every frame budget, and transfers to open-source and proprietary backbones alike.

Method (Qwen2.5-VL 7B)ShortMediumLongV-MME OverallLVBMLVU
Uniform60.951.447.453.353.352.8
+ BOLT66.054.650.457.055.659.0
+ AKS62.151.448.854.152.053.7
+ Q-Frame66.758.751.358.756.658.2
+ LENS (Ours)68.759.653.760.7 +7.459.363.7

VQA accuracy (%) on Video-MME (w/o subtitles), LongVideoBench, and MLVU. Baselines re-implemented under identical protocols.

πŸ§ͺ Component ablation β€” Video-MME overall (8 frames)

Qwen2.5-VL (uniform)
53.3
+ CLIP scores
56.6
+ BLIP scores
57.0
+ Spatial zoom-in
59.6
+ Temporal zoom-out
59.2
+ Fixed budgets (4/4)
60.2
+ Adaptive budgets
60.7

⚑ Efficiency β€” full Video-MME, 8Γ—RTX 6000 Ada

Qwen2.5-VL (uniform)8 h 13 m Β· 53.3
AKS9 h 55 m Β· 54.1+0.8
Q-Frame10 h 30 m Β· 58.7+5.4
LENS (Ours)11 h 50 m Β· 60.7+7.4

LLM-agent / video-RAG pipelines (VideoRAG, Vgent) take 50+ hours on the same benchmark β€” over 4Γ— the runtime of LENS.

Qualitative

What does LENS actually look at?

LENS selects frames that are not only semantically relevant but also complementary across spatial and temporal scales: spatial zoom-in emphasizes discriminative cues (e.g., the event-title region), while temporal zoom-out preserves the overall context of the video.

Qualitative comparison: football event recognition
Football event recognition (8-frame budget). Uniform sampling and AKS miss the decisive textual evidence; LENS zooms in on the title region and preserves match context, correctly identifying the FIFA World Cup 2022 Final.
Qualitative comparison: table tennis rally understanding
Table-tennis rally understanding (8-frame budget). Baselines attend to isolated moments and misread the play; LENS captures both localized player actions and the temporal continuity of the rally, inferring a series of consecutive successful hits.
Citation

BibTeX

@inproceedings{zhang2026lens,
  title     = {LENS: Adaptive Spatio-Temporal Zooming for Keyframe Sampling in Long-Form Videos},
  author    = {Zhang, Ce and He, Jinxi and Sycara, Katia and Xie, Yaqi},
  booktitle = {European Conference on Computer Vision (ECCV)},
  year      = {2026}
}