atlas

Research map / Label-efficient and robust learning / Recognition and long-tail

Contextual Document Embeddings

ICLR 2025 · Label-efficient and robust learning › Recognition and long-tail · approach: Multilingual language representation pretraining · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes contextual document embeddings via an adversarial (cluster-based) contrastive batch construction and a two-stage Contextual Document Encoding architecture that conditions each document embedding on embeddings of neighboring corpus documents.

Problem

Dense document embeddings are computed independently per document, so they cannot adapt to corpus-specific statistics (like IDF) and degrade under domain shift at test time in retrieval.

Approach

Two complementary methods: (1) Adversarial Contrastive Learning that clusters training data into hard, self-similar batches so in-batch negatives are challenging; (2) a Contextual Document Encoding architecture where a second-stage transformer conditions on first-stage embeddings of neighboring corpus documents, so document embeddings depend on the test corpus context.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use adversarially selected batches instead of in-domain random batchesbiencoder training · BEIR test datasetsNDCG@10Helped
use a small batch of 256 with CDE instead of relying on large training batchesCDE · BEIR test datasetsNDCG@10Helped
add contextual document encodingbiencoder · BEIR test datasetsNDCG@10Helped
combine adversarially chosen batches with contextual document encodingretrieval model · BEIR test datasetsNDCG@10Helped
use out-of-domain context instead of in-domain context (ablation)CDE · BEIR test datasets (aggregate)NDCG@10: 0.499 -> 0.466Hurt
use random in-domain context instead of top-k context for both document and query encoding (ablation)CDE · BEIR test datasets (aggregate)NDCG@10Helped
provide context documents from the task's own domain instead of another domain (ablation)CDE · CQADupstackNDCG@10Helped
increase the number of contextual examples toward a full context window (ablation)CDE · BEIR test datasetsNDCG@10Helped
remove context by using null context (ablation)CDE · BEIR test datasetsNDCG@10Hurt
train with large random in-domain batches instead of small adversarially selected batches (ablation)biencoder · BEIR test datasetsNDCG@10Helped

Surprising findings

Limitations

Experimental setup

Datasets: Nomic meta-datasets (unsupervised and supervised, incl. HotpotQA and MS MARCO)

Benchmarks: BEIR (twelve datasets incl. TREC-Covid, FiQA, Quora, CQADupStack)

Metrics: NDCG@10

Baselines: biencoder baselines with batch sizes 256 and 16,384 BM25 GTR Contriever E5 GTE Nomic-Embed

Builds on: GTR NomicBERT GradCache BEIR FAISS

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy