arXiv Science⌕ Search

arXiv · 2611.34366

ConTra: A Training Framework for Effective Contextual Retrieval via Prefix Generation

Abstract

Data management systems organize large text collections for tasks such as finding relevant studies and extracting contract clauses. Systems make long documents searchable by splitting them into independently indexed chunks. Chunking can separate text from its identifying details. The indexing challenge is to keep each chunk independently searchable while preserving the context needed to find and rank it. Existing methods either encode that context in chunk vectors or attach it as a text prefix. Context encoded only in vectors is unavailable to text rerankers. Prompted prefixes serve both vector search and reranking, but are costly to generate at indexing time and can underperform contextual encoders. We propose ConTra (Context That Travels), a reinforcement learning framework for training lightweight prefix generators. Its reward combines feedback from frozen embedding and reranking models with factual verification and length control. ConTra generates one prefix per chunk during index construction and stores the augmented text and its embedding for reuse across queries. To evaluate contextual retrieval across workloads and under interference, we introduce RealContextBench, a benchmark with five application collections and three controlled conditions that isolate the effect of distracting text. On ConTEB and RealContextBench, ConTra-2B outperforms the prompted 9B baseline using Anthropic's method and the PPLX-4B contextual encoder, with a margin of up to 3.15 points over their best overall scores, while indexing short documents 7.74 times and 2.15 times as fast as those baselines, respectively. Post-trained only on ConTEB, it leads the standalone methods on RealContextBench after reranking and is less sensitive than the prompted 2B baseline to random and topically similar distractors. Code, datasets, and trained models are available at https://github.com/SStan1/ConTra.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Jiajun Hou, Jingbang Chen. 2026-11-25. ConTra: A Training Framework for Effective Contextual Retrieval via Prefix Generation. https://arxiv.science/abs/2611.34366

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

VLM2Rec: Resolving Modality Collapse in Vision-Language Models for Sequential Recommendation

Sequential Recommendation (SR) learns sequence-level Collaborative Filtering (CF) from interactions, but ID-based models struggle with sparse data and cold-start items. In contrast, item titles and images can reveal preference continuity, such as a recurring color or style. Yet existing approaches miss visual continuity: small encoders take a single item as input, and Large Language Models (LLMs) read only titles. We therefore shift our focus to Large Vision-Language Models (VLMs), which can read a user's entire image sequence, not just its titles. However, VLMs inherently suffer from modality collapse: they over-rely on text and, as a result, overlook visual continuity for recommendation. We find that standard contrastive Supervised Fine-Tuning (SFT), essential for adapting VLMs to SR, further amplifies this collapse: updates follow the text gradient, visual discrimination weakens, and adding image embeddings to the text embeddings consistently lowers accuracy. We propose VLM2Rec with two objectives: Weak-modality Penalized Contrastive Learning strengthens each user's weaker modality, and Cross-modal Relational Topology Regularization aligns each user's relative similarity structure over the same items across the two modality spaces. Its variant, $\text{VLM2Rec}_{\text{plug}}$, reuses the learned item embeddings in SR backbones and thus serves at the latency of conventional SR models. Experiments show that VLM2Rec mitigates the collapse and consistently improves accuracy and robustness.

cs.IR↗

RCER: Reconstructing Cross-Evidence Relations for Iterative Retrieval-Augmented Generation

Iterative retrieval-augmented generation (RAG) accumulates knowledge from retrieved evidence to answer complex questions, but existing methods struggle to reconstruct entity correspondences and inferential dependencies across retrieved passages as new information emerges. We propose RCER, an iterative RAG method that reconstructs these cross-evidence relations directly from accumulated source passages. Inter-round relational evidence acquisition identifies entity correspondences and relational dependencies to drive dynamic problem decomposition and iterative retrieval. Reasoning context reconstruction independently constructs a coherent reasoning context through joint selection of complementary passages and derivation of cross-evidence inferences. Cross-evidence compositional reasoning leverages these inferences to establish entity correspondences and compose relations across selected passages for answer derivation. Experiments show that RCER outperforms the best baselines by 2.83 EM and 3.06 F1 points on average across three multi-hop QA benchmarks and achieves superior performance on narrative and implicit reasoning tasks.

cs.IR↗

Jev-as-a-Judge for Brazilian Portuguese Information Retrieval: Relevance Assessment and Reranking

This study investigates Jev, a System One model designed for structured decision-making, in two information retrieval tasks: relevance assessment and reranking. We evaluate Jev using Brazilian Portuguese IR collections covering different domains and document types. First, we use Jev to generate relevance judgments for four collections and compare them with reference judgments. Exact agreement ranged from 53% to 65%, while quadratic weighted Cohen's kappa ranged from 0.52 to 0.82. Most disagreements involved adjacent relevance levels, with at least 94% of judgments matching exactly or differing by no more than one level. Despite differences at the individual query--document level, Jev-generated qrels produced retrieval system rankings similar to those obtained with reference qrels, with Kendall's tau ranging from 0.90 to 0.93 across two collections for nDCG@10 and MRR. Second, we evaluate Jev as a pointwise reranker of BM25 candidates on two collections. On a collection of short web passages, reranking the top 1,000 candidates increased nDCG@10 from 0.333 to 0.633 (+90%) and MRR from 0.685 to 0.903 (+32%). On a collection of full-length legal documents, reranking the top 100 candidates increased nDCG@10 from 0.356 to 0.403 (+13%) and MRR from 0.475 to 0.583 (+23%). These results indicate that Jev can support relevance assessment and improve BM25 ranking effectiveness across different document types, including short web passages and full-length legal documents.

cs.IR↗