Reproduce “Density-aware Soft Context Compression with Semi-Dynamic Compression Ratio” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yijiong Yu, Shuai Yuan, Jie Zheng, Huazheng Wang, Ji Pei

Researchers from Oregon State University and DeepSolution introduce a semi-dynamic context compression framework that adapts to varying text information densities by mapping continuous ratio predictions to discrete structural operations. This approach consistently achieves higher classification accuracy than static fixed-ratio methods at equivalent average compression rates, demonstrating improved efficiency and adaptability for large language models.

Key insights

  • LLMs exhibit significant accuracy degradation when forced to optimize operations over continuously varying structural hyperparameters, but can robustly learn a small, discrete set of such operations.
  • Mean-pooling for feature extraction consistently outperforms token-based methods (e.g., compression tokens) for soft context compression, especially without extensive pre-training.
  • A continuous user-defined 'scale' parameter can effectively modulate global compression aggressiveness at inference time by acting as an additive bias to the predicted compression ratio.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.