Understanding and Improving Information Preservation in Prompt Compression for LLMs

Weronika Łajewska, Momchil Hardalov, Laura Aina, Neha Anna John, Hang Su +1 more
3/24/2025
cs.CLcs.IRcs.LG

Official code: amazon-science/information-preservation-in-prompt-compression (3 stars, last commit 2026-04-18).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Understanding and Improving the Information Preservation in Prompt Compression for LLMs

32Shell, PythonMay 16, 20256 months agoNOASSERTION

Similar Papers

Cite this paper

@article{ajewska2025understanding,
  title  = {Understanding and Improving Information Preservation in Prompt Compression for LLMs},
  author = {Weronika Łajewska and Momchil Hardalov and Laura Aina and Neha Anna John and Hang Su and Lluís Màrquez},
  year   = {2025},
  eprint = {2503.19114},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.19114v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.19114.svg)](https://codeofpaper.com/paper/2503.19114)

Discussion