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

Research output: Contribution to book/Conference proceedings/Anthology/ReportConference contributionContributedpeer-review

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.3 s 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.

Details

Original languageEnglish
Title of host publicationAdvances in Information Retrieval
EditorsRicardo Campos, Adam Jatowt, Yanyan Lan, Mohammad Aliannejadi, Christine Bauer, Sean MacAvaney, Avishek Anand, Zhaochun Ren, Suzan Verberne, Nan Bai, Masoud Mansoury
PublisherSpringer Science and Business Media B.V.
Pages257-271
Number of pages15
ISBN (electronic)978-3-032-21289-4
ISBN (print)978-3-032-21288-7
Publication statusPublished - Mar 2026
Peer-reviewedYes

Publication series

SeriesLecture Notes in Computer Science
Volume16483 LNCS
ISSN0302-9743

Conference

Title48th European Conference on Information Retrieval
Abbreviated titleECIR 2026
Conference number48
Duration29 March - 2 April 2026
Website
LocationLijm & Cultuur
CityDelft
CountryNetherlands

External IDs

ORCID /0000-0001-5458-8645/work/215836104

Keywords

Keywords

  • inference, latency analysis, LLMs, open source models, performance evaluation, prompt compression