Skip to content

ConTEB and InSeNT: Context is Gold to find the Gold Passage

optionalcorefrontierpaperrubric 12/122025 · arXiv; EMNLP 2025 (as cited by later work) · ~30 min

Max Conti, Manuel Faysse, Gautier Viaud, Antoine Bosselut, Céline Hudelot, Pierre Colombo

Read first: Late Chunking: contextual chunk embeddings with long-context encoders

Status

TL;DR. Two contributions:

  • ConTEB (Context-aware Text Embedding Benchmark) evaluates whether retrievers can find a chunk whose relevance depends on the rest of its document. Current embedders do poorly on it.
  • InSeNT (In-sequence Negative Training) is a contrastive post-training recipe. It combines late-chunking pooling with negatives drawn from the same document. It substantially improves ConTEB, but Table 2 shows NanoBEIR regressions: 63.2→60.4 for ModernBERT and 67.7→59.2 for ModernColBERT. The paper also reports more robustness to bad chunking and larger corpora.

Why it matters now. ConTEB is the de facto benchmark for contextual embeddings. Perplexity reports state of the art on it, and pplx-embed-context-v1 was trained on its training set. InSeNT is the canonical “train the encoder to use context” recipe.

The InSeNT objective, with a worked example

Section titled “The InSeNT objective, with a worked example”
The InSeNT objective: in-sequence and in-batch negatives Left: one document split into four chunks after a single late-chunking forward pass; chunk c2 is the gold chunk and c1, c3, c4 are its siblings. Middle: the query. Right: two InfoNCE terms. L_seq contrasts the gold chunk with its same-document siblings; L_batch contrasts it with chunks of other documents. The total loss is lambda_seq times L_seq plus one minus lambda_seq times L_batch. A note says that with in-batch negatives only, document-identifying features win and siblings collapse together. Bottom: a worked example with lambda_seq 0.1 and temperature 0.05. Softmax weights inside L_seq are 0.59 for the gold chunk at score 0.80, 0.40 for a sibling at 0.78, and 0.01 for a sibling at 0.60. L_seq is about 0.52 and L_batch about 0.003, so about 95 percent of the loss is in-sequence, and the gradient mainly pushes the gold chunk away from its near-duplicate sibling. Document d · one late-chunking pass c1 · sibling (negative) c2 · gold chunk (positive) c3 · sibling (negative) c4 · sibling (negative) query q L_seq · InfoNCE over gold + siblings negatives come from the same document L_batch · InfoNCE over gold + others negatives come from other documents L = λ_seq · L_seq + (1 − λ_seq) · L_batch With L_batch alone, features that identify the document are enough to win, so sibling chunks collapse together. L_seq keeps them apart. Worked example · λ_seq = 0.1, τ = 0.05 · softmax weight inside L_seq gold c2 (score 0.80) 0.59 sibling (score 0.78) 0.40 · the gradient pushes gold away from this one sibling (score 0.60) 0.01 L_seq ≈ 0.52 and L_batch ≈ 0.003, so about 95% of L is in-sequence despite λ_seq = 0.1. If the 0.78 sibling holds evidence the answer needs, the loss still pushes it away.
Original sketch. InSeNT mixes two InfoNCE terms: same-document siblings as negatives (L_seq) and other documents' chunks as negatives (L_batch). In the worked example the in-sequence term dominates even at λ_seq = 0.1.

Chunks are produced by late chunking (one forward pass over the document, then mean-pooling per chunk). Training minimises

L=λseq Lseq+(1−λseq) Lbatch,\mathcal L = \lambda_{\text{seq}}\,\mathcal L_{\text{seq}} + (1-\lambda_{\text{seq}})\,\mathcal L_{\text{batch}},

where both terms are InfoNCE losses for the gold chunk: Lseq\mathcal L_{\text{seq}} uses the gold chunk’s siblings from the same document as negatives, and Lbatch\mathcal L_{\text{batch}} uses chunks of other documents. In-batch negatives alone can be beaten by features that identify the document; adding those to every chunk makes siblings collapse together. Same-document negatives are the only signal that keeps them apart.

Example (λseq=0.1\lambda_{\text{seq}} = 0.1, temperature 0.05). The query scores 0.80 with the gold chunk, 0.78 and 0.60 with two siblings, 0.50 and 0.40 with two other-document chunks. Then Lseq≈0.52\mathcal L_{\text{seq}} \approx 0.52 and Lbatch≈0.003\mathcal L_{\text{batch}} \approx 0.003, so about 95% of the total loss is in-sequence despite the 0.1 weight, and about 40% of the softmax mass in Lseq\mathcal L_{\text{seq}} sits on the 0.78 sibling. The gradient mainly pushes the gold chunk away from its near-duplicate neighbour.

The evaluation link. If that 0.78 sibling actually holds the entity or definition the answer depends on, InSeNT is pushing evidence away as a negative. This is the same problem as an incomplete nugget or qrel set in evaluation: needed support that is unlabeled is scored as wrong. Beyond the Gold Chunk replaces the single gold chunk with graded answer and evidence labels for this reason; compare AutoNuggetizer.

Results: contextual gain versus short-context cost

Section titled “Results: contextual gain versus short-context cost”

Selected rows of Table 2 (nDCG@10). “ConTEB avg” is the mean over the eight ConTEB tasks; NanoBEIR is the paper’s non-contextual regression check, summed over 13 datasets. Runtime is per-document indexing time.

ModelConTEB avgNanoBEIRRuntime (ms/doc)
BM2541.543.44.29
ModernBERT Large52.063.217.83
ModernBERT Large + Late Chunking (untrained)61.063.215.81
ModernBERT Large + InSeNT75.660.415.26
ModernColBERT59.467.714.99
ModernColBERT + InSeNT70.659.27.57
Anthropic Contextual (LLM-rewritten chunks)72.463.21890.94

Read the two columns together. InSeNT gains 23.6 (ModernBERT) and 11.2 (ModernColBERT) ConTEB points; ModernBERT + InSeNT beats LLM-based contextual rewriting (75.6 vs 72.4) at about 1/120 of its indexing time. It loses 2.8 and 8.5 NanoBEIR points. The text describes short-context performance as maintained and notes that the late-interaction model degrades more; a reader should treat the NanoBEIR drop as a real cost to measure on their own non-contextual queries. Fine-tuning plain ModernBERT on the same data without context (also in Table 2: 50.1 ConTEB, 54.5 NanoBEIR) does not help, so the gain is not just the training data.

  • One gold chunk per query. Chunks that hold the entity, date or definition the answer depends on are scored as negatives in training and earn no credit in evaluation. This is the main critique in Beyond the Gold Chunk.
  • Short-context regression. NanoBEIR drops for both InSeNT models (above); the paper suggests replay data or model merging but does not test them.
  • Gold-chunk labels are produced with a specific chunking. Changing the chunker means re-labelling.
  • Overfitting risk: Perplexity reports that pplx-embed-context-v1, trained on ConTEB’s training set, transfers poorly to its broader MTEB-based chunk suite.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    InSeNT minimises L = λ_seq·L_seq + (1 − λ_seq)·L_batch, where L_seq is InfoNCE over the gold chunk and its same-document siblings and L_batch is InfoNCE over the gold chunk and chunks of other documents. Take λ_seq = 0.1 and τ = 0.05. The query scores 0.80 with the gold chunk, 0.78 and 0.60 with two siblings, and 0.50 and 0.40 with two other-document chunks. Compute L_seq, L_batch and L, the share of L that comes from the in-sequence term, and the softmax weight on the 0.78 sibling. What does this say about where the gradient goes, even at λ_seq = 0.1?

    What a strong answer covers
    • Logits s/τ: 16, 15.6, 12 (same document) and 10, 8 (other documents).
    • L_seq = log(1 + e^−0.4 + e^−4) = log(1.689) ≈ 0.524. L_batch = log(1 + e^−6 + e^−8) ≈ 0.0028.
    • L ≈ 0.1 × 0.524 + 0.9 × 0.0028 ≈ 0.052 + 0.0025 ≈ 0.055, so about 95% of the loss is in-sequence.
    • The 0.78 sibling gets softmax weight e^−0.4/1.689 ≈ 0.40 in L_seq, so the gradient mainly pushes the gold chunk away from that near-duplicate sibling.
    • A small λ_seq does not make the in-sequence term small. Once in-batch negatives are easy, same-document siblings dominate the gradient, so λ_seq should be read together with how hard each set of negatives is.
  2. Mechanism

    Explain why training a late-chunking encoder with only in-batch negatives tends to collapse chunks of the same document onto one another, and why the paper finds that the best λ_seq depends on the task (NanoBEIR and Geography versus NarrativeQA and Covid-QA).

    What a strong answer covers
    • With only in-batch negatives every negative comes from another document, so features that identify the document are enough to win. Adding them to every chunk lowers the loss, and sibling chunks converge.
    • In-sequence negatives are the only signal that rewards keeping chunks of the same document apart, which is the "specificity" role in the paper.
    • NanoBEIR and Geography are mainly about telling documents apart, so more in-batch weight helps. NarrativeQA and Covid-QA are about finding the right place inside a known document, so more in-sequence weight helps.
    • Using only one kind of negative is worst in Figure 3: without in-batch negatives the model does not learn document-level context, and without in-sequence negatives it collapses.
  3. What if…

    InSeNT models beat their untrained late-chunking counterparts by 14.6 (ModernBERT) and 11.5 (ModernColBERT) nDCG@10. Which two controls in the paper rule out "it is just the training data" and "any concatenated sequence will do", and what does each result tell you about where the gain comes from?

    What a strong answer covers
    • ModernBERT + Training: the same data used for ordinary non-contextual training does not improve on the untrained baseline. The gain comes from the contextual objective, not from in-domain data.
    • InSeNT on concatenated short documents (Nomic data clustered as in Morris and Rush) gave poor results. Siblings from unrelated short documents share no real context, so in-sequence negatives only teach the model to separate texts.
    • Together they say the gain needs naturally long documents whose chunks depend on each other, plus an objective that uses that dependence.
    • Missing control: an InSeNT-style objective without late chunking (chunks encoded separately, siblings still negatives) would show how much comes from same-document negatives alone.
  4. Critique

    Football and Geography are built by having an LLM rewrite every chunk except the first so that it no longer mentions the document's theme, which all queries mention. Chunks come from a RecursiveCharacterSplitter at 1,000 characters, and each query has one gold chunk. Critique this construction: what shortcuts could a model learn that would score well here but not transfer, and how would you redesign it?

    What a strong answer covers
    • Position shortcut: the theme always survives in chunk 1, so a model can learn "copy features from the first chunk" instead of resolving references in general.
    • Rewriting artifacts: LLM-rewritten chunks may differ in style from the untouched first chunk; anything that tells them apart is a confound.
    • Labels depend on the splitter: one gold chunk under fixed 1,000-character boundaries scores chunks that hold the needed context as negatives, and changing the boundaries changes the task.
    • Redesign: place the disambiguating sentence at varied positions (or several); add a control with the context sentence removed, where performance should fall to the non-contextual level; label answer spans and evidence sentences rather than one chunk.
  5. Research idea

    InSeNT treats every sibling as an equally wrong negative, even siblings that hold the evidence a reader needs. Propose a research project that replaces hard in-sequence negatives with graded within-document targets, using only open models, and state what would show the idea does not work.

    What a strong answer covers
    • Targets: an open span-level relevance model (a Provence-style compressor or a cross-encoder over sentences) scores each sibling; a softmax over those scores gives a within-document target distribution.
    • Arms: hard InSeNT; soft KL to the open teacher; soft KL plus the in-batch term. Same backbone, data and steps.
    • Evaluation: ConTEB nDCG@10 plus evidence-aware metrics (evidence recall, α-nDCG) on data with evidence labels, and a sibling-similarity statistic to watch for collapse.
    • Falsified if soft targets do not improve evidence recall at equal answer retrieval, or if siblings collapse again because the teacher rates many of them as partly relevant.

Done with this page?

Status