mlsanityData to 7 Oct 2026

Density-aware Soft Context Compression with Semi-Dynamic Compression Ratio

arXiv 2603.25926 ↗First posted 26 Mar 2026cs.CLcited by 0

On the map: Efficient LLM inference and serving → Prompt and context compression

Abstract (arXiv)

Soft context compression reduces the computational workload of processing long contexts in LLMs by encoding long context into a smaller number of latent tokens. However, existing frameworks apply uniform compression ratios, failing to account for the extreme variance in natural language information density. While adopting a density-aware dynamic compression ratio seems intuitive, empirical investigations reveal that models struggle intrinsically with operations parameterized by input dependent, continuous structural hyperparameters. To resolve this pitfall, we introduce Semi-Dynamic Context Compression framework. Our approach features a Discrete Ratio Selector, which predicts a compression target based on intrinsic information density and quantizes it to a predefined set of discrete compression ratios. It is efficiently jointly trained with the compressor on synthetic data, with the summary lengths as a proxy to create labels for compression ratio prediction. Extensive evaluations confirm that our density-aware framework, utilizing mean pooling as the backbone, consistently outperforms static baselines, establishing a robust Pareto frontier for context compression techniques. Our code, data and model weights are available at https://github.com/yuyijiong/semi-dynamic-context-compress

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Prompt and context compression, one of 12 directions in Efficient LLM inference and serving. Builds on 14 of its 20 references that are in the map. First posted on arXiv 26 Mar 2026.

Builds on

14 of 20 references.

Closest ancestors · 6

Same direction, newest first

  1. 2026ArcAligner: Adaptive Recursive Aligner for Compressed Context Embeddings in RAG8 Jan
  2. 2025No Mean Feat: Simple, Strong Baselines for Context Compression23 Oct
  3. 2024500xCompressor: Generalized Prompt Compression for Large Language Models6 Aug
  4. 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Token22 May
  5. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression19 Mar
  6. 2023In-context Autoencoder for Context Compression in a Large Language Model13 Jul

Other references · 8

  1. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  2. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  3. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
  4. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
  5. 2020Beat the AI: Investigating Adversarial Human Annotation for Reading Comprehensioncited by 131
  6. 2025Ultra-FineWeb: Efficient Data Filtering and Verification for High-Quality LLM Training Datacited by 35
  7. 2025Context Cascade Compression: Exploring the Upper Limits of Text Compressioncited by 17
  8. 2025Dynamic Large Concept Models: Latent Reasoning in an Adaptive Semantic Spacecited by 14

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Data Distribution Matters: A Data-Centric Perspective on Context Compression for Large Language Model
  2. 2025Beyond Hard and Soft: Hybrid Context Compression for Balancing Local and Global Information Retention
  3. 2026FlexComp: One Model for Every Ratio in Context Compression
  4. 2025CompLLM: Compression for Long Context Q&A
  5. 2026COMI: Coarse-to-fine Context Compression via Marginal Information Gain
  6. 2026Beyond Position Bias: Shifting Context Compression from Position-Driven to Semantic-Driven
  7. 2026From Similarity to Structure: Training-free LLM Context Compression with Hybrid Graph Priors
  8. 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression