arXiv Computation and Language

EnComp: Lightweight Encoder-Only Context Compression for Retrieval-Augmented Question Answering

arXiv AI
Nov 14

Beyond Compressing Everything: Contrastive Memory Learning for Selective Context Compression

The paper introduces CoMem, a query‑guided selective context compression framework that learns memory representations conditioned on both the document and the query. CoMem employs Contrastive Compressor Learning and a same‑context hard negative mining strategy to retain only query‑relevant evidence, while enabling bidirectional attention among memory slots to overcome causal masking. Experiments show that CoMem outperforms existing context compression methods on question answering and RULER‑NIAH benchmarks across various compression ratios.

By Sikui Zhang, Haowei Liu, Ziyun Gan, Chunfeng Yuan, Guangze Gao, Nian Liu, Boyu Cai, Bo Li, Xiaolei Lv, Jun Gao, Bing Li, Weiming Hu
Hugging Face Trending Papers
Nov 12

Beyond Compressing Everything: Contrastive Memory Learning for Selective Context Compression

The paper introduces CoMem, a query‑guided selective context compression framework that learns memory representations conditioned on both the document and the query. CoMem employs Contrastive Compressor Learning and a same‑context hard negative mining strategy to retain query‑specific evidence while preserving overall context, and it enables bidirectional attention among memory slots to overcome causal masking limitations. Experiments show that CoMem consistently outperforms existing context compression methods on question answering and RULER‑NIAH benchmarks across various compression ratios.

arXiv Machine Learning
Oct 3

Retrieval from Within: An Intrinsic Capability of Attention-Based Models

The paper introduces INTRA, an attention-based encoder-decoder framework that retrieves directly from its own internal representations instead of using an external retriever. By having decoder attention query pre-encoded evidence chunks, INTRA unifies retrieval and generation, eliminating the typical mismatch seen in retrieval-augmented generation pipelines. Experiments on question-answering benchmarks show that INTRA outperforms strong engineered retrieval pipelines in both evidence recall and overall answer quality.

By Elad Hoffer, Yochai Blau, Edan Kinderman, Ron Banner, Daniel Soudry, Boris Ginsburg
arXiv Machine Learning
Sep 10

Retrieval-augmented Decoding for Improving Truthfulness in Open-ended Generation

The paper introduces Retrieval-Augmented Decoding (RAD), a decoding-time method that improves the truthfulness of large language models without retraining. RAD uses a small reference set of up to ten annotated examples to build a grounding space of context embeddings and next-token logits, which it retrieves and aggregates during inference to shape the model’s output. Experiments on four open-ended generation benchmarks and four different LLMs show that RAD consistently outperforms strong baselines and generalizes well across tasks.

By Manh Nguyen, Sunil Gupta, Hung Le
arXiv AI
5d ago

StitchRAG: Constructing Compact and Evidence-Preserving Contexts for RAG with Diffusion-Based Stitching

StitchRAG is a framework that builds compact, evidence-preserving contexts for retrieval-augmented generation by dynamically compressing retrieved passages based on a utility maximization trade-off between retained information and computational cost. It extracts answer candidates and query-related keywords as anchors, collects sentences containing these anchors under a size constraint, and stitches them together using text diffusion to create a coherent context. Experiments on five open‑domain QA benchmarks show that StitchRAG consistently outperforms various multi‑step and compression baselines, with ablations confirming the benefits of dynamic size allocation, anchor preservation, and diffusion-based stitching.

By Minsang Kim, Junpyo Lim, Heeje Cho, Seungjun Baek
arXiv AI
Oct 27

Rethinking Retrieval in the Long-Context Era: Training-Free Semantic Trees for Adaptive Context Construction

The paper introduces TreeFuse, a training‑free framework that builds a semantic hierarchy from a full document and uses it to select and organize evidence for a query. By combining structural–semantic scoring with lexical attribution, TreeFuse retains supporting facts and relations while focusing the context on the question. Experiments on four large‑context models show a 1.72‑point improvement in QA‑F1 over full‑context prompting and a 58.55% reduction in answer‑context length.

By Zhe Xu, Tianhao Liao, Zhenqing Ling, Ying Shen, Yaliang Li, Daoyuan Chen
arXiv AI
Oct 28

Select-TTT: Query-Conditioned Selective Fast Weight Updates for In-Place Test-Time Training

Select‑TTT introduces a query‑conditioned rule for In‑Place Test‑Time Training (TTT) that scales the write strength of each context chunk based on its relevance to the user query. By using the model’s frozen output head to compute relevance scores and applying a temperature‑scaled softmax as learning‑rate multipliers, the method preserves the efficient, chunk‑wise computation of In‑Place TTT while preventing irrelevant content from diluting fast‑weight memory. Experiments on two benchmarks and two backbones show consistent improvements in long‑context question answering.

By Yue Wu, Yang Zhang, Weinan Gan, Chongming Gao, Xinsen Guo, Xiaoyuan Li, Fuli Feng