Dynamic Compressing Prompts for Efficient Inference of Large Language Models
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
- 2024TACO-RL: Task Aware Prompt Compression Optimization with Reinforcement Learning19 Sep
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression19 Mar
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression10 Oct
- 2023Discrete Prompt Compression with Reinforcement Learning17 Aug
- 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Models6 Oct
Other references · 42
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,935
30 more
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
- 2020BLEURT: Learning Robust Metrics for Text Generationcited by 1,203
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 668
- 2020A Survey on Knowledge Graphs: Representation, Acquisition and Applicationscited by 643
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
- 2023Adapting Language Models to Compress Contextscited by 356
- 2023Grounding Large Language Models in Interactive Environments with Online Reinforcement Learningcited by 195
- 2023Recommender Systems in the Era of Large Language Models (LLMs)cited by 189
- 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 189
- 2023Efficient Large Language Models: A Surveycited by 186
- 2023Empowering Molecule Discovery for Molecule-Caption Translation with Large Language Models: A ChatGPT Perspectivecited by 92
- 2023MeetingBank: A Benchmark Dataset for Meeting Summarizationcited by 84
- 2022A Survey of Knowledge Enhanced Pre-trained Language Modelscited by 76
- 2023Give Us the Facts: Enhancing Large Language Models with Knowledge Graphs for Fact-aware Language Modelingcited by 56
- 2021The Summary Loop: Learning to Write Abstractive Summaries Without Examplescited by 27
- 2020Cost-Sensitive Portfolio Selection via Deep Reinforcement Learningcited by 21
- 2023Exploring New Frontiers in Agricultural NLP: Investigating the Potential of Large Language Models for Food Applicationscited by 21
- 2022Efficient Unsupervised Sentence Compression by Fine-tuning Transformers with Reinforcement Learningcited by 18
- 2024Efficient Dynamic Ensembling for Multiple LLM Expertscited by 9
- 2022Curriculum-based Asymmetric Multi-task Reinforcement Learningcited by 8
- 2021User-Guided Personalized Image Aesthetic Assessment based on Deep Reinforcement Learningcited by 7
Built on by
Citing papers per year: 2025: 5; 2026: 1.
6 papers.
- 2025Test-Time Learning for Large Language Modelscited by 50
- 2025BadThink: Triggered Overthinking Attacks on Chain-of-Thought Reasoning in Large Language Modelscited by 8
- 2025Continual Knowledge Adaptation for Reinforcement Learningcited by 5
- 2025Enhancing User-Oriented Proactivity in Open-Domain Dialogues with Critic Guidancecited by 2
- 2025Cmprsr: Abstractive Token-Level Question-Agnostic Prompt Compressorcited by 1
- 2026Compression Beyond the Uncompressed: A Two-Stage Training Recipe for Soft Context Compression in RAGcited by 0
- 2026Compression Beyond the Uncompressed: A Two-Stage Training Recipe for Soft Context Compression in RAG4 Sep 2026
- 2025Cmprsr: Abstractive Token-Level Question-Agnostic Prompt Compressor15 Nov 2025
- 2025BadThink: Triggered Overthinking Attacks on Chain-of-Thought Reasoning in Large Language Models13 Nov 2025
- 2025Continual Knowledge Adaptation for Reinforcement Learning22 Oct 2025
- 2025Test-Time Learning for Large Language Models27 May 2025
- 2025Enhancing User-Oriented Proactivity in Open-Domain Dialogues with Critic Guidance18 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024Style-Compress: An LLM-Based Prompt Compression Framework Considering Task-Specific Styles
- 2024Fundamental Limits of Prompt Compression: A Rate-Distortion Framework for Black-Box Language Models
- 2024Prompt Compression for Large Language Models: A Survey
- 2025An Empirical Study on Prompt Compression for Large Language Models
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models
- 2026Lexical Prompt Compression for Large Language Models: A Training-Free, Deterministic Pipeline with Empirical Pareto Analysis Across Eleven Task Categories
- 2025Understanding and Improving Information Preservation in Prompt Compression for LLMs
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression