ReWind: Understanding Long Videos with Instructed Learnable Memory
Anxhelo Diko, Tinghuai Wang, Wassim Swaileh, Shiyan Sun, Ioannis Patras
TL;DR
ReWind tackles the core challenge of long-video understanding by introducing a memory-based vision-language framework with a novel read-perceive-write cycle that builds a coherent temporal representation while scaling linearly with token count. A memory-guided adaptive frame selection (DFS) enriches memory with high-resolution spatial details for instruction-relevant moments, which are then integrated with an LLM to produce answers. The approach yields significant gains in long-video VQA and temporal grounding benchmarks, while also performing well on short videos, and maintains practical memory usage suitable for standard GPUs. Overall, ReWind demonstrates that selective memory encoding combined with targeted spatial enrichment and LLM reasoning can achieve robust, efficient long-video understanding with strong temporal fidelity.
Abstract
Vision-Language Models (VLMs) are crucial for applications requiring integrated understanding textual and visual information. However, existing VLMs struggle with long videos due to computational inefficiency, memory limitations, and difficulties in maintaining coherent understanding across extended sequences. To address these challenges, we introduce ReWind, a novel memory-based VLM designed for efficient long video understanding while preserving temporal fidelity. ReWind operates in a two-stage framework. In the first stage, ReWind maintains a dynamic learnable memory module with a novel \textbf{read-perceive-write} cycle that stores and updates instruction-relevant visual information as the video unfolds. This module utilizes learnable queries and cross-attentions between memory contents and the input stream, ensuring low memory requirements by scaling linearly with the number of tokens. In the second stage, we propose an adaptive frame selection mechanism guided by the memory content to identify instruction-relevant key moments. It enriches the memory representations with detailed spatial information by selecting a few high-resolution frames, which are then combined with the memory contents and fed into a Large Language Model (LLM) to generate the final answer. We empirically demonstrate ReWind's superior performance in visual question answering (VQA) and temporal grounding tasks, surpassing previous methods on long video benchmarks. Notably, ReWind achieves a +13\% score gain and a +12\% accuracy improvement on the MovieChat-1K VQA dataset and an +8\% mIoU increase on Charades-STA for temporal grounding.
