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 google/electra-base-discriminator. 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("google/electra-base-discriminator")
model = AutoModelForSequenceClassification.from_pretrained("xpmir/cross-encoder-ELECTRA-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 | 37.40 | 43.99 |
| trec2019 | 98.84 | 77.31 |
| trec2020 | 95.27 | 75.17 |
| fever | 81.92 | 81.70 |
| arguana | 15.46 | 23.65 |
| climate_fever | 22.66 | 16.75 |
| dbpedia | 77.71 | 47.73 |
| fiqa | 48.59 | 40.05 |
| hotpotqa | 86.46 | 67.59 |
| nfcorpus | 55.42 | 34.29 |
| nq | 54.97 | 59.92 |
| quora | 78.64 | 80.62 |
| scidocs | 28.11 | 15.74 |
| scifact | 62.64 | 65.64 |
| touche | 68.28 | 36.68 |
| trec_covid | 86.47 | 70.83 |
| robust04 | 72.55 | 49.94 |
| lotte_writing | 69.43 | 60.60 |
| lotte_recreation | 63.15 | 57.16 |
| lotte_science | 47.99 | 40.55 |
| lotte_technology | 56.22 | 46.83 |
| lotte_lifestyle | 74.26 | 64.93 |
| Mean In Domain | 77.17 | 65.49 |
| BEIR 13 | 59.03 | 49.32 |
| LoTTE (OOD) | 63.93 | 53.33 |
Base model
google/electra-base-discriminator