TRANSMISSION // 2611.34366v1

ConTra teaches smaller models to add useful context to searchable text

Source published

A new retrieval framework generates short, source-checked notes for text chunks, helping search systems use document context during both initial retrieval and reranking.

AI-generated conceptual illustration for ConTra teaches smaller models to add useful context to searchable text
AI-generated conceptual illustration; not documentary evidence.

When a document is split into pieces for search, a useful heading or identifying detail can end up in a different piece. ConTra aims to put that missing context back—without relying on a large model to write every note.

The context that gets lost between chunks

Search systems often break long documents into smaller passages, or chunks, and index each one separately. This makes large collections easier to search, but it can detach a passage from the details that explain what it refers to. A table of financial figures, for example, may need a heading elsewhere in the document to identify the company and year. Without that context, a search system may retrieve the wrong table—or fail to rank the right one highly.

A typical retrieval pipeline has two stages. First, an embedding model quickly finds candidate passages based on similarity to a query. Then a reranker examines the candidates’ text and orders them more carefully. Some systems add context to a chunk’s vector representation, but that context may not be visible to the text-reading reranker. Other systems attach a written prefix to each chunk, making context available at both stages, but generating those prefixes with a large model can be costly.

The paper introduces ConTra, short for “Context That Travels,” to train smaller language models to produce concise prefixes during index construction. Each prefix is added to its chunk and reused across future queries. The authors also introduce RealContextBench, a benchmark intended to test retrieval across different applications and under distracting surrounding text.

Training prefixes for usefulness and accuracy

ConTra’s training process uses reinforcement learning: the model generates candidate prefixes and receives rewards based on how those additions affect retrieval. Frozen embedding and reranking models score whether the augmented chunk is more useful for finding and ranking relevant material. A separate frozen language-model judge checks whether added details are supported by the source and correctly attributed. A length penalty discourages verbose prefixes that could make neighboring chunks too similar.

The authors trained 0.8-billion-, 2-billion- and 4-billion-parameter versions, starting from Qwen3.5 models. Training used a filtered set of 5,760 query-and-chunk examples drawn from ConTEB, a benchmark focused on retrieving passages that depend on document context. The evaluation used ConTEB and RealContextBench. The latter includes five application collections—web search, technical question answering, stories, meetings and financial analysis—and controlled tests where chunks appear alone or alongside random or topically similar distractors.

Strong benchmark results, with important qualifications

On ConTEB, ConTra-2B achieved a reported overall reranked nDCG@10 score of 0.8525. This ranking metric rewards systems for placing relevant results near the top. The score was higher than those reported for the prompted 9B baseline (0.8279) and PPLX-4B contextual encoder (0.7310) in the paper’s comparison. The authors also report that ConTra-2B indexed their short-document test collection 7.74 times as fast as the prompted 9B pipeline and 2.15 times as fast as PPLX-4B.

On RealContextBench, ConTra-2B was trained only on ConTEB and achieved the highest overall reranking score among the standalone methods evaluated. The authors report that trained ConTra models were less affected by random or topically similar distractors in the benchmark’s controlled tests. This is evidence about the tested datasets and setup, not a guarantee that the method will resist every kind of noisy or misleading context.

The results also reveal a limitation: model size and task matter. The 0.8B version struggled on an Insurance task requiring it to connect tables with headings elsewhere in long documents; the authors say reinforcement-learning post-training did not overcome that gap. And while the paper reports strong aggregate results, individual collections produced different rankings among model sizes and methods.

What the evidence does—and doesn’t—show

These experiments measure retrieval and reranking on benchmark collections. They do not establish that ConTra improves the accuracy of answers generated by a downstream system, or that the same speed and quality trade-offs will hold in every real-world index. Indexing speed was measured on a single NVIDIA H100 GPU using two selected collections, so it should not be read as a universal deployment estimate. The paper’s authors also note a case where chunk-level relevance labels failed to credit a passage whose generated prefix supplied an answer; this illustrates how benchmark labels can miss some forms of usefulness, but does not itself establish broader question-answering gains.

The source is an arXiv preprint, not evidence of peer review. The paper reports that code, datasets and trained models are available, which may help others examine the results. Independent replication and evaluation on additional collections would help clarify how well the approach generalizes.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.