HEntailment encoder: neodictabert

dicta-il/neodictabert 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.832 0.893 ± 0.061
QASem 0.754 0.800 ± 0.061
HeSum 0.532 0.615 ± 0.099
HebSummaries 0.631 0.655 ± 0.032
Hebrew-Paraphrase 0.773 0.842 ± 0.044
HebNLI (translated) 0.383 0.376 ± 0.034
LCHAIM (translated) 0.319 0.327 ± 0.014

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-neodictabert"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForSequenceClassification.from_pretrained(name, trust_remote_code=True).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
21
Safetensors
Model size
0.4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ronke21/HEntailment-neodictabert

Finetuned
(6)
this model

Dataset used to train ronke21/HEntailment-neodictabert

Collection including ronke21/HEntailment-neodictabert

Paper for ronke21/HEntailment-neodictabert