Manuscript Offprint

arXiv:2610.32784

Video-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

Yonghui Niu1^{1}, Yuhao Ji1^{1}, Chang Nie1^{1}, Jiao Zhang2^{2}, Yilong Li2^{2}, Junlan Feng2,†^{2,\dagger}, Ran He3^{3}, Caifeng Shan1^{1}, Chaoyou Fu1,†^{1,\dagger}

1^{1}NJU, 2^{2}Jiutian AI, 3^{3}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 (O(T))(O(T)), 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

Figure 1 Our architecture. While standard Video-LLM models suffer from linear O(T)O(T) memory growth, Video-MemComp maintains strictly O(1)O(1) 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 El\mathcal{E}_l and layer-wise structural sensitivity Sl\mathcal{S}_l. To minimize El\mathcal{E}_l, we adopt Attention-Preserved Pre-RoPE Aggregation and Intra-layer Sparsity-based KV pruning. Meanwhile, Sl\mathcal{S}_l 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 O\mathcal{O} denote the final model output and A(l)A^{(l)} represent the attention output of the ll-th layer, this approach enables us to decompose the global output error ∥ΔO∥\|\Delta\mathcal{O}\| down to the layer level, revealing two orthogonal components: Layer-wise Structural Sensitivity SlS_l and Local Approximation Error El\mathcal{E}_l:

∥ΔO∥≤∑l=0L−1∥∂O∂A(l)∥⏟Sl⋅∥ΔA(l)∥⏟El,(1)\|\Delta\mathcal{O}\|\leq\sum_{l=0}^{L-1}\underbrace{\|\frac{\partial\mathcal{O}}{\partial A^{(l)}}\|}_{\mathcal{S}_{l}}\cdot\underbrace{\|\Delta A^{(l)}\|}_{\mathcal{E}_{l}}, \tag{1}

where El\mathcal{E}_l measures the information loss from compressing layer ll, and Sl\mathcal{S}_l quantifies the gradient-based amplification factor of that layer. This analytical framework dictates our core design principle: we must minimize the local approximation error El\mathcal{E}_l under the premise of explicitly managing the layer-wise structural sensitivity Sl\mathcal{S}_l.

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 O(1)O(1) 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

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 El\mathcal{E}_{l}, 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 Sl\mathcal{S}_{l}, we recognize that simply knowing Sl\mathcal{S}_{l} 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 SlS_l and local approximation error ElE_l 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 O(1)O(1)-memory strategy performs competitively with or surpasses both full-cache baselines and state-of-the-art compression methods across multiple MLLM architectures and benchmarks.

References (62)