arXiv:2503.19114cs.CLcs.IR2025-03EMNLP被引 13

提出评估提示压缩的框架,发现关键信息易丢失并改进软提示方法。

Understanding and Improving Information Preservation in Prompt Compression for LLMs

  • 构建三维度评估框架:任务性能、上下文对齐度、信息保留率。
  • 改进软提示后,性能提升23%,实体保留量提高2.7倍。
  • 适合关注长文本推理与提示优化的研究者。

大型语言模型在各类任务中表现优异,但在信息密集型任务中,提示长度快速增长导致计算开销上升、性能下降及冗余信息引入偏差。近期多种提示压缩技术被提出以平衡输入长度与性能。本文提出一个综合评估框架,深入分析压缩方法的三个关键维度:下游任务表现、输入上下文对齐度、信息保留能力。基于该框架,我们评估了先进的软压缩与硬压缩方法,发现部分方法会丢失原始提示中的关键细节,影响复杂任务表现。通过识别这些局限性,我们改进了一种软提示方法,通过控制压缩粒度,在下游任务中实现最高+23%性能提升,接地性提升+8 BERTScore点,且压缩后保留的实体数量达2.7倍。最终发现,软提示结合序列级训练能实现最佳的效果/压缩率权衡。代码已开源。

原文摘要 · Abstract (English)

Recent advancements in large language models (LLMs) have enabled their successful application to a broad range of tasks. However, in information-intensive tasks, the prompt length can grow fast, leading to increased computational requirements, performance degradation, and induced biases from irrelevant or redundant information. Recently, various prompt compression techniques have been introduced to optimize the trade-off between reducing input length and retaining performance. We propose a holistic evaluation framework that allows for in-depth analysis of prompt compression methods. We focus on three key aspects, besides compression ratio: (i) downstream task performance, (ii) grounding in the input context, and (iii) information preservation. Using our framework, we analyze state-of-the-art soft and hard compression methods and show that some fail to preserve key details from the original prompt, limiting performance on complex tasks. By identifying these limitations, we are able to improve one soft prompting method by controlling compression granularity, achieving up to +23% in downstream performance, +8 BERTScore points in grounding, and 2.7x more entities preserved in compression. Ultimately, we find that the best effectiveness/compression rate trade-off is achieved with soft prompting combined with sequence-level training.The code is available at https://github.com/amazon-science/information-preservation-in-prompt-compression.

提示压缩信息保留大模型优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。