Contextual Embeddings Beyond the Gold Chunk: What Two New Benchmarks Measure
A retriever should surface the chunks that answer a query and the chunks needed to verify the answer, and graded relevance distilled from a context compressor gets you there without gold-chunk labels or a fixed chunking strategy.
On this page
A buyer has two embedding models on the shortlist, a 9B and a 0.6B, and one contract question to settle: must the training label mark exactly one relevant chunk per document? The usual advice is yes. Pick the chunk that answers the query, contrast it against its siblings in the same document, and score retrieval by whether that chunk ranks first. Most people assume that is enough, because relevance looks concentrated. The paper at hand [1] argues the assumption fails in production, where an answer often needs a second chunk to say which version, entity, or condition it applies to, and where a single-gold-chunk benchmark hands out no credit for surfacing that evidence.
The default: one relevant chunk per document
Start with the pipeline. In retrieval-augmented generation, long documents are split into chunks, each chunk becomes a vector, and retrieval fetches chunks independently before a generator reads them. The quality of the answer is therefore capped by the quality of chunk retrieval. The trouble is that a chunk is often not self-sufficient: it may name an entity introduced three pages earlier, inherit meaning from a heading, or depend on a definition stated elsewhere.
A contextual embedding computes each chunk vector with respect to the whole document rather than the chunk text alone. The most common route is late chunking: encode the document once, then pool token representations inside each chunk. Prior training on this route leans on gold-chunk annotations. For each query, an annotator, usually a large language model, selects the single chunk that answers it, and training combines a cross-document contrastive loss with a within-document loss that contrasts the gold chunk against its siblings.
Paper [1] identifies two hard problems in that supervision. Semantically, treating every sibling as a negative also demotes the chunk that introduces the entity or supplies a complementary fact, while the document-level signal says the document is relevant but not where. Operationally, each training pair requires a large model to read the document and pick a chunk, and the label is tied to the chunking that produced it, so changing the chunking means reannotating the corpus.
| Dimension | Gold-chunk supervision | Compressor distillation (this paper) |
|---|---|---|
| Label per query | One chunk | Graded score for every chunk in the positive document |
| Supporting chunks | Treated as negatives | Keep the teacher's score; ranked below the answer but not suppressed |
| Changing chunking | Reannotate | Targets are chunking-independent; chunking sampled during training |
| Annotation cost | A large model reads and selects per pair | Teacher runs online, computed per batch |
Training: distilling a graded score for every chunk
The teacher is a query-aware context compression model, the one already serving in Perplexity's answer pipeline. It treats compression as token-level sequence labeling: query and document are concatenated through a cross-encoder that assigns every document token a keep probability between 0 and 1. Supervision comes from a large model labeling each sentence as vital (answers the query alone), relevant (context needed to interpret the answer), or irrelevant, mapped to soft targets of 1, something between 0 and 1, and 0. A token inherits the overlap-weighted average of the sentences it covers.
The aggregation step matters most. A chunk's relevance is the mean score of its k highest-scoring tokens, which means the score can be recomputed for any chunking at training time and the labels stop depending on the split. A temperature-scaled softmax over the positive document's chunks gives the target distribution, in-batch negative documents get zero probability, and the student fits it with a forward KL divergence. Document score is the maximum over its chunk scores, borrowed from ColBERT's MaxSim but lifted from tokens to chunks, plus a document-level InfoNCE. The total loss weights distillation at 1 and contrastive at 2.
Practical details: the 9B model emits 2048-dimensional int8 vectors, trains Matryoshka representations at 1024 and 2048 dimensions with quantization-aware training, and is fine-tuned with LoRA as a soup of checkpoints from one run. The 0.6B model is not trained the same way; it distills the 9B at the representation level, aligning to the 1024-dimensional prefix, which the authors found better than compressor supervision at that scale. The two share an embedding space, so an index built with the 9B model can be queried with the 0.6B one. Training covers roughly 440 public and in-house query-document datasets in over 50 languages, about 57M pairs for the 9B model; compression supervision is switched off for data such as FAQ sets where within-document relevance has no meaning.
Two new benchmarks: what Context-bench and Q2D-Chunk actually label
Changing training without changing evaluation is grading your own homework. Paper [1] therefore releases two benchmarks that share one property: labels cover both the chunks that answer a query and the evidence chunks needed to verify the answer. Context-bench is a controlled diagnostic built by synthetic injection, so cross-chunk dependencies can be created on purpose and attributed cleanly. Q2D-Chunk is built from real search traffic and is published as a public leaderboard.
The metrics are split into four families, and this is the part most worth copying:
- Answer retrieval: does the chunk that actually answers the query rank high.
- Evidence retrieval: do the chunks that explain or verify the answer also rank high, which older benchmarks never rewarded.
- Coverage and reading cost: how many chunks must be read to assemble answer plus evidence.
- Document retrieval: can the model pick the right document among near-identical ones that differ only in version or date.
Data hygiene is stated explicitly. No ConTEB training data was used, no Context-bench or Q2D-Chunk data was used for training, and no training data carries chunk-level annotations at all. For anyone auditing model evaluations, that matters more than the headline scores.
Results: the 9B model takes all three textual benchmarks
The paper reports that its 9B model sets a new state of the art on Context-bench, on Q2D-Chunk, and on the existing ConTEB. Among dense retrievers it also reaches state-of-the-art visual document retrieval on ViDoRe-V3, with MIRACL-Vision named in the contribution list. Document-level retrieval, cross-domain and chunk-size sensitivity, and BRIGHT results sit in the body and appendices; the exact figures belong to the original tables, and no conversion is attempted here.
One design detail is easy to miss. The same model can run in single-chunk mode, treating the whole document as one chunk and producing one mean-pooled vector, or in the default multi-chunk mode that keeps the standard contextual retrieval interface with one embedding per chunk. No extra compression or reranking stage runs at inference, so the teacher's latency is paid only during training.
Storage was treated as a first-class constraint rather than an afterthought. Two Matryoshka dimensions at 1024 and 2048, int8 quantization, and a shared embedding space across the 9B and 0.6B sizes let a team index with the large model and query with the small one. Nothing here buys quality by multiplying vectors.
Chunking images: up to 16 horizontal bands per page
Both models accept images through the vision tower of their vision-language base model. The 9B model is trained on text only, yet its visual retrieval ability transfers from that base, and the authors report they could not improve on it by mixing image pairs into its contrastive training. Visual data did help the 0.6B distillation, which mixes in 25% image data.
They also extend chunking to pages. The vision tower encodes a page as a row-major sequence of visual tokens, partitioned into up to 16 horizontal bands, one chunk each. A learned chunk separator token sits between consecutive bands, with its positional coordinates centered on the boundary, and each chunk embedding is the mean of its band's token embeddings. The paper reports visual document retrieval improving as image chunking gets finer, the same direction as on text: one vector per page throws away too much.
Where this method does not apply
First, the ceiling is the teacher. Chunk scores are aggregated from the compressor's token probabilities, and those are supervised by a large model's three-way sentence labels. Where the teacher cannot separate vital from relevant, the student cannot learn it. The paper notes that distillation supervision is disabled for data such as FAQ sets, so the method does not apply uniformly across data shapes.
Second, evidence is a defined construct, not an objective quantity. Both benchmarks label answer and evidence chunks under the paper's definition; a different team or a different downstream generator may need different evidence. Treating the split as a universal standard fails when the downstream task shifts.
Third, the visual gains are conditional. The 9B model's visual retrieval comes from base-model transfer, not from this training recipe, and the finer-chunking result was measured under their band-based split of up to 16 bands. Column-based or figure-based chunking is out of scope.
Finally, if you already run a decent small model and only want to change the labeling workflow, do the arithmetic first. Rebuilding evaluation and rerunning benchmarks can cost more than the annotation it saves. The method fits systems where queries need multi-chunk evidence and the chunking strategy is still moving.
