HEntailment encoder: xlm-roberta-xl

facebook/xlm-roberta-xl fine-tuned for 3-way Hebrew natural language inference on HEntailment, all five sources pooled (15,000 class-balanced rows). The base model's license also applies.

  • Training: full fine-tuning with a classification head, lr 2e-5, batch 32, up to 20 epochs, best checkpoint by dev macro-F1, seed 42.
  • Input: the (premise, hypothesis) pair as a sentence pair. Labels: 0 entailment, 1 contradiction, 2 neutral.

Test macro-F1

test set this model (seed 42) paper: mean ± SD over seeds 42/43/44
HeQ 0.980 0.976 ± 0.001
QASem 0.918 0.913 ± 0.009
HeSum 0.884 0.882 ± 0.002
HebSummaries 0.837 0.832 ± 0.006
Hebrew-Paraphrase 0.961 0.959 ± 0.004
HebNLI (translated) 0.421 0.462 ± 0.042
LCHAIM (translated) 0.324 0.326 ± 0.011

The seed-42 column is this checkpoint. The paper's column is the mean over three training runs of the same configuration.

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification
name = "ronke21/HEntailment-xlm-roberta-xl"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForSequenceClassification.from_pretrained(name).eval()
enc = tok("premise ...", "hypothesis ...", return_tensors="pt", truncation=True)
print(model.config.id2label[model(**enc).logits.argmax(-1).item()])

Citation

@inproceedings{keinan-tsarfaty-2027-hentailment,
  title     = {Lost in Translation, Found in Other Benchmarks: Cross-Task Transfer for Natural Language Inference},
  author    = {Keinan, Ron and Tsarfaty, Reut},
  booktitle = {Proceedings of the Conference of the European Chapter of the Association for Computational Linguistics (EACL 2027)},
  year      = {2027}
}
Downloads last month
4
Safetensors
Model size
3B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ronke21/HEntailment-xlm-roberta-xl

Finetuned
(16)
this model

Dataset used to train ronke21/HEntailment-xlm-roberta-xl

Collection including ronke21/HEntailment-xlm-roberta-xl