Skip to content

Compression Beyond the Uncompressed: A Two-Stage Training Recipe for Soft Context Compression in RAG

Sep 2026 · 0 citations · 104 references
Computer Science

TL;DR

DEX-Comp is proposed, a two-stage training recipe that separates reliable imitation from targeted exploration and applies outcome-based reinforcement learning to teacher-failed questions to directly optimize answer correctness.

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-$5$ to top-$30$, DEX-Comp at $16\times$ compression outperforms all evaluated compression baselines and surpasses the untuned full-context RAG model in average accuracy, while reducing time-to-first-token by $4.4\times$--$23.7\times$. Evaluations across additional datasets and backbones further demonstrate its generalization.

View source

Similar papers

#artificial intelligence Preprint Sep 2026

Compress to Remember: Learning Compact Memory via On-Policy Distillation for Long Video Generation

Prediction-Aligned Context Compaction (PACC), which uses a learned compressor to aggregate information across past frames into compact memory tokens, shows that learning to compact historical context can improve long-video memory without modifying the underlying generator.

Xiao-Yu Wu, Wei-Hang Guo, Yi-Fei Wang et al. · 0 citations
#artificial intelligence Preprint Aug 2026

REIGN: Refurbished Embeddings with Integrated Guidance Networks for Efficient Context-Length Scaling

This work proposes REIGN (Refurbished Embeddings with Integrated Guidance Networks), a contrastively trained bi-encoder that operates on sequences of contextualised chunk embeddings from a frozen Guidance Network rather than on raw tokens for document-to-document retrieval.

Devrim Cavusoglu, Emre Akbas · 0 citations
Preprint Sep 2026

Learning to Reason with Compressed Context: Ground-Truth-Free Adaptation of OmniLLMs via Self-Distillation

Omni-modal large language models (OmniLLMs) enable unified audio-video understanding, but their long multimodal token sequences make deployment computationally expensive. Token compression reduces this cost, yet aggressive compression often lowers accuracy. Existing works predominantly focus on designing better compres...

Jiang-Hao Wang, Ke Meng, Jian Li et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference

A Context-to-Answer-Aligned Memory Compression (CMC) framework is proposed, which compresses long input contexts into compact Context Memory Embeddings aligned to any frozen decoder's embedding space, reducing inference costs without modifying decoder weights.

Md. Mostafizer Rahman, Md. Faizul Ibne Amin, Md. Shahajada Mia et al. · 1 citation

Related blog posts

MIT News · Artificial Intelligence Aug 27, 2026

Looking beyond natural sequences

A new machine-learning framework aims to improve the success rate of computational protein design while moving away from results that reproduce sequences found in nature.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.