MS MARCO (Microsoft Machine Reading Comprehension) is a large-scale collection of real search queries, web passages and human relevance labels released by Microsoft in 2016 to train and evaluate machine reading and retrieval systems. Within training data for artificial intelligence, it is one of the most influential benchmark datasets for information retrieval, because its queries come from anonymized Bing search logs rather than from questions written by annotators.
The dataset began as a question answering benchmark but became best known for its passage ranking task, which shaped the development of neural rankers, dense retrievers and retrieval-augmented generation pipelines. Most modern embedding models used for semantic search have been trained or fine-tuned on MS MARCO at some stage.
How MS MARCO was built
MS MARCO was assembled by sampling real user queries from Bing, retrieving candidate passages from web documents and asking human judges to mark which passages answer each query. Because the queries reflect genuine information needs, they are short, ambiguous and often misspelled, which makes the benchmark closer to production search than curated reading comprehension sets.
The original release contained about 100,000 questions, and version 2.1 expanded the collection to roughly one million anonymized queries. Each query was paired with about ten passages extracted from retrieved web pages, and annotators either composed an answer from those passages or marked the query as unanswerable. The passages were later pooled into a single corpus of about 8.8 million passages, which became the basis of the ranking tasks.
The following table summarizes the main components of the collection and their approximate sizes.
| Component | Approximate size | Main purpose |
|---|---|---|
| Question answering set | About 1 million queries | Answer generation from passages |
| Passage corpus (v1) | About 8.8 million passages | Passage retrieval and ranking |
| Training queries | About 500,000 labeled queries | Supervised ranker training |
| Development set (small) | 6,980 queries | Standard offline evaluation |
| Document corpus | About 3.2 million web pages | Document ranking |
| Version 2 passage corpus | About 138 million passages | Large-scale retrieval research |
Tasks and evaluation metrics
MS MARCO defines several distinct tasks that share the same underlying queries but measure different abilities. The question answering and natural language generation tasks reward fluent, well-formed answers, while the ranking tasks reward placing a relevant passage near the top of a list.
The passage ranking task is evaluated mainly with MRR@10, the mean reciprocal rank of the first relevant passage within the top ten results. The metric suits the dataset because most training queries have only one judged relevant passage, so recall-oriented metrics would be unreliable. The table below lists the principal tasks and how each is scored.
| Task | Input and output | Primary metric |
|---|---|---|
| Question answering | Query and passages to a short answer | ROUGE-L and BLEU-1 |
| Natural language generation | Query and passages to a well-formed answer | ROUGE-L and BLEU-1 |
| Passage re-ranking | Query and 1,000 candidates to a ranked list | MRR@10 |
| Full passage retrieval | Query and full corpus to a ranked list | MRR@10 and recall@1000 |
| Document ranking | Query and documents to a ranked list | MRR@100 |
From 2019 onward, the TREC Deep Learning Track reused the MS MARCO corpora with dense, graded judgments for a few dozen queries per year, measured with nDCG@10. These deeper judgments complement the sparse official labels and reveal differences that MRR@10 can hide.
Why MS MARCO matters for retrieval models
MS MARCO became the standard training source for neural ranking because it was the first public collection with hundreds of thousands of real queries and relevance labels. Before its release, supervised learning to rank was limited by small academic test collections with only a few hundred topics.
Its scale enabled the shift from lexical scoring to transformer-based re-rankers and bi-encoders. A classic BM25 baseline reaches an MRR@10 of roughly 0.18 to 0.19 on the small development set, while early BERT cross-encoders exceeded 0.35 and later dense and late-interaction models, such as ColBERT, reached comparable or higher scores. Many general-purpose text embedding models still include MS MARCO pairs among their fine-tuning data.
The table below compares MS MARCO with neighboring datasets that are often used alongside it in retrieval research.
| Dataset | Query source | Typical role |
|---|---|---|
| MS MARCO | Real Bing search logs | Training and in-domain evaluation |
| Natural Questions | Real Google queries | Open-domain question answering |
| SQuAD | Questions written by crowdworkers | Extractive reading comprehension |
| BEIR | Collection of 18 existing datasets | Zero-shot retrieval evaluation |
| TREC DL test sets | MS MARCO queries with deep judgments | Reliable final evaluation |
Using MS MARCO as training data
Practitioners typically use MS MARCO to build query-passage training pairs with hard negatives. A positive passage comes from the official labels, while negatives are mined from BM25 results or from an earlier model checkpoint. Hard negative mining is the main lever for quality, but it also risks sampling unlabeled relevant passages as false negatives.
The following decision table summarizes common uses and the precautions each one requires.
| Situation | Recommended use | Reason |
|---|---|---|
| Training a general retriever | Fine-tune on MS MARCO pairs | Large, diverse web queries |
| Evaluating a new ranker | Report dev MRR@10 and TREC DL nDCG@10 | Sparse and deep labels together |
| Testing domain robustness | Add BEIR or domain test sets | In-domain scores overstate generality |
| Building a commercial product | Review the license first | Terms restrict non-research use |
| Distilling a smaller model | Use cross-encoder scores as targets | Soft labels reduce false negatives |
The dataset is distributed under terms intended for non-commercial research, so teams that ship products should treat its use as a training data licensing question and seek legal review rather than assuming that public availability implies permission.
Limitations and known biases
The most serious limitation is incomplete relevance labeling. Annotators judged only about ten passages per query, so many genuinely relevant passages in the corpus are unlabeled and counted as wrong, which penalizes models that retrieve them and inflates the noise in both training and evaluation.
- Shallow judgments: one positive per query makes MRR@10 sensitive to labeling luck.
- Selection bias: candidate passages came from Bing results, which favors lexical overlap and the original engine’s preferences.
- Domain skew: queries reflect English web search, with few long, conversational or specialized queries.
- Benchmark saturation: leaderboard gains of a few thousandths of MRR@10 are often within label noise.
- Temporal drift: the web content dates from around 2016 to 2018, so facts and vocabulary age.
Models tuned heavily on MS MARCO can therefore overfit its query style and underperform on legal, medical or scientific search. Evaluation on out-of-domain collections is the standard safeguard against this effect.
A plain-language summary
MS MARCO is a huge practice exam for search engines. Microsoft took about a million real questions that people typed into Bing. It also collected millions of short text snippets from web pages. People then marked which snippets answer each question.
A search model studies these examples. It learns to put the right snippet at the top. Researchers then test it on questions it has not seen. The score shows how often the correct answer appears near the top. One caution matters: the answer key is incomplete, so a model can be right and still lose points.
An example from practice
A small engineering team at a regional insurer wants semantic search over 40,000 policy documents. The team starts from an open embedding model that was already fine-tuned on MS MARCO, because it handles short, messy queries such as “water damage basement cover” far better than keyword search.
On an internal test of 300 employee questions, the MS MARCO model raises the share of queries with a correct passage in the top five from about 52 percent with BM25 to about 71 percent. Insurance jargon still causes errors, so the team adds 2,000 labeled in-house query pairs and fine-tunes again, reaching about 80 percent. Its legal department also confirms that the base model’s training data terms permit this internal use before deployment.