UNComp: Can Matrix Entropy Uncover Sparsity? -- A Compressor Design from an Uncertainty-Aware Perspective
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Deploying large language models (LLMs) for long-context inference remains challenging due to their substantial memory and computational demands. While techniques such as Key-Value (KV) cache compression are designed to reduce memory usage, they often neglect the structured sparsity inherent in the relationship between hidden states and their corresponding KV cache. In this work, we explore the role of uncertainty as a potential indicator of sparsity within LLMs. We propose UNComp, an uncertainty-aware framework that leverages truncated matrix entropy to identify areas of low information content, thereby revealing sparsity patterns that can be used for adaptive compression. Unlike traditional methods that apply uniform compression, UNComp dynamically adjusts its approach to compression, guided by uncertainty measures that reflect the importance of various model components. Our analysis shows that sparsity patterns, when derived from uncertainty estimates, can be exploited to reveal special long-range dependencies, such as retrieval heads and retrieval layers. This perspective not only enhances our understanding of how compression can be optimized but also provides new insights into the inherent sparsity of LLMs during long-context inference. By focusing on uncertainty to analyze the sparsity pattern in detail, UNComp reduces the KV cache size to 4.74% of the original, achieves a 6% prefill speedup, and improves throughput by 6.4x - not only delivering strong lossless compression performance, but also validating the effectiveness of the underlying theoretical tool. We release the code at https://github.com/menik1126/UNComp.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 42 of its 78 references that are in the map. First posted on arXiv 4 Oct 2024.
Builds on
42 of 78 references.
Closest ancestors · 9
Same direction, newest first
- 2024Model Tells You Where to Merge: Adaptive KV Cache Merging for LLMs on Long-Context Tasks11 Jul
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
- 2024Effectively Compress KV Heads for LLM11 Jun
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attention21 May
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2024CHAI: Clustered Head Attention for Efficient LLM Inference12 Mar
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May
Other references · 33
- 2017Attention Is All You Needcited by 59,932
- 2023GPT-4 Technical Reportcited by 18,132
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
21 more
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 253
- 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
- 2024SVD-LLM: Truncation-aware Singular Value Decomposition for Large Language Model Compressioncited by 231
- 2023Language Modeling Is Compressioncited by 225
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
- 2022Language model compression with weighted low-rank factorizationcited by 192
- 2023The Truth is in There: Improving Reasoning in Language Models with Layer-Selective Rank Reductioncited by 120
- 2024Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabulariescited by 113
- 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 89
- 2024KV Cache is 1 Bit Per Channel: Efficient Large Language Model Inference with Coupled Quantizationcited by 74
- 2024Post-Training Sparse Attention with Double Sparsitycited by 45
- 2023Towards a Unified Theoretical Understanding of Non-contrastive Learning via Rank Differential Mechanismcited by 32
- 2023TRIGO: Benchmarking Formal Mathematical Proof Reduction for Generative Language Modelscited by 24
- 2023DiME: Maximizing Mutual Information by a Difference of Matrix-Based Entropiescited by 20
Built on by
Citing papers per year: 2025: 6; 2026: 8.
14 papers.
Sort:
By area:
- 2025SRPO: Enhancing Multimodal LLM Reasoning via Reflection-Aware Reinforcement Learningcited by 53
- 2025MEDA: Dynamic KV Cache Allocation for Efficient Multimodal Long-Context Inferencecited by 31
- 2025ParallelComp: Parallel Long-Context Compressor for Length Extrapolationcited by 13
- 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Servingcited by 9
- 2026Beyond Outliers: A Data-Free Layer-wise Mixed-Precision Quantization Approach Driven by Numerical and Structural Dual-Sensitivitycited by 5
- 2025Rethinking the Outlier Distribution in Large Language Models: An In-depth Studycited by 4
- 2025Enhancing Test-Time Scaling of Large Language Models with Hierarchical Retrieval-Augmented MCTScited by 4
- 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMscited by 3
- 2026RetentiveKV: State-Space Memory for Uncertainty-Aware Multimodal KV Cache Evictioncited by 3
- 2026CONF-KV: Confidence-Aware KV Cache Eviction with Mixed-Precision Storage for Long-Horizon LLMcited by 2
- 2026BPDQ: Bit-Plane Decomposition Quantization on a Variable Grid for Large Language Modelscited by 1
- 2026Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inferencecited by 0
- 2026From Rigid to Dynamic: Entropy-Guided Adaptive Inference for Long-Context LLMs8 Jun 2026
- 2026CONF-KV: Confidence-Aware KV Cache Eviction with Mixed-Precision Storage for Long-Horizon LLM24 May 2026
- 2026RetentiveKV: State-Space Memory for Uncertainty-Aware Multimodal KV Cache Eviction14 Apr 2026
- 2026From Inheritance to Saturation: Disentangling the Evolution of Visual Redundancy for Architecture-Aware MLLM Inference Acceleration8 Apr 2026
- 2026Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inference8 Apr 2026
- 2026Beyond Outliers: A Data-Free Layer-wise Mixed-Precision Quantization Approach Driven by Numerical and Structural Dual-Sensitivity18 Mar 2026
- 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMs3 Mar 2026
- 2026BPDQ: Bit-Plane Decomposition Quantization on a Variable Grid for Large Language Models4 Feb 2026
- 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Serving16 Dec 2025
- 2025Enhancing Test-Time Scaling of Large Language Models with Hierarchical Retrieval-Augmented MCTS8 Jul 2025
- 2025SRPO: Enhancing Multimodal LLM Reasoning via Reflection-Aware Reinforcement Learning2 Jun 2025
- 2025Rethinking the Outlier Distribution in Large Language Models: An In-depth Study27 May 2025
- 2025ParallelComp: Parallel Long-Context Compressor for Length Extrapolationcited by 13
- 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Servingcited by 9
- 2026CONF-KV: Confidence-Aware KV Cache Eviction with Mixed-Precision Storage for Long-Horizon LLMcited by 2
- 2026From Rigid to Dynamic: Entropy-Guided Adaptive Inference for Long-Context LLMscited by 0
- 2026From Rigid to Dynamic: Entropy-Guided Adaptive Inference for Long-Context LLMs8 Jun 2026
- 2026CONF-KV: Confidence-Aware KV Cache Eviction with Mixed-Precision Storage for Long-Horizon LLM24 May 2026
- 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Serving16 Dec 2025
- 2025ParallelComp: Parallel Long-Context Compressor for Length Extrapolation20 Feb 2025
- 2025SRPO: Enhancing Multimodal LLM Reasoning via Reflection-Aware Reinforcement Learningcited by 53
- 2025Rethinking the Outlier Distribution in Large Language Models: An In-depth Studycited by 4
- 2025Enhancing Test-Time Scaling of Large Language Models with Hierarchical Retrieval-Augmented MCTScited by 4
- 2025Enhancing Test-Time Scaling of Large Language Models with Hierarchical Retrieval-Augmented MCTS8 Jul 2025
- 2025SRPO: Enhancing Multimodal LLM Reasoning via Reflection-Aware Reinforcement Learning2 Jun 2025
- 2025Rethinking the Outlier Distribution in Large Language Models: An In-depth Study27 May 2025
- 2025MEDA: Dynamic KV Cache Allocation for Efficient Multimodal Long-Context Inferencecited by 31
- 2026RetentiveKV: State-Space Memory for Uncertainty-Aware Multimodal KV Cache Evictioncited by 3
- 2026From Inheritance to Saturation: Disentangling the Evolution of Visual Redundancy for Architecture-Aware MLLM Inference Accelerationcited by 0
- 2026RetentiveKV: State-Space Memory for Uncertainty-Aware Multimodal KV Cache Eviction14 Apr 2026
- 2026From Inheritance to Saturation: Disentangling the Evolution of Visual Redundancy for Architecture-Aware MLLM Inference Acceleration8 Apr 2026
- 2025MEDA: Dynamic KV Cache Allocation for Efficient Multimodal Long-Context Inference24 Feb 2025
- 2026Beyond Outliers: A Data-Free Layer-wise Mixed-Precision Quantization Approach Driven by Numerical and Structural Dual-Sensitivitycited by 5
- 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMscited by 3
- 2026BPDQ: Bit-Plane Decomposition Quantization on a Variable Grid for Large Language Modelscited by 1
- 2026Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inferencecited by 0
- 2026Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inference8 Apr 2026
- 2026Beyond Outliers: A Data-Free Layer-wise Mixed-Precision Quantization Approach Driven by Numerical and Structural Dual-Sensitivity18 Mar 2026
- 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMs3 Mar 2026
- 2026BPDQ: Bit-Plane Decomposition Quantization on a Variable Grid for Large Language Models4 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026Data Distribution Matters: A Data-Centric Perspective on Context Compression for Large Language Model
- 2024ZigZagkv: Dynamic KV Cache Compression for Long-context Modeling based on Layer Uncertainty
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression
- 2026PuzzleKV: Page-Wise Low-Rank Decomposition for KV Cache Compression
- 2025Beyond Hard and Soft: Hybrid Context Compression for Balancing Local and Global Information Retention
- 2025Information Capacity: Evaluating the Efficiency of Large Language Models via Text Compression
- 2023Compressing LLMs: The Truth is Rarely Pure and Never Simple
- 2026Compressed-Sensing-Guided, Inference-Aware Structured Reduction for Large Language Models