EffComp: Sentence-Level Prompt Compression for RAG QA
EffComp's contribution is not a higher compression number by itself; it is a training objective that rewards accuracy and compression together, under the precondition that retrieval has already removed most irrelevant documents and the target model can answer from the full context.
On this page
A team has 30 retrieved documents per question and a monthly inference bill, but it must decide whether to keep feeding all of them to the model or cut sentences first. The usual advice is binary: either do not compress at all, or use a document-level reranker that keeps the top few documents and hopes the answer survives. That advice is reasonable because extractive compressors often report only 2x–7x compression, while abstractive compressors can hallucinate details that were never in the source [1]. EffComp, a sentence-level extractive method, asks a narrower question: after reranking, can a trained sentence selector remove more sentences without losing answer accuracy? It uses a BERT-style reranker, a BERT-style sentence selector, and a two-phase training recipe that mixes reinforcement learning with supervised learning [1].
The default bet: compression means accuracy loss
The default bet is that shorter context means lower accuracy, and the paper gives three reasons this bet is often right. Abstractive compressors rewrite the context and can fabricate details, which is the hallucination risk. Extractive compressors keep original sentences but usually deliver only modest gains, with 2x–7x reported across prior work [1]. Some compressors also rely on large models or iterative algorithms, so the compression step itself adds latency and eats the savings. A buyer who has been burned once will therefore choose no compression or document-level reranking, because those options at least do not rewrite the evidence.
EffComp in two steps: rerank documents, then select sentences
EffComp has two inference steps, one coarse and one fine. Step 1 uses an off-the-shelf document reranker to score each retrieved document against the question, keeps the top k documents, and sorts them by score. The paper tests BGE, Jina, and GTE, all BERT-style rerankers, meaning compact transformer encoders that can score documents in batches [1]. Step 2 concatenates the kept documents, splits the text into sentences, and asks a sentence selector to predict keep or drop for each sentence. The selector is also BERT-based: it reads the question and all candidate sentences, prepends a special [SEN] token to each sentence, and makes its decision only at the [SEN] positions.
Two consequences matter. The compressed context is still made of original sentences, so it remains readable and cannot introduce a fact that was not in the source. The selector also sees all candidate sentences at once, so it can drop useful but redundant sentences instead of ranking each sentence in isolation; Step 1 keeps that joint input small enough to be practical.
The training trick: put compression into the reward
Phase I is intermediate finetuning. The authors take a question, attach 30 retrieved documents, split the concatenated text into sentences, and label a sentence as retained if it contains the ground-truth answer string; every other sentence is labeled discarded. The model is trained only at the [SEN] positions, so it learns to find answer-bearing sentences. That is not enough for multi-hop questions, where the answer requires combining evidence across documents and a bridge sentence may contain no answer but is still needed.
Phase II adds a hybrid of reinforcement learning and supervised learning. Reinforcement learning here means sampling keep-or-drop actions, building a compressed context, asking the target LLM to answer, and rewarding the action list by both correctness and compression. The reward is α + (1−α)(1−τ) when the answer is correct and −(1−α)(1−τ) otherwise, where τ is compressed length divided by original length and α controls the accuracy-compression trade-off [1]. The optimizer is GRPO, a policy-gradient method that skips the value function and normalizes rewards within a group of sampled actions to estimate relative advantages.
The supervised part stabilizes training. A memory stores the best trial seen so far for each question, meaning the highest-reward keep-or-drop list; after each RL update, that list is used as a silver label, meaning a training target produced by the reward rather than by human annotation, for a supervised finetuning pass. The authors also remove two kinds of training examples: questions the target model cannot answer even with the full context, and questions it can answer with no context at all. The first would push the policy to keep everything, and the second would push it to keep nothing.
Verifiable numbers: where 3x reranking actually lands
The experiments cover four QA datasets: HotpotQA (HQA), 2WikiQA, NQ, and TriviaQA (TQA). The excerpt gives accuracy for raw documents and for three rerankers at 3.0x compression, not the full EffComp row; even so, the baseline numbers show that coarse filtering to 3x is not free.
| Dataset | Raw docs 1.0x accuracy | BGE rerank 3.0x | Jina rerank 3.0x | GTE rerank 3.0x |
|---|---|---|---|---|
| HQA | 34.6 | 35.2 | 34.6 | 34.7 |
| 2WikiQA | 29.1 | 23.8 | 24.4 | 23.9 |
| NQ | 30.1 | 29.6 | 30.6 | not fully shown in excerpt |
| TQA | 77.4 | 79.9 | 80.1 | not fully shown in excerpt |
On 2WikiQA, raw documents score 29.1, while BGE at 3.0x scores 23.8, Jina scores 24.4, and GTE scores 23.9, so reranking loses accuracy. On TQA, raw documents score 77.4, while BGE scores 79.9 and Jina scores 80.1, a small gain. HQA moves from 34.6 to 35.2, 34.6, and 34.7, essentially flat. NQ moves from 30.1 to 29.6 and 30.6, a swing of about one point. The abstract reports that EffComp achieves the best compression-accuracy trade-off with minimal latency; the excerpt does not expose the complete EffComp row, so this article does not invent a number for it.
When this method fails
The method fails when the task is not short-answer RAG QA. It was evaluated on four QA datasets, not on general long-form summarization or open-ended generation. It also fails when the answer must be rewritten rather than extracted: a sentence selector can only keep or drop original sentences, so it cannot merge evidence into a new sentence or supply a missing connective. It depends on Step 1 removing enough irrelevant documents; if the retriever returns many long and relevant documents, the selector must read many sentences at once and the efficiency claim needs rechecking. It does not apply when the target model cannot answer from the full context, because the training recipe explicitly removes such examples. Finally, compression is not free: it adds a reranker and a sentence selector, and a deployment must price that latency against its own query volume.
