Manuscript Offprint
arXiv:2610.32784Video-MemComp: Taylor-Guided Sensitivity-Aware Memory Management for Streaming Video Understanding
Yonghui Niu, Yuhao Ji, Chang Nie, Jiao Zhang, Yilong Li, Junlan Feng, Ran He, Caifeng Shan, Chaoyou Fu
NJU, Jiutian AI, CASIA
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.
Corresponding authors: fengjunlan@chinamobile.com, chaoyoufu@nju.edu.cn
Project Page: https://hhnk666.github.io/Video-MemComp.github.io/
GitHub: https://github.com/hhnk666/videomemorycompress
1 Introduction
As Multimodal Large Language Models (MLLMs) evolve from static image understanding to long-form streaming video reasoning, they exhibit strong emergent capabilities in temporal reasoning and narrative comprehension OpenAI (2023); Liu et al. (2023); Bai et al. (2025b). However, the paradigm is quickly shifting towards real-time, continuous multimedia applications, such as AR/VR smart glasses, embodied agents, and intelligent surveillance systems. In these streaming video scenarios, video assistants must continuously perceive infinite visual streams while enabling seamless, low-latency human-computer interaction. This imposes a severe conflict: the streaming multimedia input is temporally unbounded, yet the system's computational resources and GPU memory are strictly finite. A fatal system bottleneck emerges as the Key-Value (KV) cache grows linearly with the sequence length , making continuous real-time inference highly susceptible to Out-Of-Memory failures, especially on resource-constrained edge devices or consumer-grade GPUs Shao et al. (2025b); Ning et al. (2025); Chen et al. (2025).
To alleviate memory pressure, recent works have explored memory compression techniques, including heuristic pruning and token merging. However, these approaches exhibit limitations in addressing the error accumulation mechanism, where minute approximation errors in specific layers (typically shallow ones) can amplify in the final output. Specifically, pruning methods, whether utilizing static budgets Zhang et al. (2023); Li et al. (2024b) or adaptive allocation based on information density Shen et al. (2025); Feng et al. (2024), often fail to fully account for the non-uniform error distribution across layers. Conversely, merging strategies Bolya
This paper has been accepted by ACM Multimedia (MM) 2026.

Figure 1 Our architecture. While standard Video-LLM models suffer from linear memory growth, Video-MemComp maintains strictly memory via a Taylor-expansion-guided hybrid strategy, enabling efficient streaming video understanding. Specifically, we decompose the error via Taylor expansion into local approximation error and layer-wise structural sensitivity . To minimize , we adopt Attention-Preserved Pre-RoPE Aggregation and Intra-layer Sparsity-based KV pruning. Meanwhile, is used to guide layer-wise budget allocation.
et al. (2022); Shao et al. (2025a) risk attention score dilution through simple averaging. Furthermore, direct KV-space merging Yang et al. (2025) may overlook the properties of RoPE, where positional rotations distort the similarity metrics required for effective merging.
To address these limitations, we employ a first-order Taylor expansion to analytically approximate the disparity in how different layers impact the final model performance. Letting denote the final model output and represent the attention output of the -th layer, this approach enables us to decompose the global output error down to the layer level, revealing two orthogonal components: Layer-wise Structural Sensitivity and Local Approximation Error :
where measures the information loss from compressing layer , and quantifies the gradient-based amplification factor of that layer. This analytical framework dictates our core design principle: we must minimize the local approximation error under the premise of explicitly managing the layer-wise structural sensitivity .
In this work, we introduce Video-MemComp, a training-free and model-agnostic structure-aware hybrid framework guided by this analytical framework and designed for extreme memory efficiency (see Fig. 1). Our system design strictly maps to the two error components identified in Eq. (1). To minimize the local approx-
MLVU Benchmark Comparison: Qwen2-VL-7B

Figure 2 Performance on MLVU with Qwen2-VL-7B. Our method outperforms strong baselines across all memory budgets, and even surpasses the Full KV baseline at 6K, 12K, and 24K KV budgets, showing that Video-MemComp removes redundancy while preserving key semantics. See Section E.1 in the supplementary material for details.
imation error , we identify that the RoPE-induced geometric barrier is the primary obstacle to effective merging; consequently, we shift the aggregation process to the Pre-RoPE “safe zone,” utilizing an attention-conserving logit bias to strictly preserve attention mass during physical token consolidation. Simultaneously, to manage the structural sensitivity , we recognize that simply knowing is insufficient and formulate memory management as a dynamic resource scheduling problem to maintain a constant-time memory footprint. We introduce a layer-wise budget allocation mechanism that leverages offline gradient priors to solve this optimization, aggressively reclaiming memory from low-sensitivity layers to favor high-sensitivity ones.
Extensive experiments on benchmarks such as MLVU Zhou et al. (2025), Video-MME Fu et al. (2025), and EgoSchema Mangalam et al. (2023) demonstrate a “less is more” effect: by mathematically filtering redundancy, our method matches or surpasses full-cache baselines (see Fig. 2). Notably, with Qwen2.5-VL-3B Bai et al. (2025b), Video-MemComp improves the overall accuracy from 62.3% to 64.1%, while limiting the average KV cache to 6,000 tokens per layer, cutting KV cache memory by over 90%.
Our main contributions are summarized as follows:
-
We analyze the error accumulation mechanism in MLLMs and provide an analytical decomposition of the streaming memory compression objective into layer-wise structural sensitivity and local approximation error via a first-order Taylor expansion.
-
We propose Video-MemComp, a hybrid framework that minimizes local error via Pre-RoPE aggregation and mitigates error amplification through a sensitivity-aware budget allocation strategy.
-
We demonstrate that our Taylor-guided -memory strategy performs competitively with or surpasses both full-cache baselines and state-of-the-art compression methods across multiple MLLM architectures and benchmarks.
Visual Token Compression in MLLMs. Spatial methods reduce intra-frame redundancy Shang et al. (2025); Alvar et al. (2025); Zhang et al. (2025); Lei et al. (2025); Zhang et al. (2026a); He and Chen (2026) but often

Figure 3 Overview of our Video-MemComp Framework. Guided by Taylor expansion (top), we split global memory compression into two objectives. 1) Minimizing Local Approximation Error (middle): Pre-RoPE Aggregation merges redundant tokens based on inter-frame filtering and intra-frame merging. Intra-layer KV Pruning selects key-value pairs using a dialogue-aware Proxy Query . 2) Managing Structural Sensitivity (bottom): A Tri-Hybrid Budget Allocation dynamically assigns the total memory budget using offline structural sensitivity, online information density, and uniform regularization to protect critical layers from aggressive pruning.
overlook temporal redundancy Shao et al. (2025b). Spatio-temporal approaches exploit inter-frame similarity or token merging Shen et al. (2024); Wang et al. (2024c); Fu et al. (2024); Cha et al. (2024), yet mostly rely on heuristics. Some partially violate attention conservation Liu et al. (2025b); Chen et al. (2025), and logit-bias compensation Zeng et al. (2025); Zhao et al. (2025) is typically static-centric and does not resolve growth, limiting guarantees on local approximation error in streaming QA.
KV Cache Optimization for Long-Context Inference. The linearly growing KV cache poses a major bottleneck for long-video understanding. Existing approaches in LLMs primarily rely on heuristic strategies, such as fixed sparsity patterns, stabilization mechanisms, cumulative attention, or importance-based metrics Han et al. (2024); Xiao et al. (2023); Zhang et al. (2023); Li et al. (2024b); Devoto et al. (2024); Park et al. (2025); Su et al. (2025). Meanwhile, non-uniform budgeting methods dynamically adjust layer-wise allocation based on signals such as attention entropy or feature norms Feng et al. (2024); Qin et al. (2025b); Shen et al. (2025); Cai et al. (2025); Wang et al. (2026). More recently, HERMES Zhang et al. (2026b), built upon a mechanistic investigation of attention, conceptualizes the KV cache as a hierarchical memory framework that captures video information across multiple granularities. However, existing methods often overlook layer-wise structural sensitivity, where approximation errors can accumulate and amplify in specific layers Li et al. (2025); Tu et al. (2024); Wang et al. (2025a); Liu et al. (2025a); Zhang et al. (2026b).
Streaming-Oriented Memory Management. Retrieval and store-then-retrieve schemes incur linear storage Zhang et al. (2024a); Qian et al. (2025); Di et al. (2025); Chen et al. (2025); Patel and Patel (2025), while bounded methods sometimes ignore inter-frame similarity or rely on heuristics Yang et al. (2025); Qin et al. (2025a). Even approaches can suffer from information loss Ning et al. (2025), limiting their ability to allocate memory by structural sensitivity or minimize local approximation error.
Unlike these approaches, Video-MemComp utilizes Taylor expansion to theoretically decompose the compression objective into local approximation error and layer-wise structural sensitivity, ensuring a strict memory footprint.
3 Methodology
3.1 Problem Reformulation via Taylor Expansion
Under the constraint of maintaining -memory overhead, directly optimizing the global output error is intractable due to the high-dimensional non-linearity of the model. To derive a feasible surrogate, we shift our analytical focus to the attention layer outputs , which serve as the direct interface for KV cache compression. Here, represents the total number of layers in the model and denotes the layer index.
We define as the collection of the states. By abstracting the model output as a multivariate function , the error can be characterized layer-wise. When compression is applied, it introduces a local perturbation at the -th layer. Assuming the perturbations are sufficiently small, we can linearize the global output deviation using a first-order multivariate Taylor expansion (see Appendix B for details):
(2)
Eq. (2) provides the analytical motivation for our Video-MemComp framework (see Fig. 3), guiding its hierarchical design strategy. The local approximation error indicates that compression must be optimized locally within a specific layer to preserve semantic fidelity. To retain high information-density features under limited budgets, we integrate pre-RoPE aggregation with intra-layer sparsity-based KV cache pruning, effectively minimizing . Meanwhile, the layer-wise structural sensitivity acts as a global amplification factor, making budget allocation a layer-wise resource scheduling problem. Layers with high (e.g., shallow layers) propagate errors more strongly and therefore require a larger share of the total memory budget to suppress the global error bound.
3.2 Minimizing Local Approximation Error
Pre-RoPE Aggregation. To reduce , we build upon prior KV cache compression methods Yang et al. (2025) but fundamentally rethink redundancy handling. Since the injection of Rotary Positional Embeddings (RoPE) entangles positional information with semantic similarity during the prefill stage, merging within the KV cache becomes geometrically unreliable. Therefore, we shift similarity-based aggregation to the Pre-RoPE stage. Furthermore, we compensate for the attention score shift caused by token aggregation, thereby minimizing as much as possible.
Based on the principle of attention conservation, we merge similar tokens and subsequently correct the attention scores to ensure faithful token aggregation (see Appendix B.3.1 for details). Our goal is to minimize information loss during compression. Considering that the Transformer's core self-attention mechanism fundamentally measures relevance via the dot product between Query and Key vectors, which induces a directional matching bias, we adopt cosine similarity as the metric for redundancy. Intuitively, if two tokens share the same direction in feature space, their response patterns to any Query will be highly similar. We provide a mathematical justification for this choice in Appendix C.1.
To eliminate similarity redundancy at the input, we design a three-stage process (Algorithm 1). We first leverage temporal inertia to filter out inter-frame static redundancy. Subsequently, for intra-frame spatial redundancy, we employ an iterative bipartite matching strategy. Most critically, to prevent the Attention Dilution caused by heuristic merging, we track the effective fusion count for each surviving token (representing the number of raw tokens it encapsulates) and inject a logit bias correction into the attention logits. This strictly enforces the conservation of attention mass (See Appendix B.3.1 for details), ensuring that aggregated background tokens retain their collective semantic weight, thereby minimizing the local error .
Algorithm 1 Attention-Preserved Token Aggregation
Require: Current frame , Previous frame Require: Thresholds: ; Gate Require: Temperature Ensure: Compressed tokens , Fusion counts 1: Detailed implementation available in Appendix C.4 2: Phase 1: Inter-Frame Filtering 3: 4: // Keep dynamic tokens 5: 6: Phase 2: Bipartite Matching Decision 7: Initialize survivor set 8: for iter to do 9: Partition into sets (source) and (target) 10: Compute edges: maximizing 11: Update survivors: 12: end for 13: Phase 3: Computing Fusion Counts 14: Let , 15: // 3.1 Gated Similarity Matrix 16: 17: if else 18: // 3.2 Attention Weights & Fusion Counts 19: 20: // Sum over columns (raw tokens) 21: // 3.3 Feature Update 22: 23: Reconstruct: 24: return
Intra-layer Sparsity-based KV cache Pruning. Selective pruning is applied to the KV cache in specific layers to mitigate sparsity-based redundancy. To estimate the importance of cached keys without future knowledge, we construct a Proxy Query using a generic dialogue template Yang et al. (2025). The importance score for layer is computed as:
We retain only the top- KV pairs with the highest importance scores, where the layer-specific budget is dynamically determined by our inter-layer allocation strategy.
3.3 Minimizing Local Approximation Error
In Eq. 2, we established that the upper bound of the total error is determined by both structural sensitivity and local approximation error. To minimize performance loss under a total budget constraint , we formalize layer-wise budget allocation as a constrained optimization problem.
Structural Sensitivity Quantification. Structural sensitivity quantifies the topological importance of layer . Layers with larger gradient norms suggest that minor local deviations will be cascaded and amplified by subsequent layers, which significantly affects the accuracy of the final prediction.
We quantify this property through offline calibration. Specifically, using a representative dataset (e.g., LLaVA-Pretrain Liu et al. (2023)), we estimate the expected gradient norm of each token by performing backpropagation over the dataset:

Figure 4 Statistical Visualization on Qwen2.5-VL-3B. Layer-wise budget allocation (stacked bars) is shown under an average budget of 500 KV tokens per layer. Gradient Norm ( ), Entropy ( ), and Feature Magnitude ( ) are normalized for comparison. The strategy effectively assigns higher budgets to shallow layers, while more aggressively pruning deeper layers. See Appendix E.3 for details.
This offline-computed serves as a robust Static Prior, guiding the budget toward structurally critical layers.
Optimization Objective. Let denote the KV cache budget allocated to layer , and be the local approximation error (measured in Frobenius norm) induced by pruning under this budget. Our goal is to find an optimal budget distribution that minimizes the expected total sensitivity-weighted error:
Solving Eq. (5) exactly is NP-hard. However, assuming a token’s marginal gain is proportional to its layer’s intrinsic entropy, we approximate it by allocating the total budget according to a composite importance score .
Tri-Hybrid Budget Allocation Strategy. We approximate the optimal budget allocation via a linear combination of three complementary metrics. As visualized in Figure 4, this strategy yields a front-heavy budget distribution: more resources are assigned to shallow layers to mitigate error propagation from high and entropy, while the budget gradually decreases toward deeper layers, enabling increasingly aggressive pruning. Formally, the budget proportion for the l-th layer is defined as:
where control the trade-off between components. Theoretical derivations are provided in Appendix D. The three components are defined as follows:
• Uniform Regularization ( ): Ensures a minimum budget for all layers to prevent resource starvation and guarantee baseline representational robustness.
- Layer-wise Structural Sensitivity ( ): Derived from Eq. (4), this term encodes the model's static topology and prioritizes layers with high expected gradients to mitigate cascading amplification of approximation errors.
• Information Density ( ): This component aids in reducing the local approximation error by adapting to input-dependent complexity. Following Shen et al. (2025), layers with high attention entropy (diffuse information) and large feature magnitudes (strong activation) are identified as resistant to compression. We propose a Log-Norm Weighted Entropy metric:
(7) where quantifies attention sparsity. Higher entropy indicates a more uniform and harder-to-compress distribution, while reflects activation intensity. By integrating these factors, we preserve layers that are both structurally diverse and functionally important. Finally, we obtain the normalized budget proportion as:
The full budget allocation and pruning procedure is summarized in Algorithm 2.
Algorithm 2 Sensitivity-Aware Budget Allocation
Require: KV Cache states , Total Budget
Require: Offline Prior: Structural Sensitivity
Ensure: Compressed Cache
1: 1. Online Metric Evaluation
2: Generate proxy query via template
3: for to in parallel do
4:
5: // Metric for Eviction
6: // Estimate compressibility via Entropy
7:
8:
9: // Proxy for
10: end for
11: 2. Solving Allocation Problem (Approx.)
12: Normalize dynamic proxy:
13: Normalize static prior:
14: Compute mixed policy:
15:
16: Discretize layer budgets:
17: 3. Execution: Layer-wise Pruning
18: for to do
19: Select indices
20: Update state:
21: end for
22: return
4 Experiments
4.1 Experimental Setup
Benchmarks and Evaluation. We evaluate Video-MemComp on a comprehensive suite of offline and streaming benchmarks. For offline datasets, we use VideoMME Fu et al. (2025), MLVU Zhou et al. (2025), and EgoSchema Mangalam et al. (2023) following the online streaming evaluation protocol. Following prior work Di et al. (2025); Yang et al. (2025); Kim et al. (2025), results are reported on the official development sets. For streaming evaluation, we employ timestamped QA datasets RVS-Ego/Movie Di et al. (2025) (using GPT-based evaluation) and the choice-based OVO-Bench Niu et al. (2025) to assess temporal reasoning tasks such as backward tracing and real-time perception. Due to space limitations, detailed experimental configurations and results on OVO-Bench are provided in F of the supplementary.
Models. We evaluate our method across four MLLM backbones: Qwen-2-VL-7B Wang et al. (2024a), Qwen-2.5-VL-3B Bai et al. (2025b), LLaVA-OV-7B Li et al. (2024a), and InternVL-3.5-2B Wang et al. (2025b). To accommodate architectural variations, we adopt model-specific hyperparameters, including similarity thresholds ( ) and budget weights ( ), as detailed in E.4 of the supplementary material.
Table 1 Performance Comparison on Offline Video Understanding Benchmarks. We evaluate Video-MemComp against state-of-the-art compression methods and full-cache baselines. Avg Budget indicates the KV cache token limit; bold and underlined values mark the best and second-best results, respectively. Entries marked with * denotes reproduced results, others are from original papers. Rows in light blue show that our method meets or exceeds full-cache performance under strict memory constraints.
| Method | Size | # Frames | Avg Budget | EgoSchema | MLVU | VideoMME | ALL | ||
|---|---|---|---|---|---|---|---|---|---|
| Max Duration | |M| | 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 |
| Qwen-2-VL + DyCoke | 7B | 768 | 6K | - | 58.0 | 55.0 | 51.7 | 59.8 | - |
| Qwen-2-VL + InfiniPot-V | 7B | 768 | 6K | 65.6 | 65.8 | 60.8 | 53.4 | 62.8 | 64.7 |
| Qwen-2-VL + StreamMem | 7B | 0.5/0.2fps | 6K | 67.2 | 65.9 | 62.4 | 52.3 | 62.1 | 65.1 |
| Qwen-2-VL + Video-MemComp (Ours) | 7B | 768 | 6K | 68.6 | 67.1 | 60.2 | 51.6 | 60.8 | 65.5 |
| LLaVA-OneVision-7B | 7B | 32 | 6K | 60.1 | 64.7 | 57.4 | 46.2 | 56.9 | 60.6 |
| LLaVA-OneVision-7B + ReKV | 7B | 0.5 fps | 6K | 60.7 | 68.5 | - | - | - | - |
| LLaVA-OneVision-7B + LiveVLM | 7B | 0.5/0.2 fps | - | 63.0 | 66.3 | 56.4 | 48.8 | 57.3 | 62.2 |
| LLaVA-OneVision-7B + StreamMem | 7B | 0.5/0.2 fps | 6K | 63.0 | 66.9 | 56.6 | 50.1 | 59.4 | 63.1 |
| LLaVA-OneVision-7B + Video-MemComp (Ours) | 7B | 0.5/0.2 fps | 6K | 63.0 | 66.5 | 57.2 | 47.3 | 58.0 | 62.5 |
| Qwen-2.5-VL* | 3B | 768 | 100K | 64.4 | 63.3 | 58.1 | 50.6 | 59.2 | 62.3 |
| Qwen-2.5-VL + InfiniPot-V | 3B | 768 | 6K | 61.8 | 62.1 | - | - | 59.3 | 61.1 |
| Qwen-2.5-VL + StreamMem | 3B | 4.0/0.5 fps | 6K | 62.2 | 62.3 | 60.1 | 49.1 | 59.5 | 61.3 |
| Qwen-2.5-VL + Video-MemComp (Ours) | 3B | 768 | 6K | 62.8 | 68.2 | 60.0 | 53.2 | 61.2 | 64.1 |
| InternVL-3.5* | 2B | 8/16/32/64 | 16K | 64.4 | 64.2 | - | - | 58.4 | 62.3 |
| InternVL-3.5 + InfiniPot-V* | 2B | 64/100 | 6K | 67.6 | 58.9 | 46.9 | 41.2 | 48.0 | 58.1 |
| InternVL-3.5 + StreamMem* | 2B | 64/100 | 6K | 58.5 | 59.6 | 51.0 | 43.3 | 51.3 | 56.5 |
| InternVL-3.5 + Video-MemComp (Ours) | 2B | 64/100 | 6K | 65.6 | 63.6 | 57.4 | 46.9 | 57.9 | 62.4 |
4.2 Evaluation Results
Offline Video Understanding. We evaluate Video-MemComp against state-of-the-art compression methods (e.g., InfiniPot-V Kim et al. (2025), StreamMem Yang et al. (2025), ReKVDi et al. (2025), DyCokeTao et al. (2025), LiveVLMNing et al. (2025)) and full-input baselines across four backbones. As detailed in Table 1, our method achieves comparable or superior performance under a restricted 6K KV budget. Notably, on Qwen-2-VL-7B, it scores 65.5, outperforming both InfiniPot-V (64.7) and the full-input baseline (64.9). This efficacy extends to Qwen-2.5-VL-3B (64.1 vs. 62.3) and other backbones (InternVL-3.5-2B, LLaVA-OneVision-7B), demonstrating robust redundancy filtering capabilities.
Streaming Video Understanding. We compare with state-of-the-arts Di et al. (2025); Zhang et al. (2024a); Kim et al. (2025); Yang et al. (2025); Chen et al. (2025) on RVS-Ego and RVS-Movie (Table 2). While ReKV achieves 59.0% via CPU offloading, it incurs high system overhead, and restricting it to GPU memory drops accuracy to 53.3%. In contrast, our method remains robust within GPU budgets, achieving the highest average accuracy (56.6%) among efficient methods, surpassing StreamingTOM (55.8%). Notably, on RVS-Ego, we reach 60.1%, outperforming StreamingTOM (58.3%) and InfiniPot-V (57.9%), which further validates the effectiveness of our sensitivity-aware compression in capturing critical semantic dependencies.
Efficiency Analysis. To further verify the potential of our method for deployment on edge devices, we conducted a detailed efficiency evaluation on an NVIDIA RTX A6000 based on the LLaVA-OneVision-7B model. As shown in Table 3, we focus on the comparison with the streaming method ReKV. Although ReKV achieves higher throughput, our method demonstrates clear advantages in GPU memory usage and interaction latency, which are key metrics determining user experience.
4.3 Ablation Study
We conduct comprehensive ablation studies to disentangle the contributions of the two theoretically orthogonal components derived in Eq. (2): (i) minimizing local approximation error via intra-layer compression, and (ii) managing layer-wise structural sensitivity via inter-layer budget allocation. Unless otherwise spec-
Table 2 Quantitative Results on RVS Streaming Benchmarks. We compare our method with state-of-the-art streaming baselines, grouped into Reference (Top) using CPU offloading for infinite history, and Memory-Constrained (Bottom) within GPU limits. Video-MemComp achieves the highest average accuracy among memory-constrained methods, especially in the egocentric domain.
| Method | RVS-Ego | RVS-Movie | Avg | |||
|---|---|---|---|---|---|---|
| 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 |
| StreamingTOM | 58.3 | 3.9 | 53.2 | 3.5 | 55.8 | 3.7 |
| Video-MemComp (Ours) | 60.1 | 3.3 | 53.1 | 3.1 | 56.6 | 3.2 |
Table 3 System efficiency on LLaVA-OneVision-7B. Metrics include peak memory, visual encoder latency per frame, and time to first token (TTFT). Video-MemComp reduces memory and latency compared to retrieval-based baselines (ReKV), enabling OOM-free consumer-grade inference.
| Method | Peak Memory (GB) ↓ | Video Enc. (ms/frame) ↓ | TTFT (s) ↓ | Throughput (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 |
ified, all experiments are conducted on VideoMME (streaming at 4.0fps / 0.5fps) and MLVU (full 768-frame) using Qwen2.5-VL-3B .
Hybrid Intra-layer Compression vs. Single-Mechanism Baselines. We validate the necessity of our hybrid intra-layer strategy, which combines Pre-RoPE token aggregation with sparsity-based KV pruning to jointly minimize the local approximation error . To isolate intra-layer effects, we employ a uniform layer-wise budget (disabling -aware allocation). As shown in Fig.5, this hybrid design consistently dominates single-mechanism baselines, achieving superior accuracy-memory trade-offs by simultaneously addressing representation redundancy and attention sparsity.
Effect of Intra-frame Token Aggregation on . We analyze intra-frame token aggregation, which targets spatial redundancy and directly reduces the local approximation error . Table 4 compares an inter-frame-only baseline with full spatio-temporal aggregation. While inter-frame filtering removes static temporal redundancy, intra-frame aggregation densifies spatial semantics within each frame, consistently improving long-context benchmarks (e.g., MLVU from 67.68 to 68.19, and gains on VideoMME Medium and Long). Minor drops on short clips indicate a benign trade-off, as spatial fusion is less critical with limited temporal context. Overall, intra-frame aggregation effectively lowers under tight memory constraints without sacrificing essential semantics.
Table 4 Ablation study on intra-frame token compression. The inter-frame only baseline applies temporal filtering () with standard KV pruning. Adding intra-frame compression improves performance on longer contexts by densifying spatial semantics, with a minor trade-off on short clips.
| Method | VideoMME | MLVU | |||
|---|---|---|---|---|---|
| S | M | L | Avg | ||
| 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 | |
Method Performance Comparison

Figure 5 Accuracy-Memory trade-offs on Qwen2.5-VL-3B (VideoMME Long Video). Token Compression (Blue) excels in high-budget regimes, notably surpassing the dense baseline by mitigating attention dilution. Conversely, KV Compression (Orange) demonstrates robustness under strict memory constraints. Our Hybrid Method (Green) achieves the optimal Pareto frontier across all budgets, balancing redundancy removal with attention preservation. See E.4 in the supplementary material for details.
Sensitivity-Aware vs. Uniform Budget Allocation. We compare sensitivity-aware dynamic budget allocation with static uniform allocation to evaluate the role of layer-wise structural sensitivity . All variants use identical intra-layer compression, isolating inter-layer scheduling effects. As shown in Table 5, the dynamic strategy consistently outperforms uniform allocation across similarity thresholds, with the largest gains on long-video and aggregate metrics. These results show that prioritizing structurally sensitive layers suppresses error amplification, empirically confirming that is a global error amplifier requiring explicit control.
Table 5 Ablation study on static vs. dynamic budget allocation on VideoMME. Our sensitivity-aware dynamic strategy consistently improves aggregate performance across similarity thresholds (), validating the benefit of prioritizing structurally sensitive and high-entropy layers over a uniform distribution.
| 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 |
Ablation of Budget Allocation Weights. We study the effect of the tri-hybrid budget allocation weights (uniform prior , structural sensitivity , and dynamic information density ) on OVO-Bench using Qwen2.5-VL-7B, with fixed spatio-temporal thresholds. Allocations dominated by structural sensitivity () consistently outperform uniform-heavy configurations, confirming the effectiveness of offline gradient-based calibration. Meanwhile, introducing a small dynamic component () yields the global optimum, as it adaptively mitigates input-dependent approximation error without destabilizing the allocation. Excessive reliance on dynamic metrics leads to performance degradation due to high variance in online activations.
Sensitivity to Spatio-temporal Similarity Thresholds. Finally, we analyze the interaction between inter-frame () and intra-frame () similarity thresholds, which jointly determine the granularity of redundancy removal. Figure 7 shows a convex performance landscape. Aggressive temporal pruning () causes irreversible accuracy collapse, highlighting that temporal continuity is a prerequisite for streaming video understanding. Performance peaks at and , where static redundancy is effectively removed without sacrificing fine-grained visual cues. Overly conservative thresholds, by contrast, retain excessive redundancy and exhaust the limited KV budget, increasing and degrading overall performance.
Accuracy Landscape: Cubic Spline Interpolation

Figure 6 Hyperparameter landscape of budget allocation. OVO-Bench accuracy is shown as a contour over uniform prior ( ) and structural sensitivity ( ); represents the dynamic entropy weight. The global optimum(star), revealing that a dominant structural prior combined with subtle dynamic adjustment yields superior performance compared to uniform allocation. See F.3 in the supplementary material for details.
5 Conclusion
In this work, we present Video-MemComp, a training-free, model-agnostic, and structure-aware hybrid framework for infinite streaming video understanding under a strict memory budget. Moving beyond heuristic pruning, we revisit KV cache compression through the lens of error propagation. Using a first-order Taylor expansion as an analytical surrogate, we decompose the global output error into two orthogonal components: Local Approximation Error ( ) and Layer-wise Structural Sensitivity ( ), revealing the mechanism of non-uniform error propagation in MLLMs. Guided by this insight, Video-MemComp reduces via Pre-RoPE aggregation that bypasses RoPE-induced geometric constraints, and regulates through gradient-guided dynamic budget allocation. Extensive experiments demonstrate a counter-intuitive “less is more” effect: by distilling high-density information, our method matches or surpasses full-cache baselines with minimal memory. This work offers a scalable solution for long-form video understanding on resource-constrained devices and provides a principled perspective on memory optimization.
Limitations and Future Work. Our Taylor-based decomposition is heuristic and may break down under extreme compression where local perturbation assumptions no longer hold. The structural sensitivity prior relies on offline calibration and may degrade under distribution shifts, while Pre-RoPE aggregation introduces moderate overhead. Future work will explore validating higher-order approximations, developing online or adaptive sensitivity estimation, and designing more efficient aggregation for ultra-long streams.
References
Saeed Ranjbar Alvar, Gursimran Singh, Mohammad Akbari, and Yong Zhang. Divprune: Diversity-based visual token pruning for large multimodal models. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 9392–9401, 2025.
Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, et al. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631, 2025a.
Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, et al. Qwen2. 5-vl technical report. arXiv preprint arXiv:2502.13923, 2025b.
Performance Heatmap of Token Compression Thresholds

Figure 7 Joint Impact of Spatio-Temporal Compression Thresholds. The heatmap plots accuracy across varying Inter-frame ( ) and Intra-frame ( ) similarity thresholds. The landscape reveals a convex optimization zone, where the peak represents the optimal trade-off between aggressive redundancy filtering and semantic preservation. Notably, overly aggressive temporal pruning (low ) causes irreversible performance degradation. See F.4 in the supplementary material for details.
Daniel Bolya, Cheng-Yang Fu, Xiaoliang Dai, Peizhao Zhang, Christoph Feichtenhofer, and Judy Hoffman. Token merging: Your vit but faster. arXiv preprint arXiv:2210.09461, 2022.
Zefan Cai, Yichi Zhang, Bofei Gao, Yuliang Liu, Yucheng Li, Tianyu Liu, Keming Lu, Wayne Xiong, Yue Dong, Junjie Hu, and Wen Xiao. Pyramidkv: Dynamic kv cache compression based on pyramidal information funneling, 2025. https://arxiv.org/abs/2406.02069.
Junbum Cha, Wooyoung Kang, Jonghwan Mun, and Byungseok Roh. Honeybee: Locality-enhanced projector for multimodal llm. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13817–13827, 2024.
Joya Chen, Zhaoyang Lv, Shiwei Wu, Kevin Qinghong Lin, Chenan Song, Difei Gao, Jia-Wei Liu, Ziteng Gao, Dongxing Mao, and Mike Zheng Shou. Videollm-online: Online video large language model for streaming video. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18407–18418, 2024a.
Liang Chen, Haozhe Zhao, Tianyu Liu, Shuai Bai, Junyang Lin, Chang Zhou, and Baobao Chang. An image is worth 1/2 tokens after layer 2: Plug-and-play inference acceleration for large vision-language models. In European Conference on Computer Vision, pages 19–35. Springer, 2024b.
Xueyi Chen, Keda Tao, Kele Shao, and Huan Wang. Streamingtom: Streaming token compression for efficient video understanding. arXiv preprint arXiv:2510.18269, 2025.
Zhe Chen, Jiannan Wu, Wenhai Wang, Weijie Su, Guo Chen, Sen Xing, Muyan Zhong, Qinglong Zhang, Xizhou Zhu, Lewei Lu, et al. Internvl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 24185–24198, 2024c.
Alessio Devoto, Yu Zhao, Simone Scardapane, and Pasquale Minervini. A simple and effective norm-based strategy for kv cache compression. arXiv preprint arXiv:2406.11430, 2024.
Shangzhe Di, Zhelun Yu, Guanghao Zhang, Haoyuan Li, Tao Zhong, Hao Cheng, Bolin Li, Wanggui He, Fangxun Shu, and Hao Jiang. Streaming video question-answering with in-context video kv-cache retrieval. arXiv preprint arXiv:2503.00540, 2025.
Yuan Feng, Junlin Lv, Yukun Cao, Xike Xie, and S Kevin Zhou. Ada-kv: Optimizing kv cache eviction by adaptive budget allocation for efficient llm inference. arXiv preprint arXiv:2407.11550, 2024.
Chaoyou Fu, Yuhan Dai, Yongdong Luo, Lei Li, Shuhuai Ren, Renrui Zhang, Zihan Wang, Chenyu Zhou, Yunhang Shen, Mengdan Zhang, et al. Video-mme: The first-ever comprehensive evaluation benchmark of multi-modal llms in video analysis. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 24108–24118, 2025.
Tianyu Fu, Tengxuan Liu, Qinghao Han, Guohao Dai, Shengen Yan, Huazhong Yang, Xuefei Ning, and Yu Wang. Framefusion: Combining similarity and importance for video token reduction on large visual language models. arXiv preprint arXiv:2501.01986, 2024.
Chi Han, Qifan Wang, Hao Peng, Wenhan Xiong, Yu Chen, Heng Ji, and Sinong Wang. Lm-infinite: Zero-shot extreme length generalization for large language models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 3991–4008, 2024.
Jialuo He and Huangxun Chen. Energy-driven adaptive visual token pruning for efficient vision-language models. arXiv preprint arXiv:2603.05950, 2026.
Minsoo Kim, Kyuhong Shim, Jungwook Choi, and Simyung Chang. Infinipot: Infinite context processing on memory-constrained llms. arXiv preprint arXiv:2410.01518, 2024.
Minsoo Kim, Kyuhong Shim, Jungwook Choi, and Simyung Chang. Infinipot-v: Memory-constrained kv cache compression for streaming video understanding. arXiv preprint arXiv:2506.15745, 2025.
Jingyu Lei, Gaoang Wang, and Der-Horng Lee. Core: Compact object-centric representations as a new paradigm for token merging in lvlms. arXiv preprint arXiv:2511.14072, 2025.
Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang, Kaichen Zhang, Peiyuan Zhang, Yanwei Li, Ziwei Liu, et al. Llava-onevision: Easy visual task transfer. arXiv preprint arXiv:2408.03326, 2024a.
Yucheng Li, Huiqiang Jiang, Chengruidong Zhang, Qianhui Wu, Xufang Luo, Surin Ahn, Amir H Abdi, Dongsheng Li, Jianfeng Gao, Yuqing Yang, et al. Mminference: Accelerating pre-filling for long-context vlms via modality-aware permutation sparse attention. arXiv preprint arXiv:2504.16083, 2025.
Yuhong Li, Yingbing Huang, Bowen Yang, Bharat Venkitesh, Acyr Locatelli, Hanchen Ye, Tianle Cai, Patrick Lewis, and Deming Chen. Snapkv: Llm knows what you are looking for before generation. Advances in Neural Information Processing Systems, 37:22947–22970, 2024b.
Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. Advances in neural information processing systems, 36:34892–34916, 2023.
Xuyang Liu, Xiyan Gui, Yuchao Zhang, and Linfeng Zhang. Mixing importance with diversity: Joint optimization for kv cache compression in large vision-language models. arXiv preprint arXiv:2510.20707, 2025a.
Xuyang Liu, Yiyu Wang, Junpeng Ma, and Linfeng Zhang. Video compression commander: Plug-and-play inference acceleration for video large language models. arXiv preprint arXiv:2505.14454, 2025b.
Karttikeya Mangalam, Raiymbek Akshulakov, and Jitendra Malik. Egoschema: A diagnostic benchmark for very long-form video language understanding. Advances in Neural Information Processing Systems, 36:46212–46244, 2023.
Zhenyu Ning, Guangda Liu, Qihao Jin, Wenchao Ding, Minyi Guo, and Jieru Zhao. Livevlm: Efficient online video understanding via streaming-oriented kv cache and retrieval. arXiv preprint arXiv:2505.15269, 2025.
Junbo Niu, Yifei Li, Ziyang Miao, Chunjiang Ge, Yuanhang Zhou, Qihao He, Xiaoyi Dong, Haodong Duan, Shuangrui Ding, Rui Qian, et al. Ovo-bench: How far is your video-llms from real-world online video understanding? In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 18902–18913, 2025.
GPT OpenAI. 4v (ision) system card https://cdn.openai.com/papers. GPTV_System_Card.pdf, 2023.
Junyoung Park, Dalton Jones, Matthew J Morse, Raghavv Goel, Mingu Lee, and Chris Lott. Keydiff: Key similarity-based kv cache eviction for long-context llm inference in resource-constrained environments. arXiv preprint arXiv:2504.15364, 2025.
Shrenik Patel and Daivik Patel. Cacheflow: Compressive streaming memory for efficient long-form video understanding. arXiv preprint arXiv:2511.13644, 2025.
Bowen Peng, Jeffrey Quesnelle, Honglu Fan, and Enrico Shippole. Yarn: Efficient context window extension of large language models. In The Twelfth International Conference on Learning Representations.
Rui Qian, Shuangrui Ding, Xiaoyi Dong, Pan Zhang, Yuhang Zang, Yuhang Cao, Dahua Lin, and Jiaqi Wang. Dispider: Enabling video llms with active real-time interaction via disentangled perception, decision, and reaction. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 24045–24055, 2025.
Jialong Qin, Xin Zou, Di Lu, Yibo Yan, and Xuming Hu. Sharp eyes and memory for videollms: Information-aware visual token pruning for efficient and reliable videollm reasoning. arXiv preprint arXiv:2511.08003, 2025a.
Ziran Qin, Yuchen Cao, Mingbao Lin, Wen Hu, Shixuan Fan, Ke Cheng, Weiyao Lin, and Jianguo Li. Cake: Cascading and adaptive kv cache eviction with layer preferences, 2025b. https://arxiv.org/abs/2503.12491.
Yuzhang Shang, Mu Cai, Bingxin Xu, Yong Jae Lee, and Yan Yan. Llava-prumerge: Adaptive token reduction for efficient large multimodal models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 22857–22867, 2025.
Kele Shao, Keda Tao, Can Qin, Haoxuan You, Yang Sui, and Huan Wang. Holitom: Holistic token merging for fast video large language models. arXiv preprint arXiv:2505.21334, 2025a.
Kele Shao, Keda Tao, Kejia Zhang, Sicheng Feng, Mu Cai, Yuzhang Shang, Haoxuan You, Can Qin, Yang Sui, and Huan Wang. When tokens talk too much: A survey of multimodal long-context token compression across images, videos, and audios. arXiv preprint arXiv:2507.20198, 2025b.
Xiaoqian Shen, Yunyang Xiong, Changsheng Zhao, Lemeng Wu, Jun Chen, Chenchen Zhu, Zechun Liu, Fanyi Xiao, Balakrishnan Varadarajan, Florian Bordes, et al. Longvu: Spatiotemporal adaptive compression for long video-language understanding. arXiv preprint arXiv:2410.17434, 2024.
Yiqun Shen, Song Yuan, Zhengze Zhang, Xiaoliang Wang, Daxin Jiang, and Nguyen Cam-Tu. Lava: Layer-wise kv cache eviction with dynamic budget allocation. In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 13672–13692, 2025.
Yi Su, Quantong Qiu, Yuechi Zhou, Juntao Li, Qingrong Xia, Ping Li, Xinyu Duan, Zhefeng Wang, and Min Zhang. Calidrop: Kv cache compression with calibration. arXiv preprint arXiv:2507.19906, 2025.
Keda Tao, Can Qin, Haoxuan You, Yang Sui, and Huan Wang. Dycoke: Dynamic compression of tokens for fast video large language models. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 18992–19001, 2025.
Dezhan Tu, Danylo Vashchilenko, Yuzhe Lu, and Panpan Xu. Vl-cache: Sparsity and modality-aware kv cache compression for vision-language model inference acceleration. arXiv preprint arXiv:2410.23317, 2024.
Jiahui Wang, Zuyan Liu, Yongming Rao, and Jiwen Lu. Sparsemm: Head sparsity emerges from visual concept responses in mllms. arXiv preprint arXiv:2506.05344, 2025a.
Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, et al. Qwen2-vl: Enhancing vision-language model's perception of the world at any resolution. arXiv preprint arXiv:2409.12191, 2024a.
Weiyun Wang, Zhe Chen, Wenhai Wang, Yue Cao, Yangzhou Liu, Zhangwei Gao, Jinguo Zhu, Xizhou Zhu, Lewei Lu, Yu Qiao, and Jifeng Dai. Enhancing the reasoning ability of multimodal large language models via mixed preference optimization. arXiv preprint arXiv:2411.10442, 2024b.
Weiyun Wang, Zhangwei Gao, Lixin Gu, Hengjun Pu, Long Cui, Xingguang Wei, Zhaoyang Liu, Linglin Jing, Shenglong Ye, Jie Shao, et al. Internvl3. 5: Advancing open-source multimodal models in versatility, reasoning, and efficiency. arXiv preprint arXiv:2508.18265, 2025b.
Xiao Wang, Qingyi Si, Jianlong Wu, Shiyu Zhu, Li Cao, and Liqiang Nie. Retake: Reducing temporal and knowledge redundancy for long video understanding. arXiv preprint arXiv:2412.20504, 2024c.
Zihan Wang, Cheng Tang, Lei Gong, Cheng Li, Chao Wang, Wenqi Lou, Xuehai Zhou, et al. Crystal-kv: Efficient kv cache management for chain-of-thought llms via answer-first principle. arXiv preprint arXiv:2601.16986, 2026.
Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. arXiv preprint arXiv:2309.17453, 2023.
Yanlai Yang, Zhuokai Zhao, Satya Narayan Shukla, Aashu Singh, Shlok Kumar Mishra, Lizhu Zhang, and Mengye Ren. Streammem: Query-agnostic kv cache memory for streaming video understanding. arXiv preprint arXiv:2508.15717, 2025.
Linli Yao, Yicheng Li, Yuancheng Wei, Lei Li, Shuhuai Ren, Yuanxin Liu, Kun Ouyang, Lean Wang, Shicheng Li, Sida Li, et al. Timechat-online: 80% visual tokens are naturally redundant in streaming videos. In Proceedings of the 33rd ACM International Conference on Multimedia, pages 10807–10816, 2025.
Fanhu Zeng, Deli Yu, Zhenglun Kong, and Hao Tang. Token transforming: A unified and training-free token compression framework for vision transformer acceleration. arXiv preprint arXiv:2506.05709, 2025.
Evelyn Zhang, Fufu Yu, Aoqi Wu, Zichen Wen, Ke Yan, Shouhong Ding, Biqing Qi, and Linfeng Zhang. D²pruner: Debiased importance and structural diversity for mllm token pruning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 12412–12420, 2026a.
Haoji Zhang, Yiqin Wang, Yansong Tang, Yong Liu, Jiashi Feng, Jifeng Dai, and Xiaojie Jin. Flash-vstream: Memory-based real-time understanding for long video streams. arXiv preprint arXiv:2406.08085, 2024a.
Haowei Zhang, Shudong Yang, Jinlan Fu, See-Kiong Ng, and Xipeng Qiu. Hermes: Kv cache as hierarchical memory for efficient streaming video understanding. arXiv preprint arXiv:2601.14724, 2026b.
Xiaofeng Zhang, Fanshuo Zeng, and Chaochen Gu. Simignore: Exploring and enhancing multimodal large model complex reasoning via similarity computation. Neural Networks, 184:107059, 2025.
Yuanhan Zhang, Bo Li, haotian Liu, Yong jae Lee, Liangke Gui, Di Fu, Jiashi Feng, Ziwei Liu, and Chunyuan Li. Llava-next: A strong zero-shot video understanding model, April 2024b. https://llava-vl.github.io/blog/2024-04-30-llava-next-video/.
Yuanhan Zhang, Jinming Wu, Wei Li, Bo Li, Zejun Ma, Ziwei Liu, and Chunyuan Li. Video instruction tuning with synthetic data. arXiv preprint arXiv:2410.02713, 2024c.
Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuandong Tian, Christopher Ré, Clark Barrett, et al. H2o: Heavy-hitter oracle for efficient generative inference of large language models. Advances in Neural Information Processing Systems, 36:34661–34710, 2023.
Xuanle Zhao, Shuxin Zeng, Yinyuan Cai, Xiang Cheng, Duzhen Zhang, Xiuyi Chen, and Bo Xu. Tinychemvl: Advancing chemical vision-language models via efficient visual token reduction and complex reaction tasks. arXiv preprint arXiv:2511.06283, 2025.
Junjie Zhou, Yan Shu, Bo Zhao, Boya Wu, Zhengyang Liang, Shitao Xiao, Minghao Qin, Xi Yang, Yongping Xiong, Bo Zhang, et al. Mlvu: Benchmarking multi-task long video understanding. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 13691–13701, 2025.
A Appendix Roadmap
This appendix is organized as follows: (i) section B formulates the streaming video understanding problem and derives the first-order Taylor error decomposition, serving as our theoretical foundation; (ii) section C provides the theoretical justification and implementation details for our hybrid compression scheme to minimize local approximation error; (iii) section D presents the rigorous derivation of our sensitivity-aware budget allocation for managing layer-wise structural sensitivity; and (iv) sections E and F report supplementary experimental configurations and extended evaluations.
B Problem Formulation and Taylor-based Error Decomposition
B.1 Problem Formulation
Consider a streaming video MLLM processing a sequence of visual tokens. Let the generation process at time step be represented as a function mapping the historical Key-Value (KV) cache to the output hidden states or logits (before discrete sampling). For the -th layer, let the accumulated cache be denoted as , where represent the Key and Value vectors. The global model output depends on the aggregate state of all layers, denoted as , such that .
Our objective is to identify a compression operator that maps the full cache to a sparse, memory-efficient set under a strict global memory budget . This is formulated as a constrained optimization problem:
B.2 Error Analysis via First-Order Taylor Approximation
Directly minimizing Eq. (9) is intractable due to the high-dimensional non-linearity of . To derive a feasible surrogate, we analyze error propagation through the attention mechanism. We denote the attention output of layer as . Compression introduces a local deviation .
By applying a first-order Taylor expansion to with respect to the attention outputs , we decompose the global output error as follows:
Remark: While KV cache pruning introduces discrete and potentially non-infinitesimal perturbations, the first-order Taylor expansion serves as a mathematically principled proxy to disentangle the error sources and inform our budget allocation strategy.
Eq. (10) characterizes two distinct error factors:
-
Layer-wise Structural Sensitivity (): This term quantifies the gradient-based amplification factor. High (typically in shallow layers) indicates that local errors propagate strongly to the final output. This motivates our Dynamic Budget Allocation, prioritizing layers with higher sensitivity.
-
Local Approximation Error (): This term measures information loss within layer . To minimize , we propose the Pre-RoPE Aggregation strategy, which eliminates redundancy while preserving attention mass via logit bias.
B.3 Minimizing Local Error
To minimize , we analyze the standard attention formulation. For a query , the attention output is:
Here, represents the attention score of the -th token. Video data redundancy manifests in two orthogonal forms: Similarity and Sparsity. We illustrate how our hybrid strategy minimizes for each case.
B.3.1 Case 1: Similarity Redundancy (Minimization via Aggregation)
Premise: There exists a subset of tokens that are semantically similar, i.e., , where is a representative centroid.
If we naively merge these tokens into one without adjustment, the total attention mass decreases (from a sum of terms to 1), causing a large shift in . To minimize this error, we propose Attention-Conserving Aggregation. Let be the logit of the representative. The contribution of the group to the weighted sum was approximately . After merging into a single token , its new logit must satisfy:
Adding a Logit Bias (generalized as effective count ) ensures the aggregated token preserves the group's total attention mass. Thus, this subset's error contribution approaches zero:
Remark: To satisfy the assumption , this merging must be performed in the Pre-RoPE space to avoid the geometric barrier of rotation.
B.3.2 Case 2: Sparsity Redundancy (Minimization via Pruning)
Pre-mise: There exists a subset of tokens where attention scores are negligible, i.e., . For these tokens, aggregation is computationally wasteful. We employ KV Pruning. The error source here is the Renormalization of the softmax denominator (partition function ). Let the pruned probability mass be . The new attention weight for retained tokens becomes:
The resulting approximation error in A is bounded by the total pruned mass:
Since our method identifies using a proxy query that explicitly minimizes (removing only the least important tokens), the error is strictly bounded.
Conclusion: By applying Logit Bias Aggregation for similarity (Case 1) and Importance-Guided Pruning for sparsity (Case 2), we minimize both components of , thereby minimizing the total error as defined in Eq. 10.
C Minimizing Local Approximation Error: Theoretical Justification and Hybrid Compression Implementation
This appendix provides the theoretical basis and implementation details for the proposed Structural-Aware Hybrid Compression framework. The theoretical analysis covers three core dimensions: (1) Proving that cosine similarity is a theoretically grounded metric for token redundancy under generalized attention mechanisms involving linear projections and Rotary Positional Embeddings; (2) Elucidating the complementary mechanisms of Inter-Frame Filtering (implicit temporal high-pass filtering) and Pre-RoPE Intra-Frame Aggregation (energy-conserving reconstruction); (3) Modeling adaptive Token Compression as an optimal quantization problem with fixed distortion and variable rate from an information theoretic perspective. Finally, we provide detailed algorithmic implementation steps.
C.1 Optimality Proof of Cosine Similarity Under Generalized Attention Constraints
In Multimodal Large Language Models (MLLMs), determining whether two input tokens and are redundant is essentially equivalent to requiring that they produce consistent attention Logit responses to any potential query vector after being mapped to the Key space via parameter projection and positional encoding.
C.1.1 Formalization of Generalized Response Error
Notations:
- Input Features: . Given the prevalence of normalization layers (LayerNorm) in LLMs, we assume feature vectors lie on a hypersphere, i.e., .
• Linear Projection: , mapping input features to the Key space.
- Rotary Positional Embedding (RoPE): is the orthogonal rotation matrix at position , satisfying .
• Arbitrary Query: , representing any potential Attention Query generated within the network.
The true attention response of token to query is defined as:
C.1.2 Local Equivariance and Effective Back-Projection
We focus on local redundancy (e.g., temporally adjacent frames or spatially neighboring patches). In this context, assuming and possess spatio-temporal locality, i.e., . Leveraging the continuity of RoPE, we can apply a local isometric approximation: . Thus, the response error can be expressed as:
To trace the error analysis back to the input space x, we rewrite the equation in inner product form:
where we define as the Effective Back-projected Query. Physical Interpretation: Since is typically full-rank and is orthogonal, this transformation is bijective. As traverses the space, also traverses the entire feature space. Therefore, maintaining consistent response for arbitrary is equivalent to maintaining consistent response for arbitrary .
C.1.3 Worst-Case Error Bound Analysis
The optimization objective can be reformulated as minimizing the discrepancy between and . Consider the 2D subspace spanned by , and . Let denote the angle between and , and let be the azimuth of relative to their bisector. Using trigonometric identities, the response error can be expanded as:
(19)
In streaming inference, the future query is stochastic and unknown. To ensure system robustness, we consider the worst-case scenario where is orthogonal to the bisector (i.e., ). The error upper bound is then given by:
Minimizing this upper bound (i.e., ) necessitates , which is equivalent to:
Conclusion. Even under linear projection and RoPE rotation , phase consistency (i.e., cosine similarity) in the input space remains a theoretically rigorous condition for guaranteeing attention response consistency, provided that local positional approximation holds and feature magnitudes are balanced. This justifies the use of cosine similarity as a robust compression metric.
C.2 Mechanisms of the Dual Compression Strategy
Addressing different redundancy types in video, we design complementary dual strategies: Drop-without-Repair for temporal redundancy and Merge-with-Repair for spatial redundancy.
C.2.1 Inter-Frame: Implicit Temporal High-Pass Filtering
Let be the historical cache and be the token set of the current frame. We partition into a static set (highly similar to history) and a dynamic set (containing new information).
Mechanistic Interpretation: The Marginal Information Gain of retaining S is near zero because already contains equivalent semantic indices. By directly discarding S without re-weighting, we effectively introduce an Implicit Attention Re-weighting mechanism. Consider the Softmax distribution for query q:
\mathrm{Attn}(\mathbf{q},\mathcal{K}_{\mathrm{all}})=\frac{\sum_{\mathbf{k}\in\mathcal{D}}e^{\mathbf{q}\cdot\mathbf{k}}\mathbf{v}_{\mathbf{k}}+\sum_{\mathbf{k}\in\mathcal{K}_{t-1}}e^{\mathbf{q}\cdot\mathbf{k}}\mathbf{v}_{\mathbf{k}}}{\mathcal{Z}_{\mathrm{dynamic}}+\mathcal{Z}_{\mathrm{history}}+\underbrace{\mathcal{Z}_{\mathrm{static\_{c}urrent}}}_{\mathrm{Removed}} \tag{22}Removing the denominator term effectively amplifies the relative probability mass of (new changes) and (valid history).
Conclusion: This operation functionally acts as a Temporal High-Pass Filter, forcing the model to concentrate its limited attention budget on high-frequency change regions, thereby enhancing sensitivity to dynamic events.
C.2.2 Intra-Frame: Energy Conservation via Logit Bias
Spatial redundancy (e.g., large background areas) represents low-frequency context that must be preserved. Simply merging tokens without correction leads to the Collapse of total attention energy. Assume tokens in set are merged into a single representative . To satisfy Conservation of Attention Mass, we need to introduce a bias :
This leads to the correction term: .
Conclusion: is a mathematically necessary correction term. It ensures that compressed background regions maintain correct semantic weight during attention computation, fundamentally suppressing hallucinations caused by missing background information (i.e., Attention Dilution).
C.3 Adaptive Quantization: A Fixed-Distortion Variable-Rate Perspective
We reconstruct the Token Compression problem as an optimal quantization problem. Unlike existing methods (e.g., StreamMem) that enforce a Fixed-Rate constraint (i.e., retaining a fixed K tokens per frame), we adopt a Fixed-Distortion constraint:
Under this framework, the number of retained tokens naturally becomes an estimator of the frame's intrinsic information entropy: . This allows the algorithm to adaptively allocate the KV budget based on the richness of video content (e.g., static vs. dynamic scenes), conceptually aligning with the objectives of Rate-Distortion Theory rather than claiming strict theoretical optimality.
C.4 Algorithmic Implementation Details
This section details the algorithmic flow of the proposed two-stage compression framework.
Phase 1: Inter-Frame Filtering. Aims to rapidly eliminate repetitive information in the temporal dimension.
• Input: Current frame token features , previous frame features .
• Similarity Metric: Compute cosine similarity at corresponding positions:
• Decision: If , it is deemed redundant and discarded; otherwise, it is retained for the next phase.
Phase 2: Intra-Frame Aggregation. Spatially aggregates surviving tokens via matching and weighted reconstruction.
Step 1: Bipartite Matching Decision. We employ an iterative bipartite matching strategy Bolya et al. (2022) to determine merge sets. Partition current frame tokens into sets A (source) and B (target). Compute the similarity matrix between sets; if and they are mutual best matches, establish a merge edge. This process can be iterated to increase compression rate.
Step 2: Gated Similarity Attention (GSim). To smoothly fuse information and compute the fusion count , we employ a gating mechanism. Let the surviving token set be and the raw token set be .
- Gated Similarity Calculation:
- Normalized Weight Assignment: Use temperature to compute the soft assignment matrix M:
Here, represents the contribution of raw token to survivor token .
- Fusion Count & Feature Reconstruction: Compute the effective fusion number for each survivor (for subsequent Logit Bias):
The final feature is a weighted combination of raw features:
Through these steps, we not only compress feature dimensions but, crucially, preserve the count information of tokens, providing the necessary parameters for Attention Conservation in subsequent attention layers.
D Managing Structural Sensitivity: Rigorous Derivation of Budget Allocation Strategy
This section provides the rigorous mathematical derivation for the proposed Sensitivity-Aware Budget Allocation strategy. We formalize KV Cache compression as a constrained minimization problem of layer-wise attention output error. We first derive a Linear Upper Bound of this error based on matrix perturbation analysis, then prove from a statistical perspective that a Variance-Stabilized Logarithmic Surrogate is required to achieve robust optimization under heavy-tailed LLM activation distributions.
D.1 Problem Formulation
Consider the Multi-Head Attention (MHA) module of the l-th layer. Let be the final output projection of this layer. Its computation is a linear combination of outputs from each attention head:
where is the normalized attention probability matrix, is the value vector, and is the output projection matrix. When performing KV Cache pruning, we introduce a binary mask tensor . The pruned attention matrix undergoes Softmax renormalization, producing the approximate output .
Our optimization goal is to minimize the norm of the cumulative approximation error under the global memory budget :
where denotes the number of non-zero elements.
D.2 Derivation of the Error Upper Bound
Based on the compatibility of matrix norms and fundamental lemmas from AdaKV Feng et al. (2024), we derive the upper bound for single-layer error. Let the error term be . Using Hölder's inequality, the error can be separated into structural parameters and activations:
where is a structural constant related only to model weights.
The key lies in bounding the perturbation of attention weights . Let be the sum of original probabilities of pruned tokens. Considering the renormalization effect of Softmax (i.e., retained weights are scaled by , according to Theorem 1 in Shen et al. (2025), we obtain a strict linear upper bound:
This formula reveals the theoretical optimal greedy strategy: one should prioritize retaining tokens where the product of attention weight p and value vector norm is maximized.
D.3 Robust Logarithmic Surrogate
Although Eq. (33) provides a theoretical optimum, directly using the linear product as a scoring function is numerically unstable. This is attributed to the Distributional Heterogeneity of the MLLM feature space.
Statistical Instability. LLM activations typically follow a significant heavy-tailed distribution. Outlier layers may have magnitudes orders of magnitude higher than the average. If budgets are allocated directly based on the linear upper bound, these outlier layers will trigger a Winner-takes-all effect, hijacking the vast majority of the budget and causing layer collapse in semantically critical but numerically smaller layers. Furthermore, model performance error sensitivity typically exhibits non-linear saturation.
To address this, we transform the optimization objective from minimizing linear error upper bound to maximizing logarithmic utility. Specifically, we introduce a Variance-Stabilizing Transformation as an empirical heuristic. The choice of the logarithmic function ensures diminishing returns for overly dense regions, thereby yielding a robust Pareto frontier. We construct the dynamic surrogate metric as follows:
Magnitude Surrogate: Apply a logarithmic transformation to feature intensity to smooth inter-layer magnitude differences:
This is statistically equivalent to stabilization operations for heteroscedastic data, ensuring budget allocation is robust to outliers.
Complexity Surrogate: The cumulative probability error in Eq. (33) is negatively correlated with attention distribution sparsity. Shannon entropy is a global measure of sparsity.
• Necessity: High-entropy layers (flat distribution) imply information diffusion, where probability loss from pruning decreases slowly, requiring more budget coverage.
• Diminishing Returns: However, attempting to fully fit a long-tail distribution is prohibitively expensive with limited returns.
Using as a complexity penalty factor acknowledges the importance of high-entropy layers while suppressing excessive investment in overly uniform distributions (often corresponding to invalid background noise) via logarithmic function concavity.
In summary, we construct the layer importance score as the coupling of two robust factors:
D.4 Derivation of Structural Sensitivity Prior
Existing KV Cache compression methods (e.g., H2O, SnapKV) primarily focus on local approximation error , implicitly assuming that every layer contributes equally to the final output. However, the deep non-linear structure of Transformers dictates that perturbations at different levels have significantly heterogeneous impacts on the final prediction. Here, we use a first-order Taylor expansion to derive Structural Sensitivity, arguing for its necessity as a static prior.
D.4.1 Decoupling Global Error
Let the model's final loss function be (or output ). The local perturbation introduced by KV Cache pruning at layer is . According to the chain rule of multivariate calculus, the total error can be approximated as the weighted sum of layer-wise perturbations:
Applying the Cauchy-Schwarz Inequality, we obtain the error upper bound:
This inequality reveals the dual dependency of optimal budget allocation: budgets should be allocated not only to layers with large local error (high , corresponding to high Entropy), but also to layers with large impact on global output (high ).
D.4.2 Gradient Surrogate and Structural Invariance Assumption
Online calculation of the Jacobian norm requires full backpropagation, which is unacceptable during inference. Therefore, we introduce an Assumption:
Within a specific task domain, the relative importance of Transformer layers to the output is primarily determined by the model architecture and fluctuates minimally with input samples.
Based on this, we approximate sensitivity as the expected gradient norm on a calibration dataset :
To avoid data leakage, although our algorithm is developed for video, we select the single-image dataset LLaVA-Pretrain Liu et al. (2023) as the calibration set. This offline-computed captures the topological fingerprint of the model. For instance, experiments observe that shallow layers typically exhibit larger gradient norms (large ), implying that minor pruning errors in shallow layers are significantly amplified during deep propagation (Error Avalanche Effect). This provides direct theoretical proof for introducing the static weight in our budget allocation formula: To minimize the global upper bound , budget must be positively correlated with sensitivity .
D.5 Bayesian Interpretation of the Hybrid Strategy
Finally, we interpret the proposed hybrid allocation strategy as a Maximum A Posteriori (MAP) estimation in the log-domain. We view the budget proportion of each layer as posterior importance, determined by three terms:
-
Data Likelihood : The robust error surrogate derived above. It reflects data-driven dynamic evidence: how much incompressible effective information is contained in the layer given the current context.
-
Structural Prior : The offline-computed gradient sensitivity . It encodes the inherent topological preferences of the model architecture, correcting potential biases from relying solely on online statistics.
-
MaxEnt Regularization U: A uniform distribution term. It corresponds to the Maximum Entropy Prior (Uninformative Prior) in the Bayesian framework, acting as a smoothing factor to prevent budget allocation degeneration due to the failure of any single metric, ensuring the lower-bound stability of the strategy.
In this Bayesian formulation, the linear trade-off hyperparameters () effectively correspond to the precision (inverse variance) of the respective log-domain priors. This interpretation allows us to explicitly control the confidence placed on static architecture features versus online dynamic observations.
E Supplementary Experimental Details and Hyperparameter Configurations
E.1 Comparison with Various Compression Methods at Different Ratios
In the evaluation of Qwen2-VL-7B Wang et al. (2024a), we compare our proposed method with a comprehensive set of compression baselines, categorized as follows:
-
Visual Token Compression: e.g., FastV Chen et al. (2024b), which prunes tokens based on attention scores.
-
LLM-Oriented KV Compression: Algorithms originally designed for Large Language Models, including SnapKV Li et al. (2024b) and the standard InfiniPot Kim et al. (2024).
-
MLLM-Specific KV Compression: State-of-the-art methods customized for Multimodal LLMs, specifically InfiniPot-V Kim et al. (2025) and StreamMem Yang et al. (2025).
-
Uniform Sampling: A baseline method that retains KV pairs uniformly.
Following the evaluation protocols of InfiniPot-V Kim et al. (2025) and StreamMem Yang et al. (2025), we report results on the official validation set (dev) of the MLVU benchmark. Given that our method involves layer-wise dynamic budget allocation, to ensure fairness and comparability, we strictly control the global total capacity of the KV Cache to be equivalent to Average Budget per Layer levels of 3,000, 6,000, 12,000, and 24,000.
E.1.1 Experimental Parameter Settings
For the budget allocation strategy, the default weight coefficients are set as . To maximize the synergy of our two-stage compression framework (Token Reduction + KV Pruning), we adaptively adjust the inter-frame () and intra-frame () similarity thresholds based on the specific memory budget. The detailed configurations for various budget levels (3K, 6K, 12K, and 24K) are summarized in Table 6.
Table 6 Hyperparameter settings for different KV budgets. To achieve optimal performance under stricter budgets, we adopt slightly more aggressive filtering thresholds.
| 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 |
E.1.2 Experimental Results
Detailed performance comparisons on the MLVU benchmark are presented in Table 7. As shown, our method consistently outperforms all baselines across all budget levels. Notably, at 12K and 24K budgets, our method achieves accuracies of 68.69% and 69.43%, respectively, surpassing even the Full KV baseline (65.85%). This demonstrates that our structure-aware filtering mechanism effectively removes noise while preserving semantically dense states.
E.2 Detailed Experimental Data and Analysis of Compression Strategy Trade-offs
In this section, we provide detailed experimental settings and numerical data for the compression strategy performance comparison graph (Figure 5), and explain our adopted compression method from an information-theoretic view.
E.2.1 Experimental Setup and Hyperparameters
Experiments were conducted using the Qwen2.5-VL-3B Bai et al. (2025b) model on the VideoMME Fu et al. (2025) long video benchmark. We compared three strategies:
-
KV Cache Compression Only: Prunes the KV cache using only sparsity metrics (Attention Sparsity).
-
Two-Stage Compression (Hybrid Strategy): Reduces input tokens via Inter-Frame Filtering and Intra-Frame Aggregation. We set the inter-frame similarity threshold and the default intra-frame merge threshold . The only exception is under extremely low budgets (KV cache size = 500), where we relax to 0.70 to accommodate strict capacity limits, followed by streaming prefill and KV cache compression if the budget limit is exceeded.
-
Token Compression Only: Uses the same token compression strategy as the Hybrid Strategy. Subsequently, if limits are exceeded, the remaining tokens for each frame are proportionally compressed to fit exactly into a window of the same size as the KV cache using our intra-frame token compression algorithm.
E.2.2 Detailed Performance Data
Table 8 presents specific accuracy data under different KV cache budgets. For comparison, we use InfiniPot-V Kim et al. (2025), StreamMem Yang et al. (2025), and the original full model (Original Model, Acc=50.56%) as baselines.
E.2.3 Results Analysis
Analyzing Table 8 and the trend graph leads to the following key observations:
Saturation Effect of KV Cache Compression: The method relying solely on KV cache compression (Orange line) is robust at low budgets, but performance growth stagnates as the budget increases (> 3000), stabilizing near the level of the original model (Original Model, 50.56%). This indicates that while retaining critical KV pairs via sparsity maintains performance, it struggles to break the context processing bottleneck of the original model.
Performance Gains from Token Compression: In contrast, the Token Compression strategy (Blue line) exhibits superior performance at higher budgets, significantly surpassing the original model (e.g., reaching 52.89% at a budget of 12000). We attribute this to two factors:
• Redundancy Removal and Dynamic Capture: The inter-frame filtering mechanism effectively removes static redundancy, allowing the model to focus on dynamic changes in the video.
• Attention Concentration: Through intra-frame merging and subsequent attention score correction, we shorten the effective context length. This avoids the Attention Dilution problem common in long sequences, enabling the model to capture key cues more sharply, thus achieving accuracy superior to full input in long video understanding tasks.
Ultimately, our Two-Stage Hybrid method (Green line) combines the robustness of KV cache compression with the high information density of token compression, achieving an excellent performance trade-off across the entire budget range.
E.2.4 An Information-Theoretic Perspective
From an information-theoretic perspective, our hybrid framework can be interpreted as an effective Joint Source-Channel Coding scheme:
-
Token Compression (Source Coding): Exploits data autocorrelation (similarity) to perform lossless (or low-distortion) information aggregation via feature reconstruction and logit correction, maximizing the information entropy density of input tokens.
-
KV Cache Compression (Channel Allocation): Exploits attention sparsity to dynamically allocate limited storage channel capacity (KV cache budget) to features with high signal-to-noise ratios (high-sensitivity layers, high-activation tokens). Unlike the explicit fusion in Token Compression, this is a Selective Memory mechanism based on importance evaluation.
The experimental results in Figure 5 corroborate this theory: token compression alone preserves more complete information at high budgets (Blue curve), while KV cache compression alone is more robust at screening key information at low budgets (Orange curve). Our hybrid method (Green curve) combines the advantages of both, achieving a superior performance-memory trade-off across the full budget range.
E.3 Empirical Analysis of Layer-wise Statistics
To provide empirical insights into the proposed hybrid budget allocation strategy, we conducted an in-depth statistical analysis of the layer-wise behavior of Qwen2.5-VL-3B Bai et al. (2025b). This section details the data sources, collection methods, and statistical regularities underlying Figure 4, justifying the necessity of integrating structural priors with dynamic context metrics.
Table 7 Performance comparison on MLVU (Qwen2-VL-7B) across different KV budgets. We report the average accuracy (%). Full KV represents the performance of the original model without compression. Bold indicates the best performance under compression.
| 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 |
| State-of-the-Art MLLM Methods | |||||
| InfiniPot-V Kim et al. (2025) | 64.70 | 65.82 | 65.99 | 65.73 | 65.56 |
| StreamMem Yang et al. (2025) | - | 65.90 | 66.00 | 66.30 | - |
| Video-MemComp (Ours) | 65.48 | 67.10 | 68.69 | 69.43 | 67.53 |
| Full KV (Reference) | 65.85 | 65.85 | |||
E.3.1 Data Collection Protocols
To balance Generalizability and Domain Adaptability, we collected static and dynamic statistics on two independent data distributions:
-
Static Structural Sensitivity (): To capture the inherent topological importance of the model architecture and avoid overfitting to specific video domains, we used the single-image pre-training dataset LLaVA-Pretrain Liu et al. (2023). We randomly sampled 100 examples and computed the expected gradient norm of the attention output with respect to the final loss function, , via backpropagation as the static sensitivity prior.
-
Dynamic Context Metrics ( and ): To reflect actual activation patterns when processing long-form streaming data, we used the long video understanding benchmark VideoMME Fu et al. (2025). During inference, we tracked 10 randomly sampled video streams, recording the real-time attention distribution entropy (Entropy) and the feature magnitude (Feature Norm) of value vectors for each layer.
Table 8 Comparison of Compression Strategy Performance on VideoMME. We report model accuracy (%) under different KV budgets. The baseline performance of the original model (Qwen2.5-VL-3B without compression) is 50.56%.
| 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 |
E.3.2 Static Prior Analysis: Gradient Norm Distribution
Table 10 details the statistical characteristics of gradient norms for each layer. We observe two key phenomena:
-
GradientDecayTrend: Shallow layers (Layers 0-10) exhibit extremely high mean gradients. This confirms the Error Avalanche Effect hypothesis—minor perturbations in shallow layers are amplified layer-by-layer during deep propagation. Therefore, budget allocation must be skewed towards shallow layers.
-
Inter-Sample Variance: Notably, the Relative Standard Deviation (RSD) of shallow layers is generally high (> 30%). This implies that while shallow layers are important overall, the reliance of different samples on specific layers fluctuates significantly. This strongly proves that relying solely on static priors is insufficient; online dynamic metrics must be introduced to adapt to specific sample variations.
Table 9 Distribution of Dynamic Metrics for Qwen2.5-VL-3B during Online Inference. Data is sampled from VideoMME streams. denotes the Shannon entropy of the attention probability distribution, and is the log-norm of the value vectors. Layers 3-28 exhibit extremely low entropy values, constituting the primary compression space.
| Layer | Entropy () | Log Feature Norm | Layer | Entropy () | Log Feature Norm |
|---|---|---|---|---|---|
| 0 | |||||
| 1 | |||||
| 2 | |||||
| 3 | |||||
| 4 | |||||
| 5 | |||||
| 6 | |||||
| 7 | |||||
| 8 | |||||
| 9 | |||||
| 10 | |||||
| 11 | |||||
| 12 | |||||
| 13 | |||||
| 14 | |||||
| 15 | |||||
| 16 | |||||
| 17 |
E.3.3 Dynamic Behavior Analysis: Three-Stage Evolution
Table 9 reveals a distinct three-stage feature distribution during online inference, which aligns well with the intuition behind our hybrid allocation strategy:
-
Feature Extraction Phase (Layers 0-2): This phase exhibits higher entropy and extremely large gradients, corresponding to the initial encoding of local visual features. Our strategy ensures an ample budget here via high gradient priors ().
-
Sparsity Redundancy Zone (Layers 3-30): This is the most striking finding. In the vast middle layers, attention entropy drops sharply to extremely low levels (on the order of ). This indicates that the attention mechanism is highly concentrated on a very small number of tokens, revealing significant
Table 10 Statistical Analysis of Structural Sensitivity () for Qwen2.5-VL-3B Bai et al. (2025b). Data is calculated based on LLaVA-Pretrain Liu et al. (2023). A higher Mean value indicates the layer is more sensitive to pruning errors. RSD (Relative Standard Deviation) reflects the fluctuation of importance across different samples.
| 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 |
| 6 | 1.3461e-04 | 4.2124e-05 | 31.29 | 24 | 9.9707e-05 | 1.8553e-05 | 18.61 |
| 7 | 1.3132e-04 | 4.0984e-05 | 31.21 | 25 | 9.5272e-05 | 1.7394e-05 | 18.26 |
| 8 | 1.2841e-04 | 3.9545e-05 | 30.80 | 26 | 8.8787e-05 | 1.5637e-05 | 17.61 |
| 9 | 1.2703e-04 | 3.8906e-05 | 30.63 | 27 | 8.2707e-05 | 1.4318e-05 | 17.31 |
| 10 | 1.2250e-04 | 3.5122e-05 | 28.67 | 28 | 7.6103e-05 | 1.2959e-05 | 17.03 |
| 11 | 1.1930e-04 | 3.0953e-05 | 25.94 | 29 | 6.8331e-05 | 1.1477e-05 | 16.80 |
| 12 | 1.1377e-04 | 2.8229e-05 | 24.81 | 30 | 5.8675e-05 | 9.3638e-06 | 15.96 |
| 13 | 1.2050e-04 | 2.9743e-05 | 24.68 | 31 | 4.9806e-05 | 7.7510e-06 | 15.56 |
| 14 | 1.1802e-04 | 2.8380e-05 | 24.05 | 32 | 4.1294e-05 | 6.4592e-06 | 15.64 |
| 15 | 1.2393e-04 | 3.0301e-05 | 24.45 | 33 | 3.4630e-05 | 5.5330e-06 | 15.98 |
| 16 | 1.2283e-04 | 2.9177e-05 | 23.75 | 34 | 2.8634e-05 | 4.5449e-06 | 15.87 |
| 17 | 1.2326e-04 | 2.8743e-05 | 23.32 | 35 | 2.4843e-05 | 3.9889e-06 | 16.06 |
sparsity redundancy. Our dynamic entropy metric () effectively identifies this zone and performs aggressive pruning, thereby saving substantial budget.
- Semantic Aggregation Phase (Layers 31-35): In deeper layers, the entropy slightly increases, while the feature norm reaches its peak. However, the gradient sensitivity remains relatively low. Although the feature magnitude is high, the combination of low gradient sensitivity and still relatively low entropy results in a limited budget allocation for these layers.
E.4 Model Adaptation and Hyperparameter Configuration
Given significant differences in video duration distribution, task complexity, and modality dependency across benchmarks, we implemented targeted configuration optimizations for each Model-Benchmark combination. For example, LLaVA-OV employed YaRN Peng et al. length extrapolation for handling extremely long videos, dynamically adjusting compression thresholds based on duration; InternVL adjusted frame sampling strategies according to its input resolution characteristics. Specific hyperparameter configurations are detailed in Table 11.
Table 11 Detailed hyperparameter configurations for different models across benchmarks. and denote the thresholds for inter-frame filtering and intra-frame merging, respectively. The budget allocation weights are denoted by (uniform), (static/structure), and (dynamic/entropy).
| 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 based on Duration | 0.4, 0.575, 0.025 | Duration-Adaptive Thresholds ()YaRN: factor=4.0 (VideoMME), 2.0 (MLVU). | ||
| InternVL-3.5-2B | MLVU | 0.50 | 0.75 | 0.3, 0.6, 0.1 | Input sampled to 64 frames. |
| VideoMME | 0.50 | 0.75 | Input sampled to 100 frames. | ||
| EgoSchema | 0.75 | 0.75 | Input sampled to 100 frames. | ||
Table 12 Evaluation results on OVO-Bench. The table compares offline models and online streaming models separately. Bold indicates the best performance and underline indicates the second best within each group.
| Model | Frames | AVG KV Size | Real-Time Visual Perception | Backward Tracing | Forward Active Responding | Overall Avg. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OCR | ACR | ATR | STU | FPD | OJR | Avg. | EPM | ASI | HLD | Avg. | REC | SSR | CRR | Avg. | ||||
| Methods w/ o Compression | ||||||||||||||||||
| LLaVA-NeXT-7B Zhang et al. (2024b) | 64 | ≈10K | ||||||||||||||||
| LLaVA-OneVision-7B Li et al. (2024a) | 64 | ≈10K | ||||||||||||||||
| Qwen2-VL-7B Wang et al. (2024a) | 64 | ≈10K | ||||||||||||||||
| InternVL-V2-8B Chen et al. (2024c) | 64 | ≈10K | ||||||||||||||||
| Qwen2.5-VL-7B Bai et al. (2025b) | 1fps | ≈50K | ||||||||||||||||
| Methods w/ Compression | ||||||||||||||||||
| TimeChat-Online-7B Yao et al. (2025) | 1fps | ≈ 5K | ||||||||||||||||
| Qwen2.5-VL-7B + Video-MemComp (Ours) | 1fps | 4K | ||||||||||||||||
F Detailed Experimental Setup and Additional Evaluations
F.1 Evaluation Protocols on RVS-Benchmarks
For the streaming video understanding assessment on RVS-Ego and RVS-Movie Di et al. (2025), we adhered to the standard evaluation protocols established in prior works Zhang et al. (2024a); Di et al. (2025); Kim et al. (2025); Yang et al. (2025). Specifically, we employed an LLM-based evaluator to judge the correctness of open-ended answers.
Implementation Note regarding GPT Versions: To maintain comparability with previous baselines, we targeted the standard ‘gpt-3.5-turbo’ endpoint for evaluation. However, due to API provider updates, the response headers during our experiments identified the actual underlying backend model as ‘gpt-4o-mini-2025-07-18’. This detail is reported to ensure strict reproducibility of our results.
F.2 Extended Evaluation on OVO-Bench
To further evaluate the model's temporal reasoning capabilities—specifically Back-tracing, Real-time Visual Perception, and Proactive Future Response—we assessed on OVO-Bench Niu et al. (2025).
We deployed our method on the Qwen2.5-VL-7B architecture. As shown in the table12, our method achieved an overall score of 50.8, which is nearly on par with the full-input baseline Qwen2.5-VL-7B (50.9), while restricting the KV Cache to under 4000 tokens (hyperparameters were tuned for OVO-Bench on Qwen2.5-VL-7B). Of particular note, in the Backward Tracing task, our method achieved an average score of 49.1, surpassing the full baseline model's 47.4. This counter-intuitive result further proves that our memory retention mechanism does not simply discard information, but effectively distills and locks onto key cues from the historical stream, thereby achieving better-than-full-input performance in modeling long-term dependencies.
F.3 Budget Allocation Hyperparameters Ablation Study Details
Table 13 presents the complete results of the hyperparameter ablation study on OVO-Bench. We categorize the 12 sub-tasks into three major groups: Backward Tracing, Real-time Perception, and Forward Active Responding.
F.4 Token Compression Thresholds Ablation Study Details
Table 14 lists detailed performance metrics for all evaluated combinations of inter-frame and intra-frame similarity thresholds.
Table 13 Comprehensive Ablation Study on Budget Allocation Hyperparameters. We report the accuracy (%) for all subtasks on OVO-Bench. The configurations are sorted by the Uniform Prior weight (λu). The extreme cases (pure strategies) are located at the top and bottom. The new global optimal configuration is highlighted in bold with a gray background. Hyperparams Backward Tracing Real-time Perception Forward Active Total λu λs λe 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 0.10 0.80 0.10 48.82 31.72 59.46 46.67 45.51 63.04 61.21 67.33 52.29 73.83 60.53 36.16 37.84 42.92 38.97 48.72 0.10 0.40 0.50 47.81 33.33 64.86 48.67 48.88 59.24 66.38 65.35 51.38 70.47 60.28 36.75 42.09 43.33 40.72 49.89 0.20 0.40 0.40 49.49 32.80 61.49 47.93 49.44 57.07 67.24 64.36 56.88 71.14 61.02 36.67 41.41 43.33 40.47 49.81 0.245 0.625 0.13 47.47 31.72 63.51 47.57 48.31 57.07 65.52 65.35 55.96 71.14 60.56 36.91 41.45 42.08 40.15 49.42 0.275 0.675 0.05 48.82 34.95 60.81 48.19 51.12 59.24 63.79 66.34 55.05 73.83 61.56 36.51 42.46 45.42 41.46 50.41 0.30 0.70 0.00 50.84 33.33 58.11 47.43 47.19 63.59 67.24 70.30 53.21 71.81 62.22 36.98 37.28 42.08 38.78 49.48 0.30 0.675 0.025 48.48 36.56 62.16 49.07 52.81 59.24 62.93 66.34 55.05 71.81 61.36 36.09 42.01 46.25 41.45 50.63 0.30 0.65 0.05 50.17 32.26 61.49 47.97 48.31 60.87 62.07 66.34 54.13 73.15 60.81 36.70 41.55 45.42 41.22 50.00 0.30 0.60 0.10 51.18 31.72 60.14 47.68 45.51 61.41 65.52 69.31 52.29 74.50 61.42 36.51 38.80 40.42 38.58 49.23 0.30 0.40 0.30 49.16 32.26 65.54 48.99 48.31 59.24 62.07 64.36 51.38 72.48 59.64 35.67 40.54 42.50 39.57 49.40 0.30 0.30 0.40 49.16 33.33 62.16 48.22 48.31 58.70 62.07 65.35 55.96 67.79 59.70 36.55 41.74 43.75 40.68 49.53 0.35 0.625 0.025 51.52 35.48 62.16 49.72 51.69 61.96 62.07 67.33 55.05 71.14 61.54 35.96 42.52 45.00 41.16 50.81 0.50 0.50 0.00 51.52 31.72 62.84 48.69 48.31 59.78 61.21 73.27 51.38 73.15 61.18 36.47 36.56 40.42 37.82 49.23 0.50 0.45 0.05 45.12 33.33 59.46 45.97 48.88 56.52 62.93 70.30 51.38 76.51 61.09 41.00 39.25 42.50 40.92 49.32 0.50 0.40 0.10 49.49 34.41 62.16 48.69 51.12 56.52 63.79 66.34 55.05 68.46 60.21 36.27 41.77 44.58 40.88 49.93 0.60 0.10 0.30 49.49 34.95 62.84 49.09 51.12 57.61 63.79 66.34 54.13 70.47 60.58 37.11 41.09 41.67 39.96 49.88 0.60 0.05 0.35 48.48 34.41 62.84 48.58 48.31 55.98 66.38 66.34 54.13 71.81 60.49 35.86 40.95 43.33 40.05 49.71 0.675 0.275 0.05 50.17 34.41 61.49 48.69 50.00 57.61 64.66 67.33 55.05 67.11 60.29 36.56 41.20 43.75 40.50 49.83 0.70 0.30 0.00 50.17 30.11 62.16 47.48 48.31 59.24 62.07 70.30 51.38 71.81 60.52 36.73 37.10 41.67 38.50 48.83 0.70 0.25 0.05 50.17 34.41 60.81 48.46 50.00 57.07 65.52 66.34 55.96 67.57 60.41 36.35 41.16 42.92 40.14 49.67 0.70 0.20 0.10 49.83 34.41 62.84 49.03 50.56 57.07 63.79 66.34 55.05 69.13 60.32 36.56 41.54 45.42 41.17 50.17 1.00 0.00 0.00 48.82 34.95 62.84 48.87 50.00 55.43 62.07 66.34 55.05 69.13 59.67 36.45 41.68 42.50 40.21 49.58 Table 14 Ablation Study of Token Compression Thresholds on OVO-Bench. We report accuracy (%) for Backward, Realtime, and Forward tasks. The best configuration is highlighted in bold and gray background. Thresholds Backward Tracing Real-time Perception Forward Active Total τinter τintra 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 0.50 0.80 48.82 32.80 62.16 47.93 44.94 60.33 62.93 67.33 51.38 65.77 58.78 34.04 43.13 42.50 39.89 48.87 0.50 0.95 48.15 30.65 61.49 46.76 43.82 57.07 62.07 66.34 55.05 69.80 59.02 35.23 41.39 42.50 39.71 48.50 0.60 0.85 48.82 32.26 61.49 47.52 45.51 55.98 64.66 66.34 55.05 71.81 59.89 35.66 41.05 39.58 38.76 48.72 0.70 0.80 49.16 33.87 62.16 48.40 48.88 54.35 68.10 66.34 55.96 68.46 60.35 34.80 41.48 45.42 40.57 49.77 0.70 0.85 48.82 33.33 62.16 48.11 43.82 55.98 63.79 66.34 57.80 67.11 59.14 36.10 41.83 41.25 39.73 48.99 0.75 0.80 49.16 34.95 61.49 48.53 50.00 56.52 62.07 66.34 54.13 69.13 59.70 35.65 42.82 42.92 40.46 49.56 0.80 0.60 46.46 28.49 57.43 44.13 47.19 54.89 62.07 70.30 55.05 62.42 58.65 27.06 38.91 50.83 38.93 47.24 0.80 0.75 48.48 30.65 60.14 46.42 47.75 55.43 63.79 66.34 53.21 67.11 58.94 34.52 40.49 48.75 41.25 48.87 0.80 0.85 48.48 36.56 62.16 49.07 52.81 60.33 62.93 66.34 55.05 72.48 61.66 36.50 42.05 46.25 41.60 50.77 0.90 0.80 47.81 33.87 64.19 48.62 46.63 54.89 59.48 66.34 55.05 71.81 59.03 35.25 42.33 44.17 40.58 49.41 0.95 0.90 48.15 31.72 64.19 48.02 48.31 57.07 62.93 66.34 55.96 68.46 59.84 36.43 38.95 42.50 39.29 49.05 31