Downloads · 30 days
15
8% of all-time downloads
xpmir/cross-encoder-ettin-32m-Hinge
cross-encoder-ettin-32m-Hinge 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
15
8% of all-time downloads
All-time downloads
183
Public
Parameters
32M
144 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors128 MB · 87%
From the Hugging Face model README
This model is a cross-encoder based on jhu-clsp/ettin-encoder-32m. It was trained on Ms-Marco using loss hingeLoss 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-ettin-32m-Hinge")
model = AutoModelForSequenceClassification.from_pretrained("xpmir/cross-encoder-ettin-32m-Hinge")
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 | 33.98 | 40.04 |
| trec2019 | 91.81 | 66.69 |
| trec2020 | 90.39 | 65.52 |
| fever | 69.95 | 70.72 |
| arguana | 12.21 | 18.58 |
| climate_fever | 20.13 | 14.67 |
| dbpedia | 60.87 | 34.71 |
| fiqa | 39.77 | 31.69 |
| hotpotqa | 79.42 | 62.45 |
| nfcorpus | 51.64 | 30.62 |
| nq | 42.88 | 47.91 |
| quora | 76.94 | 78.36 |
| scidocs | 24.01 | 13.22 |
| scifact | 61.83 | 64.79 |
| touche | 65.31 | 32.77 |
| trec_covid | 88.00 | 67.20 |
| robust04 | 61.43 | 37.53 |
| lotte_writing | 65.38 | 55.76 |
| lotte_recreation | 54.31 | 49.21 |
| lotte_science | 44.43 | 36.64 |
| lotte_technology | 49.41 | 41.33 |
| lotte_lifestyle | 65.28 | 56.09 |
| Mean In Domain | 72.06 | 57.42 |
| BEIR 13 | 53.30 | 43.67 |
| LoTTE (OOD) | 56.71 | 46.09 |