arXiv:2610.38854cs.LGOct 2026

Manuscript Offprint

arXiv:2610.38854

Contextual Embeddings Beyond the Gold Chunk

Sedigheh Eslami, Markus Krimmel, William Barber, Antoine Chaffin, Maximilian Schall, Jonas Golde, Louis Milliken, Ekaterina Glazkova, Denis Bykov, Bo Wang

Abstract

Contextual embeddings represent chunks of a document with respect to the document's global context. These models are typically trained and evaluated under the assumption that a relevant document contains only a single relevant chunk. In this work, we argue that in real-world use cases a retriever should not only find answers spread over several chunks but also surface the evidence needed to verify them. To address this, we introduce pplx-embed-v2-context, a family of contextual embedding models trained by distilling graded chunk-level relevance from a query-aware context compression model. This removes the need for gold-chunk labels and makes the training targets independent of the chunking. We utilize a vision-language backbone for training and release pplx-embed-v2-context in 9B and 0.6B sizes with compatible embedding spaces. On the evaluation side, we introduce two benchmarks that label both the chunks that answer a query and the evidence needed to verify the answer. Context-bench is a controlled diagnostic, and Q2D-Chunk is built from real-world search queries. To encourage further research, we also publish Q2D-Chunk as a public leaderboard. Our 9B model sets a new state of the art on both benchmarks and ConTEB. We find that the visual retrieval capabilities of our 9B model transfer from its vision-language base model and propose to extend chunking to image inputs. We demonstrate that our models achieve state-of-the-art performance among dense retrievers on visual ViDoRe-V3 and that performance improves with granular image chunking.

1. Introduction

In retrieval-augmented generation (RAG), long documents are split into chunks that are indexed and retrieved independently and then passed to the generative LLM. The quality of the generated answer is thus bounded by the quality of chunk retrieval. A chunk may refer to an entity introduced earlier, inherit its meaning from a section heading, or rely on definitions located elsewhere in the document. A standard dense embedding model encodes each chunk in isolation and loses this context, so a chunk may no longer carry enough information to be matched to a query. On the other hand, encoding the entire document as a single vector cannot faithfully capture all the details of a long document. Contextual embedding models represent each chunk of a document as a vector that is computed with respect to the context of the whole document, rather than from the chunk's own text alone.

One of the most common approaches to contextual embedding is late chunking (Günther et al., 2024), in which the document is encoded in a single forward pass and chunk

© 2026 Perplexity and turbopuffer. All rights reserved embeddings are obtained by pooling the token representations within each chunk. Prior work (Conti et al., 2025; Eslami et al., 2026) has shown that such contextualized chunk representations substantially improve retrieval over independently encoded chunks, particularly on long documents. Training these models requires supervision that identifies which parts of a document are relevant to a given query. Prior work relies on gold-chunk annotations: for each query, an annotator, typically a large language model, identifies the chunk of the document that answers it. The model is then trained with the usual cross-document contrastive loss together with a within-document loss that contrasts the gold chunk against the other chunks of the same document.

Previous work utilizing gold-chunk supervision assumes that relevance is concentrated in a single chunk. Contrasting the gold chunk against its siblings treats every other chunk as a negative, including chunks that introduce an entity, resolve a reference, or supply a complementary fact the answer depends on, while a document-level loss says that the document is relevant but not where. Each annotation yields a single gold label per query, and neither signal lets the model learn to incorporate context selectively. This supervision is also costly to scale. Every training pair requires a large language model to read the document and select a chunk, which limits the size and diversity of the training data. Moreover, labels are tied to the chunking with which they were produced, so changing or varying the chunking strategy requires reannotating the corpus.

The assumption that a query has a single relevant chunk also underlies the evaluation of contextual embeddings. Existing benchmarks, including ConTEB (Conti et al., 2025), label one gold passage per query and reward ranking it first. In RAG, however, the generative model might need more than the chunk that states the answer: complementary information, for example, the sentence that identifies the entity, document, date, or version the answer refers to, or a definition or condition stated elsewhere, to produce a correct answer and to confirm that it applies to what was asked. A benchmark with a single gold passage gives no credit for retrieving this information, and does not test whether a model finds the right document among near-identical ones that differ only in such details.

In this work, we address the shortcomings of both the training and the evaluation of contextual embedding models. Our contributions are as follows.

  1. We propose a novel approach for training contextual embeddings that replaces gold-chunk labels with relevance scores distilled from a query-aware context compression model.
  2. We introduce context-bench and Q2D-Chunk, the first benchmarks to label both answer chunks and the evidence chunks needed to interpret or verify the answer. We publish Q2D-Chunk as a public leaderboard to encourage further research.
  3. We release pplx-embed-v2-context in 9B¹ and 0.6B² sizes on Hugging Face and show that our 9B model achieves state-of-the-art performance across various textual chunk retrieval benchmarks, including ConTEB, context-bench, and Q2D-Chunk.
  4. We show that our 9B model exhibits zero-shot visual document retrieval (VDR) capabilities and demonstrate that performance scales with chunking granularity. Our models achieve state-of-the-art results among dense retrievers on ViDoRe-V3 and MIRACL-Vision.

¹https://huggingface.co/perplexity-ai/pplx-embed-v2-context-9b ²https://huggingface.co/perplexity-ai/pplx-embed-v2-context-0.6b