MS MARCO is a benchmark dataset designed for machine reading comprehension (MRC) and information retrieval (IR). It consists of over 1 million real, anonymized user queries from Bing, each with relevant passages manually annotated. Unlike earlier synthetic datasets, its queries reflect genuine information needs, making it the de facto standard for training and evaluating modern neural retrievers and cross-encoder rerankers. Models are tasked with finding or generating answers from a corpus of over 8.8 million web passages.
Glossary
MS MARCO

What is MS MARCO?
MS MARCO (Microsoft Machine Reading Comprehension) is a large-scale, real-world dataset created by Microsoft for training and evaluating machine reading comprehension and passage ranking models.
The dataset's primary task is passage ranking, where models must reorder a set of candidate documents by relevance to a query. This directly supports the development of multi-stage retrieval pipelines common in production Retrieval-Augmented Generation (RAG) systems. Performance is measured using metrics like Mean Reciprocal Rank (MRR) and Normalized Discounted Cumulative Gain (NDCG). Its scale and realism have made it critical for advancing learning-to-rank algorithms and establishing robust zero-shot and domain-adaptive retrieval benchmarks.
Core Tasks and Dataset Structure
MS MARCO (Microsoft Machine Reading Comprehension) is a large-scale, real-world dataset designed for machine reading comprehension, passage ranking, and question answering, serving as a primary benchmark for training and evaluating information retrieval and reranking models.
Passage Ranking Task
The core task that established MS MARCO as a standard for retrieval and reranking. It involves ranking a set of candidate text passages by their relevance to a natural language query.
- Objective: Train models to identify the most relevant passage(s) from a large corpus.
- Dataset Scale: ~8.8 million passages from web pages, with ~1 million labeled query-passage pairs.
- Evaluation: Primarily uses Mean Reciprocal Rank (MRR) and Normalized Discounted Cumulative Gain (NDCG) to measure ranking accuracy.
- Impact: This task directly benchmarks the effectiveness of bi-encoders, cross-encoder rerankers, and multi-stage retrieval pipelines.
Document Ranking Task
An extension of the passage ranking task where the retrieval unit is an entire document, requiring models to handle longer context and identify relevant information within larger texts.
- Objective: Rank full-length documents (averaging ~1100 words) in response to a query.
- Dataset Scale: ~3.2 million web documents.
- Challenge: Models must process longer sequences, making efficient architectures like sparse attention or late interaction models (e.g., ColBERT) critical for performance.
- Use Case: Simulates real-world enterprise search over large reports, manuals, or knowledge bases.
Question Answering & Reading Comprehension
The original MS MARCO task focused on generating or extracting answers to questions, given a set of relevant passages.
- Objective: Produce a concise, natural language answer based on provided context.
- Data Structure: Queries are real Bing search queries; answers are human-generated from retrieved passages.
- Two Formats:
- Extractive: Identify a span of text as the answer.
- Generative: Generate a free-form answer (this predates modern LLMs but informed RAG development).
- Legacy: This task provided the foundational query-passage relevance judgments used for training ranking models.
Dataset Composition & Provenance
MS MARCO is derived from real user interactions with the Bing search engine, giving it high ecological validity for industrial applications.
- Source: Anonymized Bing search logs.
- Queries: Real, unstructured user questions (e.g., "how to reduce caffeine tolerance").
- Passages/Documents: Snippets and pages retrieved by Bing's production search engine.
- Annotations: Human annotators labeled passages as "Relevant," "Highly Relevant," or "Not Relevant" to each query.
- Key Differentiator: Unlike synthetic or curated academic datasets, MS MARCO reflects the noise, ambiguity, and distribution of actual web search, making model performance on it highly indicative of real-world utility.
Conversational Search (TREC CAsT)
MS MARCO data forms the backbone of the TREC Conversational Assistance Track (CAsT), which benchmarks multi-turn, conversational search systems.
- Objective: Answer questions within a coherent conversation where each query can depend on previous context.
- Challenge: Requires query understanding engines to resolve coreferences (e.g., "it," "that product") and reformulate queries based on dialogue history.
- Relevance to RAG: Directly tests a system's ability to maintain context across turns, a critical requirement for conversational RAG agents interacting with enterprise knowledge.
MS MARCO vs. Other IR Benchmarks
A technical comparison of MS MARCO against other prominent information retrieval (IR) and reading comprehension benchmarks, highlighting its unique design for training and evaluating modern neural ranking models.
| Feature / Metric | MS MARCO | TREC Deep Learning Track | BEIR | SQuAD |
|---|---|---|---|---|
Primary Purpose | Training & evaluating neural passage ranking & reading comprehension | Evaluating neural & traditional IR models on ad-hoc retrieval | Evaluating zero-shot retrieval generalization | Machine reading comprehension (MRC) |
Data Scale | ~8.8M passages, 1M queries (train) | ~500k documents, 367 topics (eval) | 18 datasets, ~15M documents (aggregate) | ~100k QA pairs on ~500 Wikipedia articles |
Query Type | Real user queries from Bing search logs | Pre-defined, expert-created topics | Diverse: open-domain QA, fact-checking, bio-medical | Crowdsourced questions based on a given passage |
Relevance Judgments | Binary (relevant/not relevant), inferred from click data | Multi-grade (4-point scale), expert human assessors | Binary or multi-grade, varies by source dataset | Extractive answer spans, human annotated |
Evaluation Focus | Passage ranking (MRR@10), Reading comprehension (F1, BLEU) | Traditional IR metrics (nDCG@10, MAP) & neural ranking | Zero-shot ranking performance (nDCG@10, Recall@100) | Exact Match (EM) & F1 score on answer extraction |
Domain | General web search (English) | General web news (English) | Heterogeneous (Bio-medical, News, Tweets, etc.) | Wikipedia (English) |
Key Differentiator | Large-scale, real-world data for training data-hungry neural models | High-quality, multi-grade relevance labels for rigorous evaluation | Out-of-distribution generalization test for retrieval models | Precise answer extraction within a single, given context |
Typical Use in RAG | Fine-tuning dense retrievers & cross-encoder rerankers | Final evaluation of reranking model precision | Testing reranker robustness across unseen domains | Training/evaluating the reader/generator component |
Impact and Primary Applications
MS MARCO (Microsoft Machine Reading Comprehension) is a large-scale dataset and benchmark suite that has fundamentally shaped the development and evaluation of modern information retrieval and reranking systems.
Training Data for Neural Rerankers
The dataset's ~500k real Bing queries with ~8.8 million annotated passages provide the supervised labels necessary to train high-precision cross-encoder rerankers.
- Training Paradigm: Models like MonoBERT and MonoT5 are fine-tuned on MS MARCO using pointwise (relevance score) or pairwise (document preference) ranking loss.
- Hard Negative Mining: The dataset's structure facilitates hard negative mining, a critical technique where models are trained to distinguish the single relevant passage from highly similar but incorrect ones, dramatically improving discriminative power.
- Foundation for SOTA: Nearly all state-of-the-art reranking models published in the last five years report their primary results on MS MARCO.
Driving Multi-Stage Retrieval Architectures
MS MARCO's design mirrors and has driven the adoption of the industry-standard multi-stage retrieval pipeline.
- Pipeline Blueprint: First-stage retrieval (e.g., BM25 or a dense bi-encoder) fetches ~1000 candidates, followed by a second-stage neural reranker (e.g., a cross-encoder) that reorders the top ~100 for precision.
- Efficiency vs. Effectiveness Trade-off: Research on MS MARCO directly studies the trade-off between recall, precision, and latency, informing decisions on reranking depth (k) and model complexity.
- Tool Development: This pipeline paradigm led to the development of toolkits like Pyserini and Sentence-Transformers which provide reproducible baselines and easy integration of MS MARCO-trained models.
Enabling Zero-Shot & Cross-Domain Evaluation
While a domain-specific dataset (web search), models trained on MS MARCO are extensively used to evaluate zero-shot generalization to other domains.
- Transfer Learning Testbed: A model fine-tuned on MS MARCO is commonly used as a strong baseline when evaluating performance on other retrieval benchmarks (e.g., BEIR).
- Measuring Robustness: Its performance gap on out-of-distribution datasets helps quantify a model's reliance on lexical cues versus deep semantic understanding.
- Foundation for Domain Adaptation: It provides a powerful pre-trained starting point for domain-adaptive retrieval, where models are further fine-tuned on smaller, specialized corpora (e.g., biomedical or legal documents).
Catalyst for RAG System Development
MS MARCO's passage ranking task is a direct analog to the retrieval phase in Retrieval-Augmented Generation (RAG), making it indispensable for building factual, grounded AI systems.
- RAG Retrieval Benchmark: The quality of retrieved context in a RAG system is paramount. MS MARCO provides the training data and evaluation framework to optimize the retriever and reranker components.
- Hallucination Mitigation: By enabling the training of highly precise rerankers, MS MARCO indirectly contributes to hallucination mitigation in RAG, ensuring the generator receives the most relevant, factual passages.
- Industry Adoption: Enterprises building RAG pipelines routinely use MS MARCO-trained models (or derivatives) as the core retrieval/reranking engine for their proprietary knowledge bases.
Community & Open Research Driver
As an open, large-scale resource, MS MARCO has created a common playing field that accelerates open research and reproducible engineering in IR.
- Leaderboards: The official MS MARCO Leaderboard and community-run leaderboards (e.g., on Papers with Code) foster continuous, measurable competition and innovation.
- Open-Source Models: Hundreds of pre-trained cross-encoder and bi-encoder models fine-tuned on MS MARCO are freely available on hubs like Hugging Face, lowering the barrier to entry for implementing production-grade retrieval.
- Methodological Standardization: It has standardized evaluation protocols, data splits, and metrics, allowing for direct, meaningful comparison between novel architectures published by different organizations.
Frequently Asked Questions
A definitive guide to the Microsoft Machine Reading Comprehension dataset, the standard benchmark for training and evaluating modern information retrieval and reranking models.
MS MARCO (Microsoft Machine Reading Comprehension) is a large-scale, real-world dataset designed for machine reading comprehension, passage ranking, and question answering. Its primary use is as a standard benchmark for training and evaluating information retrieval (IR) and reranking models, particularly those based on transformer architectures like BERT and T5. The dataset is built from anonymized user queries from Bing and human-generated answers, making it highly representative of practical search scenarios. It has become the de facto standard for measuring progress in neural retrieval, driving the development of state-of-the-art bi-encoders, cross-encoders, and late interaction models. Researchers and engineers use MS MARCO to compare model performance on metrics like MRR (Mean Reciprocal Rank) and nDCG (Normalized Discounted Cumulative Gain) before testing generalization on more diverse benchmarks like BEIR.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
MS MARCO is a foundational benchmark, but its utility is defined by the ecosystem of models, metrics, and methodologies built upon it. These related terms are essential for engineers implementing and evaluating modern retrieval and reranking systems.
Bi-Encoder vs. Cross-Encoder
The two primary neural architectures for retrieval and reranking, defining a fundamental trade-off between speed and accuracy.
- Bi-Encoder: Encodes the query and document independently into dense vector embeddings (e.g., using Sentence-BERT). Relevance is computed via a fast dot product or cosine similarity. Enables efficient approximate nearest neighbor search but lacks deep interaction.
- Cross-Encoder: Encodes the query and document jointly in a single transformer sequence (e.g., a BERT model fine-tuned on MS MARCO). Allows full cross-attention for extremely accurate relevance scoring but has O(n²) complexity, making it suitable only as a reranker on a small candidate set.
Multi-Stage Retrieval Pipeline
The production architecture that operationalizes models benchmarked on MS MARCO. It uses a cascade of increasingly accurate but slower models to balance recall, precision, and latency.
- Stage 1 (Retrieval): A fast, high-recall retriever (e.g., BM25 or a bi-encoder) fetches a large candidate set (e.g., 1000 documents) from a corpus.
- Stage 2 (Reranking): A computationally intensive, high-precision model (e.g., a cross-encoder fine-tuned on MS MARCO) scores and reorders the top-k candidates (e.g., 100 documents) from the first stage.
- Result: Delivers high-quality results with manageable computational cost, a pattern established and validated using MS MARCO leaderboards.
Normalized Discounted Cumulative Gain (NDCG)
The standard evaluation metric for graded relevance used extensively on the MS MARCO leaderboards. It measures the quality of a ranking based on the position and relevance grade of each item.
- Core Principle: Highly relevant documents contribute more to the score if they appear near the top of the list. The score is normalized by the ideal ranking's score (IDCG).
- MS MARCO Usage: The dataset provides graded relevance judgments (e.g., highly relevant, relevant, not relevant). NDCG@10 is a primary metric for the passage ranking task, assessing the top 10 results' quality.
Hard Negative Mining
A critical training technique for improving the discriminative power of retrieval and reranking models, essential for achieving state-of-the-art results on MS MARCO.
- Definition: The process of identifying and using challenging non-relevant documents that are semantically similar to the query (e.g., passages that contain many of the same keywords but do not answer the question).
- Impact: Training with random negatives is insufficient. Using hard negatives forces the model to learn finer-grained distinctions, dramatically improving its ability to push the single relevant passage to the top of the ranked list, which is the core challenge of MS MARCO.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us