mlsanityData to 14 Oct 2026

Dynamic Compressing Prompts for Efficient Inference of Large Language Models

arXiv 2504.11004 ↗First posted 15 Apr 2025cs.CL cs.AIcited by 6

On the map: Efficient LLM inference and serving → Prompt and context compression

Abstract (arXiv)

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 performance as much as possible. We model prompt compression as a Markov Decision Process (MDP), enabling the DCP-Agent to sequentially remove redundant tokens by adapting to dynamic contexts and retaining crucial content. We develop a reward function for training the DCP-Agent that balances the compression rate, the quality of the LLM output, and the retention of key information. This allows for prompt token reduction without needing an external black-box LLM. Inspired by the progressive difficulty adjustment in curriculum learning, we introduce a Hierarchical Prompt Compression (HPC) training strategy that gradually increases the compression difficulty, enabling the DCP-Agent to learn an effective compression method that maintains information integrity. Experiments demonstrate that our method outperforms state-of-the-art techniques, especially at higher compression rates. The code for our approach will be available at https://github.com/Fhujinwu/DCP.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Prompt and context compression, one of 12 directions in Efficient LLM inference and serving. Builds on 47 of its 65 references that are in the map. First posted on arXiv 15 Apr 2025.

Builds on

47 of 65 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024TACO-RL: Task Aware Prompt Compression Optimization with Reinforcement Learning19 Sep
  2. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression19 Mar
  3. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression10 Oct
  4. 2023Discrete Prompt Compression with Reinforcement Learning17 Aug
  5. 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Models6 Oct

Other references · 42

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2022Training language models to follow instructions with human feedbackcited by 15,971
  4. 2017Proximal Policy Optimization Algorithmscited by 15,215
  5. 2024The Llama 3 Herd of Modelscited by 14,715
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  8. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  9. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  10. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  11. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  12. 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,935
30 more
  1. 2017Deep reinforcement learning from human preferencescited by 3,912
  2. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
  3. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  4. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
  5. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  6. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  7. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  8. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
  9. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
  10. 2020BLEURT: Learning Robust Metrics for Text Generationcited by 1,203
  11. 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
  12. 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 668
  13. 2020A Survey on Knowledge Graphs: Representation, Acquisition and Applicationscited by 643
  14. 2023Learning to Compress Prompts with Gist Tokenscited by 390
  15. 2023Adapting Language Models to Compress Contextscited by 356
  16. 2023Grounding Large Language Models in Interactive Environments with Online Reinforcement Learningcited by 195
  17. 2023Recommender Systems in the Era of Large Language Models (LLMs)cited by 189
  18. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 189
  19. 2023Efficient Large Language Models: A Surveycited by 186
  20. 2023Empowering Molecule Discovery for Molecule-Caption Translation with Large Language Models: A ChatGPT Perspectivecited by 92
  21. 2023MeetingBank: A Benchmark Dataset for Meeting Summarizationcited by 84
  22. 2022A Survey of Knowledge Enhanced Pre-trained Language Modelscited by 76
  23. 2023Give Us the Facts: Enhancing Large Language Models with Knowledge Graphs for Fact-aware Language Modelingcited by 56
  24. 2021The Summary Loop: Learning to Write Abstractive Summaries Without Examplescited by 27
  25. 2020Cost-Sensitive Portfolio Selection via Deep Reinforcement Learningcited by 21
  26. 2023Exploring New Frontiers in Agricultural NLP: Investigating the Potential of Large Language Models for Food Applicationscited by 21
  27. 2022Efficient Unsupervised Sentence Compression by Fine-tuning Transformers with Reinforcement Learningcited by 18
  28. 2024Efficient Dynamic Ensembling for Multiple LLM Expertscited by 9
  29. 2022Curriculum-based Asymmetric Multi-task Reinforcement Learningcited by 8
  30. 2021User-Guided Personalized Image Aesthetic Assessment based on Deep Reinforcement Learningcited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 1.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Style-Compress: An LLM-Based Prompt Compression Framework Considering Task-Specific Styles
  2. 2024Fundamental Limits of Prompt Compression: A Rate-Distortion Framework for Black-Box Language Models
  3. 2024Prompt Compression for Large Language Models: A Survey
  4. 2025An Empirical Study on Prompt Compression for Large Language Models
  5. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models
  6. 2026Lexical Prompt Compression for Large Language Models: A Training-Free, Deterministic Pipeline with Empirical Pareto Analysis Across Eleven Task Categories
  7. 2025Understanding and Improving Information Preservation in Prompt Compression for LLMs
  8. 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression