/ Модель

Характеристики

Контекст
512 токенов
Параметры
190 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Базовая модель
MARBERTv2
Библиотека
transformers
Опубликована
21 окт 2026

KnowledgeGraphEval-2026-AdaptNER-MARBERTv2-Nested

Разметка токеновТекст → label3 профессии

Дообученная MARBERTv2 для многометочной вложенной распознавания арабских именованных сущностей в экспериментах и ансамблях.

23скачиваний за 30 дней0лайковвеса обновлены21 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

NAMAA Community разработала эту модель для многометочной вложенной распознавания именованных сущностей на арабском языке. Это 190-миллионная BERT-модель на основе UBC-NLP/MARBERTv2, дообученная на вложенной версии корпуса Wojood; она обрабатывает контексты длиной до 512 токенов и предсказывает 21 тип сущностей, сохраняя пересекающиеся упоминания разных типов.

Модель предназначена для сравнения энкодеров, абляционных экспериментов и исследований переноса между доменами, а также может использоваться как участник ансамбля. Она не является лучшей системой команды и уступает её AraBERTv02-варианту по всем 21 типам. На тесте Wojood четыре типа — PERCENT, PRODUCT, UNIT и QUANTITY — не предсказывались, а для CURR, LANGUAGE и TIME наблюдался низкий полнотный охват. Архитектура с одним BIO-каналом на тип не позволяет восстановить вложенные сущности одного и того же типа; на Konooz также отмечено ухудшение качества при переносе между доменами. Модель рассчитана только на арабский язык. Лицензия — Apache-2.0.

Сценарии применения

  • Сравнение энкодеров для вложенного NER на арабском языке
  • Воспроизведение экспериментов NAMAA на корпусе Wojood
  • Извлечение арабских именованных сущностей нескольких типов из текста
  • Использование в ансамбле моделей для арабского NER

Ограничения

На тесте Wojood модель не предсказывала типы PERCENT, PRODUCT, UNIT и QUANTITY; для CURR, LANGUAGE и TIME полнота также низкая. Один BIO-канал на тип не поддерживает вложение сущностей того же типа, а перенос на Konooz сопровождается снижением качества.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

NAMAA Community — AdaptNER (MARBERTv2, nested)

KnowledgeGraphEval 2026 · Subtask 1 (AdaptNER) · ArabicNLP 2026

Multi-label nested Arabic Named Entity Recognition. This checkpoint fine-tunes UBC-NLP/MARBERTv2 on the nested variant of the Wojood corpus, predicting 21 entity types simultaneously so that overlapping mentions are preserved.

It is released as the dialect-oriented backbone comparison point from the team's development-phase encoder sweep. It is not the team's best system.

How this checkpoint relates to the paper. This is a development-phase checkpoint from the NAMAA submission to KnowledgeGraphEval 2026. It is not the system described in the camera-ready paper. The submitted AdaptNER system, which ranked 1st with a test micro-F1 of 75.96, is an exact-span majority vote over three models: ARBERTv2 + CRF, XLM-R-large + CRF, and ARBERTv2 + GlobalPointer. See §6. We release this checkpoint because the team's in-domain Wojood experiments were built on it.

⚠️ Read this before using the model

This checkpoint never predicts four of the 21 entity types. PERCENT, PRODUCT, UNIT and QUANTITY all score exactly F1 = 0.0000 on the Wojood test set, and CURR is effectively dead at 0.0465 (1 of 41 mentions recovered). Its headline micro-F1 of 0.9092 looks close to the AraBERTv02 sibling's 0.9284, but macro-F1 over the 21 types is 0.5877 vs 0.8411 — a 25-point gap.

For general-purpose nested Arabic NER, use KnowledgeGraphEval-2026-AdaptNER-AraBERTv02-Nested instead: it beats this model on all 21 types. Full breakdown in §5.3.


1. Model details

Developed byNAMAA Community (see Citation)
Team / submissionNAMAA at KnowledgeGraphEval 2026 (development-phase checkpoint)
Experiment IDEXP-002 (nested)
Model typeBERT encoder + multi-label token classification head
Base encoderUBC-NLP/MARBERTv2
LanguageArabic (dialect-heavy pre-training; MSA + Levantine fine-tuning)
Parameters162,283,050 (F32)
Architecture12 layers, hidden 768, 12 heads, vocab 100,000, max positions 512
Label space42 outputs = 21 entity types x {B, I}; O is implicit
Decision ruleIndependent sigmoid per label, threshold 0.5
Max sequence length256 sub-words
LicenseApache-2.0
Finetuned fromMARBERTv2 (Abdul-Mageed et al., 2021)

The larger parameter count relative to the AraBERTv02 sibling (162M vs 135M) is entirely the 100,000-entry vocabulary versus 64,000; the transformer body is the same size.

Task head

The nested formulation treats each token as carrying a set of tags rather than one tag. The head emits 42 independent logits (B-<TYPE> and I-<TYPE> for each of the 21 types); every logit is squashed with a sigmoid and thresholded at 0.5. A token with no label above threshold is O. Entity spans are then BIO-decoded per type channel.


2. Intended use

In scope

  • Backbone-comparison and ablation studies for Arabic nested NER.
  • Reproducing the team's development-phase encoder comparison.
  • Ensemble membership, where its errors are decorrelated from AraBERT-family members.

Out of scope

  • Any application needing PERCENT, PRODUCT, UNIT, QUANTITY or CURR. The model does not predict them. Numeric/measurement extraction will silently return nothing.
  • General-purpose nested Arabic NER — the AraBERTv02 sibling dominates it on every type.
  • Same-type nested mentions (an ORG inside another ORG) — see Limitations.
  • Languages other than Arabic.

3. Task and data

KnowledgeGraphEval 2026 (Aljabari et al., 2026) is the first ArabicNLP shared task on Arabic knowledge-graph construction. It splits the problem into Subtask 1 (AdaptNER) — cross-domain nested NER — and Subtask 2 (RE) — relation extraction. Both are scored with strict entity-level micro-F1.

RoleDatasetSizeNotes
Training / model selectionWojood 1.1, nested variant (Jarrar et al., 2022)23,125 train / 3,304 dev / 6,606 test sentences~448K tokens, ~72K mentions, 21 entity types, 22.5% of mentions nested
Official cross-domain evaluationKonooz (Hamad et al., 2025)~50K tokens, 10 unseen MSA domainsDev release: 100 sentences (10 per domain), 3,166 tokens, unlabelled

The model never sees Konooz during training — that domain shift is the challenge the task targets.

Konooz domains: Agriculture, Art, Economics, Finance, Health, History, Law, Politics, Science, Sport.

Label space

21 entity types, in the official submission column order (a mis-ordered submission is scored against the wrong type channels and collapses the score):

CARDINAL, CURR, DATE, EVENT, FAC, GPE, LANGUAGE, LAW, LOC, MONEY, NORP,
OCC, ORDINAL, ORG, PERCENT, PERS, PRODUCT, QUANTITY, TIME, UNIT, WEBSITE

4. Training configuration

Recorded verbatim in repro_bundle.json shipped with this repo. Identical to the AraBERTv02 sibling — the two differ only in base encoder, so the comparison in §7 is controlled.

HyperparameterValue
Epochs8
Learning rate3e-5
Batch size (train / eval)32 / 64
Gradient accumulation1
OptimizerAdamW
Weight decay0.01
Warmup ratio0.1
Max length256
Prediction threshold0.5
Precisionbf16 (+ TF32)
Early stoppingpatience 3, monitor dev micro-F1
Seed42
Sub-word alignmentlabel on first sub-word; continuations masked (-100)

Environment — Python 3.12.13, PyTorch 2.11.0+cu128, Transformers 5.10.2, Datasets 4.0.0, CUDA 12.8, Tesla T4. Arabic normalisation via CAMeL Tools (Obeid et al., 2020).

The AraBERTv02 sibling trained on an A100-40GB under Transformers 5.13.1; this run used a T4 under 5.10.2. Hyperparameters match, but the environments are not bit-identical.


5. Evaluation

5.1 Methodology

Entity-level strict micro-F1: a prediction counts as correct only if the span boundaries and the entity type match the gold mention exactly.

micro-F1 = 2TP / (2TP + FP + FN)

Spans are decoded independently per type channel, then compared as a set of (sentence, type, start, end) tuples.

5.2 Overall results

SplitPrecisionRecallmicro-F1Macro-F1 (21 types)
Wojood dev (in-domain)0.90420.91000.9071—
Wojood test (in-domain)0.90580.91270.90920.5877
Konooz dev (cross-domain, official)——0.67—

Test-set totals: 18,210 gold entities, 18,316 predicted, TP 16,590 / FP 1,726 / FN 1,620.

Two independent gaps are visible here and both matter:

  • Micro vs macro (0.9092 vs 0.5877). A class-coverage failure, detailed in §5.3.
  • In-domain vs cross-domain (0.9092 vs 0.67). The −0.24 F1 domain-shift drop the task targets.

5.3 Per-entity-type breakdown (Wojood test)

Support = gold mention count. Sorted by frequency. The rightmost column is the AraBERTv02 sibling trained on identical data and hyperparameters.

TypeSupportPrecisionRecallF1AraBERTv02 F1
GPE4,3440.96090.96200.96150.9657
ORG3,9280.90980.93740.92340.9341
DATE3,2060.95090.96040.95560.9576
PERS1,5710.91950.93130.92540.9369
OCC1,1260.87980.90320.89130.9074
NORP1,0950.77360.82370.79790.8127
ORDINAL1,0830.97040.93910.95450.9562
EVENT5700.71410.76670.73940.8258
CARDINAL3420.84750.84500.84630.8882
FAC2460.68830.69110.68970.8200
LOC2190.80100.73520.76670.8578
WEBSITE1160.56440.49140.52530.7016
LAW900.74000.82220.77890.8342
TIME840.63410.30950.41600.7241
LANGUAGE441.00000.22730.37040.9048
CURR410.50000.02440.04650.9136
MONEY330.72220.78790.75360.8493
PERCENT330.00000.00000.00000.9697
PRODUCT190.00000.00000.00000.7368
UNIT110.00000.00000.00000.6667
QUANTITY90.00000.00000.00000.5000
Macro average0.58770.8411

This is the most important table in the card. Four types are never predicted at all (PERCENT, PRODUCT, UNIT, QUANTITY — zero precision and zero recall, so no predictions were emitted on those channels). Three more are severely degraded:

TypeSymptom
CURRrecall 0.0244 — 1 of 41 mentions found
LANGUAGEprecision 1.0000, recall 0.2273 — extremely conservative, 10 of 44 found
TIMErecall 0.3095 — under half the AraBERTv02 recall

The pattern is consistent: the sigmoid head at a fixed 0.5 threshold collapses on low-support numeric and measurement classes. Those five types (PERCENT, PRODUCT, UNIT, QUANTITY, CURR) total only 113 of 18,210 mentions (0.6%), so micro-F1 barely registers their loss — which is exactly why the macro average, not the headline number, is the honest summary for this checkpoint.

The AraBERTv02 sibling, trained identically, keeps all 21 channels alive. The difference is attributable to the encoder, not the recipe.

5.4 Per-domain breakdown (Wojood test)

F1 is the published figure from test_metrics.json. Precision and recall are recomputed from the shipped test_predictions_conll.txt against gold; they reproduce the published F1 to within ±0.02 (small residual from duplicate sentences during domain re-alignment).

Sub-corpusSentencesGold entitiesPrecisionRecallF1
Awraq_G31,4304,5030.96840.97400.9706
Awraq_G29793,4930.94090.95300.9463
Awraq_G19313,2640.93690.95130.9426
PCMA2091,1810.87880.88990.8841
Curras1,0459160.78980.76310.7898
T2: Foreign policy2887160.78580.78910.7836
T1: Terrorism2766280.87750.91240.8865
T4: Elections3226200.91720.92900.9231
T6: Health policy2165160.84840.83530.8411
T3: Security1663820.80160.78270.7953
QUORA5303760.65800.60900.6267
T5: Migration1292680.83460.79100.8054
Lebanese85600.56600.50000.5426

Notably, MARBERTv2's dialect-heavy pre-training does not translate into an advantage on the dialect sub-corpora: it trails AraBERTv02 on Curras (0.7898 vs 0.8439), Lebanese (0.5426 vs 0.6074) and QUORA (0.6267 vs 0.6877). The expected dialect benefit does not materialise under this task formulation.

5.5 Per-domain breakdown (Wojood dev)

Sub-corpusSentencesF1
Awraq_G37140.9772
Awraq_G24900.9539
Awraq_G14660.9410
T4: Elections1610.9214
T1: Terrorism1380.8729
PCMA1050.8645
T5: Migration650.8547
T3: Security830.8367
T6: Health policy1080.8013
Curras5230.7801
T2: Foreign policy1440.7714
Lebanese420.5970
QUORA2650.5567

6. Official shared-task results

These are the official test results for team NAMAA, as reported in the camera-ready paper. All scores are entity-level micro-averages under exact span-and-type matching, in percent. This checkpoint is not one of the submitted systems.

Subtask 1 — AdaptNER (Konooz test, 10 unseen domains). Ranked 1st.

SystemRecallPrecisionMicro-F1
Shared-task baseline63.8762.3063.00
ARBERTv2 + CRF70.0880.6975.01
XLM-R-large + CRF71.1279.4175.04
ARBERTv2 + GlobalPointer66.1784.0274.03
Exact-span ensemble (≥2 of 3 votes)69.4483.8375.96

Subtask 2 — Relation Extraction (WojoodRelations, 41 labels). Ranked 2nd.

SystemRecallPrecisionMicro-F1
Shared-task baseline––93.09
Qwen3-8B (LoRA)89.3595.5992.36
Qwen3.5-4B (LoRA)89.5896.2092.77
Llama-3.1-8B-Instruct (LoRA)89.0396.2192.48
Majority-vote ensemble90.3896.8093.48

Development-phase Konooz results

During development the team scored its candidate encoders on the Konooz development set (100 sentences, entity-level micro-F1). These scores are not in the camera-ready paper. We include them here because they are the only cross-domain numbers available for this checkpoint.

SystemKonooz dev F1SystemKonooz dev F1
ARBERTv2 (unweighted)0.74MARBERT0.68
Top-3 weighted-vote ensemble0.74mDeBERTa-v3 base0.67
AraBERTv02, nested0.73MARBERTv2 ‡0.67
ARBERTv2 (class-weighted)0.72ARBERTv2 + Konooz-MLM (last-3)0.65
XLM-R large0.71AraBERTv02 organiser baseline0.61
AraBERTv02, flat0.69Qwen3-235B (zero-shot)0.26

‡ This MARBERTv2 entry may be a different run from the released MARBERTv2-Nested checkpoint. That entry's in-domain validation F1 was 0.873, while the released checkpoint's is 0.9071.


7. Sibling checkpoints

Three checkpoints from this submission are released. All share the same data, seed, hyperparameters and label space.

CheckpointFormulationWojood dev F1Wojood test F1Macro-F1 (test)Konooz dev F1
AraBERTv02 nestednested multi-label0.92450.92840.84110.73
MARBERTv2 nested (this model)nested multi-label0.90710.90920.58770.67
AraBERTv02 flatflat single-label0.9003n/an/a0.69

The controlled AraBERTv02-vs-MARBERTv2 comparison is the reason this checkpoint is published: same data, same seed, same recipe, different encoder. AraBERTv02 wins on all 21 entity types and on all 13 sub-corpora.


8. Limitations and known issues

  • Four entity types are never predicted. PERCENT, PRODUCT, UNIT, QUANTITY return nothing. This is a silent failure: the model emits no error, just no entities on those channels. Do not deploy it where those types matter.
  • CURR, LANGUAGE and TIME are severely under-recalled (0.0244 / 0.2273 / 0.3095).
  • Threshold is untuned. 0.5 was fixed a priori. Because the dead classes fail on recall with zero predictions, lowering the per-type threshold is the first thing to try before concluding the capability is absent from the weights — the signal may be present below 0.5.
  • Same-type nesting is unrecoverable. One BIO channel per type cannot encode an ORG nested inside another ORG. A biaffine span head (Yu et al., 2020) would remove this limitation.
  • Cross-domain degradation. −0.24 F1 from Wojood to Konooz, worse than the AraBERTv02 sibling's −0.20.
  • No dialect advantage observed, despite MARBERTv2's dialect-heavy pre-training (§5.4).
  • Rare-type estimates are noisy. Types with fewer than ~40 gold mentions cannot support a stable F1 estimate; treat those rows as indicative.
  • Column order matters. Submissions are token + 21 space-separated B/I/O columns in the exact order listed in §3.

Head architecture

The released head is a multi-label sigmoid + BCE head. config.json has exactly 42 labels (21 × {B, I}, no O class), and repro_bundle.json records pred_threshold: 0.5, so each B/I channel is an independent sigmoid. This differs from the BIO-CRF and GlobalPointer heads of the submitted system described in the camera-ready paper.


9. Usage

from transformers import AutoTokenizer, AutoModelForTokenClassification
import torch

REPO = "NAMAA-Space/KnowledgeGraphEval-2026-AdaptNER-MARBERTv2-Nested"
tok = AutoTokenizer.from_pretrained(REPO)
model = AutoModelForTokenClassification.from_pretrained(REPO).eval()

def predict(words, threshold=0.5):
    """Nested NER: returns one tag-set per input word."""
    enc = tok(words, is_split_into_words=True, truncation=True,
              max_length=256, return_tensors="pt")
    with torch.no_grad():
        probs = torch.sigmoid(model(**enc).logits)[0]

    out, seen = [], set()
    for pos, wid in enumerate(enc.word_ids(0)):   # first sub-word of each word only
        if wid is None or wid in seen:
            continue
        seen.add(wid)
        tags = {model.config.id2label[i]
                for i in (probs[pos] > threshold).nonzero().flatten().tolist()}
        out.append((words[wid], tags or {"O"}))
    return out

sentence = "حرب 1948 ( النكبة ) هجرت الفلسطينيون من فلسطين".split()
for word, tags in predict(sentence):
    print(f"{word}\t{'|'.join(sorted(tags))}")

Lower threshold if you need any recall at all on PERCENT, PRODUCT, UNIT, QUANTITY or CURR; at the default 0.5 those channels are empty.


10. Reproducibility

Files shipped with this repo:

FileContents
repro_bundle.jsonFull config, resolved data paths, label set, seed, library versions
final_metrics.jsonWojood dev overall + per-domain F1
test_metrics.jsonWojood test overall + per-domain F1
test_predictions_conll.txtTest-set predictions, CoNLL format (token, tab, pipe-joined tags)

The per-type table in §5.3 was computed by BIO-decoding test_predictions_conll.txt per type channel and comparing against gold as a set of (sentence, type, start, end) tuples; it reproduces the published precision exactly and micro-F1 to within 0.001.

Training notebooks, per-run configs, development-phase Konooz predictions and the evaluation scripts are in KnowledgeGraphEval-2026-AdaptNER-Experiments.


11. Citation

This system

@inproceedings{namaa-knowledgegrapheval-2026,
  title     = {{NAMAA} at {KnowledgeGraphEval} 2026: Entity-Span Voting and Constrained
               {LLM} Ensembles for {A}rabic Knowledge Graph Construction},
  author    = {Fathallah, Mahmoud and Zaytoon, Mohamed and Emad Eldin, Fatimah and
               A.azim, Mona and Nacar, Omer},
  booktitle = {Proceedings of the Fourth Arabic Natural Language Processing Conference
               (ArabicNLP 2026)},
  year      = {2026},
  address   = {Budapest, Hungary},
  publisher = {Association for Computational Linguistics}
}

Affiliations: Alexandria University; Trouve Labs; Ain Shams University; Tuwaiq Academy; NAMAA Community.

Shared task

@inproceedings{aljabari-etal-2026-knowledgegrapheval,
  title     = {{KnowledgeGraphEval} 2026: The First Shared Task on {A}rabic Knowledge Graphs},
  author    = {Aljabari, Alaa and Hamad, Nagham and El Mekki, Abdellah and
               Abdul-Mageed, Muhammad and Zitouni, Imed and Chawla, Sanjay and Jarrar, Mustafa},
  booktitle = {Proceedings of the Fourth Arabic Natural Language Processing Conference
               (ArabicNLP 2026)},
  year      = {2026},
  publisher = {Association for Computational Linguistics}
}

Training corpus — Wojood

@inproceedings{jarrar-etal-2022-wojood,
  title     = {{W}ojood: Nested {A}rabic Named Entity Corpus and Recognition using {BERT}},
  author    = {Jarrar, Mustafa and Khalilia, Mohammed and Ghanem, Sana},
  booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference (LREC)},
  year      = {2022},
  address   = {Marseille, France},
  pages     = {3626--3636},
  publisher = {European Language Resources Association},
  url       = {https://aclanthology.org/2022.lrec-1.387/}
}

Evaluation corpus — Konooz

@inproceedings{hamad-etal-2025-konooz,
  title     = {{K}onooz: Multi-domain Multi-dialect Corpus for Named Entity Recognition},
  author    = {Hamad, Nagham and Khalilia, Mohammed and Jarrar, Mustafa},
  booktitle = {Findings of the Association for Computational Linguistics: ACL 2025},
  year      = {2025},
  pages     = {7316--7331},
  publisher = {Association for Computational Linguistics},
  url       = {https://aclanthology.org/2025.findings-acl.382/}
}

Base encoder — MARBERTv2

@inproceedings{abdul-mageed-etal-2021-arbert,
  title     = {{ARBERT} \& {MARBERT}: Deep Bidirectional Transformers for {A}rabic},
  author    = {Abdul-Mageed, Muhammad and Elmadany, AbdelRahim and
               Nagoudi, El Moatez Billah},
  booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational
               Linguistics and the 11th International Joint Conference on Natural Language
               Processing (Volume 1: Long Papers)},
  year      = {2021},
  pages     = {7088--7105},
  publisher = {Association for Computational Linguistics},
  url       = {https://aclanthology.org/2021.acl-long.551/}
}

Also referenced

@inproceedings{obeid-etal-2020-camel,
  title     = {{CAM}e{L} Tools: An Open Source Python Toolkit for {A}rabic
               Natural Language Processing},
  author    = {Obeid, Ossama and Zalmout, Nasser and Khalifa, Salam and Taji, Dima and
               Oudah, Mai and Alhafni, Bashar and Inoue, Go and Eryani, Fadhl and
               Erdmann, Alexander and Habash, Nizar},
  booktitle = {Proceedings of the Twelfth Language Resources and Evaluation Conference (LREC)},
  year      = {2020},
  pages     = {7022--7032},
  url       = {https://aclanthology.org/2020.lrec-1.868/}
}

@inproceedings{yu-etal-2020-named,
  title     = {Named Entity Recognition as Dependency Parsing},
  author    = {Yu, Juntao and Bohnet, Bernd and Poesio, Massimo},
  booktitle = {Proceedings of the 58th Annual Meeting of the Association for
               Computational Linguistics (ACL)},
  year      = {2020},
  pages     = {6470--6476},
  url       = {https://aclanthology.org/2020.acl-main.577/}
}

12. Acknowledgements

We thank Tuwaiq Academy for its continued support of this work, and the organisers of KnowledgeGraphEval 2026 for providing the Wojood, Konooz and WojoodRelations resources and the evaluation framework.

Wojood and Konooz are distributed by SinaLab, Birzeit University under their own terms. The Apache-2.0 license here covers the fine-tuned weights and code, not the underlying corpora — users must obtain those under the original licenses.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · token-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
BertForTokenClassification
Ревизия весов
144187c

0 моделей