Context Language Models let a model edit its own context, while Suffix Cache Reuse makes edits to text efficient by adjusting the positions of cached keys for surviving tokens. We extend these ideas to video language models with multimodal rotary position embeddings (M-RoPE). We represent a long video as timestamped segments. After viewing a sparsely sampled version, the model selects segments for decoding at 4x the frame rate, and the remaining segments are removed from its context. Our rebuild method reuses the KV cache of surviving segments by rotating their keys with a single offset shared by the temporal, height, and width components of Qwen2.5-VL's M-RoPE. A content-hashed cache also avoids repeating vision-encoder computation for those segments. In preliminary experiments with Qwen2.5-VL-7B on synthetic needle-in-a-video-haystack questions over public-domain films, the method reduces prefill tokens and end-to-end rebuild latency relative to full recomputation while usually producing the same answer. Densifying the segment containing the answer improves accuracy when that segment is known. When the model selects segments itself, accuracy does not improve: it rarely identifies a needle that was absent from the sparse sample. We release the code, raw logs, and scripts used to reproduce the paper's results.
Figures & tables
Figure 1: Editable video context and SCR-VL. (a) The VLM sees 32 sparse segments and the question, names the segments it needs (step 1), and the context is edited mid-sequence: selected segments are re-decoded at 4 × frame rate, other even-numbered segments are deleted (step 2), and the model answers on the edited context (step 3). (b) Rebuilding the KV cache after the edit: the unchanged prefix is copied; surviving segments whose position moved are reused by rotating their keys by Δ (values unchanged, no ViT pass); new and densified segments are prefilled on top of the rebuilt cache.
V-NIAH (haystack length)
Video-MME
LongVideoBench
Condition
20 min
40 min
60 min
all
long
≥ 20 min
( n =240)
( n =240)
( n =240)
( n =720)
( n =180)
( n =276)
uniform (no edit)
70.8 [65,77]
47.1 [41,53]
38.8 [33,45]
52.2 [49,56]
55.6 [48,63]
56.2 [51,62]
edit + full recompute
70.4 [65,76]
42.1 [36,48]
36.2 [30,42]
49.6 [46,53]
53.9 [46,61]
55.4 [49,62]
edit + prefix reuse
70.4 [65,76]
42.5 [37,49]
35.8 [30,42]
49.6 [46,53]
54.4 [47,62]
56.2 [50,62]
edit + SCR-VL (ours)
71.2 [66,77]
44.2 [38,50]
36.7 [30,42]
50.7 [47,54]
54.4 [47,62]
55.1 [49,61]
Table 1: Accuracy (%) with 95% bootstrap CIs. Chance is 25% (20–25% on LongVideoBench). Edit rows use the model’s own segment choice; oracle rows densify the segment containing the needle.
Rebuild path
prefill
moved
ViT
TFLOPs
latency
LLM-only
mem
tokens
tokens
frames
(s)
(s)
(GB)
initial context
23,549
–
256
592
8.86
2.14
20.8
full recompute
17,361
0
190
416
7.20
1.46
20.1
prefix reuse
16,571
0
182
399
8.09
2.56
21.5
SCR-VL
12,191
4,380
70
263
4.26
1.67
19.7
oracle full
14,455
0
158
337
5.67
1.18
20.5
Table 2: Cost per question on V-NIAH (means over 720 questions). “initial” builds the first context; other rows rebuild the cache after the edit. Moved tokens are copied and re-rotated by SCR-VL instead of prefilled. LLM-only latency excludes ViT time.
Figure 2: Accuracy vs. rebuild cost on V-NIAH (95% CIs). SCR-VL matches the accuracy of its exact counterpart at lower compute and latency, for both model and oracle edits. Uniform has no rebuild.
Path vs. its full recompute
KL (nats)
top-1 token
answer
prefix (V-NIAH)
0.0006
98.5%
98.5%
SCR-VL, model edit (V-NIAH)
0.0049
97.4%
97.4%
SCR-VL, oracle edit (V-NIAH)
0.0001
99.9%
99.9%
prefix (Video-MME)
0.0007
97.8%
97.8%
SCR-VL, model edit (Video-MME)
0.0062
96.1%
96.1%
Table 3: Agreement with full recomputation on the same edited context: mean KL(full ∥ path) of the first answer token over the full vocabulary, top-1 token agreement, and agreement of the chosen option.
SDPA
FlashAttention-2
Rebuild path
total
LLM
total
LLM
full recompute
7.20
1.46
3.43
1.44
prefix reuse
8.09
2.56
3.29
1.39
SCR-VL
4.26
1.67
1.88
1.13
Table 4: Rebuild latency (s) with SDPA vs. FlashAttention-2 on the same 720 V-NIAH questions. “LLM” excludes ViT time.
Figure 3: V-NIAH accuracy by needle position (left) and haystack length (right). The dotted line is the fraction of questions whose card is hit by one of the 256 initially sampled frames. The dashed grey line is chance.
Figure 4: Two edits. Top: the model selects the needle segment and every condition except uniform answers correctly. Bottom: the selection misses the needle segment; only the oracle edit answers correctly from the densified context. Orange outlines mark the survivors SCR-VL relocates ( K=6 ); other kept segments after the first edit are prefilled.
Figure 5: Effect of K (left) and boundary repair r (right) on KL to full recomputation (orange, left axis), option agreement and prefill tokens relative to full recomputation (right axis).
Qwen2.5-VL-7B
Qwen3-VL-8B
Qwen3-VL-8B-Thinking
Condition
V-NIAH
Video-MME
LVB
V-NIAH
Video-MME
LVB
V-NIAH
Video-MME
LVB
uniform (no edit)
52.2
55.6
56.2
55.6
60.0
55.1
52.8
58.9
59.1
edit + full recompute
49.6
53.9
55.4
53.3
61.7
56.9
52.4
55.6
56.9
edit + prefix reuse
49.6
54.4
56.2
53.6
62.8
57.6
52.6
56.7
56.9
edit + SCR-VL (ours)
50.7
54.4
55.1
54.4
62.8
56.2
52.4
57.2
56.9
oracle edit + full
96.9
–
–
96.8
–
–
96.8
–
–
Table 5: Three models. Accuracy (%) on V-NIAH (720 questions), Video-MME long (180) and LongVideoBench ( ≥ 20 min, 276), and SCR-VL answer agreement with, prefill saving (%) over and rebuild speedup over full recomputation (SDPA).
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Setting
prefill tok.
latency (s)
KL
answer agree
acc.
full recompute
17,556
–
0
100.0%
70.4
K=1,r=0
16,053
4.96
0.0009
98.8%
70.8
K=3,r=0
14,587
4.70
0.0061
97.9%
70.8
K=6,r=0
12,388
4.37
0.0082
96.7%
71.2
K=12,r=0
7,992
3.86
0.0142
96.7%
71.2
K=6,r=16
12,484
4.61
0.0079
97.1%
71.2
Appendix
Table 6: Ablation of K and r on the 240-question subset (all 20-minute haystacks). KL and agreement are relative to full recomputation on the same edited context.
Initial frames / segment
8 (32K budget)
16 (64K budget)
acc. (%)
rebuild tok.
acc. (%)
rebuild tok.
initial context
–
23,549
–
46,077
uniform (no edit)
52.2 [49,56]
–
63.1 [60,67]
–
edit + full recompute
49.6 [46,53]
17,361
53.9 [50,57]
29,511
edit + prefix reuse
49.6 [46,53]
16,571
54.2 [51,58]
28,031
edit + SCR-VL (ours)
50.7 [47,54]
12,191
56.1 [52,60]
19,409
Appendix
Table 7: Initial budget 32K vs. 64K on the same 720 V-NIAH questions (densified segments: 32 vs. 64 frames). Rebuild tokens are prefilled tokens after the edit.
Rebuild path
prefill
moved
ViT
TFLOPs
latency
LLM-only
mem
tokens
tokens
frames
(s)
(s)
(GB)
initial context
19,461
–
256
472
7.68
1.70
20.0
full recompute
14,800
0
197
346
6.30
1.21
19.4
prefix reuse
13,502
0
180
317
6.59
1.90
20.4
SCR-VL
10,013
3,489
71
211
3.46
1.31
19.1
Appendix
Table 8: Cost per question on Video-MME long (180 questions); columns as in Table 2 .
Rebuild path
prefill
moved
ViT
TFLOPs
latency
LLM-only
mem
tokens
tokens
frames
(s)
(s)
(GB)
initial context
19,515
–
256
473
7.60
1.75
20.0
full recompute
14,851
0
197
348
6.23
1.23
19.4
prefix reuse
13,640
0
181
320
6.57
1.93
20.4
SCR-VL
10,129
3,512
72
214
3.49
1.33
19.1
Appendix
Table 9: Cost per question on LongVideoBench ( ≥ 20 min, 276 questions, Qwen2.5-VL-7B); columns as in Table 2 .
prefill
TFLOPs
SDPA
FlashAttention-2
probe
probe
Rebuild path
saving
saving
latency (s)
speedup
latency (s)
speedup
KL
argmax agree
full recompute
0%
0%
7.22
1.00
3.49
1.00
0
100.0%
prefix reuse
4%
4%
8.14
0.89
3.37
1.04
0.0012
98.8%
SCR-VL, K=3
17%
26%
4.62
1.56
–
–
0.0031
98.7%
SCR-VL, K=6 (default)
30%
36%
4.29
1.68
1.90
1.84
0.0081
97.8%
SCR-VL, K=12
55%
57%
3.78
1.91
–
–
0.0210
95.1%
Appendix
Table 10: Rebuild paths on the answer-free harness (90 V-NIAH questions, Qwen2.5-VL-7B). Savings and speedups are relative to full recomputation on the same edit; FlashAttention-2 was run for the default and the all-survivor setting only.
Table 11: Data sources and licenses. No video is redistributed; the V-NIAH generator and frame-bank scripts recreate the inputs from the original files.
Vision-language models (VLMs) reason about long videos over hundreds to thousands of tokens. Every decoding step re-reads the key-value (KV) cache of the entire video. Must the model keep looking while it reasons? In LookAway, the model first writes timestamped notes on what the question needs and then puts the video away. Once the notes close, the inference engine hides the video's KV cache for the rest of the response. Across both hybrid and pure-attention VLMs, dependence on the video is concentrated early in the response. On Qwen3.6-27B, writing notes preserves accuracy better than free reasoning at the same withdrawal step. Replacing them with another video's notes harms accuracy, whereas keeping the video visible alongside the model's own notes adds no significant benefit. Without additional training, LookAway nearly matches full-video thinking accuracy at 0.12-0.13 times its modeled decode cost. To shorten this initial look, we fine-tune the model on its own correct LookAway responses. Reinforcement learning then rewards correct answers while penalizing KV reads. The trained model puts the video away after a median of 66-68 tokens. Across three held-out benchmarks, it writes more tokens than an identically trained full-video model yet reads only 27-35% as many KV positions at matched accuracy.
Pengyu Li, Zhitao Gao, Lingling Zhang +6
Xi’an Jiaotong University · Peking University · Zhejiang University +2
Long-video understanding must capture transient visual evidence under strict token budgets, yet existing methods compress frames, append memory tokens, or alter internal key-value (KV) caches. We introduce Prefix-Steered Recurrent Memory (PREM), a memory-token-free framework for frozen vision-language models (VLMs). PREM separates video ingestion from query answering: a recurrent writer distills visual streams into a compact 256 KiB multi-slot associative state, while a question-conditioned readout adds memory-derived key/value (K/V) steering modulations to existing non-visual prompt prefixes during prefill. This enables write-once, query-many inference without extra prompt tokens or decoding recurrence. Across six long-video benchmarks in offline and streaming end-of-stream settings, PREM consistently outperforms frozen baselines at every evaluated visual budget. Under a constrained budget of 16 frames, PREM improves macro-average accuracy by 3.06% on Qwen2.5-VL-3B, with gains of 11.0% on action antonym identification and 9.9% on localized needle retrieval. These gains require tuning 0.24% of backbone parameters at 0.03 GiB of peak GPU memory overhead.
Siru Zhong, Qiongyan Wang, Xiaohui Lv +5
The Hong Kong University of Science and Technology (Guangzhou) · Beta Infinity · Tsinghua University
Efficient long-video understanding requires identifying relevant evidence while minimizing the tokens processed by vision-language models (VLMs). Existing video retrieval-augmented generation (RAG) methods rely on frame selection and token compression, but overlook how much each additional token is worth. We introduce Lembas, a plug-and-play framework that formulates video RAG as a token allocation problem over frames and subtitles under a shared budget. Our key insight is that the value of a token diminishes within each item and decreases further as similar evidence receives more tokens. Lembas captures both effects in a single objective and solves it with an efficient iterative water-filling algorithm that has a provable convergence guarantee. For multi-turn conversations, Lembas reuses the tokens processed in earlier turns and refines relevance with the VLM's attention at no extra cost. Our evaluations show that Lembas improves accuracy by up to 7.2 percentage points over state-of-the-art baselines at comparable compute. On multi-turn video understanding, Lembas achieves up to 1.5 percentage points higher accuracy with 1.7-17.3x fewer TFLOPs.