Contextual Document Embeddings
Not on the map. Why?
Abstract (arXiv)
Dense document embeddings are central to neural retrieval. The dominant paradigm is to train and construct embeddings by running encoders directly on individual documents. In this work, we argue that these embeddings, while effective, are implicitly out-of-context for targeted use cases of retrieval, and that a contextualized document embedding should take into account both the document and neighboring documents in context - analogous to contextualized word embeddings. We propose two complementary methods for contextualized document embeddings: first, an alternative contrastive learning objective that explicitly incorporates the document neighbors into the intra-batch contextual loss; second, a new contextual architecture that explicitly encodes neighbor document information into the encoded representation. Results show that both methods achieve better performance than biencoders in several settings, with differences especially pronounced out-of-domain. We achieve state-of-the-art results on the MTEB benchmark with no hard negative mining, score distillation, dataset-specific instructions, intra-GPU example-sharing, or extremely large batch sizes. Our method can be applied to improve performance on any contrastive learning dataset and any biencoder.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Builds on 42 of its 58 references that are in the map. First posted on arXiv 3 Oct 2024.
Builds on
42 of 58 references.
References · 42
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,160
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
30 more
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2019Passage Re-ranking with BERTcited by 629
- 2022MTEB: Massive Text Embedding Benchmarkcited by 623
- 2020Contrastive Learning with Hard Negative Samplescited by 619
- 2019ELI5: Long Form Question Answeringcited by 567
- 2021ColBERTv2: Effective and Efficient Retrieval via Lightweight Late Interactioncited by 464
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
- 2020RocketQA: An Optimized Training Approach to Dense Passage Retrieval for Open-Domain Question Answeringcited by 410
- 2019Attentive Neural Processescited by 280
- 2024Nomic Embed: Training a Reproducible Long Context Text Embeddercited by 255
- 2021Efficiently Teaching an Effective Dense Retriever with Balanced Topic Aware Samplingcited by 238
- 2022Promptagator: Few-shot Dense Retrieval From 8 Examplescited by 233
- 2018WikiHow: A Large Scale Text Summarization Datasetcited by 203
- 2021Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrievalcited by 203
- 2021PAQ: 65 Million Probably-Asked Questions and What You Can Do With Themcited by 198
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 189
- 2021Scaling Deep Contrastive Learning Batch Size under Memory Limited Setupcited by 123
- 2021Self-Attention Between Datapoints: Going Beyond Individual Input-Output Pairs in Deep Learningcited by 112
- 2022Test-Time Adaptation via Self-Training with Nearest Neighbor Informationcited by 64
- 2023Scaling Expert Language Models with Unsupervised Domain Discoverycited by 59
- 2021GooAQ: Open Question Answering with Diverse Answer Typescited by 53
- 2019AmazonQA: A Review-Based Question Answering Taskcited by 43
- 2024GISTEmbed: Guided In-sample Selection of Training Negatives for Text Embedding Fine-tuningcited by 40
- 2021Understanding Hard Negatives in Noise Contrastive Estimationcited by 39
- 2021Pseudo-Relevance Feedback for Multiple Representation Dense Retrievalcited by 31
- 2022LaPraDoR: Unsupervised Pretrained Dense Retriever for Zero-Shot Text Retrievalcited by 24
- 2024MoDE: CLIP Data Experts via Clusteringcited by 22
- 2018NPRF: A Neural Pseudo Relevance Feedback Framework for Ad-hoc Information Retrievalcited by 16
- 2022Global Contrastive Batch Sampling via Optimization on Sample Permutationscited by 5
- 2021Towards Universal Dense Retrieval for Open-domain Question Answeringcited by 1
Built on by
Citing papers per year: 2024: 2; 2025: 12; 2026: 5.
19 papers.
Sort:
By area:
- 2024LLMs are Also Effective Embedding Models: An In-depth Overviewcited by 32
- 2025Breaking the Batch Barrier (B3) of Contrastive Learning via Smart Batch Miningcited by 27
- 2025DRAMA: Diverse Augmentation from Large Language Models to Smaller Dense Retrieverscited by 19
- 2025Hard Negatives, Hard Lessons: Revisiting Training Data Quality for Robust Information Retrieval with LLMscited by 17
- 2025Reasoning Beyond Limits: Advances and Open Problems for LLMscited by 16
- 2025NeoBERT: A Next-Generation BERTcited by 14
- 2026Diffusion-Pretrained Dense and Contextual Embeddingscited by 9
- 2025Single-Pass Document Scanning for Question Answeringcited by 6
- 2025When Claims Evolve: Evaluating and Enhancing the Robustness of Embedding Models Against Misinformation Editscited by 3
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Surveycited by 3
- 2025Stealing Creator's Workflow: A Creator-Inspired Agentic Framework with Iterative Feedback Loop for Improved Scientific Short-form Generationcited by 1
- 2025Overcoming State Inertia: Minimally Invasive Temporal Alignment for Evolving Contextscited by 1
7 more
- 2026Benchmarking Large Language Models for Knowledge Graph Validationcited by 1
- 20241-800-SHARED-TASKS at RegNLP: Lexical Reranking of Semantic Retrieval (LeSeR) for Regulatory Question Answeringcited by 0
- 2025Zero-Shot Contextual Embeddings via Offline Synthetic Corpus Generationcited by 0
- 2025Finding Diamonds in Conversation Haystacks: A Benchmark for Conversational Data Retrievalcited by 0
- 2026Semantic Differentiation for Tackling Challenges in Watermarking Low-Entropy Constrained Generation Outputscited by 0
- 2026Context-aware tokenization for Cross-subject Emotion Decoding from EEGcited by 0
- 2026Self-Evolving Search Indexcited by 0
- 2026Self-Evolving Search Index17 Sep 2026
- 2026Context-aware tokenization for Cross-subject Emotion Decoding from EEG30 May 2026
- 2026Diffusion-Pretrained Dense and Contextual Embeddings11 Feb 2026
- 2026Benchmarking Large Language Models for Knowledge Graph Validation11 Feb 2026
- 2026Semantic Differentiation for Tackling Challenges in Watermarking Low-Entropy Constrained Generation Outputs14 Jan 2026
- 2025Overcoming State Inertia: Minimally Invasive Temporal Alignment for Evolving Contexts3 Dec 2025
- 2025Finding Diamonds in Conversation Haystacks: A Benchmark for Conversational Data Retrieval3 Oct 2025
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Survey28 Jul 2025
- 2025Zero-Shot Contextual Embeddings via Offline Synthetic Corpus Generation30 Jun 2025
- 2025Hard Negatives, Hard Lessons: Revisiting Training Data Quality for Robust Information Retrieval with LLMs22 May 2025
- 2025Breaking the Batch Barrier (B3) of Contrastive Learning via Smart Batch Mining16 May 2025
- 2025Stealing Creator's Workflow: A Creator-Inspired Agentic Framework with Iterative Feedback Loop for Improved Scientific Short-form Generation26 Apr 2025
7 more
- 2025Single-Pass Document Scanning for Question Answering4 Apr 2025
- 2025Reasoning Beyond Limits: Advances and Open Problems for LLMs26 Mar 2025
- 2025When Claims Evolve: Evaluating and Enhancing the Robustness of Embedding Models Against Misinformation Edits5 Mar 2025
- 2025NeoBERT: A Next-Generation BERT26 Feb 2025
- 2025DRAMA: Diverse Augmentation from Large Language Models to Smaller Dense Retrievers25 Feb 2025
- 2024LLMs are Also Effective Embedding Models: An In-depth Overview17 Dec 2024
- 20241-800-SHARED-TASKS at RegNLP: Lexical Reranking of Semantic Retrieval (LeSeR) for Regulatory Question Answering8 Dec 2024
- 2025Reasoning Beyond Limits: Advances and Open Problems for LLMscited by 16
- 2025NeoBERT: A Next-Generation BERTcited by 14
- 2025Reasoning Beyond Limits: Advances and Open Problems for LLMs26 Mar 2025
- 2025NeoBERT: A Next-Generation BERT26 Feb 2025
- 2024LLMs are Also Effective Embedding Models: An In-depth Overviewcited by 32
- 2025Breaking the Batch Barrier (B3) of Contrastive Learning via Smart Batch Miningcited by 27
- 2025DRAMA: Diverse Augmentation from Large Language Models to Smaller Dense Retrieverscited by 19
- 2025Hard Negatives, Hard Lessons: Revisiting Training Data Quality for Robust Information Retrieval with LLMscited by 17
- 2026Diffusion-Pretrained Dense and Contextual Embeddingscited by 9
- 2025Single-Pass Document Scanning for Question Answeringcited by 6
- 2025When Claims Evolve: Evaluating and Enhancing the Robustness of Embedding Models Against Misinformation Editscited by 3
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Surveycited by 3
- 20241-800-SHARED-TASKS at RegNLP: Lexical Reranking of Semantic Retrieval (LeSeR) for Regulatory Question Answeringcited by 0
- 2025Zero-Shot Contextual Embeddings via Offline Synthetic Corpus Generationcited by 0
- 2025Finding Diamonds in Conversation Haystacks: A Benchmark for Conversational Data Retrievalcited by 0
- 2026Context-aware tokenization for Cross-subject Emotion Decoding from EEGcited by 0
- 2026Context-aware tokenization for Cross-subject Emotion Decoding from EEG30 May 2026
- 2026Diffusion-Pretrained Dense and Contextual Embeddings11 Feb 2026
- 2025Finding Diamonds in Conversation Haystacks: A Benchmark for Conversational Data Retrieval3 Oct 2025
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Survey28 Jul 2025
- 2025Zero-Shot Contextual Embeddings via Offline Synthetic Corpus Generation30 Jun 2025
- 2025Hard Negatives, Hard Lessons: Revisiting Training Data Quality for Robust Information Retrieval with LLMs22 May 2025
- 2025Breaking the Batch Barrier (B3) of Contrastive Learning via Smart Batch Mining16 May 2025
- 2025Single-Pass Document Scanning for Question Answering4 Apr 2025
- 2025When Claims Evolve: Evaluating and Enhancing the Robustness of Embedding Models Against Misinformation Edits5 Mar 2025
- 2025DRAMA: Diverse Augmentation from Large Language Models to Smaller Dense Retrievers25 Feb 2025
- 2024LLMs are Also Effective Embedding Models: An In-depth Overview17 Dec 2024
- 20241-800-SHARED-TASKS at RegNLP: Lexical Reranking of Semantic Retrieval (LeSeR) for Regulatory Question Answering8 Dec 2024