/ Модель

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

Контекст
514 токенов
Параметры
305 млн
Архитектура
xlm-roberta · dense
Опубликована
1 дек 2023

naija-xlm-twitter-base-hate

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

Модель XLM-RoBERTa для выявления языка ненависти в нигерийских сообщениях и твитах.

153скачиваний за 30 дней0лайковвеса обновлены13 авг 2024

Бенчмарки

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

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

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

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

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

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

NaijaXLM-T-base Hate — модель XLM-RoBERTa, разработанная pvcastro и manueltonneau и дообученная на нигерийских твитах из датасета NaijaHate для выявления языка ненависти. Она классифицирует текстовые сообщения на английском Нигерии, нигерийском пиджине, хауса, йоруба и игбо; в обучении использовались стратифицированная и отобранная активным обучением части датасета.

Модель содержит 305,2 млн параметров, принимает текст с контекстом до 514 токенов и доступна в формате PyTorch. Подходит для классификации публикаций в социальных сетях и анализа текста на предмет языка ненависти в поддерживаемых языках. Лицензия в предоставленных данных не указана.

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

  • выявление языка ненависти в нигерийских твитах
  • модерация публикаций на нигерийском пиджине
  • классификация сообщений на хауса, йоруба и игбо
  • анализ токсичных высказываний в социальных сетях Нигерии

Ограничения

Модель обучена на нигерийских твитах и может хуже работать на других жанрах, языках и региональных вариантах. Максимальная длина контекста составляет 514 токенов.

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

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

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

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

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

Открыть на Hugging Face

NaijaXLM-T-base Hate

This is a NaijaXLM-T base model finetuned on Nigerian tweets annotated for hate speech detection. The model is described and evaluated in the reference paper and was developed by @pvcastro and @manueltonneau.

Model Details

Model Description

  • Model type: xlm-roberta
  • Language(s) (NLP): (Nigerian) English, Nigerian Pidgin, Hausa, Yoruba, Igbo
  • Finetuned from model: worldbank/naija-xlm-twitter-base

Model Sources [optional]

Training Details

Training Data

This model was finetuned on the stratified (dataset=='stratified') and active learning (dataset=='al') subset of NaijaHate.

Training Procedure and Evaluation

We perform a 90-10 train-test split and conduct a 5-fold cross-validation with 5 learning rates ranging from 1e-5 to 5e-5. Each fold is trained using 3 different seeds. The train-test split is repeated for 10 different seeds, and the evaluation metrics are averaged across the 10 seeds.

We evaluate model performance on three datasets: the holdout sample from the train-test splits as well as the top-scored sample (dataset=='eval') and the random sample (dataset=='random') from NaijaHate.

ModelHoldoutTop-scoredRandom
GPT-3.5, ZSL-60.3±2.73.1±1.2
Perspective API-60.2±3.54.3±2.6
XLM-T84.2 ± 0.651.8 ± 0.70.6 ± 0.1
XLM-T62.0 ± 2.368.9 ± 0.83.3 ± 0.6
XLM-T70.5 ± 3.763.7 ± 1.11.9 ± 0.5
DeBERTaV382.3 ± 2.385.3 ± 0.829.7 ± 4.1
XLM-R76.7 ± 2.583.6 ± 0.822.1 ± 3.7
mDeBERTaV329.2 ± 2.049.6 ± 1.00.2 ± 0.0
Conv. BERT79.2 ± 2.386.2 ± 0.822.6 ± 3.6
BERTweet83.6 ± 2.088.5 ± 0.634.0 ± 4.4
XLM-T79.0 ± 2.484.5 ± 0.922.5 ± 3.7
AfriBERTa70.1 ± 2.780.1 ± 0.912.5 ± 2.8
AfroXLM-R79.7 ± 2.386.1 ± 0.824.7 ± 4.0
XLM-R Naija77.0 ± 2.583.5 ± 0.819.1 ± 3.4
NaijaXLM-T83.4 ± 2.189.3 ± 0.733.7 ± 4.5

For more information on the evaluation, please read the reference paper.

BibTeX entry and citation information

Please cite the reference paper if you use this model.

@inproceedings{tonneau-etal-2024-naijahate,
    title = "{N}aija{H}ate: Evaluating Hate Speech Detection on {N}igerian {T}witter Using Representative Data",
    author = "Tonneau, Manuel  and
      Quinta De Castro, Pedro  and
      Lasri, Karim  and
      Farouq, Ibrahim  and
      Subramanian, Lakshmi  and
      Orozco-Olvera, Victor  and
      Fraiberger, Samuel",
    editor = "Ku, Lun-Wei  and
      Martins, Andre  and
      Srikumar, Vivek",
    booktitle = "Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
    month = aug,
    year = "2024",
    address = "Bangkok, Thailand",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.acl-long.488",
    pages = "9020--9040",
    abstract = "To address the global issue of online hate, hate speech detection (HSD) systems are typically developed on datasets from the United States, thereby failing to generalize to English dialects from the Majority World. Furthermore, HSD models are often evaluated on non-representative samples, raising concerns about overestimating model performance in real-world settings. In this work, we introduce NaijaHate, the first dataset annotated for HSD which contains a representative sample of Nigerian tweets. We demonstrate that HSD evaluated on biased datasets traditionally used in the literature consistently overestimates real-world performance by at least two-fold. We then propose NaijaXLM-T, a pretrained model tailored to the Nigerian Twitter context, and establish the key role played by domain-adaptive pretraining and finetuning in maximizing HSD performance. Finally, owing to the modest performance of HSD systems in real-world conditions, we find that content moderators would need to review about ten thousand Nigerian tweets flagged as hateful daily to moderate 60{\%} of all hateful content, highlighting the challenges of moderating hate speech at scale as social media usage continues to grow globally. Taken together, these results pave the way towards robust HSD systems and a better protection of social media users from hateful content in low-resource settings.",
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
XLMRobertaForSequenceClassification
Ревизия весов
49fe8d3

0 моделей