Compression Beyond the Uncompressed: A Two-Stage Training Recipe for Soft Context Compression in RAG
Abstract
Retrieval-Augmented Generation (RAG) improves knowledge-intensive generation by conditioning language models on retrieved documents, but processing these documents becomes increasingly expensive as retrieval depth grows. Soft context compression reduces this cost by encoding documents into compact continuous representations that can be precomputed and reused across queries. However, many existing methods train compressed models by distilling from a full-context teacher. When the teacher is wrong, such distillation can reinforce its errors, while teacher imitation provides no direct signal for improving beyond the teacher. We propose DEX-Comp, a two-stage training recipe that separates reliable imitation from targeted exploration. Pure Distillation learns only from teacher-correct questions to mitigate error propagation, while Hard Exploration applies outcome-based reinforcement learning to teacher-failed questions to directly optimize answer correctness. Across five open-domain QA benchmarks and retrieval depths from top- to top-, DEX-Comp at compression outperforms all evaluated compression baselines and surpasses the untuned full-context RAG model in average accuracy, while reducing time-to-first-token by --. Evaluations across additional datasets and backbones further demonstrate its generalization.
Create a lesson
Metadata
- Comments
- Under Review
Related papers
Beyond Fixed-Context Likelihood: Zero-Shot AI-Generated Text Detection via Context Perturbation Discrepancy
Shared title terminologycs.CLYifan Tang, Jingran Li, Yihao Wang et al.
Red-Teaming a Sovereign LLM, Its Reasoning and Its Training Stages
Shared title terminologycs.CLHatef Otroshi Shahreza
Two-Stage Reinforcement Learning for Sound and Adversarial Test Generation in Code LLMs
Shared title terminologycs.CLJiacheng Xu, Wentao Zhang, Zhiyi Lyu et al.
Beyond Shallow Alignment: How Post-Training Methods Determine Refusal Circuits And Steering Robustness
Shared title terminologycs.CLHoang Cuong Nguyen, Mark Dras, Usman Naseem
MINE: A Training-Free Defense against Indirect Prompt Injection via Mutual Information and Embedding Variance
Shared title terminologycs.CLTruong Phan, Ngoc-Quan Pham, Dat Quoc Nguyen
When Rerankers Work Together: Better and Faster Reranking without Joint Training
Shared title terminologycs.CLYanqiao Chen, Dongsheng Hou, Yuhan Rui