- BM25 search
k1=3.2, b=0.2, indexed via Pyserini using default settings.
- Semantic (dense) search
Encoder: msmarco-distilbert-base-v3 from SentenceTransformers.
Each document is segmented into BERT-sized passages, the passages are encoded and indexed in hnswlib.
Each topic title is encoded, knn search on the passages, take the max of all passage knn returned per document.
Each passage is about 200 words, and k=1000 similar passages are returned per topic title search.
- Interpolated BM25 and semantic search scores
(1) + 0.7 * (2)
- Nearest-neighbor pseudo feedback via manifold approximation
Using the run from (3), collect the passages from the top k highest-ranked documents (assumed to be relevant).
Then, do knn search using these passages across the entire corpus. Use the resulting ditances per passage to approximate
a local manifold for each passage. Aggregate the resulting edge existence probabilties per document.
k = 3, knn = 50
Note that this approach is modeled after UMAP manifold approximation: https://arxiv.org/pdf/1802.03426.pdf
- Nearest-neighbor pseudo feedback via manifold approximation, with cutoff
Same approach as (4), however only rerank the top j documents from (3).
k = 3, knn = 50, j = 10
- Clone the repository
- Install the required python packages (in requirements.txt)
- In main.py, set corpus_path to point to the directory containing the unzipped json debate corpora
- In main.py, set the topic_path to the desired topic file (if last year's, then the trec_evals can be uncommented, but need to specify trec_eval dir path)
- In main.py, set the "initialize", "setup", and "evaluate" flags to True
- Run the main.py script
- main.py : main script to reproduce runs
- initializer.py : helper methods to initialize the Pyserini and semantic indices
- processor.py : helper methods to load topics, write to run files, and to create passages
- searcher.py : provides the methods for bm25 Pyserini search and semantic knn search
- reranker.py : provides the methods to rerank runs using manifold approximation, and to interpolate runs