NorahAlshahrani
commited on
Commit
•
b54d7fe
1
Parent(s):
7d73d6c
Update README.md
Browse files
README.md
CHANGED
@@ -1,20 +1,40 @@
|
|
1 |
---
|
2 |
library_name: keras
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
4 |
|
5 |
## Model description
|
|
|
|
|
|
|
6 |
|
7 |
-
More information needed
|
8 |
|
9 |
-
## Intended uses & limitations
|
10 |
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
## Training and evaluation data
|
14 |
|
15 |
-
|
16 |
|
17 |
## Training procedure
|
|
|
18 |
|
19 |
### Training hyperparameters
|
20 |
|
@@ -22,14 +42,8 @@ The following hyperparameters were used during training:
|
|
22 |
|
23 |
| Hyperparameters | Value |
|
24 |
| :-- | :-- |
|
25 |
-
|
26 |
-
|
27 |
-
| decay | 0.0 |
|
28 |
-
| beta_1 | 0.8999999761581421 |
|
29 |
-
| beta_2 | 0.9990000128746033 |
|
30 |
-
| epsilon | 1e-07 |
|
31 |
-
| amsgrad | False |
|
32 |
-
| training_precision | float32 |
|
33 |
|
34 |
|
35 |
## Model Plot
|
|
|
1 |
---
|
2 |
library_name: keras
|
3 |
+
license: mit
|
4 |
+
datasets:
|
5 |
+
- hard
|
6 |
+
language:
|
7 |
+
- ar
|
8 |
---
|
9 |
|
10 |
## Model description
|
11 |
+
This 2dCNNmsda model is a two-dimensional convolutional neural network (2D-CNN) architecture trained from scratch on Hotel Arabic Reviews Dataset (HARD) dataset with three window sizes of 3, 4, and 5, and 100 filters for each window size.
|
12 |
+
It achieves the following results on the evaluation test set:
|
13 |
+
- Accuracy:75%
|
14 |
|
|
|
15 |
|
|
|
16 |
|
17 |
+
## BibTeX Citation:
|
18 |
+
```bash
|
19 |
+
@inproceedings{alshahrani-etal-2024-bert-synonym-attack,
|
20 |
+
title = "{Arabic Synonym BERT-based Adversarial Examples for Text Classification}",
|
21 |
+
author = "Alshahrani, Norah and Alshahrani, Saied and Wali, Esma and Matthews, Jeanna ",
|
22 |
+
booktitle = "Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics: Student Research Workshop",
|
23 |
+
month = March,
|
24 |
+
year = "2024",
|
25 |
+
address = "Malta",
|
26 |
+
publisher = "Association for Computational Linguistics",
|
27 |
+
abstract = "Text classification systems have been proven vulnerable to adversarial text examples, modified versions of the original text examples that are often unnoticed by human eyes, yet can force text classification models to alter their classification. Often, research works quantifying the impact of adversarial text attacks have been applied only to models trained in English. In this paper, we introduce the first word-level study of adversarial attacks in Arabic. Specifically, we use a synonym (word-level) attack using a Masked Language Modeling (MLM) task with a BERT model in a black-box setting to assess the robustness of the state-of-the-art text classification models to adversarial attacks in Arabic. To evaluate the grammatical and semantic similarities of the newly produced adversarial examples using our synonym BERT-based attack, we invite four human evaluators to assess and compare the produced adversarial examples with their original examples. We also study the transferability of these newly produced Arabic adversarial examples to various models and investigate the effectiveness of defense mechanisms against these adversarial examples on the BERT models. We find that fine-tuned BERT models were more susceptible to our synonym attacks than the other Deep Neural Networks (DNN) models like WordCNN and WordLSTM we trained. We also find that fine-tuned BERT models were more susceptible to transferred attacks. We, lastly, find that fine-tuned BERT models successfully regain at least 2% in accuracy after applying adversarial training as an initial defense mechanism.",
|
28 |
+
}
|
29 |
+
```
|
30 |
+
|
31 |
|
32 |
## Training and evaluation data
|
33 |
|
34 |
+
We trained this model on a 90% train set and evaluated it on a 10% test set.
|
35 |
|
36 |
## Training procedure
|
37 |
+
We have trained this model using the Paperspace GPU-Cloud service. We used a machine with 8 CPUs, 45GB RAM, and A6000 GPU with 48GB RAM.
|
38 |
|
39 |
### Training hyperparameters
|
40 |
|
|
|
42 |
|
43 |
| Hyperparameters | Value |
|
44 |
| :-- | :-- |
|
45 |
+
train_batch_size: | 128
|
46 |
+
num_epochs: |15
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
|
49 |
## Model Plot
|