ReTaKe: Reducing Temporal and Knowledge Redundancy for Long Video Understanding

Xiao Wang, Qingyi Si, Jianlong Wu, Shiyu Zhu, Li Cao, Liqiang NiearXiv 2024 · DOI

Abstract

Video Large Language Models (VideoLLMs) are increasingly limited by the "memory wall" when processing long-form video content. We present RETAKE, a training-free framework designed to scale video processing capabilities up to 2048 frames within existing memory constraints. RETAKE achieves this by jointly addressing temporal redundancy through Dist Peak Select (DPSelect) and knowledge redundancy via PivotKV. Our approach identifies critical "pivot frames" and prunes less informative tokens from the Key-Value (KV) cache based on the LLM's internal attention. Experimental results across major benchmarks like LVBench and VideoMME demonstrate that RETAKE improves accuracy by 3–5% while simultaneously reducing decoding latency by approximately 20%.

Introduction

The advancement of Video Large Language Models has enabled impressive performance on short video clips. However, extending these capabilities to long-form content—such as hour-long lectures or feature films—remains a significant challenge. The primary bottleneck is the "memory tax" associated with visual tokens. Standard LLM backbones possess fixed context windows; as the number of frames increases, visual tokens consume the available memory, leaving little room for the model to perform reasoning or generate responses.

Existing strategies to mitigate this issue typically involve sparse sampling or token compression. Sparse sampling often misses fine-grained temporal details, while traditional token compression relies on low-level visual features, ignoring the high-level semantic "knowledge" the LLM already possesses. RETAKE introduces the concept of Knowledge Redundancy, suggesting that the LLM's own attention mechanisms can be used to identify and prune redundant information more effectively than visual-only methods.

Methodology: The RETAKE Framework

RETAKE is a training-free, "plug-and-play" framework consisting of two core modules: DPSelect and PivotKV.

The RETAKE framework architecture, showcasing the integration of DPSelect for temporal selection and PivotKV for knowledge-aware KV cache compression.

DPSelect (Dist Peak Select)

To address temporal redundancy, DPSelect moves beyond uniform sampling. It calculates the visual distance between adjacent frames to identify "peaks"—moments of significant motion or scene transitions. These peaks are designated as pivot frames, which serve as the temporal skeleton of the video.

PivotKV

PivotKV addresses knowledge redundancy during the prefilling stage. While the KV cache for pivot frames is kept entirely intact to preserve structural integrity, tokens from non-pivot frames are pruned based on the LLM's internal attention scores. By dropping tokens that the model deems unimportant, RETAKE significantly reduces the memory footprint of the KV cache.

Efficiency Optimization

To minimize latency, RETAKE employs an optimized prefilling pipeline. By overlapping the compression of one layer with the prefilling of the next using parallel CUDA streams, the framework maintains high throughput with minimal overhead (~8-11% for the first token).

Experimental Evaluation

The researchers evaluated RETAKE on several challenging long-video benchmarks, including VideoMME, MLVU, LongVideoBench, and LVBench.

Performance trade-offs between context length and accuracy. RETAKE prevents 'Out of Memory' errors while scaling frame counts, leading to superior average accuracy.

Key Results and Scaling

RETAKE allows models to scale from a standard 256 frames to 2048 frames without encountering "Out of Memory" (OOM) errors. On the LVBench dataset, which features videos averaging over an hour in length, RETAKE improved the accuracy of Qwen2VL-7B by 5.3%. Furthermore, a 7B-parameter model equipped with RETAKE was able to outperform significantly larger models, such as the 72B-parameter VideoLLaMA2, on multiple tasks.

Decoding Efficiency

Beyond memory savings, the reduction in KV cache size leads to a 20% improvement in decoding speed (Time Per Output Token). This is because the model has fewer tokens to attend to during the generation phase, making the overall inference process more efficient.

Conclusion

RETAKE offers a robust solution to the memory constraints of long-video understanding. By leveraging the LLM's own attention as a filter for redundancy and protecting critical temporal pivots, it enables existing models to "see" more of the video without a corresponding increase in memory cost. As a training-free framework, it provides an immediate path toward more capable and efficient VideoLLMs.

Summary updated

BibTeX
@misc{wang2024retake,
  author = {Xiao Wang and Qingyi Si and Jianlong Wu and Shiyu Zhu and Li Cao and Liqiang Nie},
  title = {{ReTaKe: Reducing Temporal and Knowledge Redundancy for Long Video Understanding}},
  year = {2024},
  eprint = {2412.20504},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.20504},
}
Figure