Loading…
Loading…
cross-encoder/ms-marco-MiniLM-L6-v2A cross-encoder that reranks passages of a scientific paper by how well they answer a question. It is cross-encoder/ms-marco-MiniLM-L6-v2 fine-tuned on the train split of QASPER, built for the retrieval stage of Enterprise RAG System. There it reorders the 20 candidates that hybrid search (BM25 and dense retrieval, fused with Reciprocal Rank Fusion) finds for a question, and the top 4 go to the language model.
from sentence_transformers import CrossEncoder
model = CrossEncoder("gouneji/ms-marco-MiniLM-L6-v2-qasper")
scores = model.predict(
[
("How large is the training set?", "The training set contains 12,000 annotated sentences."),
("How large is the training set?", "We use a learning rate of 0.001 and a batch size of 32."),
]
)
In the application, set RAG_RERANKER_MODEL=gouneji/ms-marco-MiniLM-L6-v2-qasper.
The test split has 416 papers, none of them in the train or dev splits; its 1,351 questions with evidence paragraphs are scored. Each question is answered against its own paper, split into chunks of at most 200 tokens, and a chunk is relevant when its paragraph was marked as evidence by an annotator.
| Retrieval pipeline | Hit@1 | Hit@4 | MRR@10 |
|---|---|---|---|
| Hybrid search + the base reranker | 39.9% | 70.3% | 0.544 |
| Hybrid search + this reranker | 49.5% | 79.6% | 0.637 |
| Hybrid search with the fine-tuned embedder + this reranker | 49.4% | 81.2% | 0.642 |
Hit@4 is the share of questions with an evidence chunk among the 4 passages the language model sees. The last row is the system selected on dev; against the base pair, its MRR@10 gain is +0.098 (paired bootstrap 95% CI +0.082 to +0.114).
The same recipe without denoising scored 0.487 on dev, below the base model, as did pointwise binary cross-entropy training (0.485).
QASPER: Pradeep Dasigi, Kyle Lo, Iz Beltagy, Arman Cohan, Noah A. Smith, Matt Gardner. A Dataset of Information-Seeking Questions and Answers Anchored in Research Papers. NAACL 2021. The dataset is licensed under CC BY 4.0.