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.
Figures & tables
Figure 1: Lembas achieves the best accuracy-cost trade-off. Dollar cost is derived from OpenRouter API prices for Qwen3-VL-8B.
Figure 2: Varying the tokens per frame allows Lembas to retain evidence from more frames within a shared budget.
Figure 3: An illustration of Lembas’s workflow.
Figure 4Figure 5
Method
MLVU (w/o subtitles)
LVB (w/o subtitles)
Video-MME (w/ subtitles)
TFLOPs ↓
Overall ↑
TFLOPs ↓
Overall ↑
TFLOPs ↓
Overall ↑
Short ↑
Medium ↑
Long ↑
Qwen3-VL-8B [ 2 ]
Uniform sampling
215
73.4
229
65.1
224
72.9
83.6
73.0
62.0
RAG
w/ Top-K
218
75.9
232
64.0
230
73.1
82.4
73.4
63.6
w/ Q-Frame [ 62 ] ICCV’25
209
74.7
225
65.7
218
71.1
80.1
70.3
63.0
Table 1: Accuracy at matched compute on three video understanding benchmarks, for all baselines and both backbones.
Figure 8: Lembas achieves the compute-to-accuracy Pareto frontier across (a) single-turn and (b) multi-turn video understanding.
Method
TFLOPs ↓
Video-MME (w/ subtitles) ↑ Overall Short Medium Long
Lembas
232
77.3
83.6
76.8
71.7
w/o text allocation
226
73.7
81.9
74.9
64.4
w/o diversity term
226
76.6
82.4
76.4
70.8
w/o water-filling
229
76.1
82.3
76.1
69.9
Table 2: Ablation studies across single-turn Q&A.
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Setting
Value
Frame relevance encoder
SigLIP 2 (so400m-patch14-384) [ 46 ]
Subtitle relevance encoder
BGE (base-en-v1.5) [ 53 ]
Relevance temperature T
0.63
Token value parameter τframe
38
Token value parameter τtext
13.6
Subtitle weight β
0.5
Appendix
Table 4: Settings of Lembas.
Figure 9: Answer prompt shared by all methods. Gray italic text marks the variable inputs of each question.
Figure 10: Lembas achieves the highest accuracy in more question categories than any baseline. Accuracy (%) per question category, with question counts in parentheses.
Figure 11: Performance of Lembas under varying hyperparameters. Accuracy against compute when varying (a) the attention weight ω on MT-Video-Bench, (b) the subtitle weight β on Video-MME, and (c) the relevance temperature T on Video-MME.
Frames
30
60
120
240
420
1,800
3,600
Solving time (s)
Gurobi
0.038
0.031
0.089
0.199
0.557
3.013
5.029
SCIP
1.943
3.989
9.655
23.927
51.662
600+
600+
CVXPY
0.010
0.013
0.039
0.040
0.080
0.763
1.794
Ours
0.006
0.007
0.009
0.031
0.025
0.132
0.256
Objective
Appendix
Table 5: Lembas solves the allocation problem quickly and near-optimally. Solving time and objective value of iterative water-filling (Ours) and three off-the-shelf solvers.
Long-video understanding commonly compresses videos into a small set of frames or visual tokens for answer generation. Existing compact pipelines focus on retaining relevant visual content as explicit evidence. Yet making evidence available does not ensure that complementary cues across moments are integrated for answering. Our key idea is to organize selected frames into query-relevant cross-frame evidence before generation. We formulate this post-selection stage as a latent evidence interface and instantiate it with GenEvA (GenerativeLatentEvidenceAggregation), a distribution-guided latent evidence aggregation framework. Specifically, GenEvA uses a query-conditioned evidence distribution to focus aggregation on relevant frames, forming compact cross-frame latent evidence from their frame-specific information. Since cross-frame integration is not always needed, the same distribution determines whether to insert this latent complement. Across four benchmarks and two Video-MLLM backbones, GenEvA consistently improves matched-frame baselines. At 8 frames, it raises the four-benchmark LLaVA-Video average by +5.2 points and Qwen2.5-VL accuracy on LVBench by +10.1 points. These gains require only 0.11%--0.40% average video-token overhead; analyses further show task-aware allocation and benefits from Adaptive Evidence Invocation.
Bowen Liu, Shuning Wang, Xinpeng Ding +3
The Hong Kong University of Science and Technology · Alibaba Group · Xidian University +1
Retrieval-augmented generation is moving beyond text into long, egocentric video, where systems must select query-relevant chunks across multiple modalities and temporal granularities. Yet progress in VideoRAG is limited by two gaps: existing benchmarks allow queries to be answered without the video, obscuring retrieval errors, and prior methods apply a single modality-granularity configuration per query, ignoring chunk-level variability. We address both by introducing V-RAGBench, a benchmark of ⟨query, evidence chunk, answer⟩ triplets that enables faithful, decoupled evaluation of retrieval and generation, and CARVE, a simple method that runs parallel retrievers across configurations and employs chunk-adaptive reranking to identify the winning configuration for each chunk. Each chunk then enters the generator under its winning configuration selected during retrieval, yielding an interleaved evidence form where the chunk-level decision propagates across both stages. CARVE outperforms eight recent VideoRAG baselines, with the chunks supplied to the generator interleaving multiple configurations rather than sharing a single one, a behavior unattainable by query-level methods.
Yuho Lee, Jisu Shin, Nicole Hee-Yeon Kim +5
KAIST, YH, Seoul, Republic of Korea · Qualcomm AI Research, Qualcomm Korea, YH, Seoul, Republic of Korea
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