XLM-RoBERTa-large fine-tuned on HebNLI

FacebookAI/xlm-roberta-large fine-tuned as a 3-class NLI classifier (entailment / neutral / contradiction) on HebNLI. It is one of the Strategy 1 denoisers of the HeRE paper: the premise is a Hebrew Wikipedia passage and the hypothesis is a verbalised Wikidata triple; the entailment probability decides whether the passage expresses the relation.

Training

AdamW, learning rate 2e-5, batch size 64, linear warm-up over 10% of steps, weight decay 0.01, maximum sequence length 250, 8,000 steps, evaluation every 200 steps; the checkpoint with the best validation macro-F1 was retained (step 8,000). Single run, seed 42.

Results

HebNLI dev macro-F1 HebNLI test macro-F1 HeRE gold validation F1
XLM-RoBERTa-large 0.849 0.876 0.756 (Strategy 1, template hypothesis); deployed on the full silver corpus as the encoder_nli__xlmroberta signal

Labels

id2label: {"0": "היסק", "1": "סתירה", "2": "ניטרלי"}

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification
tok = AutoTokenizer.from_pretrained("ronke21/hebnli-xlm-roberta-large")
model = AutoModelForSequenceClassification.from_pretrained("ronke21/hebnli-xlm-roberta-large")
enc = tok(premise, hypothesis, return_tensors="pt", truncation=True, max_length=250)
probs = model(**enc).logits.softmax(-1)

License

The fine-tuned weights are released under the base model's license (mit). Paper resources: dataset https://huggingface.co/datasets/ronke21/HeRE, code https://github.com/Ronke21/HeRE.

Citation

Keinan, R., Cohen, A. D. N., and Tsarfaty, R. (2026). HeRE: A Novel Benchmark for Hebrew Relation Extraction via LLM-Guided Denoising of Knowledge Graph Alignments. In Proceedings of AACL 2026.

Downloads last month
6
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/hebnli-xlm-roberta-large

Finetuned
(1065)
this model

Collection including ronke21/hebnli-xlm-roberta-large