Perception Compressor: A Training-Free Prompt Compression Framework in Long Context Scenarios
Jiwei Tang, Jin Xu, Tingwei Lu, Zhicheng Zhang, Yiming Zhao, Lin Hai, Hai-Tao Zheng
TL;DR
The paper tackles the challenges of using LLMs in long-context scenarios, where prompts contain substantial redundancy and key information may be positioned unfavorably. It introduces Perception Compressor, a training-free framework comprising a perception retriever, a dual-slope ratio allocator, and semi-guided iterative compression, which together select, reorder, and compress demonstrations while preserving key tokens. The method achieves state-of-the-art performance on NaturalQuestions, LongBench, and MuSiQue under varying compression budgets, and ablation studies confirm the necessity of each component. This approach offers a practical, scalable solution for efficient long-context prompting with meaningful gains in robustness and accuracy.
Abstract
Large language models (LLMs) demonstrate exceptional capabilities in various scenarios. However, they suffer from much redundant information and are sensitive to the position of key information in long context scenarios. To address these challenges, we present Perception Compressor, a training-free prompt compression framework. It includes a perception retriever that leverages guiding questions and instruction to retrieve the most relevant demonstrations, a dual-slope ratio allocator to dynamically allocate compression ratios and open-book ratios, and a semi-guided iterative compression that retains key information at the token level while removing tokens that distract the LLM. We conduct extensive experiments on long context benchmarks, i.e., NaturalQuestions, LongBench, and MuSiQue. Experiment results show that Perception Compressor outperforms existing methods by a large margin, achieving state-of-the-art performance.
