跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2611.34366 · v2

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

首次提交 2026-11-25 21:30
版本更新 2026-12-02 12:21
雷达观测 2026-12-03 11:48
arXiv ↗PDF ↗

摘要

Modern data management systems organize long documents, such as web pages, encyclopedia articles, and technical manuals, to support information retrieval and downstream applications. To make them searchable at scale, systems split each document into chunks and index them as independent records. Chunking separates passages from the document-level context needed to identify and rank them. Contextual encoders pack this context into chunk vectors, leaving it inaccessible to downstream components. LLM-generated prefixes make context readable to both vector search and reranking, but prompting large models for each chunk incurs high indexing costs, and their prefixes often underperform specialized contextual encoders. We introduce ConTra (Context That Travels), a reinforcement learning framework that trains lightweight language models to generate one concise prefix per chunk during index construction. Its reward combines feedback from frozen embedding and reranking models with factual verification and length control. The stored prefix can be reused across retrieval stages. We also introduce RecoBench (Retrieval in Natural and Perturbed Contexts Benchmark), comprising five real-world collections and three controlled conditions with distracting text. Across ConTEB and RecoBench, ConTra-2B outperforms PPLX-4B, Voyage-4, and a prompted 9B baseline using Anthropic's method overall. On ConTEB, it surpasses the best overall scores of the 9B baseline and PPLX-4B by up to 3.15 points while indexing short documents 7.74x and 2.15x as fast as those baselines, respectively. Post-trained only on ConTEB, ConTra-2B achieves the highest overall reranking score among standalone methods on RecoBench and shows lower sensitivity to random and topically similar distractors. Code, datasets, and trained models are available at https://sstan1.github.io/ConTra-Context-That-Travels/

作者备注:15 pages

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

仅对比实际观测的元数据,不代表 PDF 正文或实验变化。版本可能不连续;带删除线为移除,下划线为新增。

摘要变化

DataModern data management systems organize large text collections forlong tasksdocuments, such as finding relevant studies andweb extractingpages, contractencyclopedia clauses.articles, Systemsand maketechnical longmanuals, documentsto searchablesupport byinformation splittingretrieval themand intodownstream independentlyapplications. indexedTo chunks.make Chunkingthem cansearchable separateat textscale, fromsystems itssplit identifyingeach details.document Theinto indexingchunks challengeand isindex tothem keepas eachindependent chunkrecords. independentlyChunking searchableseparates whilepassages preservingfrom the document-level context needed to findidentify and rank itthem. Existing methodsContextual eitherencoders encodepack thatthis context ininto chunk vectors or, attachleaving it asinaccessible ato textdownstream prefixcomponents. Context encoded onlyLLM-generated inprefixes vectorsmake iscontext unavailablereadable to text rerankers. Prompted prefixes serve both vector search and reranking, but areprompting costlylarge tomodels generatefor ateach chunk incurs high indexing timecosts, and cantheir prefixes often underperform specialized contextual encoders. We proposeintroduce ConTra (Context That Travels), a reinforcement learning framework forthat trainingtrains lightweight language models to generate one concise prefix generatorsper chunk during index construction. Its reward combines feedback from frozen embedding and reranking models with factual verification and length control. ConTra generatesThe onestored prefix per chunk during index construction and stores the augmented text and its embeddingcan forbe reusereused across queries.retrieval Tostages. evaluateWe contextualalso retrievalintroduce acrossRecoBench workloads(Retrieval andin underNatural interference,and wePerturbed introduceContexts RealContextBenchBenchmark), a benchmark withcomprising five applicationreal-world collections and three controlled conditions that isolate the effect ofwith distracting text. OnAcross ConTEB and RealContextBenchRecoBench, ConTra-2B outperforms thePPLX-4B, Voyage-4, and a prompted 9B baseline using Anthropic's method andoverall. theOn PPLX-4BConTEB, contextualit encoder,surpasses withthe abest marginoverall scores of the 9B baseline and PPLX-4B by up to 3.15 points over their best overall scores, while indexing short documents 7.74 times74x and 2.15 times15x as fast as those baselines, respectively. Post-trained only on ConTEB, itConTra-2B leadsachieves the standalone methods on RealContextBenchhighest afteroverall reranking andscore isamong lessstandalone sensitivemethods thanon theRecoBench promptedand 2Bshows baselinelower sensitivity to random and topically similar distractors. Code, datasets, and trained models are available at https://sstan1.github.com/SStan1io/ConTra.-Context-That-Travels/

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v2 · 2026-12-02 12:21 · 最新观测版本

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

Modern data management systems organize long documents, such as web pages, encyclopedia articles, and technical manuals, to support information retrieval and downstream applications. To make them searchable at scale, systems split each document into chunks and index them as independent records. Chunking separates passages from the document-level context needed to identify and rank them. Contextual encoders pack this context into chunk vectors, leaving it inaccessible to downstream components. LLM-generated prefixes make context readable to both vector search and reranking, but prompting large models for each chunk incurs high indexing costs, and their prefixes often underperform specialized contextual encoders. We introduce ConTra (Context That Travels), a reinforcement learning framework that trains lightweight language models to generate one concise prefix per chunk during index construction. Its reward combines feedback from frozen embedding and reranking models with factual verification and length control. The stored prefix can be reused across retrieval stages. We also introduce RecoBench (Retrieval in Natural and Perturbed Contexts Benchmark), comprising five real-world collections and three controlled conditions with distracting text. Across ConTEB and RecoBench, ConTra-2B outperforms PPLX-4B, Voyage-4, and a prompted 9B baseline using Anthropic's method overall. On ConTEB, it surpasses the best overall scores of the 9B baseline and PPLX-4B by up to 3.15 points while indexing short documents 7.74x and 2.15x as fast as those baselines, respectively. Post-trained only on ConTEB, ConTra-2B achieves the highest overall reranking score among standalone methods on RecoBench and shows lower sensitivity to random and topically similar distractors. Code, datasets, and trained models are available at https://sstan1.github.io/ConTra-Context-That-Travels/

查看此版本解读 →查看此版本原文 ↗
v1 · 2026-11-25 21:30

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

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.

查看此版本解读 →查看此版本原文 ↗