Manuscript Offprint

arXiv:2611.02766

EffComp: Efficient Prompt Compression via Hybrid Reinforcement & Supervised Learning

Romtham Tungsununtham, Piyawat Lertvittayakumjorn, Atiwong Suchato, Peerapon Vateekul

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Prompt compression is aimed at reducing input prompt lengths to enable cheaper, faster, and potentially higher-quality LLM predictions. However, existing prompt compression methods are often limited by modest compression gains, a risk of hallucination, and/or high compression latency. We propose EFFCOMP, an Efficient prompt Compression framework for RAG-based question answering (QA). EFFCOMP employs BERT-style document reranker and sentence selector models to allow fast extractive prompt compression at the sentence level. Its extractive nature prevents hallucinations in the compressed prompts. Additionally, the training process using a hybrid reinforcement and supervised learning approach is designed to optimize the compression ratio while preserving LLM accuracy. Experiments on various QA datasets demonstrate that EFFCOMP outperforms state-of-the-art prompt compression methods achieving the best trade-off between compression ratio and accuracy with minimal latency. This makes it practical for real-world applications.

1 Introduction

Retrieval-augmented generation (RAG) enhances large language models (LLMs) by grounding their predictions in retrieved external documents to reduce hallucinations and address domain gaps (Lewis et al., 2020; Guu et al., 2020; Izacard and Grave, 2021). However, the retrieved documents could often be long, redundant, and partially irrelevant (Barnett et al., 2024; Lertvittayakumjorn et al., 2025). The resulting lengthy augmented prompts not only undermine the quality of LLM predictions (Shi et al., 2023) but also increase computation costs and inference latency (Duman Keles et al., 2023). Therefore, recent research has proposed prompt compression methods to reduce the

input prompt lengths (e.g., by strategically compressing the retrieved contexts) to address these efficiency and quality problems (Li et al., 2025; Wingate et al., 2022; Chevalier et al., 2023).

Despite these advancements, existing methods face several challenges and trade-offs. Abstractive prompt compressors generate a shorter context from a given long one, but they risk fabricating details or answering the questions themselves (Xu et al., 2024; Alansari and Luqman, 2025). Extractive prompt compressors, by contrast, preserve grounding by selecting and keeping the most important parts of the original context, but they often yield only modest compression ratios, e.g., 2x–7x in (Jiang et al., 2024; Pan et al., 2024; Fei et al., 2025; Zhao et al., 2025a,b). Furthermore, some compressors rely on large models or iterative algorithms, which can cause substantial latency and offset the benefits of compression (Yoon et al., 2024).

To overcome these challenges, we propose EFFCOMP, a novel prompt compression framework for RAG-based question answering (QA). The framework aims to boost the efficiency of prompt compression and subsequent LLM inference while maintaining (or even improving) the quality of the final output. EFFCOMP consists of two main steps. The first step reranks and filters the retrieved documents using a reranker. Then the second step selects important sentences in the remaining documents and concatenates them to form a compressed context for LLM inference. The novelty of EFFCOMP also lies in the training process of its sentence selector. This process first intermediately finetunes the model on a QA dataset and finally finetunes it using a hybrid reinforcement and supervised learning approach. We compare our framework against reranker-only and other state-of-the-art prompt compression methods on four QA datasets. The experiments show that EFFCOMP achieves higher QA accuracy and a strong compression ratio, outperforming other compression

*Corresponding author methods. Overall, our contributions are threefold:

We introduce EFFCOMP, a sentence-level extractive prompt compression framework for RAG-based QA. Its key innovations include (1) a sentence selector that jointly considers all shortlisted documents, (2) a reward function tailored to prompt compression for RAG-based QA, (3) a training data construction strategy for effective compressor learning, and (4) a hybrid RL-SFT training recipe that combines supervised and reward-driven learning. (See Section 3)

We evaluate EFFCOMP on four QA datasets, demonstrating that it achieves substantially high extractive compression while maintaining strong QA performance. (See Section 4)

We conduct additional analyses to test performance of EFFCOMP on LongBench, its performance of EFFCOMP with commercial target LLMs, the ability to capture relevant context sentences, and the effects of different training strategies of EFFCOMP. (See Section 5)

References (48)