PreprintCited by 1Topic ModelingNatural Language Processing TechniquesInformation Retrieval and Search Behavior

Prompt Compression in the Wild: Measuring Latency, Rate Adherence, and Quality for Faster LLM Inference

Open access
Kummer, Cornelius, Jurkschat, Lena, Färber, Michael, Vahdati, Sahar·2026·arXiv

Abstract

With the wide adoption of language models for IR -- and specifically RAG systems -- the latency of the underlying LLM becomes a crucial bottleneck, since the long contexts of retrieved passages lead large prompts and therefore, compute increase. Prompt compression, which reduces the size of input prompts while aiming to preserve performance on downstream tasks, has established itself as a cost-effective and low-latency method for accelerating inference in large language models. However, its usefulness depends on whether the additional preprocessing time during generation is offset by faster decoding. We present the first systematic, large-scale study of this trade-off, with thousands of runs and 30,000 queries across several open-source LLMs and three GPU classes. Our evaluation separates compression overhead from decoding latency while tracking output quality and memory usage. LLMLingua achieves up to 18% end-to-end speed-ups, when prompt length, compression ratio, and hardware capacity are well matched, with response quality remaining statistically unchanged across summarization, code generation, and question answering tasks. Outside this operating window, however, the compression step dominates and cancels out the gains. We also show that effective compression can reduce memory usage enough to offload workloads from data center GPUs to commodity cards, with only a 0.3s increase in latency. Our open-source profiler predicts the latency break-even point for each model-hardware setup, providing practical guidance on when prompt compression delivers real-world benefits.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

DataCite · 10.48550/arxiv.2604.02985

Cites

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • The dominant family of prompt-compression methods is query-aware.

    “The dominant family of prompt-compression methods is query-aware .”

    From Cache-Aware Prompt Compression:A Two-Tier Cost Model for LLM API Caching (2026) · cites this paper as Kummer et al., 2026

    The Introduction (p. 2) calls LLMLingua a prominent family of prompt-compression approaches, while Related Work (p. 3) classifies methods as soft or hard compression. Neither passage says that query-aware methods are dominant; searches for “query-aware” and “query-dependent” did not locate that claim in our copy. (LLM, conf=0.72)

    Experimental — accuracy not yet measured

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Still being checked.

Research works printed but not linked: 24

  1. [1]1. Bai, Y., Lv, X., Zhang, J., Lyu, H., Tang, J., Huang, Z., et al.: LongBench: A bilingual, multitask benchmark for long context understanding. In: Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) (Aug 2024). https://doi.org/10.18653/v1/2024.acl-long.172 · DOI · Paper page
  2. [2]2. Cheng, X., Wang, X., Zhang, X., Ge, T., Chen, S.Q., Wei, F., et al.: xrag: extreme context compression for retrieval-augmented generation with one token. In: Proceedings of the 38th International Conference on Neural Information Processing Systems. NIPS '24 (2025), https://dl.acm.org/doi/10.5555/3737916.3741392 · DOI
  3. [3]3. Chevalier, A., Wettig, A., Ajith, A., Chen, D.: Adapting language models to compress contexts. In: Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (Dec 2023). https://doi.org/10.18653/v1/2023. emnlp-main.232 · DOI
  4. [4]4. Dubey, A., Jauhri, A., Pandey, A., et al.: The llama 3 herd of models (2024), https://arxiv.org/abs/2407.21783 · arXiv
  5. [5]5. Fei, W., Niu, X., Zhou, P., Hou, L., Bai, B., Deng, L., et al.: Extending context window of large language models via semantic compression. In: Findings of the Association for Computational Linguistics: ACL 2024 (Aug 2024). https://doi. org/10.18653/v1/2024.findings-acl.306 · DOI · Paper page
  6. [6]6. Ge, T., Jing, H., Wang, L., Wang, X., Chen, S.Q., Wei, F.: In-context autoencoder for context compression in a large language model. In: The Twelfth International Conference on Learning Representations (2024), https://openreview.net/forum? id=uREj4ZuGJE
  7. [8]8. Jha, S., Erdogan, L.E., Kim, S., Keutzer, K., Gholami, A.: Characterizing prompt compression methods for long context inference. In: Workshop on Efficient Systems for Foundation Models II @ ICML2024 (2024), https://openreview.net/forum? id=vs6CCDuK7l
  8. [9]9. Jiang, A.Q., Sablayrolles, A., Mensch, A., et al.: Mistral 7b (2023), https://arxiv. org/abs/2310.06825
  9. [10]10. Jiang, H., Wu, Q., Lin, C.Y., Yang, Y., Qiu, L.: LLMLingua: Compressing prompts for accelerated inference of large language models. In: Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (Dec 2023). https://doi.org/10.18653/v1/2023.emnlp-main.825 · DOI · Paper page
  10. [11]11. Jiang, H., Wu, Q., Luo, X., Li, D., Lin, C.Y., Yang, Y., et al.: LongLLMLingua: Accelerating and enhancing LLMs in long context scenarios via prompt compression. In: Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) (Aug 2024). https://doi.org/10.18653/v1/ 2024.acl-long.91 · DOI
  11. [12]12. [Jung, H., Kim, K.J.: Discrete prompt compression with reinforcement learning. IEEE Access 12 , 72578-72587 (2024). https://doi.org/10.1109/ACCESS.2024.3403426](https://doi.org/10.1109/ACCESS.2024.3403426) · DOI
  12. [13]13. Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C.H., et al.: Efficient memory management for large language model serving with PagedAttention. In: Proceedings of the 29th Symposium on Operating Systems Principles. SOSP '23 (2023). https://doi.org/10.1145/3600006.3613165 · DOI · Paper page
  13. [14]14. Li, Y., Dong, B., Guerin, F., Lin, C.: Compressing context to enhance inference efficiency of large language models. In: Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (Dec 2023). https://doi.org/ 10.18653/v1/2023.emnlp-main.391 · DOI · Paper page
  14. [15]15. Liu, J., Li, L., Xiang, T., Wang, B., Qian, Y.: TCRA-LLM: Token compression retrieval augmented large language model for inference cost reduction. In: Findings of the Association for Computational Linguistics: EMNLP 2023 (Dec 2023). https: //doi.org/10.18653/v1/2023.findings-emnlp.655 · DOI
  15. [16]16. Liu, Q., Wang, B., Wang, N., Mao, J.: Leveraging passage embeddings for efficient listwise reranking with large language models. In: Proceedings of the ACM on Web Conference 2025. WWW '25 (2025). https://doi.org/10.1145/3696410.3714554 · DOI
  16. [17]17. Nagle, A., Girish, A., Bondaschi, M., Gastpar, M., Makkuva, A.V., Kim, H.: Fundamental limits of prompt compression: a rate-distortion framework for blackbox language models. In: Proceedings of the 38th International Conference on Neural Information Processing Systems. NIPS '24 (2024), https://dl.acm.org/ doi/10.5555/3737916.3740925 · DOI
  17. [18]18. Ning, X., Lin, Z., Zhou, Z., Wang, Z., Yang, H., Wang, Y.: Skeleton-of-Thought: Prompting LLMs for efficient parallel generation. In: The Twelfth International Conference on Learning Representations (2024), https://openreview.net/forum? id=mqVgBbNCm9
  18. [19]19. Pan, Z., Wu, Q., Jiang, H., Xia, M., Luo, X., Zhang, J., et al.: LLMLingua-2: Data distillation for efficient and faithful task-agnostic prompt compression. In: Findings of the Association for Computational Linguistics: ACL 2024 (Aug 2024). https://doi.org/10.18653/v1/2024.findings-acl.57 · DOI · Paper page
  19. [20]20. Wang, C., Yang, Y., Li, R., Sun, D., Cai, R., Zhang, Y., et al.: Adapting LLMs for efficient context processing through soft prompt compression. In: Proceedings of the International Conference on Modeling, Natural Language Processing and Machine Learning. CMNM '24 (2024). https://doi.org/10.1145/3677779.3677794 · DOI
  20. [21]21. Wang, Z., Araki, J., Jiang, Z., Parvez, M.R., Neubig, G.: Learning to filter context for retrieval-augmented generation (2023), https://arxiv.org/abs/2311.08377 · arXiv
  21. [22]22. Wolf, T., Debut, L., Sanh, V., Chaumond, J., Delangue, C., Moi, A., et al.: Transformers: State-of-the-art natural language processing. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations (Oct 2020). https://doi.org/10.18653/v1/2020.emnlp-demos.6 · DOI · Paper page
  22. [23]23. Xu, F., Shi, W., Choi, E.: RECOMP: Improving retrieval-augmented LMs with context compression and selective augmentation. In: The Twelfth International Conference on Learning Representations (2024), https://openreview.net/forum? id=mlJLVigNHp
  23. [24]24. Zhou, Z., Ning, X., Hong, K., Fu, T., Xu, J., Li, S., et al.: A survey on efficient inference for large language models (2024), https://arxiv.org/abs/2404.14294 · arXiv
  24. [25]25. Zhu, Y., Yuan, H., Wang, S., Liu, J., Liu, W., Deng, C., et al.: Large language models for information retrieval: A survey. ACM Trans. Inf. Syst. 44 (1) (Nov 2025). https://doi.org/10.1145/3748304 · DOI · Paper page

Authors
Kummer, C., Jurkschat, L., Färber, M., & Vahdati, S.
Venue
arXiv
Publisher
arXiv
Published
2026
ISSN
2331-8422 (ISSN-L)
OpenAlex
W7150984881
Cited by
0
References
0
Type
posted content
Language
en
Open access
Locations
arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
  • Physical Sciences › Computer Science › Information Systems › Information Retrieval and Search Behavior
Keywords
prompt compression, large language model inference, inference latency, response quality, memory usage, GPU offloading, retrieval-augmented generation, open-source LLMs, summarization, code generation, question answering

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review