MS MARCO

Also known as: Microsoft Machine Reading Comprehension

On this page 7

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.

ComponentApproximate sizeMain purpose
Question answering setAbout 1 million queriesAnswer generation from passages
Passage corpus (v1)About 8.8 million passagesPassage retrieval and ranking
Training queriesAbout 500,000 labeled queriesSupervised ranker training
Development set (small)6,980 queriesStandard offline evaluation
Document corpusAbout 3.2 million web pagesDocument ranking
Version 2 passage corpusAbout 138 million passagesLarge-scale retrieval research
Main components of the MS MARCO collection

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.

TaskInput and outputPrimary metric
Question answeringQuery and passages to a short answerROUGE-L and BLEU-1
Natural language generationQuery and passages to a well-formed answerROUGE-L and BLEU-1
Passage re-rankingQuery and 1,000 candidates to a ranked listMRR@10
Full passage retrievalQuery and full corpus to a ranked listMRR@10 and recall@1000
Document rankingQuery and documents to a ranked listMRR@100
MS MARCO tasks and their typical metrics

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.

DatasetQuery sourceTypical role
MS MARCOReal Bing search logsTraining and in-domain evaluation
Natural QuestionsReal Google queriesOpen-domain question answering
SQuADQuestions written by crowdworkersExtractive reading comprehension
BEIRCollection of 18 existing datasetsZero-shot retrieval evaluation
TREC DL test setsMS MARCO queries with deep judgmentsReliable final evaluation
MS MARCO compared with related datasets

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.

SituationRecommended useReason
Training a general retrieverFine-tune on MS MARCO pairsLarge, diverse web queries
Evaluating a new rankerReport dev MRR@10 and TREC DL nDCG@10Sparse and deep labels together
Testing domain robustnessAdd BEIR or domain test setsIn-domain scores overstate generality
Building a commercial productReview the license firstTerms restrict non-research use
Distilling a smaller modelUse cross-encoder scores as targetsSoft labels reduce false negatives
Choosing how to use MS MARCO

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.