AI summary · arXiv: 2310.06839v1 · cs.CL

LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression

Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, Chin-Yew Lin, Yuqing Yang, Lili Qiu
Original paper · DOI 10.18653/v1/2024.acl-long.91 Submitted to arXiv on 10 Oct. 2023 Published in Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) (2024) License: NONEXCLUSIVE-DISTRIB 1.0

How to read this summary? Illustrated guide

The essentials

  • LongLLMLingua is a proposed solution for addressing challenges faced by large language models (LLMs) in long context scenarios.
  • Challenges include higher computational/financial cost, longer latency, and inferior performance.
  • LongLLMLingua aims to improve LLMs' perception of key information through prompt compression.
  • Evaluation of LongLLMLingua covers various long context scenarios such as single-/multi-document QA, few-shot learning, summarization, synthetic tasks, and code completion.
  • Experimental results show that LongLLMLingua's compressed prompts achieve higher performance with reduced cost.
  • On the NaturalQuestions benchmark, LongLLMLingua achieves a performance boost of up to 17.1% compared to the original prompt while using approximately 4 times fewer tokens as input to GPT-3.5-Turbo.
  • LongLLMLingua offers significant cost savings in benchmarks like LongBench and ZeroScrolls amounting to $28.5 and $27.4 per 1,000 samples respectively.
  • When compressing prompts with a compression rate of 2x-10x (~10k tokens), LongLLMLingua speeds up the end-to-end latency by 1.4x-3.8x.
  • Authors of this work are Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, Chin-Yew Lin Yuqing Yang and Lili Qiu who published their paper titled "LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression" providing further details on this approach for improving LLMs in long context scenarios.

Key points written by AI: they may contain errors, check them against the paper.

AI-generated keywords: LongLLMLingua LLMs Prompt Compression Performance Boost Cost Savings

Read further

  • Comprehensive Summary
  • Layman's Summary
  • Blog article
  • Original abstract
LongLLMLingua is a proposed solution to address the challenges faced by large language models (LLMs) in long context scenarios. These challenges include higher computational/financial cost, longer latency, and inferior performance. The performance of LLMs is influenced by the density and position of key information in the input prompt. LongLLMLingua aims to improve LLMs' perception of key information through prompt compression. The evaluation of LongLLMLingua covers various long context scenarios such as single-/multi-document QA, few-shot learning, summarization, synthetic tasks, and code completion. Experimental results demonstrate that LongLLMLingua's compressed prompts achieve higher performance with reduced cost. For instance, on the NaturalQuestions benchmark, LongLLMLingua achieves a performance boost of up to 17.1% compared to the original prompt while using approximately 4 times fewer tokens as input to GPT-3.5-Turbo. Furthermore, LongLLMLingua offers significant cost savings in benchmarks like LongBench and ZeroScrolls amounting to $28.5 and $27.4 per 1,000 samples respectively. Additionally, when compressing prompts with a compression rate of 2x-10x (~10k tokens), LongLLMLingua speeds up the end-to-end latency by 1.4x-3.8x. The authors of this work are Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, Chin-Yew Lin Yuqing Yang and Lili Qiu who published their paper titled "LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression" providing further details on this approach for improving LLMs in long context scenarios.

Was this synthesis useful?

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Tools for this paper

Explain it differently 1 free rewrite left today
Save to a collection Group papers in collections to compare them, chat with them and export them. Continue with Google Create a free account Log in

Advanced tools Premium

For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium

Zotero Zotero guide
Citation alerts More than 300 papers already cite it: be emailed each new one. Citation alerts guide
Who works on it?

Among the 31 papers around this one, the name that comes back most: Jiwei Tang (3 papers)

7 more people sign several of them. The full map adds their institutions and approaches, from the papers of the last years.

Continue with Google Create a free account: your first map is free
Weekly letter The latest letter of its field, "Artificial intelligence this week" of 30 November 2026: Artificial intelligence this week: What the tests leave out · Receive one by email for free

Papers around this one

See them on a map

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Cited by this paper Used in depth by this paper A method it uses
    LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models
    Huiqiang Jiang, Qianhui Wu, Chin-Yew Lin et al. · 2023 · Conference on Empirical Methods in Natural Language Processing · cited 419 times · Not summarized yet
    Abstract

    Large language models (LLMs) have been applied in various applications due to their astonishing capabilities. With advancements in technologies such as chain-of-thought (CoT) prompting and in-context learning (ICL), the prompts fed to LLMs are becoming increasingly lengthy, even exceeding tens of thousands of tokens. To accelerate model inference and reduce cost, this paper presents LLMLingua, a coarse-to-fine prompt compression method that involves a budget controller to maintain semantic integrity under high compression ratios, a token-level iterative compression algorithm to better model the interdependence between compressed contents, and an instruction tuning based method for distributi…

  2. Very close
    Learning to Compress Prompt in Natural Language Formats
    Yu-Neng Chuang, Tian-Wei Xing, Chia-yuan Chang et al. · 2024 · North American Chapter of the Association for Computational Linguistics · cited 66 times · Not summarized yet
    Abstract

    Large language models (LLMs) are great at processing multiple natural language processing tasks, but their abilities are constrained by inferior performance with long context, slow inference speed, and the high cost of computing the results. Deploying LLMs with precise and informative context helps users process large-scale datasets more effectively and cost-efficiently. Existing works rely on compressing long prompt contexts into soft prompts. However, soft prompt compression encounters limitations in transferability across different LLMs, especially API-based LLMs. To this end, this work aims to compress lengthy prompts in the form of natural language with LLM transferability. This poses t…

  3. Very close
    Compress, Then Prompt: Improving Accuracy-Efficiency Trade-off of LLM Inference with Transferable Prompt
    Zhaozhuo Xu, Zirui Liu, Beidi Chen et al. · 2023 · Computation and Language · preprint, not peer reviewed · cited 47 times · AI summary available
    Abstract

    Large Language Models (LLMs), armed with billions of parameters, exhibit exceptional performance across a wide range of Natural Language Processing (NLP) tasks. However, they present a significant computational challenge during inference, especially when deploying on common hardware such as single GPUs. As such, minimizing the latency of LLM inference by curtailing computational and memory requirements, though achieved through compression, becomes critically important. However, this process inevitably instigates a trade-off between efficiency and accuracy, as compressed LLMs typically experience a reduction in predictive precision. In this research, we introduce an innovative perspective: to…

  4. Very close
    An Empirical Study on Prompt Compression for Large Language Models
    Zheng Zhang, Jin-Yi Li, Yi-Huai Lan et al. · 2025 · arXiv.org · preprint, not peer reviewed · cited 11 times · Not summarized yet
    Abstract

    Prompt engineering enables Large Language Models (LLMs) to perform a variety of tasks. However, lengthy prompts significantly increase computational complexity and economic costs. To address this issue, we study six prompt compression methods for LLMs, aiming to reduce prompt length while maintaining LLM response quality. In this paper, we present a comprehensive analysis covering aspects such as generation performance, model hallucinations, efficacy in multimodal tasks, word omission analysis, and more. We evaluate these methods across 13 datasets, including news, scientific articles, commonsense QA, math QA, long-context QA, and VQA datasets. Our experiments reveal that prompt compression …

  5. Very close
    500xCompressor: Generalized Prompt Compression for Large Language Models
    Zong-Qian Li, Yixuan Su, Nigel Collier · 2024 · Annual Meeting of the Association for Computational Linguistics · cited 57 times · Not summarized yet
    Abstract

    Prompt compression is crucial for enhancing inference speed, reducing costs, and improving user experience. However, current methods face challenges such as low compression ratios and potential data leakage during evaluation. To address these issues, we propose 500xCompressor, a method that compresses extensive natural language contexts into a minimum of one single special token. The 500xCompressor introduces approximately 0.3% additional parameters and achieves compression ratios ranging from 6x to 480x. It is designed to compress any text, answer various types of questions, and could be utilized by the original large language model (LLM) without requiring fine-tuning. Initially, 500xCompre…

  6. Very close Cites this paper
    Prompt Compression for Diffusion Large Language Models: An Empirical Evaluation of LLMLingua-2 and LLaDA
    Sterling Huang, Abigayle Brown, Jiyoo Noh et al. · 2026 · International Conference on Advances in Information Technology · cited 1 time · Not summarized yet
    Abstract

    Prompt compression reduces inference cost and context length in large language models, but prior evaluations focus mainly on autoregressive architectures. This study examines whether LLMLingua-2 transfers effectively to diffusion large language models (DLLMs), specifically LLaDA-8B-Instruct. We evaluate GSM8K, DUC2004, and ShareGPT using 250 prompts per dataset at an approximate 50% compression ratio, covering mathematical reasoning, prompt reconstruction, and summarization. Outputs from original, compressed, and reconstructed prompts are compared using exact-match accuracy, BLEU, ROUGE, and BERTScore. Results show that high semantic preservation does not necessarily ensure stable downstream…

  7. Very close
    Dynamic Compressing Prompts for Efficient Inference of Large Language Models
    Jin-Wu Hu, Wei Zhang, Yufeng Wang et al. · 2025 · arXiv.org · preprint, not peer reviewed · cited 8 times · Not summarized yet
    Abstract

    Large Language Models (LLMs) have shown outstanding performance across a variety of tasks, partly due to advanced prompting techniques. However, these techniques often require lengthy prompts, which increase computational costs and can hinder performance because of the limited context windows of LLMs. While prompt compression is a straightforward solution, existing methods confront the challenges of retaining essential information, adapting to context changes, and remaining effective across different tasks. To tackle these issues, we propose a task-agnostic method called Dynamic Compressing Prompts (LLM-DCP). Our method reduces the number of prompt tokens while aiming to preserve the perform…

  8. Very close Cites this paper Uses this paper in depth
    Dynamic Prompt Compression for Efficient Inference of Large Language Models
    Jin-Wu Hu, Wei Zhang, Yufeng Wang et al. · 2026 · IEEE Transactions on Knowledge and Data Engineering · cited 2 times · Not summarized yet
    Abstract

    Large language models (LLMs) have shown outstanding performance across a variety of tasks, partly due to advanced prompting techniques. However, these techniques often require lengthy prompts, which increase computational costs and can hinder performance because of the limited context windows of LLMs. While prompt compression is a straightforward solution, existing methods confront the challenges of retaining essential information, adapting to context changes, and remaining effective across different tasks. To tackle these issues, we propose a task-agnostic method called Dynamic Prompt Compression (LLM-DPC). Our method reduces the number of prompt tokens while minimizing any degradation in L…

Prior work it builds on

  1. Close A method it uses
    Learning to Compress Prompts with Gist Tokens
    Jesse Mu, Xiang Lisa Li, Noah D. Goodman · 2023 · Neural Information Processing Systems · cited 537 times · Not summarized yet
    Abstract

    Prompting is the primary way to utilize the multitask capabilities of language models (LMs), but prompts occupy valuable space in the input context window, and repeatedly encoding the same prompt is computationally inefficient. Finetuning and distillation methods allow for specialization of LMs without prompting, but require retraining the model for each task. To avoid this trade-off entirely, we present gisting, which trains an LM to compress prompts into smaller sets of"gist"tokens which can be cached and reused for compute efficiency. Gist models can be trained with no additional cost over standard instruction finetuning by simply modifying Transformer attention masks to encourage prompt …

  2. Close Used in depth by this paper A method it uses
    LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding
    Yushi Bai, Xin Lv, Jia-Jie Zhang et al. · 2023 · Annual Meeting of the Association for Computational Linguistics · cited 1,891 times · Not summarized yet
    Abstract

    Although large language models (LLMs) demonstrate impressive performance for many language tasks, most of them can only handle texts a few thousand tokens long, limiting their applications on longer sequence inputs, such as books, reports, and codebases. Recent works have proposed methods to improve LLMs' long context capabilities by extending context windows and more sophisticated memory mechanisms. However, comprehensive benchmarks tailored for evaluating long context understanding are lacking. In this paper, we introduce LongBench, the first bilingual, multi-task benchmark for long context understanding, enabling a more rigorous evaluation of long context understanding. LongBench comprise…

  3. Close A method it uses
    Adapting Language Models to Compress Contexts
    A. Chevalier, Alexander Wettig, Anirudh Ajith et al. · 2023 · Conference on Empirical Methods in Natural Language Processing · cited 466 times · Not summarized yet
    Abstract

    Transformer-based language models (LMs) are powerful and widely-applicable tools, but their usefulness is constrained by a finite context window and the expensive computational cost of processing long text documents. We propose to adapt pre-trained LMs into AutoCompressors. These models are capable of compressing long contexts into compact summary vectors, which are then accessible to the model as soft prompts. Summary vectors are trained with an unsupervised objective, whereby long documents are processed in segments and summary vectors from all previous segments are used in language modeling. We fine-tune OPT models on sequences of up to 30,720 tokens and show that AutoCompressors can util…

  4. Very close
    Effective Long-Context Scaling of Foundation Models
    Wenhan Xiong, Jingyu Liu, Igor Molybog et al. · 2023 · Computation and Language · cited 368 times · AI summary available
    Abstract

    We present a series of long-context LLMs that support effective context windows of up to 32,768 tokens. Our model series are built through continual pretraining from Llama 2 with longer training sequences and on a dataset where long texts are upsampled. We perform extensive evaluation on language modeling, synthetic context probing tasks, and a wide range of research benchmarks. On research benchmarks, our models achieve consistent improvements on most regular tasks and significant improvements on long-context tasks over Llama 2. Notably, with a cost-effective instruction tuning procedure that does not require human-annotated long instruction data, the 70B variant can already surpass gpt-3.5…

  5. Close Used in depth by this paper A method it uses
    Lost in the Middle: How Language Models Use Long Contexts
    Nelson F. Liu, Kevin Lin, John Hewitt et al. · 2023 · Transactions of the Association for Computational Linguistics · cited 5,829 times · AI summary available
    Abstract

    While recent language models have the ability to take long contexts as input, relatively little is known about how well they use longer context. We analyze the performance of language models on two tasks that require identifying relevant information in their input contexts: multi-document question answering and key-value retrieval. We find that performance can degrade significantly when changing the position of relevant information, indicating that current language models do not robustly make use of information in long input contexts. In particular, we observe that performance is often highest when relevant information occurs at the beginning or end of the input context, and significantly de…

Papers that cite it

  1. Very close Uses this paper in depth
    Prompt Compression in the Wild: Measuring Latency, Rate Adherence, and Quality for Faster LLM Inference
    Cornelius Kummer, Lena Jurkschat, Michael Färber et al. · 2026 · European Conference on Information Retrieval · cited 9 times · Not summarized yet
    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…

  2. Very close Uses this paper in depth
    PC-SubMax: Efficient Prompt Compression via Regularized Submodular Maximization
    Zi-Yi Zhang, Shuang Cui, Hao-Tian Zhang et al. · 2026 · cited 1 time · Not summarized yet
    Abstract

    While large language models (LLMs) are increasingly deployed in long-context scenarios, lengthy prompts can increase inference costs and latency and exacerbate the ``lost-in-the-middle''phenomenon. Selective prompt compression offers a model-agnostic approach to alleviating these issues. However, methods based on fixed token- or sentence-level importance scores may overlook how content contributions change with the selected subset, limiting their ability to account for inter-sentence redundancy. Compression procedures that rely on autoregressive LLM scoring can also introduce substantial overhead. We propose PC-SubMax, a theoretically grounded framework that formulates selective prompt compr…

  3. Close Uses this paper in depth
    COMI: Coarse-to-fine Context Compression via Marginal Information Gain
    Jiwei Tang, Shilei Liu, Zhicheng Zhang et al. · 2026 · International Conference on Learning Representations · cited 17 times · Not summarized yet
    Abstract

    Large Language Models (LLMs) have demonstrated exceptional capabilities across diverse tasks. However, their deployment in long context scenarios remains hindered by computational inefficiency and information redundancy. Context compression methods address these challenges by significantly reducing input length and eliminating redundancy. We propose COMI, a coarse-to-fine adaptive context compression framework that jointly optimizes for semantic relevance and diversity under high compression rates. We introduce Marginal Information Gain (MIG), a metric defined as the relevance of a unit to the input query minus its semantic redundancy with other units, guiding the compression process to prio…

  4. Very close
    Lost in Compression: A Controlled Cross-Lingual Audit of Extractive Prompt Compressors
    Mantas Lukauskas · 2026 · arXiv.org · preprint, not peer reviewed · cited 1 time · Not summarized yet
    Abstract

    Extractive prompt compression promises to cut LLM inference costs by removing low-information tokens, and learned compressors such as LLMLingua-2 report strong results on English benchmarks. Most other languages already pay a token premium: the same content costs 1.3-1.8x more tokens than in English. We ask whether compression closes or widens this gap. Using fully parallel data in ten languages spanning five scripts, with controls budget-matched in the target model's tokenizer, we audit four learned compressors against four deterministic baselines, on eleven target models from ten vendors (over 250,000 evaluation calls). Three of the compressors are trained with English supervision (LLMLing…

  5. Very close Uses this paper in depth
    Every Time I Hire a Linguist, Inference Costs Go Down: On Linguistic Rules as Effective Prompt Compressors
    Jianfei Ma, Zhao-Xin Feng, E. Chersoni et al. · 2026 · arXiv.org · preprint, not peer reviewed · Not summarized yet
    Abstract

    Prompt compression shortens LLM input to reduce inference cost, yet existing methods score token importance through LM forward passes. It remains questionable whether such nuanced, costly token selection is necessary. Compression requires identifying informative content, a problem that linguistic research has long addressed through cues that can be operationalized as deterministic rules. We therefore ask: can \textbf{linguistic rules alone} serve as effective prompt compressors, without LM-based scoring at compression time? To address this, we conduct offline evolutionary search over lexical, syntactic, semantic, and discourse seeds to find competitive rule combinations. The resulting lingui…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 4 November 2026.

The illustrated guide to the papers around a paper

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.