Skip to content

Latest commit

 

History

History
113 lines (81 loc) · 7.36 KB

File metadata and controls

113 lines (81 loc) · 7.36 KB

Anserini Regressions: TREC 2022 DL Track on V2.1 Corpus

Model: SPLADE-v3 (using cached queries)

This page describes experiments, integrated into Anserini's regression testing framework, on the TREC 2022 Deep Learning Track document ranking task using the MS MARCO V2.1 segmented document corpus, which was derived from the MS MARCO V2 segmented document corpus and prepared for the TREC 2024 RAG Track.

Note that the NIST relevance judgments provide far more relevant documents per topic, unlike the "sparse" judgments provided by Microsoft (these are sometimes called "dense" judgments to emphasize this contrast). An important caveat is that these document judgments were inferred from the passages. That is, if a passage is relevant, the document containing it is considered relevant.

The model itself can be download here. See the official SPLADE repo and the following paper for more details:

Carlos Lassance, Hervé Déjean, Thibault Formal, and Stéphane Clinchant. SPLADE-v3: New baselines for SPLADE. arXiv:2403.06789.

In these experiments, we are using cached queries (i.e., cached results of query encoding).

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.

From one of our Waterloo servers (e.g., orca), the following command will perform the complete regression, end to end:

python src/main/python/run_regression.py --index --verify --search --regression dl22-doc-segmented-msmarco-v2.1.splade-v3.cached

We make available a version of the MS MARCO V2.1 segmented document corpus that has already been encoded with SPLADE-v3.

From any machine, the following command will download the corpus and perform the complete regression, end to end:

python src/main/python/run_regression.py --download --index --verify --search --regression dl22-doc-segmented-msmarco-v2.1.splade-v3.cached

The run_regression.py script automates the following steps, but if you want to perform each step manually, simply copy/paste from the commands below and you'll obtain the same regression results.

Corpus Download

Download the corpus and unpack into collections/:

wget https://rgw.cs.uwaterloo.ca/pyserini/data/msmarco_v2.1_doc_segmented_splade-v3.tar -P collections/
tar xvf collections/msmarco_v2.1_doc_segmented_splade-v3.tar -C collections/

To confirm, msmarco-v2.1-doc-segmented-splade-v3.tar is 125 GB and has MD5 checksum c62490569364a1eb0101da1ca4a894d9. With the corpus downloaded, the following command will perform the remaining steps below:

python src/main/python/run_regression.py --index --verify --search --regression dl22-doc-segmented-msmarco-v2.1.splade-v3.cached \
  --corpus-path collections/msmarco_v2.1_doc_segmented_splade-v3

Indexing

Typical indexing command:

bin/run.sh io.anserini.index.IndexCollection \
  -threads 24 \
  -collection JsonVectorCollection \
  -input /path/to/msmarco-v2.1-doc-segmented-splade-v3 \
  -generator DefaultLuceneDocumentGenerator \
  -index indexes/lucene-inverted.msmarco-v2.1-doc-segmented.splade-v3/ \
  -impact -pretokenized \
  >& logs/log.msmarco-v2.1-doc-segmented-splade-v3 &

The setting of -input should be a directory containing the compressed jsonl files that comprise the corpus.

The important indexing options to note here are -impact -pretokenized: the first tells Anserini not to encode BM25 doclengths into Lucene's norms (which is the default) and the second option says not to apply any additional tokenization on the pre-encoded tokens. For additional details, see explanation of common indexing options.

Retrieval

Topics and qrels are stored here, which is linked to the Anserini repo as a submodule. The regression experiments here evaluate on the 76 topics for which NIST has provided inferred judgments as part of the TREC 2022 Deep Learning Track, but projected over to the V2.1 version of the corpus.

After indexing has completed, you should be able to perform retrieval as follows:

bin/run.sh io.anserini.search.SearchCollection \
  -index indexes/lucene-inverted.msmarco-v2.1-doc-segmented.splade-v3/ \
  -topics tools/topics-and-qrels/topics.dl22.splade-v3.tsv.gz \
  -topicReader TsvString \
  -output runs/run.msmarco-v2.1-doc-segmented-splade-v3.splade-v3-cached.topics.dl22.splade-v3.txt \
  -impact -pretokenized -removeQuery -hits 10000 -selectMaxPassage -selectMaxPassage.delimiter "#" -selectMaxPassage.hits 1000 &

Evaluation can be performed using trec_eval:

bin/trec_eval -c -M 100 -m map tools/topics-and-qrels/qrels.dl22-doc-msmarco-v2.1.txt runs/run.msmarco-v2.1-doc-segmented-splade-v3.splade-v3-cached.topics.dl22.splade-v3.txt
bin/trec_eval -c -m recall.100 tools/topics-and-qrels/qrels.dl22-doc-msmarco-v2.1.txt runs/run.msmarco-v2.1-doc-segmented-splade-v3.splade-v3-cached.topics.dl22.splade-v3.txt
bin/trec_eval -c -m recall.1000 tools/topics-and-qrels/qrels.dl22-doc-msmarco-v2.1.txt runs/run.msmarco-v2.1-doc-segmented-splade-v3.splade-v3-cached.topics.dl22.splade-v3.txt
bin/trec_eval -c -M 100 -m recip_rank -c -m ndcg_cut.10 tools/topics-and-qrels/qrels.dl22-doc-msmarco-v2.1.txt runs/run.msmarco-v2.1-doc-segmented-splade-v3.splade-v3-cached.topics.dl22.splade-v3.txt

Effectiveness

With the above commands, you should be able to reproduce the following results:

MAP@100 SPLADE-v3
DL22 (Doc) 0.1858
MRR@100 SPLADE-v3
DL22 (Doc) 0.8766
nDCG@10 SPLADE-v3
DL22 (Doc) 0.5294
R@100 SPLADE-v3
DL22 (Doc) 0.3184
R@1000 SPLADE-v3
DL22 (Doc) 0.6024