manueltonneau commited on
Commit
7bf0eac
1 Parent(s): 1dd5748

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +82 -0
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - ha
5
+ - yo
6
+ - ig
7
+ - pcm
8
+ pipeline_tag: text-classification
9
+ datasets:
10
+ - manueltonneau/NaijaHate
11
+ ---
12
+
13
+
14
+ # NaijaXLM-T-base Hate
15
+ This is a [NaijaXLM-T](https://huggingface.co/manueltonneau/naija-xlm-twitter-base) model finetuned on Nigerian tweets annotated for hate speech detection. The model is described and evaluated in the [reference paper](https://arxiv.org/abs/2403.19260) and was developed together with [@pvcastro](https://huggingface.co/pvcastro).
16
+
17
+ ## Model Details
18
+
19
+ ### Model Description
20
+
21
+ <!-- Provide a longer summary of what this model is. -->
22
+
23
+ - **Model type:** xlm-roberta
24
+ - **Language(s) (NLP):** (Nigerian) English, Nigerian Pidgin, Hausa, Yoruba, Igbo
25
+ - **Finetuned from model:** `manueltonneau/naija-xlm-twitter-base`
26
+
27
+ ### Model Sources [optional]
28
+
29
+ <!-- Provide the basic links for the model. -->
30
+
31
+ - **Repository:** https://github.com/manueltonneau/hate_speech_nigeria
32
+ - **Paper:** https://arxiv.org/abs/2403.19260
33
+
34
+
35
+
36
+ ## Training Details
37
+
38
+ ### Training Data
39
+
40
+ This model was finetuned on the stratified (`dataset=='stratified'`) and active learning (`dataset=='al'`) subset of [NaijaHate](https://huggingface.co/datasets/manueltonneau/NaijaHate).
41
+
42
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
43
+
44
+ ### Training Procedure and Evaluation
45
+
46
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
47
+ 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.
48
+
49
+ 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](https://huggingface.co/datasets/manueltonneau/NaijaHate).
50
+
51
+ | Model | Holdout | Top-scored | Random |
52
+ |---------------|--------------------|--------------------|-------------------|
53
+ | GPT-3.5, ZSL | - | 60.3±2.7 | 3.1±1.2 |
54
+ | Perspective API | - | 60.2±3.5 | 4.3±2.6 |
55
+ | XLM-T | *84.2 ± 0.6* | 51.8 ± 0.7 | 0.6 ± 0.1 |
56
+ | XLM-T | *62.0 ± 2.3* | 68.9 ± 0.8 | 3.3 ± 0.6 |
57
+ | XLM-T | *70.5 ± 3.7* | 63.7 ± 1.1 | 1.9 ± 0.5 |
58
+ | DeBERTaV3 | **82.3 ± 2.3** | 85.3 ± 0.8 | **29.7 ± 4.1** |
59
+ | XLM-R | 76.7 ± 2.5 | 83.6 ± 0.8 | 22.1 ± 3.7 |
60
+ | mDeBERTaV3 | 29.2 ± 2.0 | 49.6 ± 1.0 | 0.2 ± 0.0 |
61
+ | Conv. BERT | 79.2 ± 2.3 | 86.2 ± 0.8 | 22.6 ± 3.6 |
62
+ | BERTweet | **83.6 ± 2.0** | **88.5 ± 0.6** | **34.0 ± 4.4** |
63
+ | XLM-T | 79.0 ± 2.4 | 84.5 ± 0.9 | 22.5 ± 3.7 |
64
+ | AfriBERTa | 70.1 ± 2.7 | 80.1 ± 0.9 | 12.5 ± 2.8 |
65
+ | AfroXLM-R | 79.7 ± 2.3 | 86.1 ± 0.8 | 24.7 ± 4.0 |
66
+ | XLM-R Naija | 77.0 ± 2.5 | 83.5 ± 0.8 | 19.1 ± 3.4 |
67
+ | NaijaXLM-T | **83.4 ± 2.1** | **89.3 ± 0.7** | **33.7 ± 4.5** |
68
+
69
+ For more information on the evaluation, please read the [reference paper](https://arxiv.org/abs/2403.19260).
70
+ ## BibTeX entry and citation information
71
+
72
+
73
+ Please cite the [reference paper](https://arxiv.org/abs/2403.19260) if you use this model.
74
+
75
+ ```bibtex
76
+ @article{tonneau2024naijahate,
77
+ title={NaijaHate: Evaluating Hate Speech Detection on Nigerian Twitter Using Representative Data},
78
+ author={Tonneau, Manuel and de Castro, Pedro Vitor Quinta and Lasri, Karim and Farouq, Ibrahim and Subramanian, Lakshminarayanan and Orozco-Olvera, Victor and Fraiberger, Samuel},
79
+ journal={arXiv preprint arXiv:2403.19260},
80
+ year={2024}
81
+ }
82
+ ```