CAPSTONE: Curriculum Sampling for Dense Retrieval with Document Expansion

Xingwei He, Yeyun Gong, A-Long Jin, Hang Zhang, Anlei Dong, Jian Jiao, Siu Ming Yiu, Nan Duan

TL;DR

CAPSTONE introduces a curriculum sampling strategy and a "typical representation" pooling method to fix the training-inference discrepancy in Dual-Cross-Encoder dense retrieval models. By progressively increasing the relevance of pseudo-queries during training and averaging multi-view embeddings at inference, it achieves state-of-the-art retrieval accuracy without incurring any extra latency during search.

What Problem Does This Paper Address?

In text retrieval, dense retrieval models traditionally rely on a Dual-Encoder (DE) architecture, which encodes queries and documents independently into a shared vector space. While highly efficient, DE models struggle to capture fine-grained interactions between the query and the document. Conversely, Cross-Encoders (CE) capture these interactions deeply by concatenating the query and document together, but they are far too computationally expensive to use for searching millions of documents in real time.

To get the best of both worlds, recent work introduced the Dual-Cross-Encoder (DCE), which performs document expansion by appending a query to the document text before encoding it. However, this introduces a major train-inference discrepancy:

  • During training: The model expands the document using the real (gold) user query.
  • During inference: The real query isn't known yet, so the model must use a generated (pseudo) query.

Because neural networks are notorious shortcut learners, training with the gold query causes the document encoder to over-rely on the appended query text while completely ignoring the actual document context. At inference time, if the generated pseudo-query deviates even slightly from what the user types, the model gets confused, often performing worse than a vanilla Dual-Encoder.

Figure 1: Illustration of the dual-encoder, cross-encoder and dual-cross-encoder architectures. q and q′ denote the gold query and generated query for the document d. ‘+’ is the concatenation operation.

Methods

The authors propose CAPSTONE (Curriculum Sampling for Dense Retrieval with Document Expansion) to bridge this gap using two core techniques:

1. Curriculum Sampling

Instead of training with gold queries, CAPSTONE trains the document encoder using generated pseudo-queries. To prevent the model from ignoring the queries or immediately falling back into shortcuts, the authors implement a curriculum learning strategy based on query relevance (measured via ROUGE-L):

  • Early Stage: The model is fed pseudo-queries that are mostly irrelevant to the gold query. This forces the encoder to focus heavily on the document text itself to distinguish positive matches from negatives.
  • Late Stage: As training progresses, the model is gradually fed highly relevant pseudo-queries, teaching it how to gracefully combine document context with query information.
Figure 2: Comparison of different document expansion methods when training DCE, where the left is the vanilla method and the right is our proposed method. d is the positive document for q. d1, . . . , dk are the hard negatives. dk+1, . . . , dn are the in-batch negatives. q′

2. Typical Representation of Different Views

At inference time, generating just one pseudo-query can be risky if it's low quality. While previous methods expanded the corpus by indexing multiple query-informed views per document (which multiplies search latency), CAPSTONE generates $S$ pseudo-queries, encodes them all, and then averages the resulting vectors into a single typical representation. This allows the model to benefit from multiple synthetic viewpoints without adding any extra latency during retrieval.

Overview of the retrieval stage using typical representation.

Datasets

The authors evaluated CAPSTONE across several standard benchmarks:

  • MS-MARCO: A large-scale passage ranking dataset containing real user queries from Bing (~500k training queries, 8.8M passages).
  • TREC Deep Learning Track (2019 & 2020): Evaluated using the MS-MARCO trained models on highly annotated test sets.
  • BEIR Benchmark: A heterogeneous benchmark consisting of 18 distinct datasets (e.g., TREC-COVID, BioASQ, FiQA) used to test zero-shot out-of-domain generalization.

Key Insights and Ideas

  • Breaking the Shortcut: Forcing the model to look at imperfect, generated queries during training prevents it from treating the appended text as a trivial cheat sheet.
  • Curriculum as an Attention Guide: The gradual shift from irrelevant to relevant queries acts as a guide, smoothly expanding the model's attention mechanism from the document text alone to a balanced combination of document and query.
  • Vector Averaging Works: Averaging multi-view embeddings ("typical representation") effectively compresses diverse synthetic query contexts into a single vector, bypassing the linear latency penalty of corpus expansion.

Key Results

CAPSTONE was evaluated by applying it to two popular dense retrieval baselines: DPR and coCondenser.

  • In-Domain Performance (MS-MARCO & TREC): CAPSTONE boosted coCondenser's MRR@10 on MS-MARCO Dev from 37.9 to 38.6. It also achieved notable improvements on TREC DL 19 (71.1 nDCG@10) and TREC DL 20 (70.3 nDCG@10).
  • Out-of-Domain Performance (BEIR): In zero-shot settings, CAPSTONE improved coCondenser's average nDCG@10 across 18 datasets from 42.7 to 43.3, proving that the curriculum strategy yields robust, generalizable representations.
  • Zero Latency Overhead: Unlike previous multi-view document expansion techniques, CAPSTONE achieves these gains while maintaining the exact same search speed as a standard Dual-Encoder.

Limitations and Future Work

  • Offline Generation Overhead: While CAPSTONE adds zero latency during retrieval, generating dozens of synthetic queries per document and pre-computing their average embeddings makes the offline indexing phase highly time-consuming and computationally expensive.
  • Architecture Scope: The approach was only verified on vanilla DPR and coCondenser. The authors note that exploring how this curriculum strategy applies to other emerging dense retrieval architectures remains an open direction for future work.

Summary updated

BibTeX
@misc{he2022capstone,
  author = {Xingwei He and Yeyun Gong and A-Long Jin and Hang Zhang and Anlei Dong and Jian Jiao and Siu Ming Yiu and Nan Duan},
  title = {{CAPSTONE: Curriculum Sampling for Dense Retrieval with Document Expansion}},
  year = {2022},
  eprint = {2212.09114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.09114},
}
Figure