HEntailment encoder: xlm-roberta-large

FacebookAI/xlm-roberta-large 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.977 0.975 ± 0.004
QASem 0.916 0.907 ± 0.024
HeSum 0.868 0.870 ± 0.013
HebSummaries 0.819 0.826 ± 0.012
Hebrew-Paraphrase 0.959 0.961 ± 0.005
HebNLI (translated) 0.400 0.419 ± 0.004
LCHAIM (translated) 0.312 0.324 ± 0.006

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

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification
name = "ronke21/HEntailment-xlm-roberta-large"
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},
  url       = {https://arxiv.org/abs/2611.37176}
}
Downloads last month
5
Safetensors
Model size
0.6B 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-large

Finetuned
(1,142)
this model

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

Collection including ronke21/HEntailment-xlm-roberta-large

Paper for ronke21/HEntailment-xlm-roberta-large