ESNLIR labels sentence pairs with four relations. Three come from the discourse connector
linking the sentences; neutral is built by pairing sentences from different paragraphs.
Four label-preserving perturbations of the test set (see the
dataset card):
For reference, no prompted 7–8B LLM evaluated on this test set comes within 25 points of this model (
predictions).
1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4name = "Flaglab/ESNLIR-XLM-RoBERTa"
5tok = AutoTokenizer.from_pretrained(name)
6model = AutoModelForSequenceClassification.from_pretrained(name)
7
8inputs = tok(
9 "La evidencia que apoya la superioridad del liderazgo transformacional es abrumadora",
10 "Una investigación más detallada es requerida",
11 return_tensors="pt", truncation=True, max_length=256,
12)
13with torch.no_grad():
14 logits = model(**inputs).logits
15print(model.config.id2label[int(logits.argmax(-1))])
1@InProceedings{portela2025esnlirspanishmultigenredataset,
2 author = {Portela, Johan R. and P{\'e}rez-Ter{\'a}n, Nicol{\'a}s and Manrique, Rub{\'e}n},
3 editor = {Florez, Hector and Peluffo-Ordo{\~{n}}ez, Diego},
4 title = {{ESNLIR}: Expanding Spanish {NLI} Benchmarks with Multi-genre and Causal Annotation},
5 booktitle = {Applied Informatics},
6 year = {2026},
7 publisher = {Springer Nature Switzerland},
8 address = {Cham},
9 pages = {345--361},
10 isbn = {978-3-032-07175-0},
11 doi = {10.1007/978-3-032-07175-0_23},
12}