encoder stringclasses 2
values | strategy stringclasses 2
values | iteration int64 0 9 | acquired int64 90k 100k | removed_from_pool int64 0 25k | n_labeled int64 110k 1M | val_accuracy float64 0.6 0.66 | val_macro_f1 float64 0.6 0.66 | val_loss float64 0.97 2.79 | is_best_iteration bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|
bertin-roberta-base-spanish | LER | 0 | 100,000 | 25,000 | 110,000 | 0.604362 | 0.604782 | 1.916115 | false |
bertin-roberta-base-spanish | LER | 1 | 100,000 | 25,000 | 210,000 | 0.610401 | 0.61112 | 2.26288 | false |
bertin-roberta-base-spanish | LER | 2 | 100,000 | 25,000 | 310,000 | 0.609436 | 0.610061 | 2.258159 | false |
bertin-roberta-base-spanish | LER | 3 | 100,000 | 25,000 | 410,000 | 0.611884 | 0.612372 | 2.235743 | false |
bertin-roberta-base-spanish | LER | 4 | 100,000 | 25,000 | 510,000 | 0.614614 | 0.615267 | 2.346196 | false |
bertin-roberta-base-spanish | LER | 5 | 100,000 | 25,000 | 610,000 | 0.615712 | 0.616266 | 2.333628 | false |
bertin-roberta-base-spanish | LER | 6 | 100,000 | 25,000 | 710,000 | 0.618294 | 0.618774 | 2.389814 | false |
bertin-roberta-base-spanish | LER | 7 | 90,000 | 25,000 | 800,000 | 0.619585 | 0.620128 | 2.454182 | true |
bertin-roberta-base-spanish | NegE | 0 | 100,000 | 0 | 110,000 | 0.616543 | 0.617519 | 2.046716 | false |
bertin-roberta-base-spanish | NegE | 1 | 100,000 | 0 | 210,000 | 0.620356 | 0.621221 | 2.518932 | false |
bertin-roberta-base-spanish | NegE | 2 | 100,000 | 0 | 310,000 | 0.620772 | 0.621441 | 2.25484 | false |
bertin-roberta-base-spanish | NegE | 3 | 100,000 | 0 | 410,000 | 0.622062 | 0.622409 | 2.272991 | false |
bertin-roberta-base-spanish | NegE | 4 | 100,000 | 0 | 510,000 | 0.623442 | 0.623863 | 2.365023 | false |
bertin-roberta-base-spanish | NegE | 5 | 100,000 | 0 | 610,000 | 0.624243 | 0.624735 | 2.535131 | false |
bertin-roberta-base-spanish | NegE | 6 | 100,000 | 0 | 710,000 | 0.624258 | 0.624808 | 2.641348 | true |
bertin-roberta-base-spanish | NegE | 7 | 100,000 | 0 | 810,000 | 0.622552 | 0.623051 | 2.60261 | false |
bertin-roberta-base-spanish | NegE | 8 | 100,000 | 0 | 910,000 | 0.618991 | 0.619557 | 2.646851 | false |
bertin-roberta-base-spanish | NegE | 9 | 90,000 | 0 | 1,000,000 | 0.614763 | 0.615218 | 2.792766 | false |
xlm-roberta-base | LER | 0 | 100,000 | 25,000 | 110,000 | 0.638798 | 0.639032 | 0.968535 | false |
xlm-roberta-base | LER | 1 | 100,000 | 25,000 | 210,000 | 0.647226 | 0.647443 | 1.032566 | false |
xlm-roberta-base | LER | 2 | 100,000 | 25,000 | 310,000 | 0.649896 | 0.650132 | 1.096087 | false |
xlm-roberta-base | LER | 3 | 100,000 | 25,000 | 410,000 | 0.651098 | 0.65127 | 1.164649 | false |
xlm-roberta-base | LER | 4 | 100,000 | 25,000 | 510,000 | 0.652062 | 0.652243 | 1.23578 | false |
xlm-roberta-base | LER | 5 | 100,000 | 25,000 | 610,000 | 0.651588 | 0.651713 | 1.286195 | false |
xlm-roberta-base | LER | 6 | 100,000 | 25,000 | 710,000 | 0.6527 | 0.652882 | 1.331214 | false |
xlm-roberta-base | LER | 7 | 90,000 | 25,000 | 800,000 | 0.653234 | 0.653406 | 1.40403 | true |
xlm-roberta-base | NegE | 0 | 100,000 | 0 | 110,000 | 0.635786 | 0.636084 | 0.976118 | false |
xlm-roberta-base | NegE | 1 | 100,000 | 0 | 210,000 | 0.650579 | 0.650946 | 1.064784 | false |
xlm-roberta-base | NegE | 2 | 100,000 | 0 | 310,000 | 0.654184 | 0.654438 | 1.179684 | false |
xlm-roberta-base | NegE | 3 | 100,000 | 0 | 410,000 | 0.656142 | 0.656307 | 1.240223 | false |
xlm-roberta-base | NegE | 4 | 100,000 | 0 | 510,000 | 0.655846 | 0.656138 | 1.278675 | false |
xlm-roberta-base | NegE | 5 | 100,000 | 0 | 610,000 | 0.658709 | 0.658998 | 1.289261 | true |
xlm-roberta-base | NegE | 6 | 100,000 | 0 | 710,000 | 0.657626 | 0.657871 | 1.297335 | false |
xlm-roberta-base | NegE | 7 | 100,000 | 0 | 810,000 | 0.656187 | 0.656434 | 1.361904 | false |
xlm-roberta-base | NegE | 8 | 100,000 | 0 | 910,000 | 0.653665 | 0.653896 | 1.475597 | false |
xlm-roberta-base | NegE | 9 | 90,000 | 0 | 1,000,000 | 0.651825 | 0.651957 | 1.577435 | false |
ESNLIR — active learning trajectories
The complete round-by-round record of four active-learning runs on ESNLIR: which pool instances were acquired, which were discarded, and how validation performance moved after every acquisition.
Active Learning for Spanish Natural Language Inference on a Heterogeneous Multi-Domain Corpus Diego Ortiz, Johan R. Portela, Ruben Manrique — Universidad de los Andes, Bogotá Advances in Artificial Intelligence — IBERAMIA 2026 (to appear)
Code: jd-rodriguezp1234/esnlir-active-learning
With these you can replay any run's label budget exactly, audit what each strategy selected, or re-derive the learning curves without a GPU.
Start here: learning_curves.csv
One row per run per round, 36 rows total:
| column | meaning |
|---|---|
encoder |
xlm-roberta-base or bertin-roberta-base-spanish |
strategy |
NegE (Negative Energy) or LER (Low-Energy Removal) |
iteration |
acquisition round, 0-indexed |
acquired |
instances labeled this round |
removed_from_pool |
instances discarded this round (LER only; 0 for NegE) |
n_labeled |
cumulative labeled set size, seed set included |
val_accuracy, val_macro_f1, val_loss |
evaluation after retraining this round |
is_best_iteration |
the checkpoint released on the Hub |
Validation here is the ESNLIR validation split (connector labels), which is why these numbers sit near 0.62–0.66 while the paper's headline figures — 0.75–0.80 — are macro F1 on the human-annotated test set. Different evaluation sets; do not compare them directly.
What the curves show
Both encoders peak mid-run and then decline:
| run | best round | labels at best | val macro F1 at best | val macro F1 at final round |
|---|---|---|---|---|
| XLM-R + NegE | 5 | 610,000 | 0.6590 | 0.6520 (round 9) |
| XLM-R + LER | 7 | 800,000 | 0.6534 | 0.6534 (round 7, is final) |
| Bertin + NegE | 6 | 710,000 | 0.6248 | 0.6152 (round 9) |
| Bertin + LER | 7 | 800,000 | 0.6201 | 0.6201 (round 7, is final) |
XLM-R with NegE gains through round 5 and then loses ground for four consecutive rounds while continuing to acquire 100k labels each time — 390,000 additional labels that make the model slightly worse. That is the paper's label-efficiency result visible directly in the raw metrics.
NegE runs 10 rounds to exhaust the 1M pool; LER runs 8, because it also discards 25,000 instances per round. The final round of every run acquires 90,000 rather than 100,000 — the pool runs out.
Files
xlm-roberta-base_NegE/ bertin-roberta-base-spanish_NegE/
xlm-roberta-base_LER/ bertin-roberta-base-spanish_LER/
learning_curves.csv
Each run directory holds, per round N:
| file | contents |
|---|---|
metrics_iter_N.json |
validation loss / accuracy / macro F1 after retraining |
selected_indices_iter_N.csv |
pool indices acquired this round |
removed_indices_iter_N.csv |
pool indices discarded this round — LER only |
val_report_iter_N.csv |
per-class precision / recall / F1 on a 2,000-instance validation sample (500 per class) |
best_iteration.json |
which round produced the released checkpoint |
Note the two metric files are computed on different evaluation sets: metrics_iter_N.json uses
the full 67,400-row validation split, while val_report_iter_N.csv uses a balanced 2,000-instance
sample. Their aggregate numbers therefore will not match exactly.
Indices refer to row positions in the ESNLIR train split,
Flaglab/ESNLIR-dataset — needed to
reconstruct any labeled set.
Usage
import pandas as pd
from huggingface_hub import hf_hub_download
curves = pd.read_csv(hf_hub_download("Flaglab/esnlir-al-trajectories",
"learning_curves.csv", repo_type="dataset"))
# the peak-then-decline, per run
for (enc, strat), g in curves.groupby(["encoder", "strategy"]):
peak = g.loc[g.val_macro_f1.idxmax()]
print(f"{enc:30s} {strat:5s} peaks at round {peak.iteration} "
f"({peak.n_labeled:,} labels), ends at {g.val_macro_f1.iloc[-1]:.4f}")
Rebuilding the labeled set as it stood after round t:
import pandas as pd
from huggingface_hub import hf_hub_download
idx = pd.concat([
pd.read_csv(hf_hub_download("Flaglab/esnlir-al-trajectories",
f"xlm-roberta-base_NegE/selected_indices_iter_{i}.csv",
repo_type="dataset"))
for i in range(6) # rounds 0..5 = the best checkpoint's budget
])
print(len(idx), "acquired + 10,000 seed = 610,000")
Related
Flaglab/esnlir-al-annotated-test |
the 1,695-pair evaluation set |
Flaglab/ESNLIR-dataset |
the pool these indices refer to |
Flaglab/ESNLIR-AL-XLM-RoBERTa-NegE |
the checkpoint at the best round |
Citation
@InProceedings{ortiz2026activelearningspanishnli,
author = {Ortiz, Diego and Portela, Johan R. and Manrique, Ruben},
title = {Active Learning for Spanish Natural Language Inference
on a Heterogeneous Multi-Domain Corpus},
booktitle = {Advances in Artificial Intelligence -- IBERAMIA 2026},
year = {2026},
publisher = {Springer Nature Switzerland},
address = {Cham},
note = {To appear},
}
- Downloads last month
- 14