reproducing-cross-encoders
Collection
A set of cross-encoders trained from various backbones and losses for equal comparison • 55 items • Updated
• 3
This model is a cross-encoder based on FacebookAI/roberta-base. It was trained on Ms-Marco using loss ADR as part of a reproducibility paper for training cross encoders: "Reproducing and Comparing Distillation Techniques for Cross-Encoders", see the paper for more details.
This model is intended for re-ranking the top results returned by a retrieval system (like BM25, Bi-Encoders or SPLADE).
Training can be easily reproduced using the assiciated repository. The exact training configuration used for this model is also detailed in config.yaml.
Quick Start:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
tokenizer = AutoTokenizer.from_pretrained("FacebookAI/roberta-base")
model = AutoModelForSequenceClassification.from_pretrained("xpmir/cross-encoder-RoBERTa-ADR-MSE")
features = tokenizer("What is experimaestro ?", "Experimaestro is a powerful framework for ML experiments management...", padding=True, truncation=True, return_tensors="pt")
model.eval()
with torch.no_grad():
scores = model(**features).logits
print(scores)
We provide evaluations of this cross-encoder re-ranking the top 1000 documents retrieved by naver/splade-v3-distilbert.
| dataset | RR@10 | nDCG@10 |
|---|---|---|
| msmarco_dev | 35.49 | 42.11 |
| trec2019 | 94.57 | 72.11 |
| trec2020 | 92.82 | 70.95 |
| fever | 77.76 | 78.19 |
| arguana | 18.91 | 28.01 |
| climate_fever | 28.29 | 20.61 |
| dbpedia | 75.87 | 45.96 |
| fiqa | 45.73 | 38.14 |
| hotpotqa | 83.68 | 66.53 |
| nfcorpus | 56.12 | 33.72 |
| nq | 53.48 | 58.47 |
| quora | 80.54 | 82.21 |
| scidocs | 26.60 | 15.04 |
| scifact | 65.27 | 68.88 |
| touche | 63.34 | 34.43 |
| trec_covid | 84.63 | 68.37 |
| robust04 | 70.33 | 47.80 |
| lotte_writing | 68.41 | 58.24 |
| lotte_recreation | 60.95 | 55.43 |
| lotte_science | 46.00 | 38.34 |
| lotte_technology | 50.96 | 42.38 |
| lotte_lifestyle | 72.87 | 62.92 |
| Mean In Domain | 74.29 | 61.72 |
| BEIR 13 | 58.48 | 49.12 |
| LoTTE (OOD) | 61.59 | 50.85 |
Base model
FacebookAI/roberta-base