arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.19272cs.CL
收藏

感知压缩器:长上下文场景下的免训练提示压缩框架

Perception Compressor: A Training-Free Prompt Compression Framework in Long Context Scenarios

Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Pengcheng Laboratory(鹏城实验室);Ant Group(蚂蚁集团);School of Artificial Intelligence, Sun Yat-sen University(中山大学人工智能学院)

Jiwei Tang, Jin Xu, Tingwei Lu, Zhicheng Zhang, Yiming Zhao, Lin Hai, Hai-Tao Zheng

AI总结:

本文提出免训练提示压缩框架Perception Compressor,通过感知检索、双斜率比率分配和半引导迭代压缩,在多个长上下文基准上以显著优势超越现有方法,实现最优性能。

摘要:

大语言模型(LLMs)在各种场景中展现出卓越的能力。然而,在长上下文场景中,它们受到大量冗余信息的困扰,并且对关键信息的位置较为敏感。为解决这些挑战,我们提出了Perception Compressor,一个免训练的提示压缩框架。该框架包含一个感知检索器,利用引导性问题和指令来检索最相关的示例;一个双斜率比率分配器,用于动态分配压缩比率和开卷比率;以及一种半引导式迭代压缩方法,在token级别保留关键信息,同时移除会分散LLM注意力的token。我们在长上下文基准上进行了广泛实验,包括NaturalQuestions、LongBench和MuSiQue。实验结果表明,Perception Compressor大幅优于现有方法,达到了最先进的性能。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑