$\infty$-Video: A Training-Free Approach to Long Video Understanding via Continuous-Time Memory Consolidation

Saul Santos, António Farinhas, Daniel C. McNamee, André F. T. Martins

TL;DR

$\infty$-VIDEO is a training-free framework that enables short-context video-language models to understand arbitrarily long videos without losing critical details. By introducing a continuous-time long-term memory consolidation mechanism with "sticky" attention, it dynamically retains important video segments over extended timescales while maintaining a constant memory footprint.

What Problem Does This Paper Address?

Modern video-language models (Video-LLMs) excel at short clips but stumble when faced with full-length movies or hour-long streams. This failure stems from a fundamental architectural bottleneck: transformers have limited context windows. To process long videos, standard approaches resort to sparse frame subsampling, which inevitably discards crucial narrative details.

While scaling up model parameters or fine-tuning on massive long-video datasets can mitigate this, it requires prohibitive computational resources. The authors of this paper ask a compelling question: How can we enable existing, pre-trained short-context Video-LLMs to comprehend unbounded video streams in a single pass, without any additional training?

Methods

Inspired by human memory consolidation—where the brain adaptively integrates episodic events into long-term storage—the authors introduce $\infty$-VIDEO.

Instead of treating a video as a massive, unmanageable sequence of discrete frames, $\infty$-VIDEO splits the video into manageable chunks and processes them sequentially using a dual-memory architecture:

  1. Short-Term Memory (STM): Uses the standard discrete cross-attention mechanism already present in the base model's video Q-former to capture immediate, chunk-level dynamics.
  2. Long-Term Memory (LTM): A global, continuous-time memory module that spans across all processed chunks.

To build the LTM, $\infty$-VIDEO maps discrete frame embeddings into a smooth, continuous signal using a linear combination of mathematical basis functions. As new chunks arrive, the historical continuous signal is "contracted" (scaled down by a forgetting factor $\tau$) and concatenated with the new data.

Figure 2. Proposed Memory Consolidation Mechanism.

Key Innovations:

  • Gibbs Continuous Attention: The original text-based $\infty$-former architecture used a Gaussian distribution to model continuous attention. $\infty$-VIDEO introduces a more powerful Gibbs density function based on continuous query-key similarity, which better replicates the discrete softmax behavior of standard transformers.
  • Sticky Memories (Relevance-Based Sampling): Instead of sampling the continuous memory uniformly, $\infty$-VIDEO tracks historical attention density. It allocates more "memory space" (higher granularity) to highly relevant video segments, creating "sticky" memories of key narrative events while compressing less important parts.

Finally, the outputs of the STM and LTM are combined via a weighted sum and incrementally averaged, ensuring the token payload delivered to the LLM remains fixed and independent of video length.

Datasets

The authors evaluated $\infty$-VIDEO across four distinct benchmarks spanning different video lengths and question types:

  • NeXT-QA: Short videos (~44 seconds average) evaluated via multiple-choice questions targeting causal and temporal actions.
  • EgoSchema: Medium-length egocentric videos (~3 minutes) testing long-context behavioral planning.
  • Video-MME: A comprehensive dataset featuring long videos ranging up to 1 hour.
  • MovieChat-1K: Long videos (~8 minutes average) evaluated using open-ended question answering.

Key Insights and Ideas

  • Breaking the Discrete Bottleneck: Shifting from discrete frame tokens to a continuous-time representation allows the model to trade off the number of basis functions against representation granularity. This mathematically breaks the hard context limit of standard transformers.
  • The Pitfall of Uniform Sampling: The authors discovered that uniform sampling suffers from severe context contraction over time, causing the model to disproportionately focus on irrelevant final scenes (like movie credits). "Sticky" memories act like a brain-like episodic replay, preserving early critical plot points.
  • Base Model Bottlenecks: A training-free wrapper is only as good as its foundation. The experiments revealed that VideoChat2 underperformed compared to Video-LLaMA on open-ended long QA because VideoChat2 was originally instruction-tuned on concise datasets, biasing it toward brief, less descriptive answers.

Key Results

$\infty$-VIDEO was integrated into two prominent base models, Video-LLaMA and VideoChat2, yielding substantial improvements without a single gradient update:

  • EgoSchema (Medium Video): $\infty$-Video LLaMA with sticky memories achieved a +6 point accuracy improvement over the baseline variant without LTM.
  • MovieChat-1K (Long Video Open-Ended): $\infty$-Video LLaMA (Sticky) achieved an overall accuracy score of 72.2%, significantly outperforming other training-free long-video methods like MovieChat (67.8%) and MovieChat+ (66.4%).
  • Video-MME (Ultra-Long Video): On hour-long videos, the sticky memory variant consistently outperformed both the base VideoChat2 architecture and the uniform-sampling continuous baseline.

Limitations and Future Work

While $\infty$-VIDEO successfully extends short-context models to long videos, its performance remains fundamentally bounded by the representational capacity and dataset biases of the underlying pre-trained models.

For future work, the authors suggest exploring deeper connections to cognitive science. Specifically, they propose implementing an "offline" memory reactivation or "replay" phase—analogous to how the human brain consolidates memories during sleep—to enable true continual learning over lifelong video streams.

Summary updated

Abstract

Current video-language models struggle with long-video understanding due to limited context lengths and reliance on sparse frame subsampling, often leading to information loss. This paper introduces $\infty$-Video, which can process arbitrarily long videos through a continuous-time long-term memory (LTM) consolidation mechanism. Our framework augments video Q-formers by allowing them to process unbounded video contexts efficiently and without requiring additional training. Through continuous attention, our approach dynamically allocates higher granularity to the most relevant video segments, forming "sticky" memories that evolve over time. Experiments with Video-LLaMA and VideoChat2 demonstrate improved performance in video question-answering tasks, showcasing the potential of continuous-time LTM mechanisms to enable scalable and training-free comprehension of long videos.
BibTeX
@misc{santos2025infty,
  author = {Saul Santos and António Farinhas and Daniel C. McNamee and André F. T. Martins},
  title = {{$\textbackslash\{\}infty$-Video: A Training-Free Approach to Long Video Understanding via Continuous-Time Memory Consolidation}},
  year = {2025},
  eprint = {2501.19098},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.19098},
}
Figure