Papers › ReTaKe: Reducing Temporal and Knowledge Redundancy for Long Video Understanding

ReTaKe: Reducing Temporal and Knowledge Redundancy for Long Video Understanding

29 Dec 2024arXiv:2412.20504archive 2025-07-28

Xiao Wang, Qingyi Si, Jianlong Wu, Shiyu Zhu, Li Cao, Liqiang Nie

Video Large Language Models (VideoLLMs) have made significant strides in video understanding but struggle with long videos due to the limitations of their backbone LLMs. Existing solutions rely on length extrapolation, which is memory-constrained, or visual token compression, which primarily leverages low-level temporal redundancy while overlooking the more effective high-level knowledge redundancy. To address this, we propose ReTaKe, a training-free method with two novel modules DPSelect and PivotKV, to jointly reduce both temporal visual redundancy and knowledge redundancy for video compression. To align with the way of human temporal perception, DPSelect identifies keyframes based on inter-frame distance peaks. To leverage LLMs' learned prior knowledge, PivotKV marks the keyframes as pivots and compress non-pivot frames by pruning low-attention tokens in their KV cache. ReTaKe enables VideoLLMs to process 8 times longer frames (up to 2048), outperforming similar-sized models by 3-5% and even rivaling much larger ones on VideoMME, MLVU, LongVideoBench, and LVBench. Moreover, by overlapping compression operations with prefilling, ReTaKe introduces only ~10% prefilling latency overhead while reducing decoding latency by ~20%. Our code is available at https://github.com/SCZwangxiao/video-ReTaKe.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2412.20504")

Code

Syntology Ran 2 of 15 code samples harvested from 1 repository linked to this paper; 13 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: official repository: 15 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

sczwangxiao/video-retake officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 2 ran; 0 honoured the contract we drafted; 13 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran · fixture could not drive it
13unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from sczwangxiao/video-retake. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

repeat_kv sczwangxiao/video-retake/retake/longvideo_cache.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 3c76e52815c5401d · report
rotate_half sczwangxiao/video-retake/retake/longvideo_cache.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · e03d53ba9d4f9ae5 · report
apply_multimodal_rotary_pos_emb sczwangxiao/video-retake/retake/longvideo_cache.py official repository unverified MIT (permissive) · 8971bec8b941516b · report
eval_mlvu_results sczwangxiao/video-retake/retake/dataset_utils.py official repository unverified MIT (permissive) · dd53543386710ddf · report
eval_videomme_results sczwangxiao/video-retake/retake/dataset_utils.py official repository unverified MIT (permissive) · feee0c01f58c3b2e · report
evaluate_mlvu_generation sczwangxiao/video-retake/retake/dataset_utils.py official repository unverified MIT (permissive) · 81664204c8525de9 · report
load_yaml sczwangxiao/video-retake/retake/infer_eval.py official repository unverified MIT (permissive) · d37f4e5bd2ad847b · report
memory_bank_compress_MALLM sczwangxiao/video-retake/retake/visual_compression.py official repository unverified MIT (permissive) · 6ad69145ddabafe5 · report
memory_bank_compress_MALLM_hard sczwangxiao/video-retake/retake/visual_compression.py official repository unverified MIT (permissive) · 5f9f5bd51036cfc1 · report
memory_bank_compress_keyframe sczwangxiao/video-retake/retake/visual_compression.py official repository unverified MIT (permissive) · 0366d231d1eb184f · report
patch_llava_onevision_config sczwangxiao/video-retake/retake/monkeypatch.py official repository unverified MIT (permissive) · a83c7315b78d5c2c · report
patch_qwen2vl_config sczwangxiao/video-retake/retake/monkeypatch.py official repository unverified MIT (permissive) · 9e76eeb39428f98d · report
retake_LlavaOnevisionForConditionalGeneration_get_chunk_size sczwangxiao/video-retake/retake/llava_onevision.py official repository unverified MIT (permissive) · 8a68c201ee613f88 · report
retake_LlavaOnevisionForConditionalGeneration_segment_input_ids sczwangxiao/video-retake/retake/llava_onevision.py official repository unverified MIT (permissive) · 7ddc25ea1dac67d2 · report
trimm_results sczwangxiao/video-retake/retake/infer_eval.py official repository unverified MIT (permissive) · 2a31a1d556220646 · report

Tasks

Video CompressionVideo Understanding

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGNFocusPruning

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections