ConTra:通过前缀生成实现高效上下文检索的训练框架
ConTra: A Training Framework for Effective Contextual Retrieval via Prefix Generation
AI 导读
ConTra(Context That Travels)是一个基于强化学习的轻量级前缀生成器训练框架,在索引时为每个文本块生成前缀并存储增强文本及其向量,兼顾向量检索与重排序。
正文 · 原文
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 this https URL.
| Comments: | 15 pages |
| Subjects: | Information Retrieval (cs.IR); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.34366 [cs.IR] |
| (or arXiv:2611.34366v1 [cs.IR] for this version) | |
| https://doi.org/10.48550/arXiv.2611.34366 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Jingbang Chen [view email]
[v1]
Wed, 25 Nov 2026 13:30:46 UTC (143 KB)
来源:arXiv cs.AI · arxiv.org