/ Модель

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

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

KnowledgeGraphEval-2026-AdaptNER-AraBERTv02-Flat

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

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

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

Бенчмарки

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

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

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

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

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

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

NAMAA Community разработала этот контрольный чекпойнт для распознавания именованных сущностей на арабском языке. Это дообученная на плоском варианте корпуса Wojood 1.1 модель AraBERTv0.2 на архитектуре BERT с классификатором токенов и BIO-разметкой для 21 типа сущностей; размер модели — 162,4 млн параметров, контекст — 512 токенов. Она предназначена для плоского NER, воспроизведения экспериментов и сравнения плоской и вложенной разметки, а также работает с обычным конвейером token-classification в Transformers.

На валидации Wojood модель получила micro-F1 0,9003, а на кросс-доменной выборке Konooz — 0,69. Чекпойнт не является финальной системой команды и уступает вложенной версии для сценариев, где важны пересекающиеся сущности. По устройству он присваивает каждому токену только одну метку, поэтому не может распознавать вложенные сущности; кроме того, в наборе меток отсутствует I-UNIT, что исключает предсказание многотокенных сущностей UNIT. Модель выпущена под лицензией Apache-2.0.

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

  • извлечение имен людей, организаций и мест из арабских текстов
  • разметка дат, чисел, денежных сумм и других сущностей в арабских документах
  • плоское распознавание сущностей в арабских новостях и материалах разных тематик
  • воспроизведение эксперимента плоской и вложенной разметки NER
  • получение меток токенов через конвейер Transformers token-classification

Ограничения

Модель не представляет вложенные или пересекающиеся сущности, а отсутствие класса I-UNIT не позволяет предсказывать многотокенные сущности UNIT. На Konooz качество ниже, чем на валидации Wojood; для чувствительных решений требуется проверка человеком.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

NAMAA Community — AdaptNER (AraBERTv02, flat baseline)

KnowledgeGraphEval 2026 · Subtask 1 (AdaptNER) · ArabicNLP 2026

Single-label (flat) Arabic Named Entity Recognition. This checkpoint fine-tunes aubmindlab/bert-base-arabertv02 on the flat variant of the Wojood corpus with a standard softmax BIO tagger over 21 entity types.

It is published as the team's flat control baseline — the reference point that quantifies what the nested formulation buys. It is deliberately not a competitive system: a flat tagger assigns exactly one label per token and therefore cannot represent overlapping mentions, which is the defining property of the Wojood/Konooz annotation scheme.

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.

Which checkpoint should I use? For real work, use KnowledgeGraphEval-2026-AdaptNER-AraBERTv02-Nested. It shares this model's encoder and recipe, but scores 0.73 vs 0.69 on the official Konooz development set and can express nested entities. Use this checkpoint when you specifically want a flat tagger, or to reproduce the flat-vs-nested ablation.


1. Model details

Developed byNAMAA Community (see Citation)
Team / submissionNAMAA at KnowledgeGraphEval 2026 (development-phase checkpoint)
Experiment IDEXP-001 (flat baseline)
Model typeBERT encoder + single-label token classification head (softmax)
Base encoderaubmindlab/bert-base-arabertv02
LanguageArabic (MSA + Palestinian/Lebanese dialect)
Parameters134,635,050 (F32)
Architecture12 layers, hidden 768, 12 heads, vocab 64,000, max positions 512
Label space42 classes: 21 B- + 20 I- + O (see caveat)
Decision ruleargmax over 42 classes
Max sequence length256 sub-words
LicenseApache-2.0
Finetuned fromAraBERTv02 (Antoun et al., 2020)

2. Intended use

In scope

  • Flat Arabic NER where one label per token is sufficient.
  • The team's development-phase flat-vs-nested ablation.
  • A drop-in token-classification pipeline model (works with aggregation_strategy="simple", unlike the nested siblings).

Out of scope

  • Nested / overlapping entities. Structurally impossible — this is the point of the baseline.
  • Multi-token UNIT mentions — the label space has no I-UNIT class (see below).
  • Languages other than Arabic.
  • High-stakes decisions about people or organisations without human review.

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, flat variant (Jarrar et al., 2022)23,125 train / 3,304 dev sentences~448K tokens, ~72K mentions, 21 entity types
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.

Note that the flat variant is a lossy projection of the nested annotation: where the nested data records a token as belonging to several mentions, the flat data keeps one. Metrics on this split are therefore not directly comparable to nested-split metrics.

Label space

21 entity types, in the official submission column order:

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

Caveat — I-UNIT is absent. The head has 42 classes, not the 43 (21 B- + 21 I- + O) that a complete flat BIO scheme requires: I-UNIT never appeared in the flat training split, so it was never allocated a class. Consequently multi-token UNIT mentions cannot be predicted — only single-token ones. The nested siblings do not have this gap (they carry all 21 B-/I- pairs).


4. Training configuration

Recorded verbatim in repro_bundle.json.

HyperparameterValue
Epochs8 (best checkpoint at epoch 8.0)
Learning rate3e-5
Batch size (train / eval)32 / 64
Gradient accumulation1
OptimizerAdamW
Weight decay0.01
Warmup ratio0.1
Max length256
Precisionbf16 (+ TF32)
Early stoppingpatience 3, monitor dev micro-F1
Seed42
group_by_lengthtrue
label_all_subtokensfalse (label on first sub-word; continuations masked)

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).


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)

5.2 Overall results

SplitLossPrecisionRecallmicro-F1
Wojood validation (in-domain)0.13560.89080.91010.9003
Konooz dev (cross-domain, official)———0.69

Scope of reporting. This run recorded validation metrics only. Unlike the nested siblings, no test_metrics.json and no test-set prediction file were produced for this checkpoint, so no Wojood test-split score and no per-entity-type breakdown are available. The gap is a reporting gap, not a hidden result — the numbers were never computed. The per-type breakdown in the nested cards should be consulted for type-level behaviour.

Note that precision (0.8908) trails recall (0.9101) here, the opposite balance from the nested AraBERTv02 sibling — the flat tagger over-predicts slightly relative to what it recovers.

5.3 Per-domain breakdown (Wojood validation)

Sub-corpusSentencesF1
Awraq_G37140.9703
T4: Elections1610.9389
Awraq_G14660.9380
Awraq_G24900.9379
T5: Migration650.8862
T1: Terrorism1380.8525
PCMA1050.8419
T6: Health policy1080.8399
Curras5230.8204
T2: Foreign policy1440.8058
T3: Security830.8053
QUORA2650.6833
Lebanese420.5882

The spread is wide — 0.59 to 0.97, a 0.38 F1 range across sub-corpora of the same corpus. Dense formulaic archival text (Awraq_G3) is near-solved; dialectal and user-generated slices (Lebanese 0.5882, QUORA 0.6833) are the floor. Lebanese has only 42 validation sentences, so that figure is noisy.

5.4 Flat vs nested: what the nested head buys

Same encoder, same seed, same hyperparameters — only the task head and data variant differ:

Sub-corpusFlat F1 (this model)Nested F1 (AraBERTv02 nested)Δ
Awraq_G10.93800.9520+0.0140
Awraq_G20.93790.9623+0.0244
Awraq_G30.97030.9833+0.0130
Curras0.82040.8205+0.0001
Lebanese0.58820.5600−0.0282
PCMA0.84190.8802+0.0383
QUORA0.68330.68330.0000
T1: Terrorism0.85250.9020+0.0495
T2: Foreign policy0.80580.8026−0.0032
T3: Security0.80530.8571+0.0518
T4: Elections0.93890.9418+0.0029
T5: Migration0.88620.8991+0.0129
T6: Health policy0.83990.8590+0.0191
Overall (validation)0.90030.9245+0.0242
Konooz dev (development phase)0.690.73+0.04

Both columns are validation-split figures on their respective data variants, so the comparison is indicative rather than strict. The nested head wins on 10 of 13 sub-corpora and by +0.04 on the official cross-domain metric. A flat tagger cannot emit mentions that overlap across entity types, which limits its recall on nested annotation.


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

CheckpointFormulationWojood dev F1Wojood test F1Macro-F1 (test)Konooz dev F1
AraBERTv02 nestednested multi-label0.92450.92840.84110.73
MARBERTv2 nestednested multi-label0.90710.90920.58770.67
AraBERTv02 flat (this model)flat single-label0.9003not recordednot recorded0.69

Dev F1 for the flat row is on the flat data variant; the nested rows are on the nested variant.


8. Limitations and known issues

  • Cannot represent nested entities. One label per token, by construction. On a corpus where 22.5% of mentions are nested, this is a hard ceiling, and it is the reason the checkpoint exists as a control rather than a candidate.
  • No I-UNIT class. Multi-token UNIT mentions are unpredictable (see §3).
  • No test-split or per-type metrics. Never computed for this run (see §5.2).
  • Cross-domain degradation. 0.9003 in-domain validation to 0.69 on Konooz.
  • Dialect and user-generated text. Lebanese (0.5882) and QUORA (0.6833) trail the archival sub-corpora by roughly 0.30 F1.
  • Small-sample domains. Lebanese (42 sentences), T5: Migration (65) and T3: Security (83) give noisy per-domain estimates.
  • Column order matters. Submissions are token + 21 space-separated B/I/O columns in the exact order listed in §3. A mis-ordered file scores against the wrong channels.

9. Usage

Unlike the nested siblings, this is an ordinary single-label tagger, so the standard pipeline works directly:

from transformers import pipeline

ner = pipeline(
    "token-classification",
    model="NAMAA-Space/KnowledgeGraphEval-2026-AdaptNER-AraBERTv02-Flat",
    aggregation_strategy="simple",
)

for ent in ner("مرحبا بك في جامعة بيرزيت في فلسطين"):
    print(f"{ent['entity_group']:<10} {ent['word']}  ({ent['score']:.3f})")

For explicit control over sub-word alignment:

from transformers import AutoTokenizer, AutoModelForTokenClassification
import torch

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

def predict(words):
    enc = tok(words, is_split_into_words=True, truncation=True,
              max_length=256, return_tensors="pt")
    with torch.no_grad():
        pred = model(**enc).logits.argmax(-1)[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)
        out.append((words[wid], model.config.id2label[pred[pos].item()]))
    return out

for word, tag in predict("وقع الاتفاق في القدس عام 1993".split()):
    print(f"{word}\t{tag}")

10. Reproducibility

FileContents
repro_bundle.jsonFull config, resolved data paths, label set, seed, library versions
final_metrics.jsonWojood validation overall + per-domain F1
training_args.binSerialised TrainingArguments

No test-split metrics or prediction file exist for this run (§5.2).

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 — AraBERT

@inproceedings{antoun-etal-2020-arabert,
  title     = {{A}ra{BERT}: Transformer-based Model for {A}rabic Language Understanding},
  author    = {Antoun, Wissam and Baly, Fady and Hajj, Hazem},
  booktitle = {Proceedings of the 4th Workshop on Open-Source Arabic Corpora and
               Processing Tools (OSACT), with a Shared Task on Offensive Language Detection},
  year      = {2020},
  address   = {Marseille, France},
  pages     = {9--15},
  publisher = {European Language Resources Association},
  url       = {https://aclanthology.org/2020.osact-1.2/}
}

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

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
Ревизия весов
bd59778

0 моделей