Downloads · 30 days
21
13% of all-time downloads
xpmir/cross-encoder-ELECTRA-ADR-MSE
cross-encoder-ELECTRA-ADR-MSE is a text classification model from xpmir. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
[](http://arxiv.org/abs/2603.03010) [](https://huggingface.co/collections/xpmir/reproducing-cross-encoders) [](https://github.com/xpmir/cross-encoders)
Downloads · 30 days
21
13% of all-time downloads
All-time downloads
166
Public
Parameters
109M
454 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 96%
From the Hugging Face model README
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("xpmir/cross-encoder-ELECTRA-ADR-MSE")
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 |