Anserini: Regressions for MS MARCO Passage Retrieval
This page documents regression experiments for the MS MARCO Passage Retrieval Task with doc2query expansions, as proposed in the following paper:
- Rodrigo Nogueira, Wei Yang, Jimmy Lin, Kyunghyun Cho. Document Expansion by Query Prediction. arxiv:1904.08375
These experiments are integrated into Anserini's regression testing framework. For more complete instructions on how to run end-to-end experiments, refer to this page.
The exact configurations for these regressions are stored in this YAML file. Note that this page is automatically generated from this template as part of Anserini's regression pipeline, so do not modify this page directly; modify the template instead.
Typical indexing command:
nohup sh target/appassembler/bin/IndexCollection -collection JsonCollection -input /path/to/msmarco-passage-doc2query \
-index lucene-index.msmarco-passage-doc2query.pos+docvectors+rawdocs -generator LuceneDocumentGenerator -threads 9 \
-storePositions -storeDocvectors -storeRawDocs >& log.msmarco-passage-doc2query.pos+docvectors+rawdocs &
The directory /path/to/msmarco-passage/
should be a directory containing jsonl
files converted from the official passage collection, appended with the doc2query expansions.
For additional details, see explanation of common indexing options.
Topics and qrels are stored in src/main/resources/topics-and-qrels/
.
The regression experiments here evaluate on the 6980 dev set questions; see this page for more details.
After indexing has completed, you should be able to perform retrieval as follows:
nohup target/appassembler/bin/SearchCollection -index lucene-index.msmarco-passage-doc2query.pos+docvectors+rawdocs \
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.msmarco-passage.dev-subset.txt \
-bm25 -output run.msmarco-passage-doc2query.bm25-default.topics.msmarco-passage.dev-subset.txt &
nohup target/appassembler/bin/SearchCollection -index lucene-index.msmarco-passage-doc2query.pos+docvectors+rawdocs \
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.msmarco-passage.dev-subset.txt \
-bm25 -rm3 -output run.msmarco-passage-doc2query.bm25-default+rm3.topics.msmarco-passage.dev-subset.txt &
nohup target/appassembler/bin/SearchCollection -index lucene-index.msmarco-passage-doc2query.pos+docvectors+rawdocs \
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.msmarco-passage.dev-subset.txt \
-bm25 -bm25.k1 0.82 -bm25.b 0.68 -output run.msmarco-passage-doc2query.bm25-tuned.topics.msmarco-passage.dev-subset.txt &
nohup target/appassembler/bin/SearchCollection -index lucene-index.msmarco-passage-doc2query.pos+docvectors+rawdocs \
-topicreader TsvInt -topics src/main/resources/topics-and-qrels/topics.msmarco-passage.dev-subset.txt \
-bm25 -bm25.k1 0.82 -bm25.b 0.68 -rm3 -output run.msmarco-passage-doc2query.bm25-tuned+rm3.topics.msmarco-passage.dev-subset.txt &
Evaluation can be performed using trec_eval
:
eval/trec_eval.9.0.4/trec_eval -m map -c -m recall.1000 -c src/main/resources/topics-and-qrels/qrels.msmarco-passage.dev-subset.txt run.msmarco-passage-doc2query.bm25-default.topics.msmarco-passage.dev-subset.txt
eval/trec_eval.9.0.4/trec_eval -m map -c -m recall.1000 -c src/main/resources/topics-and-qrels/qrels.msmarco-passage.dev-subset.txt run.msmarco-passage-doc2query.bm25-default+rm3.topics.msmarco-passage.dev-subset.txt
eval/trec_eval.9.0.4/trec_eval -m map -c -m recall.1000 -c src/main/resources/topics-and-qrels/qrels.msmarco-passage.dev-subset.txt run.msmarco-passage-doc2query.bm25-tuned.topics.msmarco-passage.dev-subset.txt
eval/trec_eval.9.0.4/trec_eval -m map -c -m recall.1000 -c src/main/resources/topics-and-qrels/qrels.msmarco-passage.dev-subset.txt run.msmarco-passage-doc2query.bm25-tuned+rm3.topics.msmarco-passage.dev-subset.txt
With the above commands, you should be able to replicate the following results:
MAP | BM25 (Default) | +RM3 | BM25 (Tuned) | +RM3 |
---|---|---|---|---|
MS MARCO Passage Ranking: Dev Queries | 0.2270 | 0.2028 | 0.2293 | 0.2077 |
R@1000 | BM25 (Default) | +RM3 | BM25 (Tuned) | +RM3 |
---|---|---|---|---|
MS MARCO Passage Ranking: Dev Queries | 0.8900 | 0.8916 | 0.8911 | 0.8957 |
The setting "default" refers the default BM25 settings of k1=0.9
, b=0.4
, while "tuned" refers to the tuned setting of k1=0.82
, b=0.72
on the original passages.
See this page for more details.
Note that these results are slightly different from the above referenced page because those experiments make up "fake" scores when converting runs from MS MARCO format into TREC format for evaluation by trec_eval
.