DAST: Context-Aware Compression in LLMs via Dynamic Allocation of Soft Tokens
Shaoshen Chen, Yangning Li, Zishan Xu, Yongqin Zeng, Shunlong Wu, Xinshuo Hu, Zifei Shan, Xin Su
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.
BibTeX
@inproceedings{chen-etal-2025-dast,
title = "{DAST}: Context-Aware Compression in {LLM}s via Dynamic Allocation of Soft Tokens",
author = "Chen, Shaoshen and
Li, Yangning and
Xu, Zishan and
Zeng, Yongqin and
Wu, Shunlong and
Hu, Xinshuo and
Shan, Zifei and
Su, Xin and
Tang, Jiwei and
Li, Yinghui and
Zheng, Hai-Tao",
editor = "Che, Wanxiang and
Nabende, Joyce and
Shutova, Ekaterina and
Pilehvar, Mohammad Taher",
booktitle = "Findings of the Association for Computational Linguistics: ACL 2025",
month = jul,
year = "2025",
address = "Vienna, Austria",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.findings-acl.1055/",
doi = "10.18653/v1/2025.findings-acl.1055",
pages = "20544--20552",
ISBN = "979-8-89176-256-5"
}