CoolFace
Modelpublic

xpmir/cross-encoder-ELECTRA-BCE

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
0likes31downloads
Model Card

cross-encoder-ELECTRA-BCE

![Paper](http://arxiv.org/abs/2603.03010) ![All Models](https://huggingface.co/collections/xpmir/reproducing-cross-encoders) ![GitHub](https://github.com/xpmir/cross-encoders)

This model is a cross-encoder based on google/electra-base-discriminator. It was trained on Ms-Marco using loss bce as part of a reproducibility paper for training cross encoders: "[Reproducing and Comparing Distillation Techniques for Cross-Encoders](http://arxiv.org/abs/2603.03010)", see the paper for more details.

Contents

Model Description

This model is intended for re-ranking the top results returned by a retrieval system (like BM25, Bi-Encoders or SPLADE).

  • โ€”Training Data: MS MARCO Passage
  • โ€”Language: English
  • โ€”Loss bce

Training can be easily reproduced using the assiciated repository. The exact training configuration used for this model is also detailed in config.yaml.

Usage

Quick Start:

python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

tokenizer = AutoTokenizer.from_pretrained("xpmir/cross-encoder-ELECTRA-BCE")
model = AutoModelForSequenceClassification.from_pretrained("xpmir/cross-encoder-ELECTRA-BCE")

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)

Evaluations

We provide evaluations of this cross-encoder re-ranking the top 1000 documents retrieved by naver/splade-v3-distilbert.

datasetRR@10nDCG@10
msmarco_dev38.3044.84
trec201996.2668.76
trec202093.9468.94
fever77.3377.78
arguana15.6223.70
climate_fever26.3019.79
dbpedia73.6342.74
fiqa45.4737.62
hotpotqa85.7068.92
nfcorpus41.1023.54
nq51.9457.27
quora67.4771.44
scidocs26.0014.61
scifact62.5664.84
touche57.6332.82
trec_covid78.9253.58
robust0459.2739.99
lotte_writing67.7658.85
lotte_recreation60.5355.99
lotte_science43.0035.64
lotte_technology54.2144.85
lotte_lifestyle72.4162.84
Mean In Domain76.1760.85
BEIR 1354.5945.28
LoTTE (OOD)59.5349.69