DAST: Context-Aware Compression in LLMs via Dynamic Allocation of Soft Tokens
Shaoshen Chen, Yangning Li, Zishan Xu, Yinghui Li, Xin Su, Zifei Shan, Hai-tao Zheng
TL;DR
DAST addresses the inefficiency of long-context processing by dynamically allocating soft tokens to context chunks using the LLM’s own relevance signals. By combining perplexity-based local information with attention-based global information, it adaptively concentrates compression capacity on information-dense regions without external guidance. Empirical results on LongBench and NaturalQuestions show that DAST outperforms state-of-the-art static and vector-based compression methods, especially in preserving critical content and improving downstream task performance. The approach has practical impact for enabling efficient, scalable long-context reasoning in LLMs, with robust performance across varying compression levels. $\alpha$-sensitivity is stable, and the method remains applicable without heavy parameter tuning.$
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. 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.
