/ Модель

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

Контекст
512 токенов
Параметры
306 млн
Лицензия
Apache 2.0
Архитектура
deberta-v2 · dense
Базовая модель
mDeBERTa-v3-base-mnli-xnli
Опубликована
25 июл 2026

aragenre-mdeberta-devgold-finetune

Классификация текстаТекст → label3 профессии

Дообученный mDeBERTa cross-encoder сопоставляет арабский текст с определениями жанров для иерархической классификации в таксономии AraGenre.

9скачиваний за 30 дней0лайковвеса обновлены11 авг 2026

Бенчмарки

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

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

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

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

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

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

AraGenre mDeBERTa — Dev-Gold Entailment Fine-Tune — это модель Hassan Barmandah, Israa Elhosiny, Yousra El-Ghawi и Omer Nacar из NAMAA Community и Umm Al-Qura University для иерархической классификации арабских текстов по жанрам. Она основана на MoritzLaurer/mDeBERTa-v3-base-mnli-xnli и дообучена как cross-encoder, оценивающий, следует ли заданное описание жанра из текста. Для классификации нужно сравнить текст с определениями категорий и выбрать определение с наибольшей вероятностью entailment.

Модель содержит 306 млн параметров, использует архитектуру DeBERTa-v2 для классификации последовательностей и принимает пары текста и определения жанра; максимальная длина контекста — 512 токенов. Обучение проводилось на 110 размеченных примерах AraGenre dev_gold.json, расширенных английскими определениями жанров и синтетическими трудными отрицательными примерами. Модель подходит для воспроизведения экспериментов и классификации в рамках соответствующей таксономии жанров; оценка F1 0,9917 получена на пятичастной кросс-валидации этого dev-набора.

Авторы указывают, что эта оценка не отражает качество на реальных данных: модель обучалась на метках dev-набора, а её таксономия расходится с существенно более крупной скрытой тестовой таксономией. Это экспериментальная запись проекта, а не рекомендуемый production-классификатор; в статье проекта родственные дообученные энкодеры показали 0,22–0,44 hierarchical F1 на скрытом тесте. Веса доступны по лицензии Apache-2.0.

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

  • определение жанра арабского текста по заданным определениям категорий
  • иерархическая классификация текстов AraGenre
  • ранжирование определений жанра по соответствию тексту
  • воспроизведение экспериментов AraGenre на размеченных примерах

Ограничения

Высокая оценка 0,9917 получена в пятичастной кросс-валидации на AraGenre dev-наборе, метки которого участвовали в обучении; она не характеризует обобщение на скрытый тест с другой и значительно более крупной таксономией. Авторы не рекомендуют модель для production-классификации.

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

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

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

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

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

Открыть на Hugging Face

AraGenre mDeBERTa — Dev-Gold Entailment Fine-Tune

MoritzLaurer/mDeBERTa-v3-base-mnli-xnli fine-tuned as a cross-encoder entailment scorer for hierarchical Arabic genre classification, deliberately trained on the AraGenre dev_gold.json labels.

Authors: Hassan Barmandah (NAMAA Community; Umm Al-Qura University), Israa Elhosiny (NAMAA Community), Yousra El-Ghawi (NAMAA Community), Omer Nacar (NAMAA Community)

⚠️ Generalization Note

This model's 0.9917 hierarchical F1 is a 5-fold cross-validation estimate on the AraGenre dev set, not a real-world generalization estimate — the model is trained directly on dev labels by design (see Approach below for why), unlike the rest of the project's pipeline, which trains only on the 7 AraGenre TRAIN genres. Per the project's system-description paper, this model belongs to the broader fine-tuned-encoder lineage that collapsed to 0.22–0.44 hierarchical F1 on the actual 27,972-item hidden test set (74 specific genres under 6 broad genres) — training on dev labels does not close that gap, because the test set's official definitions and much larger taxonomy diverge from what dev training exposes the model to.

The system that actually won for this team — 0.7013 hierarchical F1, 3rd of 18 teams on the official CodaBench leaderboard — was a separate, zero-shot DeepSeek-LLM pipeline with no dev-label training at all (stage2_llm_zeroshot_pipeline/ in the project repo). This model is not that system. It is released here for transparency and reproducibility of the project's full experimental record, not as a recommended production classifier.

Approach

Cross-encoder entailment fine-tuning: MoritzLaurer/mDeBERTa-v3-base-mnli-xnli fine-tuned on (Arabic text, augmented English genre definition) pairs with a binary entailment label. Deliberately trains on dev_gold.json (unlike the rest of the pipeline, which trains only on the 7 TRAIN genres) — since the dev genres differ from the train genres, the 110 extra labeled dev examples materially help, and dev genres are not the true held-out test set for this task. The 5-fold cross-validation protocol exists specifically to get an honest, unbiased performance estimate despite training on dev.

Base model

MoritzLaurer/mDeBERTa-v3-base-mnli-xnli

Training data

dev_gold.json (110 examples) plus augmented definitions and synthetic hard-negative examples.

Hyperparameters

  • Epochs: 20 (early stopping, patience 5)
  • Batch size: 16
  • Learning rate: 2e-5

Usage

Load with AutoModelForSequenceClassification.from_pretrained(...), score each (text, definition) pair, and take the definition with the highest P(entailment).

python mdeberta_devgold_finetune.py

Citation

If you use this work, please cite our system-description paper:

@inproceedings{barmandah-etal-2026-namaa,
  title = {NAMAA at AraGenre 2026: From Encoder Baselines to Self-Consistent LLM Ensembling for Hierarchical Arabic Genre Classification},
  author = {Barmandah, Hassan and Elhosiny, Israa and El-Ghawi, Yousra and Nacar, Omer},
  booktitle = {Proceedings of the 4th Arabic Natural Language Processing Conference (ArabicNLP 2026)},
  address = {Budapest, Hungary},
  publisher = {Association for Computational Linguistics},
  year = {2026},
}

Please also cite the AraGenre 2026 shared task overview paper:

@inproceedings{elhaj-etal-2026-aragenre,
  title = {AraGenre 2026: A Hierarchical Definition-Guided Arabic Genre Classification Shared Task},
  author = {El-Haj, Mo and Ezzini, Saad and Abudalfa, Shadi and Lamsiyah, Salima and Jarrar, Mustafa},
  booktitle = {Proceedings of the 4th Arabic Natural Language Processing Conference (ArabicNLP 2026)},
  address = {Budapest, Hungary},
  publisher = {Association for Computational Linguistics},
  year = {2026},
}

License

Apache 2.0

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
DebertaV2ForSequenceClassification
Ревизия весов
72e9f46

0 моделей