Discrete Prompt Compression with Reinforcement Learning
On the map: Efficient LLM inference and serving → Prompt and context compression
Abstract (arXiv)
Compressed prompts aid instruction-tuned language models (LMs) in overcoming context window limitations and reducing computational costs. Existing methods, which primarily based on training embeddings, face various challenges associated with interpretability, the fixed number of embedding tokens, reusability across different LMs, and inapplicability when interacting with black-box APIs. This study proposes prompt compression with reinforcement learning (PCRL), which is a discrete prompt compression method that addresses these issues. The proposed PCRL method utilizes a computationally efficient policy network that edits prompts directly. The training approach employed in the proposed PCRLs can be applied flexibly to various types of LMs, including both decoder-only and encoder-decoder architecture and it can be trained without gradient access to the LMs or labeled data. The proposed PCRL achieves an average reduction of 24.6% in terms of the token count across various instruction prompts while maintaining sufficient performance. In addition, we demonstrate that the learned policy can be transferred to larger LMs, and through a comprehensive analysis, we explore the token importance within the prompts. Our code is accessible at https://github.com/nenomigami/PromptCompressor.
Key facts. Cited by 42 papers in the map (data through 7 Oct 2026). Placed in Prompt and context compression, one of 12 directions in Efficient LLM inference and serving. Builds on 41 of its 55 references that are in the map. First posted on arXiv 17 Aug 2023.
Builds on
41 of 55 references.
Closest ancestors · 1
Same direction, newest first
Other references · 40
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
28 more
- 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 849
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2021GPT Understands, Toocited by 715
- 2017Reinforcement Learning with Deep Energy-Based Policiescited by 659
- 2016Self-critical Sequence Training for Image Captioningcited by 544
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2023Is ChatGPT a Good NLG Evaluator? A Preliminary Studycited by 420
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2017A Deep Reinforced Model for Abstractive Summarizationcited by 364
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2023Adapting Language Models to Compress Contextscited by 350
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
- 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 228
- 2023Is ChatGPT better than Human Annotators? Potential and Limitations of ChatGPT in Explaining Implicit Hate Speechcited by 165
- 2022A Fast Post-Training Pruning Framework for Transformerscited by 161
- 2018Ranking Sentences for Extractive Summarization with Reinforcement Learningcited by 128
- 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
- 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
- 2023Unlocking Context Constraints of LLMs: Enhancing Context Efficiency of LLMs with Self-Information-Based Content Filteringcited by 62
- 2018Deep Communicating Agents for Abstractive Summarizationcited by 50
- 2018BanditSum: Extractive Summarization as a Contextual Banditcited by 46
- 2021Differentiable Subset Pruning of Transformer Headscited by 46
- 2021Keep it Simple: Unsupervised Simplification of Multi-Paragraph Textcited by 45
- 2020Stopwords in Technical Language Processingcited by 29
- 2021The Summary Loop: Learning to Write Abstractive Summaries Without Examplescited by 27
- 2020Discrete Optimization for Unsupervised Sentence Summarization with Word-Level Extractioncited by 23
- 2019Simple Unsupervised Summarization by Contextual Matchingcited by 18
- 2022Efficient Unsupervised Sentence Compression by Fine-tuning Transformers with Reinforcement Learningcited by 18
Built on by
Citing papers per year: 2023: 2; 2024: 15; 2025: 11; 2026: 14.
42 papers.
Sort:
By area:
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 292
- 2024A Survey on Efficient Inference for Large Language Modelscited by 197
- 2023Efficient Large Language Models: A Surveycited by 183
- 2024Prompt Compression for Large Language Models: A Surveycited by 65
- 2024Efficient Prompting Methods for Large Language Models: A Surveycited by 46
- 2024Symbolic Prompt Program Search: A Structure-Aware Approach to Efficient Compile-Time Prompt Optimizationcited by 29
- 2024TACO-RL: Task Aware Prompt Compression Optimization with Reinforcement Learningcited by 22
- 2024Prompt-SAW: Leveraging Relation-Aware Graphs for Textual Prompt Compressioncited by 18
- 2024Characterizing Prompt Compression Methods for Long Context Inferencecited by 18
- 2024MORL-Prompt: An Empirical Analysis of Multi-Objective Reinforcement Learning for Discrete Prompt Optimizationcited by 16
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 16
30 more
- 2025Long Context In-Context Compression by Getting to the Gist of Gistingcited by 12
- 2024Semformer: Transformer Language Models with Semantic Planningcited by 9
- 2024Style-Compress: An LLM-Based Prompt Compression Framework Considering Task-Specific Stylescited by 9
- 2026Prompt Compression in the Wild: Measuring Latency, Rate Adherence, and Quality for Faster LLM Inferencecited by 8
- 2024From Reading to Compressing: Exploring the Multi-document Reader for Prompt Compressioncited by 7
- 2025DAC: A Dynamic Attention-aware Approach for Task-Agnostic Prompt Compressioncited by 7
- 2024Parse Trees Guided LLM Prompt Compressioncited by 6
- 2025Dynamic Compressing Prompts for Efficient Inference of Large Language Modelscited by 6
- 2025What Makes a Good Natural Language Prompt?cited by 6
- 2025EFPC: Towards Efficient and Flexible Prompt Compressioncited by 5
- 2025MOOSComp: Improving Lightweight Long-Context Compressor via Mitigating Over-Smoothing and Incorporating Outlier Scorescited by 4
- 2025Lossless Token Sequence Compression via Meta-Tokenscited by 4
- 2023MultiPrompter: Cooperative Prompt Optimization with Multi-Agent Reinforcement Learningcited by 3
- 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generationcited by 3
- 2026Adapting Generalist Robot Policies with Semantic Reinforcement Learningcited by 3
- 2024TRIM: Token Reduction and Inference Modeling for Cost-Effective Language Generationcited by 2
- 2025CODEPROMPTZIP: Code-specific Prompt Compression for Retrieval-Augmented Generation in Coding Tasks with LMscited by 2
- 202698× Faster LLM Routing Without a Dedicated GPU: Flash Attention, Prompt Compression, and Near-Streaming for the vLLM Semantic Routercited by 2
- 2026BEAVER: A Training-Free Hierarchical Prompt Compression Method via Structure-Aware Page Selectioncited by 2
- 2026Compression Method Matters: Benchmark-Dependent Output Dynamics in LLM Prompt Compressioncited by 2
- 2026DiffuMask: Diffusion Language Model for Token-level Prompt Pruningcited by 1
- 2026IterCOMP: Reasoning-aware Adaptive Prompt Compression for Multi-hop Question Answeringcited by 1
- 2025Task-agnostic Prompt Compression with Context-aware Sentence Embedding and Reward-guided Task Descriptorcited by 0
- 2025When Compression Becomes an Attack Surface: Black-Box Attacks on Prompt-Compressed LLM Agentscited by 0
- 2026Developing Adaptive Context Compression Techniques for Large Language Models (LLMs) in Long-Running Interactionscited by 0
- 2026A Unified Model and Document Representation for On-Device Retrieval-Augmented Generationcited by 0
- 2026Compressing Sequences in the Latent Embedding Space: K-Token Merging for Large Language Modelscited by 0
- 2026Every Time I Hire a Linguist, Inference Costs Go Down: On Linguistic Rules as Effective Prompt Compressorscited by 0
- 2026Relevant but Incomplete: Referential Dangling as a Paradigm-Level Failure Mode in Hard Prompt Compressioncited by 0
- 2026Prompt Minimization: Reducing Input Redundancy Without Sacrificing Output Fidelitycited by 0
- 2026Prompt Minimization: Reducing Input Redundancy Without Sacrificing Output Fidelity25 Sep 2026
- 2026Relevant but Incomplete: Referential Dangling as a Paradigm-Level Failure Mode in Hard Prompt Compression5 Aug 2026
- 2026Every Time I Hire a Linguist, Inference Costs Go Down: On Linguistic Rules as Effective Prompt Compressors28 Jul 2026
- 2026IterCOMP: Reasoning-aware Adaptive Prompt Compression for Multi-hop Question Answering12 Jul 2026
- 2026Adapting Generalist Robot Policies with Semantic Reinforcement Learning30 Jun 2026
- 2026Compressing Sequences in the Latent Embedding Space: K-Token Merging for Large Language Models16 Apr 2026
- 2026A Unified Model and Document Representation for On-Device Retrieval-Augmented Generation15 Apr 2026
- 2026DiffuMask: Diffusion Language Model for Token-level Prompt Pruning8 Apr 2026
- 2026Prompt Compression in the Wild: Measuring Latency, Rate Adherence, and Quality for Faster LLM Inference3 Apr 2026
- 2026Developing Adaptive Context Compression Techniques for Large Language Models (LLMs) in Long-Running Interactions31 Mar 2026
- 2026BEAVER: A Training-Free Hierarchical Prompt Compression Method via Structure-Aware Page Selection20 Mar 2026
- 202698× Faster LLM Routing Without a Dedicated GPU: Flash Attention, Prompt Compression, and Near-Streaming for the vLLM Semantic Router13 Mar 2026
30 more
- 2026Compression Method Matters: Benchmark-Dependent Output Dynamics in LLM Prompt Compression6 Mar 2026
- 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generation14 Jan 2026
- 2025When Compression Becomes an Attack Surface: Black-Box Attacks on Prompt-Compressed LLM Agents27 Oct 2025
- 2025DAC: A Dynamic Attention-aware Approach for Task-Agnostic Prompt Compression16 Jul 2025
- 2025What Makes a Good Natural Language Prompt?7 Jun 2025
- 2025Lossless Token Sequence Compression via Meta-Tokens30 May 2025
- 2025MOOSComp: Improving Lightweight Long-Context Compressor via Mitigating Over-Smoothing and Incorporating Outlier Scores23 Apr 2025
- 2025Dynamic Compressing Prompts for Efficient Inference of Large Language Models15 Apr 2025
- 2025Long Context In-Context Compression by Getting to the Gist of Gisting11 Apr 2025
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformation2 Apr 2025
- 2025EFPC: Towards Efficient and Flexible Prompt Compression11 Mar 2025
- 2025CODEPROMPTZIP: Code-specific Prompt Compression for Retrieval-Augmented Generation in Coding Tasks with LMs19 Feb 2025
- 2025Task-agnostic Prompt Compression with Context-aware Sentence Embedding and Reward-guided Task Descriptor19 Feb 2025
- 2024TRIM: Token Reduction and Inference Modeling for Cost-Effective Language Generation10 Dec 2024
- 2024Style-Compress: An LLM-Based Prompt Compression Framework Considering Task-Specific Styles17 Oct 2024
- 2024Prompt Compression for Large Language Models: A Survey16 Oct 2024
- 2024From Reading to Compressing: Exploring the Multi-document Reader for Prompt Compression5 Oct 2024
- 2024Parse Trees Guided LLM Prompt Compression23 Sep 2024
- 2024TACO-RL: Task Aware Prompt Compression Optimization with Reinforcement Learning19 Sep 2024
- 2024Semformer: Transformer Language Models with Semantic Planning17 Sep 2024
- 2024Characterizing Prompt Compression Methods for Long Context Inference11 Jul 2024
- 2024A Survey on Efficient Inference for Large Language Models22 Apr 2024
- 2024Symbolic Prompt Program Search: A Structure-Aware Approach to Efficient Compile-Time Prompt Optimization2 Apr 2024
- 2024Efficient Prompting Methods for Large Language Models: A Survey1 Apr 2024
- 2024Prompt-SAW: Leveraging Relation-Aware Graphs for Textual Prompt Compression30 Mar 2024
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression19 Mar 2024
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speaking14 Mar 2024
- 2024MORL-Prompt: An Empirical Analysis of Multi-Objective Reinforcement Learning for Discrete Prompt Optimization18 Feb 2024
- 2023Efficient Large Language Models: A Survey6 Dec 2023
- 2023MultiPrompter: Cooperative Prompt Optimization with Multi-Agent Reinforcement Learning25 Oct 2023
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
- 2024A Survey on Efficient Inference for Large Language Modelscited by 197
- 2024Prompt Compression for Large Language Models: A Surveycited by 65
- 2024TACO-RL: Task Aware Prompt Compression Optimization with Reinforcement Learningcited by 22
- 2024Prompt-SAW: Leveraging Relation-Aware Graphs for Textual Prompt Compressioncited by 18
- 2024Characterizing Prompt Compression Methods for Long Context Inferencecited by 18
- 2025Long Context In-Context Compression by Getting to the Gist of Gistingcited by 12
- 2024Style-Compress: An LLM-Based Prompt Compression Framework Considering Task-Specific Stylescited by 9
- 2024From Reading to Compressing: Exploring the Multi-document Reader for Prompt Compressioncited by 7
- 2025DAC: A Dynamic Attention-aware Approach for Task-Agnostic Prompt Compressioncited by 7
- 2024Parse Trees Guided LLM Prompt Compressioncited by 6
- 2025Dynamic Compressing Prompts for Efficient Inference of Large Language Modelscited by 6
12 most cited of 24 All 24 (JSON)
- 2026Relevant but Incomplete: Referential Dangling as a Paradigm-Level Failure Mode in Hard Prompt Compression5 Aug 2026
- 2026Every Time I Hire a Linguist, Inference Costs Go Down: On Linguistic Rules as Effective Prompt Compressors28 Jul 2026
- 2026Compressing Sequences in the Latent Embedding Space: K-Token Merging for Large Language Models16 Apr 2026
- 2026Developing Adaptive Context Compression Techniques for Large Language Models (LLMs) in Long-Running Interactions31 Mar 2026
- 2026BEAVER: A Training-Free Hierarchical Prompt Compression Method via Structure-Aware Page Selection20 Mar 2026
- 202698× Faster LLM Routing Without a Dedicated GPU: Flash Attention, Prompt Compression, and Near-Streaming for the vLLM Semantic Router13 Mar 2026
- 2026Compression Method Matters: Benchmark-Dependent Output Dynamics in LLM Prompt Compression6 Mar 2026
- 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generation14 Jan 2026
- 2025DAC: A Dynamic Attention-aware Approach for Task-Agnostic Prompt Compression16 Jul 2025
- 2025Lossless Token Sequence Compression via Meta-Tokens30 May 2025
- 2025Dynamic Compressing Prompts for Efficient Inference of Large Language Models15 Apr 2025
- 2025Long Context In-Context Compression by Getting to the Gist of Gisting11 Apr 2025
12 newest of 24 All 24 (JSON)
- 2024Symbolic Prompt Program Search: A Structure-Aware Approach to Efficient Compile-Time Prompt Optimizationcited by 29
- 2026Prompt Compression in the Wild: Measuring Latency, Rate Adherence, and Quality for Faster LLM Inferencecited by 8
- 2025CODEPROMPTZIP: Code-specific Prompt Compression for Retrieval-Augmented Generation in Coding Tasks with LMscited by 2
- 2026IterCOMP: Reasoning-aware Adaptive Prompt Compression for Multi-hop Question Answeringcited by 1
- 2026A Unified Model and Document Representation for On-Device Retrieval-Augmented Generationcited by 0
- 2026IterCOMP: Reasoning-aware Adaptive Prompt Compression for Multi-hop Question Answering12 Jul 2026
- 2026A Unified Model and Document Representation for On-Device Retrieval-Augmented Generation15 Apr 2026
- 2026Prompt Compression in the Wild: Measuring Latency, Rate Adherence, and Quality for Faster LLM Inference3 Apr 2026
- 2025CODEPROMPTZIP: Code-specific Prompt Compression for Retrieval-Augmented Generation in Coding Tasks with LMs19 Feb 2025
- 2024Symbolic Prompt Program Search: A Structure-Aware Approach to Efficient Compile-Time Prompt Optimization2 Apr 2024
- 2023Efficient Large Language Models: A Surveycited by 183
- 2024Efficient Prompting Methods for Large Language Models: A Surveycited by 46
- 2024MORL-Prompt: An Empirical Analysis of Multi-Objective Reinforcement Learning for Discrete Prompt Optimizationcited by 16
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 16
- 2024Semformer: Transformer Language Models with Semantic Planningcited by 9
- 2025What Makes a Good Natural Language Prompt?cited by 6
- 2025MOOSComp: Improving Lightweight Long-Context Compressor via Mitigating Over-Smoothing and Incorporating Outlier Scorescited by 4
- 2026Prompt Minimization: Reducing Input Redundancy Without Sacrificing Output Fidelitycited by 0
- 2026Prompt Minimization: Reducing Input Redundancy Without Sacrificing Output Fidelity25 Sep 2026
- 2025What Makes a Good Natural Language Prompt?7 Jun 2025
- 2025MOOSComp: Improving Lightweight Long-Context Compressor via Mitigating Over-Smoothing and Incorporating Outlier Scores23 Apr 2025
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformation2 Apr 2025
- 2024Semformer: Transformer Language Models with Semantic Planning17 Sep 2024
- 2024Efficient Prompting Methods for Large Language Models: A Survey1 Apr 2024
- 2024MORL-Prompt: An Empirical Analysis of Multi-Objective Reinforcement Learning for Discrete Prompt Optimization18 Feb 2024
- 2023Efficient Large Language Models: A Survey6 Dec 2023
Similar, not cited
Close in wording, no citation either way
- 2026ZipRL: Adaptive Multi-Turn Context Compression with Hindsight Response Replay
- 2024LanguaShrink: Reducing Token Overhead with Psycholinguistics
- 2025PIS: Linking Importance Sampling and Attention Mechanisms for Efficient Prompt Compression
- 2026Prompt Compression via Activation Aggregation
- 2025Better Prompt Compression Without Multi-Layer Perceptrons
- 2025Understanding and Improving Information Preservation in Prompt Compression for LLMs
- 2025Learning a Single Token to Replace Long System Prompts in LLMs
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models