Pyserini: MS MARCO V2.1 Doc

The two-click* reproduction matrix below provides commands for reproducing experimental results reported in a number of papers, denoted by the references in square brackets. These runs take advantage of prebuilt indexes in Pyserini, so you don't need access to the raw corpus. Instructions for programmatic execution are shown at the bottom of this page.

The experimental conditions and reference scores are defined in the YAML configuration. Not all experimental conditions are shown in the table below.

TREC 2021TREC 2022TREC 2023
AP@100nDCG@10R@1KAP@100nDCG@10R@1KAP@100nDCG@10R@1K

topics: dl21-doc / qrels: dl21-doc-msmarco-v2.1

Retrieval command

python -m pyserini.search.lucene \
  --threads 16 --batch-size 128 \
  --index msmarco-v2.1-doc \
  --topics dl21-doc \
  --output run.msmarco-v2.1-doc.bm25-doc.dl21-doc.txt \
  --hits 1000 --bm25 --k1 0.9 --b 0.4

Evaluation commands

python -m pyserini.eval.trec_eval -c -M 100 -m map dl21-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-doc.dl21-doc.txt
python -m pyserini.eval.trec_eval -c -m ndcg_cut.10 dl21-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-doc.dl21-doc.txt
python -m pyserini.eval.trec_eval -c -m recall.1000 dl21-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-doc.dl21-doc.txt

topics: dl22-doc / qrels: dl22-doc-msmarco-v2.1

Retrieval command

python -m pyserini.search.lucene \
  --threads 16 --batch-size 128 \
  --index msmarco-v2.1-doc \
  --topics dl22-doc \
  --output run.msmarco-v2.1-doc.bm25-doc.dl22-doc.txt \
  --hits 1000 --bm25 --k1 0.9 --b 0.4

Evaluation commands

python -m pyserini.eval.trec_eval -c -M 100 -m map dl22-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-doc.dl22-doc.txt
python -m pyserini.eval.trec_eval -c -m ndcg_cut.10 dl22-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-doc.dl22-doc.txt
python -m pyserini.eval.trec_eval -c -m recall.1000 dl22-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-doc.dl22-doc.txt

topics: dl23-doc / qrels: dl23-doc-msmarco-v2.1

Retrieval command

python -m pyserini.search.lucene \
  --threads 16 --batch-size 128 \
  --index msmarco-v2.1-doc \
  --topics dl23-doc \
  --output run.msmarco-v2.1-doc.bm25-doc.dl23-doc.txt \
  --hits 1000 --bm25 --k1 0.9 --b 0.4

Evaluation commands

python -m pyserini.eval.trec_eval -c -M 100 -m map dl23-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-doc.dl23-doc.txt
python -m pyserini.eval.trec_eval -c -m ndcg_cut.10 dl23-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-doc.dl23-doc.txt
python -m pyserini.eval.trec_eval -c -m recall.1000 dl23-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-doc.dl23-doc.txt

topics: dl21-doc / qrels: dl21-doc-msmarco-v2.1

Retrieval command

python -m pyserini.search.lucene \
  --threads 16 --batch-size 128 \
  --index msmarco-v2.1-doc-segmented \
  --topics dl21-doc \
  --output run.msmarco-v2.1-doc.bm25-segmented-doc.dl21-doc.txt \
  --hits 10000 --bm25 --max-passage --max-passage-delimiter '#' --max-passage-hits 1000 --k1 0.9 --b 0.4

Evaluation commands

python -m pyserini.eval.trec_eval -c -M 100 -m map dl21-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-segmented-doc.dl21-doc.txt
python -m pyserini.eval.trec_eval -c -m ndcg_cut.10 dl21-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-segmented-doc.dl21-doc.txt
python -m pyserini.eval.trec_eval -c -m recall.1000 dl21-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-segmented-doc.dl21-doc.txt

topics: dl22-doc / qrels: dl22-doc-msmarco-v2.1

Retrieval command

python -m pyserini.search.lucene \
  --threads 16 --batch-size 128 \
  --index msmarco-v2.1-doc-segmented \
  --topics dl22-doc \
  --output run.msmarco-v2.1-doc.bm25-segmented-doc.dl22-doc.txt \
  --hits 10000 --bm25 --max-passage --max-passage-delimiter '#' --max-passage-hits 1000 --k1 0.9 --b 0.4

Evaluation commands

python -m pyserini.eval.trec_eval -c -M 100 -m map dl22-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-segmented-doc.dl22-doc.txt
python -m pyserini.eval.trec_eval -c -m ndcg_cut.10 dl22-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-segmented-doc.dl22-doc.txt
python -m pyserini.eval.trec_eval -c -m recall.1000 dl22-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-segmented-doc.dl22-doc.txt

topics: dl23-doc / qrels: dl23-doc-msmarco-v2.1

Retrieval command

python -m pyserini.search.lucene \
  --threads 16 --batch-size 128 \
  --index msmarco-v2.1-doc-segmented \
  --topics dl23-doc \
  --output run.msmarco-v2.1-doc.bm25-segmented-doc.dl23-doc.txt \
  --hits 10000 --bm25 --max-passage --max-passage-delimiter '#' --max-passage-hits 1000 --k1 0.9 --b 0.4

Evaluation commands

python -m pyserini.eval.trec_eval -c -M 100 -m map dl23-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-segmented-doc.dl23-doc.txt
python -m pyserini.eval.trec_eval -c -m ndcg_cut.10 dl23-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-segmented-doc.dl23-doc.txt
python -m pyserini.eval.trec_eval -c -m recall.1000 dl23-doc-msmarco-v2.1 run.msmarco-v2.1-doc.bm25-segmented-doc.dl23-doc.txt

Programmatic Execution

All experimental runs shown in the above table can be programmatically executed based on the instructions below. To list all the experimental conditions:

python -m pyserini.2cr.msmarco --collection v2.1-doc --list-conditions

These conditions correspond to the table rows above.

For all conditions, just show the commands in a "dry run":

python -m pyserini.2cr.msmarco --collection v2.1-doc --all --display-commands --dry-run

To actually run all the experimental conditions:

python -m pyserini.2cr.msmarco --collection v2.1-doc --all --display-commands

With the above command, run files will be placed in the current directory. Use the option --directory runs/ to place the runs in a sub-directory.

To show the commands for a specific condition:

python -m pyserini.2cr.msmarco --collection v2.1-doc --condition bm25-doc --display-commands --dry-run

This will generate exactly the commands for a specific condition above (corresponding to a row in the table).

To actually run a specific condition:

python -m pyserini.2cr.msmarco --collection v2.1-doc --condition bm25-doc --display-commands

Again, with the above command, run files will be placed in the current directory. Use the option --directory runs/ to place the runs in a sub-directory.

Finally, to generate this page:

python -m pyserini.2cr.msmarco --collection v2.1-doc --generate-report --output docs/2cr/msmarco-v2.1-doc.html

The output file docs/2cr/msmarco-v2.1-doc.html should be identical to this page.