Video-MemComp: Taylor-Guided Sensitivity-Aware Memory Management for Streaming Video Understanding
Organizations: NJU · Jiutian AI · CASIA
Abstract
The rapid growth of video data has created an urgent need for efficient video understanding systems that can handle long and continuous visual inputs, posing significant challenges for Multimodal Large Language Models (MLLMs) due to severe memory bottlenecks. Moreover, existing compression methods often overlook the explosive accumulation of approximation errors. To address this issue, we propose Video-MemComp, a training-free and sensitivity-aware context management framework for memory-constrained streaming video understanding. Our method theoretically decomposes compression error into orthogonal local approximation error and layer-wise structural sensitivity via a first-order Taylor expansion. To minimize local approximation error, we perform token aggregation in a pre-RoPE safe zone with an attention-conserving logit bias, mitigating geometric distortions caused by RoPE rotations. To manage layer-wise structural sensitivity, we dynamically allocate the KV cache budget based on offline gradient priors and online context entropy, prioritizing high-sensitivity layers. Video-MemComp outperforms or achieves performance comparable to full-cache and state-of-the-art compression methods on benchmarks including MLVU, VideoMME, and EgoSchema. Notably, it improves the overall accuracy of Qwen2.5-VL-3B from 62.3% to 64.1% while reducing the KV cache to an equivalent of 6,000 tokens per layer, saving over 90% of KV memory.
Figures & tables
| Method | Size | # Frames | Avg Budget | EgoSchema | MLVU | VideoMME | ALL | ||
| Max Duration | 3 min | 120 min | Medium | Long | Avg | – | |||
| GPT4-V | – | 1fps | – | 55.6 | – | – | – | 60.7 | – |
| GPT4-o | – | 1fps | – | 72.2 | 66.2 | – | – | 77.2 | 71.9 |
| LongVU | 7B | 1fps | 8K | 67.6 | 65.4 | – | – | 60.6 | 64.5 |
| LongVU | 3B | 1fps | 8K | 59.1 | 55.9 | – | – | 51.5 | 55.5 |
| Qwen-2-VL* | 7B | 768 | 100K | 65.2 | 65.8 | 63.9 | 55.1 | 63.7 | 64.9 |
| RVS-Ego | RVS-Movie | Avg | ||||
| Method | Acc (%) | Score | Acc (%) | Score | Acc (%) | Score |
| ReKV | 63.7 | 4.0 | 54.4 | 3.6 | 59.0 | 3.8 |
| ReKV w/o off. | 55.8 | 3.3 | 50.8 | 3.4 | 53.3 | 3.4 |
| Flash-VStream | 57.0 | 4.0 | 53.1 | 3.3 | 55.0 | 3.6 |
| InfiniPot-V | 57.9 | 3.5 | 51.4 | 3.5 | 54.6 | 3.5 |
| StreamMem | 57.6 | 3.8 | 52.7 | 3.4 | 55.2 | 3.6 |
| Method | Peak Memory | Video Enc. | TTFT | Throughput |
| (GB) | (ms/frame) | (s) | (tokens/s) | |
| LLaVA-OV (Baseline) | OOM | 220.48 | 0.0600 | 6.45 |
| ReKV | 22.95 | 82.75 | 0.0846 | 35.61 |
| ReKV w/o off. | 22.95 | 90.49 | 0.0663 | 36.93 |
| Video-MemComp (Ours) | 16.74 | 64.92 | 0.0302 | 27.58 |
| VideoMME | |||||
| Method | S | M | L | Avg | MLVU |
| Inter-frame Only | 70.7 | 58.6 | 52.3 | 60.5 | 67.68 |
| Inter + Intra-frame | 70.3 | 59.3 | 52.8 | 60.8 | 68.19 |
| -0.4 | +0.7 | +0.5 | +0.3 | +0.51 | |
| Threshold | Strategy | Short | Medium | Long | All |
| 0.75 | Static | 70.0 | 60.3 | 53.2 | 61.17 |
| Dynamic | 70.5 | 60.0 | 53.2 | 61.23 | |
| 0.90 | Static | 70.0 | 60.7 | 52.3 | 61.00 |
| Dynamic | 71.0 | 59.9 | 53.0 | 61.53 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| KV Budget | Inter-Frame ( ) | Intra-Frame ( ) |
| 3000 (3K) | 0.15 | 0.45 |
| 6000 (6K) | 0.20 | 0.55 |
| 12000 (12K) | 0.25 | 0.55 |
| 24000 (24K) | 0.30 | 0.60 |
| Method | KV Budget | Avg. | |||
| 3K | 6K | 12K | 24K | ||
| Baselines | |||||
| Uniform | 55.59 | 57.00 | 60.36 | 64.18 | 59.28 |
| FastV Chen et al. (2024b) | 55.01 | 57.60 | - | - | - |
| SnapKV Li et al. (2024b) | 58.99 | 60.66 | 61.31 | 64.37 | 61.33 |
| InfiniPot Kim et al. (2024) | 58.36 | 59.11 | 60.70 | 63.71 | 60.47 |
| KV Budget | Token Comp. | KV Cache Comp. | Video-MemComp (Ours) (Two-Stage) | InfiniPot-V | StreamMem |
| 500 | 45.56 | 45.89 | 47.78 | 47.00 | 44.00 |
| 3000 | 49.33 | 49.44 | 50.33 | 48.00 | 44.60 |
| 6000 | 51.22 | 50.78 | 53.22 | 48.00 | 49.10 |
| 12000 | 52.89 | 51.11 | 53.44 | 49.67 | 50.00 |
| Layer | Entropy ( ) | Log Feature Norm | Layer | Entropy ( ) | Log Feature Norm |
| 0 | 0.701 | 1.44 | 18 | 2.14 | |
| 1 | 1.104 | 0.97 | 19 | 2.09 | |
| 2 | 0.766 | 1.04 | 20 | 2.17 | |
| 3 | 1.80 | 21 | 2.19 | ||
| 4 | 1.65 | 22 | 2.19 | ||
| 5 | 1.73 | 23 | 2.09 |
| Layer | Mean ( ) | Std | RSD (%) | Layer | Mean ( ) | Std | RSD (%) |
| 0 | 2.2740e-04 | 7.0700e-05 | 31.09 | 18 | 1.2093e-04 | 2.7035e-05 | 22.36 |
| 1 | 1.6284e-04 | 5.2962e-05 | 32.52 | 19 | 1.1845e-04 | 2.5720e-05 | 21.71 |
| 2 | 1.5621e-04 | 5.1101e-05 | 32.71 | 20 | 1.1420e-04 | 2.4370e-05 | 21.34 |
| 3 | 1.5206e-04 | 4.9749e-05 | 32.72 | 21 | 1.1110e-04 | 2.2826e-05 | 20.54 |
| 4 | 1.4615e-04 | 4.7366e-05 | 32.41 | 22 | 1.0948e-04 | 2.1954e-05 | 20.05 |
| 5 | 1.4100e-04 | 4.4595e-05 | 31.63 | 23 | 1.0638e-04 | 2.0570e-05 | 19.34 |
| Model | Benchmarks | Weights ( ) | Configuration Notes | ||
| Qwen2-VL-7B | VideoMME, MLVU | 0.20 | 0.55 | 0.8, 0.166, 0.034 | Balanced setting for standard duration. |
| EgoSchema | 0.30 | 0.75 | Higher thresholds adopted for shorter duration. | ||
| Qwen2.5-VL-3B | VideoMME, MLVU | 0.30 | 0.75 | 0.8, 0.166, 0.034 | Standard configuration. |
| EgoSchema | 0.50 | 0.75 | Aggressive inter-frame filtering for redundancy. | ||
| LLaVA-OV-7B | RVS, EgoSchema | 0.75 | 0.80 | 0.4, 0.575, 0.025 | YaRN scaling enabled (factor=5.5). |
| VideoMME, MLVU | Dynamic Adjustment | 0.4, 0.575, 0.025 | Duration-Adaptive Thresholds ( ): | ||
| Model | Frames | AVG KV Size | Real-Time Visual Perception | Backward Tracing | Forward Active Responding | Overall | ||||||||||||
| OCR | ACR | ATR | STU | FPD | OJR | Avg. | EPM | ASI | HLD | Avg. | REC | SSR | CRR | Avg. | Avg. | |||
| Methods w/o Compression | ||||||||||||||||||
| LLaVA-NeXT-7B Zhang et al. (2024b) | 64 | 10K | 69.8 | 59.6 | 66.4 | 50.6 | 72.3 | 61.4 | 63.3 | 51.2 | 64.2 | 9.7 | 41.7 | 34.1 | 67.6 | 60.8 | 54.2 | 53.1 |
| LLaVA-OneVision-7B Li et al. (2024a) | 64 | 10K | 67.1 | 58.7 | 69.8 | 49.4 | 71.3 | 60.3 | 62.8 | 52.5 | 58.8 | 23.7 | 45.0 | 24.8 | 66.9 | 60.8 | 50.9 | 52.9 |
| Qwen2-VL-7B Wang et al. (2024a) | 64 | 10K | 69.1 | 53.2 | 63.8 | 50.6 | 66.3 | 60.9 | 60.7 | 44.4 | 66.9 | 34.4 | 48.6 | 30.1 | 65.7 | 50.8 | 48.9 | 52.7 |
| InternVL-V2-8B Chen et al. (2024c) | 64 | 10K | 68.5 | 58.7 | 69.0 | 44.9 | 67.3 | 56.0 | 60.7 | 43.1 | 61.5 | 27.4 | 44.0 | 25.8 | 57.6 | 52.9 | 45.4 | 50.1 |
| Hyperparams | Backward Tracing | Real-time Perception | Forward Active | Total | ||||||||||||||
| EPM | HLD | ASI | Avg | STU | OJR | ATR | FPD | ACR | OCR | Avg | REC | SSR | CRR | Avg | Avg | |||
| 0.00 | 0.00 | 1.00 | 48.82 | 34.95 | 62.16 | 48.64 | 49.44 | 55.98 | 62.93 | 66.34 | 55.96 | 69.13 | 59.96 | 37.48 | 42.44 | 42.08 | 40.67 | 49.76 |
| 0.00 | 1.00 | 0.00 | 49.16 | 31.72 | 62.16 | 47.68 | 45.51 | 58.15 | 63.79 | 66.34 | 54.13 | 71.81 | 59.95 | 36.31 | 41.85 | 40.83 | 39.66 | 49.10 |
| 0.05 | 0.90 | 0.05 | 48.82 | 31.72 | 62.84 | 47.79 | 47.75 | 57.61 | 59.48 | 63.37 | 55.96 | 71.14 | 59.22 | 36.89 | 42.03 | 39.17 | 39.36 | 48.79 |
| 0.10 | 0.90 | 0.00 | 48.82 | 31.72 | 62.16 | 47.57 | 47.19 | 61.41 | 65.52 | 69.31 | 55.05 | 71.81 | 61.71 | 36.21 | 36.99 | 43.75 | 38.99 | 49.42 |
| 0.10 | 0.85 | 0.05 | 48.82 | 30.11 | 63.51 | 47.48 | 48.88 | 59.24 | 61.21 | 71.29 | 51.38 | 72.48 | 60.74 | 36.35 | 37.27 | 44.58 | 39.40 | 49.21 |
| Thresholds | Backward Tracing | Real-time Perception | Forward Active | Total | |||||||||||||
| EPM | HLD | ASI | Avg | STU | OJR | ATR | FPD | ACR | OCR | Avg | REC | SSR | CRR | Avg | Avg | ||
| 0.25 | 0.75 | 43.77 | 31.72 | 58.78 | 44.76 | 43.26 | 54.89 | 62.07 | 68.32 | 55.96 | 65.10 | 58.27 | 31.09 | 41.65 | 45.42 | 39.38 | 47.47 |
| 0.30 | 0.60 | 45.12 | 29.57 | 57.43 | 44.04 | 42.13 | 53.26 | 62.93 | 68.32 | 51.38 | 65.77 | 57.30 | 29.39 | 41.49 | 54.58 | 41.82 | 47.72 |
| 0.30 | 0.75 | 46.46 | 29.57 | 58.11 | 44.71 | 43.82 | 54.89 | 62.07 | 67.33 | 55.05 | 67.11 | 58.38 | 36.73 | 40.97 | 44.17 | 40.62 | 47.91 |
| 0.30 | 0.95 | 45.45 | 31.18 | 60.14 | 45.59 | 42.70 | 53.26 | 59.48 | 66.34 | 54.13 | 67.79 | 57.28 | 33.07 | 41.99 | 40.00 | 38.35 | 47.08 |
| 0.50 | 0.75 | 46.13 | 29.03 | 60.81 | 45.32 | 46.63 | 54.89 | 58.62 | 70.30 | 57.80 | 63.09 | 58.55 | 33.34 | 42.74 | 47.66 | 41.25 | 48.37 |
Streaming Video Understanding
Streaming video understanding studies how AI systems interpret continuous video in real time while retaining useful history and responding at the right moment.
See all 132 papers