HEntailment / README.md
ronke21's picture
Add arXiv link (2611.37176)
b247e9a verified
|
Raw History Blame Contribute Delete
7.36 kB
metadata
language:
  - he
license: cc-by-sa-4.0
task_categories:
  - text-classification
task_ids:
  - natural-language-inference
pretty_name: HEntailment
size_categories:
  - 100K<n<1M
configs:
  - config_name: all
    default: true
    data_files:
      - split: train
        path: data/all/train.jsonl
      - split: validation
        path: data/all/dev.jsonl
      - split: test
        path: data/all/test.jsonl
  - config_name: heq
    data_files:
      - split: train
        path: data/heq/train.jsonl
      - split: validation
        path: data/heq/dev.jsonl
      - split: test
        path: data/heq/test.jsonl
  - config_name: qasem
    data_files:
      - split: train
        path: data/qasem/train.jsonl
      - split: validation
        path: data/qasem/dev.jsonl
      - split: test
        path: data/qasem/test.jsonl
  - config_name: hesum
    data_files:
      - split: train
        path: data/hesum/train.jsonl
      - split: validation
        path: data/hesum/dev.jsonl
      - split: test
        path: data/hesum/test.jsonl
  - config_name: hebsummaries
    data_files:
      - split: train
        path: data/hebsummaries/train.jsonl
      - split: validation
        path: data/hebsummaries/dev.jsonl
      - split: test
        path: data/hebsummaries/test.jsonl
  - config_name: heb_paraphrase
    data_files:
      - split: train
        path: data/heb_paraphrase/train.jsonl
      - split: validation
        path: data/heb_paraphrase/dev.jsonl
      - split: test
        path: data/heb_paraphrase/test.jsonl
  - config_name: verified
    data_files:
      - split: test
        path: data/verified/test.jsonl

HEntailment

A native Hebrew natural language inference (NLI) benchmark of 173,460 premise–hypothesis pairs, built by converting five native Hebrew datasets into NLI instead of translating English NLI data.

Paper: Lost in Translation, Found in Other Benchmarks: Cross-Task Transfer for Natural Language Inference (Keinan and Tsarfaty, EACL 2027). Code: github.com/Ronke21/HEntailment-Hebrew-NLI-Repurposing.

from datasets import load_dataset
ds = load_dataset("ronke21/HEntailment", "all")   # or "heq", "qasem", "hesum", "hebsummaries", "heb_paraphrase", "verified"

Fields

field
id item id
source source dataset
premise, hypothesis Hebrew text
label entailment, contradiction or neutral
rules contradictions: the rule(s) that produced the edit
grounded contradictions: whether the replaced token occurs in the premise
n_edit_tokens contradictions: tokens changed relative to the entailment
source_entailment contradictions: the entailment hypothesis that was edited

Splits

source train validation test entailment contradiction neutral
HeQ 47,505 2,580 2,639 21,784 9,156 21,784
QASem 42,852 781 1,722 21,157 3,128 21,070
HeSum 19,072 2,382 2,437 9,997 3,897 9,997
HebSummaries 10,111 2,091 2,102 5,024 4,328 4,952
Hebrew-Paraphrase 29,655 3,818 3,713 17,382 9,958 9,846
all 149,195 11,652 12,613 75,344 30,467 67,649

The label distribution is the one the construction produces (contradiction 17.6% overall). The paper trains on a class-balanced sample of 1,000 rows per label per source.

Construction

  • Entailment: the gold annotation of the source task, rewritten as a hypothesis. A question with its answer becomes a declarative sentence, with an LLM doing only the surface realization; a summary is entailed by its article, and a paraphrase by its original.
  • Neutral: the most similar hypothesis written for a different premise (NeoDictaBERT embedding similarity, below a cosine ceiling of 0.7).
  • Contradiction: a rule-based edit of the entailment hypothesis, for example another entity of the same type, a number of the same magnitude, an antonym, a superlative or a quantifier.
    • gemma-4-31B-it filters the candidates. An edit ships only if the judge finds the edited sentence grammatical and calls the pair a contradiction.
    • Rules whose output a hypothesis-only probe can detect are excluded.

Validation

  • Human validation: two annotators labelled 315 test items and agree at κ = 0.763. The pipeline's labels reach 0.82 and 0.89 macro-F1 against them.
  • Contradiction check: an independent judge, Qwen3.6-27B (a model family not used to build the corpus), agrees with 89% of 2,000 sampled released contradictions.

The verified test config

verified holds the test items whose label Qwen3.6-27B confirms when it labels every test item zero-shot, with the same prompt as the construction judge. It contains 11,071 of the 12,613 test items (87.8%): 4,860 entailments, 2,304 contradictions and 3,907 neutrals.

source verified / test entailment contradiction neutral
HeQ 2,545 / 2,639 0.955 0.984 0.965
QASem 1,393 / 1,722 0.704 0.944 0.891
HeSum 2,150 / 2,437 0.869 0.892 0.891
HebSummaries 1,612 / 2,102 0.961 0.835 0.513
Hebrew-Paraphrase 3,371 / 3,713 0.982 0.795 0.888

The label columns give the share of each source's test items of that label that the judge confirms. The judge disagrees most with HebSummaries neutrals, all of which it calls contradictions (a summary of a different article on a similar topic can read as conflicting with the premise), and with QASem entailments, which it mostly calls neutral.

  • It is cleaner than the full test split, but easier and biased toward items an LLM finds clear. Report it alongside the full test split, not instead of it.
  • Qwen3.6-27B chose these items, so its own scores on verified are not comparable with other models' scores.

Predictions

predictions/{grid,s3,ablation}.tar.gz contain every reported run's per-item predictions, {id, gold, prediction}. For the translated benchmarks (HebNLI, LCHAIM, Winograd) the gold field is removed. These files let you re-score runs, for example on a label-balanced subsample or on verified, without retraining.

Intended use and limitations

HEntailment is meant for evaluating and training Hebrew NLI models.

  • It inherits the domains and writing styles of its five sources.
  • Contradictions are rule-based edits, so they cover a narrower range of phenomena than human-written contradictions.
  • Neutrals are similarity-selected hypotheses written for other premises, which is a different convention from crowd-written neutrals.

License

Our annotations and processing are CC BY-SA 4.0, the most restrictive license among the sources that state one. Source text keeps its own terms, and text from a source without a stated license stays under its rights holders' terms:

  • HeQ: CC BY 4.0
  • QASem Hebrew: CC BY 4.0
  • HeSum: MIT
  • Hebrew-Paraphrase: CC BY-SA 4.0
  • HebSummaries: no license stated

Please also cite the source datasets.

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}
}