Efficient Video Retrieval Augmented Generation via Token Allocation
Organizations: University of Illinois Urbana-Champaign
Abstract
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
| 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 |
| 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 |
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 | 0.63 |
| Token value parameter | 38 |
| Token value parameter | 13.6 |
| Subtitle weight | 0.5 |
| 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 | |||||||
Long-Video Understanding
Long-video understanding enables models to retrieve, remember, and reason about events across extended visual and audio-visual sequences.
See all 167 papers