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

Ce Zhang, Jinxi He, Katia Sycara, Yaqi Xie
7/27/2026
4 citations
cs.CV

Official code: zhangce01/LENS (8 stars, Python, MIT, last commit 2026-07-28).

Abstract

Despite rapid progress in Multi-modal Large Language Models (MLLMs), understanding long-form videos is still bottlenecked by limited context windows. While recent keyframe sampling methods attempt to mitigate this by distilling video inputs into a compact set of query-relevant frames, navigating the vast spatio-temporal search space remains challenging, as spatial detail and temporal coverage often conflict.

Show full abstract

To address this, we introduce LENS, a training-free keyframe sampling framework that dynamically decides when to zoom in for fine-grained details and when to zoom out for broader context based on the text query. Concretely, LENS adaptively allocates a limited frame budget between spatial zoom-ins, which highlight query-relevant regions within individual frames, and temporal zoom-outs, which expand the temporal scope through multi-frame aggregation, enabling the model to reason across multiple granularities while capturing both high-fidelity details and long-range context. Across diverse long-form video benchmarks, LENS consistently outperforms prior state-of-the-art keyframe sampling methods and delivers substantial gains over uniform sampling, improving Video-MME accuracy from 53.3% to 60.7% with Qwen2.5-VL.Code is available at https://github.com/zhangce01/LENS.

View on arXivView PDF

Code Implementations(1)

zhangce01/LENSOfficial100%
MIT

[ECCV 2026] Code for LENS: Adaptive Spatio-Temporal Zooming for Keyframe Sampling in Long-Form Videos

81Python, ShellJun 23, 20264 months agoMIT

Similar Papers

Cite this paper

@article{zhang2026lens,
  title  = {LENS: Adaptive Spatio-Temporal Zooming for Keyframe Sampling in Long-Form Videos},
  author = {Ce Zhang and Jinxi He and Katia Sycara and Yaqi Xie},
  year   = {2026},
  eprint = {2607.25125},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.25125v1},
  journal = {ECCV 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.25125.svg)](https://codeofpaper.com/paper/2607.25125)

Discussion