TL;DR
CompSelect optimizes Retrieval-Augmented Generation (RAG) by replacing bulky, human-centric document retrieval with a compact, LLM-centric "clue selection" pipeline. By framing retrieval as a MinMax optimization problem, it extracts, reranks, and adaptively truncates context based on real LLM feedback—boosting reasoning accuracy while slashing token costs and system latency.
What Problem Does This Paper Address?
Traditional Retrieval-Augmented Generation (RAG) systems are designed with human readers in mind: they fetch long, coherent paragraphs to maintain readability and context. However, Large Language Models (LLMs) don't read like humans. Providing them with massive blocks of text often leads to the "lost in the middle" phenomenon, where crucial details are ignored, not to mention the ballooning computational costs and latency associated with processing long contexts.
Existing solutions try to fix this via sentence-level reranking or abstractive summarization. But these approaches have sharp trade-offs: extractive methods can break the semantic structure of a document, while abstractive methods are slow, expensive, and risk introducing unfaithful hallucinations.
The authors of this paper ask a fundamental question: How can we efficiently extract and organize only the essential, answer-relevant "clues" from large-scale documents to optimize both LLM reasoning quality and efficiency?
Methods
Inspired by Occam’s razor, the authors introduce CompSelect, a framework that treats context compression as a MinMax optimization problem: maximize the extraction of potential clues and organize them effectively, while minimizing the final reasoning cost by truncating the context to the smallest sufficient set.
CompSelect splits this process into three distinct, lightweight modules:
- Clue Extractor: A small LLM (LLaMA3.2-3B-Instruct) fine-tuned via LoRA to scan retrieved documents and extract candidate sentences. To handle complex, multi-hop questions, it uses a $K$-Nearest Neighbors (KNN) strategy to pull not just the sentences containing the exact answer, but also semantically similar contextual sentences.
- Clue Reranker: Implemented using Sentence-BERT, this module orders the extracted clues by relevance. Crucially, it is trained using real downstream LLM feedback: sentences that successfully lead the generator to the correct answer are treated as positive samples, while others are marked negative.
- Adaptive Truncator: Also based on a fine-tuned LLaMA3.2-3B model, the truncator dynamically identifies the exact cutoff point ($K$) in the ranked list. It ensures the LLM receives the absolute minimum amount of context required to answer the query accurately.
Datasets
The framework was trained and evaluated on three widely recognized question-answering benchmarks:
- NaturalQuestions (NQ): A standard single-hop dataset based on real Google search queries.
- TriviaQA: A large-scale single-hop dataset containing complex trivia question-answer pairs.
- HotpotQA: A challenging multi-hop dataset requiring reasoning across multiple scattered documents.
To test cross-task generalization, the authors also evaluated the model on an unseen Conversational Multi-Doc QA dataset without any direct fine-tuning.
Key Insights and Ideas
- LLMs thrive on density, not narrative flow: Stripping away the connective tissue of a paragraph doesn't confuse an LLM; it empowers it. Providing raw, high-density "Oracle Clues" consistently outperforms full-text delivery across all model sizes (from 1B to 70B parameters).
- Generator-centric training matters: Instead of relying purely on unsupervised semantic similarity, CompSelect trains its reranker and truncator based on whether a clue actually helps the downstream LLM generate the correct answer.
- Graceful degradation under noise: Unlike traditional compressors that force the LLM to choose from whatever text is available, CompSelect's truncator is trained to allow empty outputs. If the retrieved documents are completely irrelevant, it cuts the context to zero, effectively suppressing noise and preventing the LLM from hallucinating an answer based on bad data.
Key Results
CompSelect was pitted against a wide array of baselines, including lexical methods (BM25), neural rerankers (BGE-reranker), token pruners (LongLLMLingua), and abstractive summarizers (Refiner).
- Superior Accuracy: Across LLaMA3-8B, Qwen3-14B, and LLaMA3.3-70B generators, CompSelect consistently achieved the highest Substring Exact Match (SubEM) and F1 scores. For example, on NQ using LLaMA3-8B, it hit a SubEM of 46.98% compared to Full Content's 45.87%.
- Massive Context Compression: CompSelect achieved compression ratios between 12.5× and 17.1×, dramatically reducing the number of tokens sent to the downstream LLM.
- Optimal Latency Trade-off: While abstractive methods like Refiner improve accuracy, they suffer from massive generation latency. CompSelect delivers better accuracy than Refiner while keeping online latency nearly as low as basic sentence-filtering methods.
Limitations and Future Work
While CompSelect drastically reduces online latency (the time from user query to answer), it introduces a multi-stage pipeline (extraction, ranking, truncation) that adds minor offline preprocessing overhead.
The authors note that future work will focus on integrating this compact clue selection mechanism directly with generative retrieval models. By allowing models to generate document indices or clues natively, RAG systems could bypass separate retrieval and compression steps entirely, paving the way for true end-to-end efficiency.
Summary updated