DAST: Context-Aware Compression in LLMs via Dynamic Allocation of Soft Tokens

Shaoshen Chen, Yangning Li, Zishan Xu, Yinghui Li, Xin Su +2 more
2/17/2025
cs.CL

No confident code implementation found for this paper.

Abstract

Large Language Models (LLMs) face computational inefficiencies and redundant processing when handling long context inputs, prompting a focus on compression techniques. While existing semantic vector-based compression methods achieve promising performance, these methods fail to account for the intrinsic information density variations between context chunks, instead allocating soft tokens uniformly across context chunks.

Show full abstract

This uniform distribution inevitably diminishes allocation to information-critical regions. To address this, we propose Dynamic Allocation of Soft Tokens (DAST), a simple yet effective method that leverages the LLM's intrinsic understanding of contextual relevance to guide compression. DAST combines perplexity-based local information with attention-driven global information to dynamically allocate soft tokens to the informative-rich chunks, enabling effective, context-aware compression. Experimental results across multiple benchmarks demonstrate that DAST surpasses state-of-the-art methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2025dast,
  title  = {DAST: Context-Aware Compression in LLMs via Dynamic Allocation of Soft Tokens},
  author = {Shaoshen Chen and Yangning Li and Zishan Xu and Yinghui Li and Xin Su and Zifei Shan and Hai-tao Zheng},
  year   = {2025},
  eprint = {2502.11493},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.11493v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.11493.svg)](https://codeofpaper.com/paper/2502.11493)

Discussion