<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Penta-nlp at EXIST 2024 Task 1-3: Sexism Identification, Source Intention, Sexism Categorization In Tweets</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Fariha Tanjim Shifat</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fabiha Haider</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Md Sakib Ul Rahman Sourove</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Deeparghya Dutta Barua</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Md Farhan Ishmam</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Md Fahim</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Farhad Alam Bhuiyan</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>CCDS Lab, IUB</institution>
          ,
          <country country="BD">Bangladesh</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Islamic University of Technology</institution>
          ,
          <country country="BD">Bangladesh</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Research and Development</institution>
          ,
          <addr-line>Penta Global Limited</addr-line>
          ,
          <country country="BD">Bangladesh</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <abstract>
        <p>Social media platforms contains a vast user base and ofers ease with which information can be shared. This can adversely facilitate the spread of sexist content which is infeasible for human monitoring and filtering. This paper investigates the automated detection of sexism in tweets using Natural Language Processing (NLP) techniques. Sexist tweets can create a hostile online environment and perpetuate harmful stereotypes. Manual identification is impractical due to the vast amount of data. The research proposes a system utilizing machine learning models to analyze text, identify bias and discriminatory language patterns, and flag tweets for moderation. The fourth edition of EXIST shared task 2024 Tweets Dataset, containing labeled English and Spanish tweets, is used to train and evaluate the models. The system explores various approaches, including TF-IDF with diferent classifiers (SVM, XGB, RF), Long Short-Term Memory (LSTM) networks with and without attention mechanisms, and pre-trained transformer models (XLM-Roberta, mBERT, BETO). The efectiveness of diferent preprocessing techniques and the role of attention weights in identifying sexism are also explored. The paper outlines the methodology, experimental setup, and analysis of results, paving the way for further discussion on error analysis and conclusions in subsequent sections.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Sexism identification</kwd>
        <kwd>Tweets</kwd>
        <kwd>Source intention detection</kwd>
        <kwd>Sexism categorization</kwd>
        <kwd>Multilingual Models</kwd>
        <kwd>Natural Language Processing</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>This research paper discusses topics related to specific content that may be sensitive or ofensive, which
some readers may find distressing. The intent is to analyze and understand the research work.</p>
      <p>
        The commence and growth of internet have a profound impact on our social structure, the way we
communicate, our relationships through the development of various social platforms. Twitter, one
of such social platforms, has developed into a lively forum for sharing idea and discourse because of
its succinct format and emphasis on real-time updates, with attractive features like hashtags, tags,
etc. While such advancements of social platforms promotes connectivity and facilitates the spread of
information it also tempts people to gain fame thorough views and likes, and throw inappropriate
contents and comments in disguise of freedom of speech lacking empathy towards race, gender, religion
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Evidently sexism exists in Twitter in the form of sexist tweets sometimes intentionally while at
other times unintentionally. These tweets and contents can range from blatant objectification and
insults to more implicit bias and prejudice. Sexist tweets can create a hostile environment online,
especially for women and other targeted groups. Identifying sexism in online platforms is crucial
for a various number of reasons. Recognizing sexist content is essential to advancing equality and
averting social harm. The propagation of detrimental stereotypes and biases through such information
contributes to gender inequality and has a detrimental efect on people’s mental health and self-esteem
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. We can promote an inclusive and respectful culture by addressing sexist content, making sure that
everyone feels respected and secure.
      </p>
      <p>
        The sheer volume of such sexist tweets makes it dificult to identify sexism manually, requiring
the immediate need for automated solutions. Natural Language Processing (NLP) can emerge as a
successful tool in recognizing such harmful contents and filtering them out [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. It can prevent people to
post contents that goes against community standards creating a safer and more acceptable platform.
Using natural language processing (NLP) techniques, we can create automated systems that can
recognize sexist tweets with accuracy. Text content can be analyzed by these technologies, which can
also spot bias and discriminatory language patterns and flag tweets for moderation or additional review.
      </p>
      <p>
        EXIST aims to capture sexism in a broad sense, from explicit misogyny to other subtle expressions
that involve implicit sexist behaviours. EXIST is a series of scientific events and shared tasks on sexism
identification in social networks [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The EXIST 2024 Tweets Dataset contains more than 10,000
labeled tweets, both in English and Spanish. Based on the labeled data, the tasks were to identify sexist
tweets among them, the underlying intention of the author, and if it contained sexism at multiple
degrees. The challenge lies in the nuanced and context-dependent nature of language on social media.
Tweets often use slang, sarcasm, or coded language that can obscure sexist intent, while URLs can
lead to external content that may contain sexist material not immediately evident in the tweet itself.
Mentions and hashtags can complicate analysis by linking tweets to broader conversations or by being
used to target specific individuals. Emojis add another layer of complexity, as their meanings can vary
widely depending on context and cultural interpretation. These factors make automated detection
systems prone to errors, requiring sophisticated algorithms and often human oversight to accurately
identify and address sexism in tweets.
      </p>
      <p>
        Our approach involved training diferent Machine Learning (ML) models to capture the sexist pattern
in the contents and choose the one that performs the best on the validation dataset. The machine learning
models included TF-IDF+SVM [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], TF-IDF+XGB [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], TF-IDF+RF [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], LSTM [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], LSTM+Attention [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ],
XLM-Roberta [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], mBert [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], BETO [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. We yielded results for diferent ways of preprocessing the
data and further finetuned the models based on best results. Additionally, we attempted to find out the
provoking words that contributed in the semantic meaning of sexism reflected through the attention
weights of those words. Taking into accounts the attention weights of the sentence representation
helped the same model to yield the best result for Task 1, Task 2 and Task 3. The results show that the
Bert based models are well trained to capture the pattern of sexism when considering the attention
layer. The performance metrics used were accuracy and F1 score and we could obtain an accuracy
of 84.80%, 72.06% and 88.25% and F1 score of 84.76%, 51.43% and 54.77% for Task 1, Task 2 and Task
3, respectively. To do better modeling and include diferent explainability results, we adopt diferent
training and explainable experiments from EDAL, ITPT, HateXplain [
        <xref ref-type="bibr" rid="ref14 ref15 ref16">14, 15, 16</xref>
        ] papers. In the remainder
of this paper, we present the Problem Description in Section 2, Methodology in Section 3, Experimental
Setup in Section 4, Result Analysis in Section 5, Error Analysis in Section 6 and Conclusion in Section 7.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Problem Description</title>
      <sec id="sec-2-1">
        <title>2.1. Task Descriptions</title>
        <p>In this work, we have addressed tasks 1, 2, and 3. The task descriptions are listed as per the guidelines.
1. Task 1 (Sexism Identification in Tweets): Given a tweet, this subtask aimed to classify whether
a tweet contains sexist expressions or behaviors. The tweet can be sexist itself, describe a sexist
situation or critic sexist behavior. It is a binary classification problem. We needed to label ’YES’
or ’NO’ to the tweets.
2. Task 2 (Source Intention in Tweets): This subtask aims to classify each tweet according to the
intention of the person who wrote it. This is a multi-class classification problem. The classes are
as follows:
• DIRECT: The intention is to write a message that is sexist itself.
• REPORTED: The author intends to report or describe a sexist situation or event sufered
by a woman or women in the first or third person.
• JUDGEMENTAL: The author intends to be judgemental since the tweet describes sexist
situations or behaviors to condemn them.</p>
        <p>• NO: The tweet is detected as not sexist in subtask 1.
3. Task 3: This subtask categorizes the tweets according to the type of sexism. This is a multi-label
classification problem with 5 labels. So more than one class can be assigned to each tweet. The
labels are as follows:
• IDEOLOGICAL-INEQUALITY: The tweet discredits the feminist movement, rejects
inequality between men and women, or presents men as victims of gender-based oppression.
• STEREOTYPING-DOMINANCE: The tweet expresses false ideas about women that
suggest they are more suitable to fulfill certain roles (mother, wife, family caregiver, faithful,
tender, loving, submissive, etc.), or inappropriate for certain tasks (driving, hard work, etc.),
or claims that men are somehow superior to women.
• OBJECTIFICATION: The tweet presents women as objects apart from their dignity and
personal aspects or assumes or describes certain physical qualities that women must have
to fulfill traditional gender roles (compliance with beauty standards, hypersexualization of
female attributes, women’s bodies at the disposal of men, etc.).
• SEXUAL-VIOLENCE: The tweet includes or describes sexual suggestions, requests for
sexual favors, or harassment of a sexual nature (rape or sexual assault).
• MISOGYNY-NON-SEXUAL-VIOLENCE: The tweet expresses hatred and violence towards
women, diferent from that with sexual connotations.</p>
        <p>• NO: When none of the 5 labels are assigned to the tweet.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Dataset Statistics</title>
        <p>The dataset includes over 10,000 tweets both in Spanish and English. The train, dev, and test sets contain
6064, 934, and 2076 tweets respectively. These numbers are after discarding the non-labeled samples in
the gold standard. The distribution between both languages has been somewhat balanced to tackle the
issue of biases. The exact figures are in Table 1.</p>
        <p>Task 1 is a binary classification problem with ’YES’ and ’NO’ labels. Task 2 is a multi-class classification
problem with 3 sexism sources and one ’NO’ label. Task 3 is a multi-label classification problem with 5
diferent labels and a ’NO’ label when none of the labels are assigned. The distribution is not balanced.
Each tweet is labeled by six diferent annotators. The gold label is the average of the labels. The exact
ifgures of the distribution is in Table 2.
NO
DIRECT
REPORTED
JUDGEMENTAL
IDEOLOGICAL-INEQUALITY
STEREOTYPING-DOMINANCE
OBJECTIFICATION
SEXUAL-VIOLENCE
MISOGYNY-NON-SEXUAL-VIOLENCE
NO
l
e
d
o
d
ien laM
a u
-ter ign
rP illt
u
M</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Methodology</title>
      <p>In this section, we will outline our methodology. Given the multilingual nature of the dataset
encompassing both English and Spanish texts, we employ a multilingual pretrained model. We further refine
this model through fine-tuning on the dataset. Our model architecture comprises five key components:
i) Pretrained model backbone, ii) Sentence Representation from CLS token, iii) Attention-based Context
Vector, iv) Feature Aggregation Module, and v) Classifier Head</p>
      <sec id="sec-3-1">
        <title>3.1. Pretrained Multilingual Model as Backbone</title>
        <p>An input sentence  is passed into the pretrained multilingual tokenizer to obtain the tokens of the
sentence  = {[], 1, 2, . . . , , [ ]}, where  represents the -th token and [] &amp; [ ] are
the special tokens. The tokens are passed into the pretrained multilingual model to achieve contextual
representations for each token , denoted as  = {ℎ[], ℎ1, ℎ2, . . . , ℎ, ℎ[ ]}, where ℎ represents
the contextual representation of token . Specifically, we extract the last layer hidden representations
of the pretrained model, which are further fine-tuned during the dataset training.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Sentence Representation from CLS Token</title>
        <p>To get the representation for the entire sentence, we use the representation of [CLS] token ℎ[]. This
representation is passed into a Single Layer Perception to get the enhanced representation.</p>
        <p>′
ℎ =  · ℎCLS +</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Attention-based Context Vector</title>
        <p>As the tasks are natural language understanding tasks where individual words hold distinct predictive
significance, we integrate an attention-based network to ascertain word importance. By accounting for
the significance of each word, we construct a context vector for the sentence. We only consider the
representations of the words and exclude the representations of the special tokens.</p>
        <p>Once contextual representations  are obtained for a sentence , an additional attention layer is
added to compute learnable attention scores   for each token  in , and its calculation is as follows:
  = softmax( · ℎ + ),</p>
        <p>= 1, 2, . . . ,</p>
        <p>This results in a set of attention_scores = { 1,  2, . . . ,  } corresponding to the tokens in sentence
. These attention scores collectively represent the overall attention distribution across the sentence,
indicating the relative importance or relevance of each token to the context of the entire sentence. After
ifnding attention scores for each token, we find the context vector for the sentence  by multiplying
the contextual representations of token  with its attention score  .</p>
        <p>= ∑︁   · ℎ</p>
        <p>=1</p>
      </sec>
      <sec id="sec-3-4">
        <title>3.4. Feature Aggregation Module</title>
        <p>In this section, we consolidate various representations of the sentence . We obtain two distinct
′
representations: one based on the CLS token ℎ and the other based on attention-based context
vector . The aggregation of these representations is performed using two distinct techniques considering
the two following techniques:
• Concat-based Aggregation: For concat-based aggregation, we just simply concatenate ℎ′
and  to get the aggregated representation  as follows:</p>
        <p>_concat = concat[ℎ′ , ]
Then _concat is passed into single layer MLP layer to get the final combined representation 
where  = MLP(_concat)
• Element wise Addition based Aggregation: In this aggregation, we combine ℎ′ and  by
summing them element wise as follows</p>
        <p>= ℎ′ + 
Then _suumed is passed into single layer MLP layer to get the final combined representation 
where  = MLP(_suumed)</p>
      </sec>
      <sec id="sec-3-5">
        <title>3.5. Classifier Head</title>
        <p>After finding the aggregated feature representation , it is fed into a classification layer. The
representation is the logits  is employed for the classification process by the following:</p>
        <p>′ =  ·  +</p>
        <p>Finally, we calculate the Cross-Entropy (CE) loss based on ′ with the ground truth.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Experimental Setup</title>
      <sec id="sec-4-1">
        <title>4.1. Model Selection</title>
        <p>For the tasks, our initial approach involved a thorough exploration of various model types to determine
the most appropriate one. Our investigation led us to examine three distinct categories: Machine
Learning (ML) Models, Deep Learning Models, and Transformer-based Pretrained Models. For machine
learning models, we considered Support Vector Machine (SVM), Random Forest (RF), and XGBoost.
Employing TF-IDF as our feature extractor, we processed each sentence through this mechanism before
inputting it into the ML models for classification. For task 3, we consider Logistic Regression instead of
XGBoost.</p>
        <p>
          In our deep learning methodologies, we leverage both LSTM [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ] and LSTM + Attention models. As
for transformer-based approaches, we’ve explored XLM-RoBERTa [
          <xref ref-type="bibr" rid="ref18">18</xref>
          ], mBERT [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ], and BETO [20].
The outcomes are detailed in Table 3 for the development set. These model selections were driven by the
presence of two distinct languages within the dataset. The total unique words for TF-IDF experiments
were 39613 after deleting the punctuations, auxiliaries, and spaces. For LSTM experiments, we have used
embedding dim = 50, hidden units = 64 of the LSTM layer, and output dim = 256 of a fully connected
layer with a learning rate of 0.001. The experiments were done in 20 epochs. For the transformer-based
models, we fine-tuned the pre-trained models. We use 10 epochs with a batch size of 32
        </p>
        <p>Table 3 presents the results of diferent models for Task 1 and Task 2 datasets, while Table 4 displays
the model performance specifically for Task 3 on the development set. Analysis of Table 3 reveals that
classical ML models exhibit competitiveness against deep learning counterparts. Notably, employing
TF+IDF with XGBoost yields superior results to deep learning models. Incorporating the attention
module leads to a notable 3% enhancement in accuracy for Task 1 and 1% improvement Task 2.
Additionally, fine-tuning pretrained models demonstrates substantial improvements ranging from 6-9%.
Among these, XLM-Roberta demonstrates optimal performance for both Task 1 and Task 2, thereby
being selected as the final model for further experimentation. Turning to Task 3, as indicated in Table 4,
mBERT marginally outperforms XLM-RoBERTa. Consequently, mBERT is chosen as the final model for
Task 3.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Preprocessing</title>
        <p>The datasets retrieved from Twitter contain additional information such as usernames and URLs
alongside the original posts and comments. To gauge their impact, we conducted experiments using
various preprocessing methods. These techniques included removing usernames, URLs, punctuation,
and emojis. The outcomes of these experiments are presented in Table 5. From the table, we can see
that removing url from the tweets improves the model performance for task 1 and task 3. For task 2, no
preprocessing is helpful.</p>
      </sec>
      <sec id="sec-4-3">
        <title>4.3. Settings</title>
        <p>
          For the hyper parameter settings, we also investigated with diferent values of them. We did ablation
studies on learning rate with two diferent values [1e-5, 2e-5], on batch size with values [
          <xref ref-type="bibr" rid="ref16">16, 32</xref>
          ] and on
random seed with values [0, 42]. The experimented results are reported in the Table [
          <xref ref-type="bibr" rid="ref6 ref7 ref8">6, 7, 8</xref>
          ]. Considering
those results, we set a learning rate of 2e-5, random seed = 42 and batch size 32 = for tasks 1 &amp; 3 and 16
for task 3 for our model. We use AdamW optimizer in our experiments with betas = (0.9, 0.99).
        </p>
        <p>All experiments were conducted using Python (version 3.12) and PyTorch, leveraging the free NVIDIA
Tesla P100 GPU provided by Kaggle. For the transformer based models we consider Huggingface
transformers library. All the transformer based models were run for 10 epochs.</p>
      </sec>
      <sec id="sec-4-4">
        <title>4.4. Evaluation Metrics</title>
        <p>When assessing the efectiveness of the models, we consider diferent performance metrics. Mainly we
focus on Accuracy, Macro-F1, and ICM for our performance as our evaluation metircs.</p>
        <sec id="sec-4-4-1">
          <title>4.4.1. Accuracy</title>
          <p>Accuracy measures the proportion of correctly classified instances among all instances. It is calculated
by dividing the sum of true positives (correctly predicted positive instances) and true negatives (correctly
predicted negative instances) by the total number of instances.</p>
          <p>=</p>
          <p>+  
  +   +   +</p>
        </sec>
        <sec id="sec-4-4-2">
          <title>4.4.2. Macro F1 Score</title>
          <p>The F1 score is the harmonic mean of precision and recall. In the macro F1 score, each class is given
equal weight, and the mean of these F1 scores across all classes is calculated. Macro F1 Score is calculated
as follows:
2
F1-Score =</p>
          <p>1 1
  +</p>
          <p>Macro-F1 = 1 ∑︁ F1-Score</p>
          <p>=1
4.4.3. ICM
The ICM metric functions as a similarity measure employed to assess the likeness between
modelgenerated outputs and the actual ground truth in classification tasks. It does so by comaring the
Information Content of catrgories presented through its features with the help of a Similarity function.
It extends the principles of Pointwise Mutual Information, a common metric used for evaluating
relationships between words. When all parameters in the ICM formula are set to 1, it becomes equivalent
to PMI. This means ICM can capture similar relationships as PMI but with more flexibility. ICM helps
evaluate how well a system’s output aligns with the ground truth by comparing the information content
of the categories they represent. (ICM) is adopted for all tasks and evaluation types (hard-hard, hard-soft,
soft-soft). ICM-soft is an extenstion of ICM for evaluating hierarchical multi-label classification tasks
where there might be disagreements in the ground truth. It can can handle both soft system outputs
and soft ground truth.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Result Analysis</title>
      <p>Table 9 exhibits the results of various sentence representation extractors employing diferent aggregation
techniques across three tasks on the validation dataset. Regarding task 1, employing the CLS
tokenbased representation yields an accuracy of 84.90% and an F1 score of 83.90%. Transitioning to context
vector representation through an attention feature extractor results in a slight increase in the F1 score.
Furthermore, combining both types of representation through addition-based aggregation shows a 2%
enhancement in performance across the board. If we combine them using concat based aggregation
techniques we see a small improvement in F1 score but not like the addition based aggregation one</p>
      <p>For task 2, we experience similar trend in the performance where attention based sentence
representation performs better than CLS token based sentence extractor. If we combine both CLS and
context vector getting from attention through addition based aggregation techniques, 1% improvement
in accuracy and 2% improvement in F1 score. While we consider concat based aggregation techniques
for combining both sentence level representation, the performance is further improved by 1.2% in
accuracy and around 3% improvement in F1 score. For task 3, we also get better result than the CLS
based baseline while we aggregate both sentence representations using concatenation.</p>
      <p>The top-performing model is chosen to generate predictions for the test dataset across all three
tasks. The performance results on the test dataset are detailed in Table 10, showcasing the ICM-Hard,
ICM-Hard Norm, and Macro-F1 scores as our performance metrics. Our best-performing model achieves
an F1 score of 75.01 for all tweets, with 72.09 and 77.33 F1 scores recorded for English and Spanish
tweets, respectively. For task 2, the score is 48.56, while task 3 reaches 43.79 across all tweet data. The
table shows that our model can predict Spanish tweets more efectively than English tweets.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Error Analysis</title>
      <sec id="sec-6-1">
        <title>6.1. Confusion Matrix</title>
        <p>The evaluation of our approach for Task 1 is done on the development dataset. The confusion matrix
shown in 2(a) represents the performance of the classification. The number of True Positive is the
number of correctly predicted positive cases. The model correctly predicted 388 cases as "Yes" (True Yes).
True Negative cases is the number of correctly predicted negative cases. The model correctly predicted
418 cases as "NO" (True No). False Positive is the number of incorrectly predicted positive cases. The
model incorrectly predicted 61 cases as "YES" when they were actually "NO" (False YES). False Negative
(FN) is the number of incorrectly predicted negative cases. The model incorrectly predicted 67 cases
as "NO" when they were actually "YES" (False NO). The model produced 806 correct classification as
opposed to 128 misclassification.</p>
        <p>Similarly, the confusion matrix is shown in 2(b) shows the result of the evaluation done on the
development dataset for Task 2. As shown in the figure, out of 479 true NO labels, 420 cases were
correctly predicted as NO, 150 were correctly predicted as DIRECT out of 204 true DIRECT cases, 36
were correctly predicted as REPORTED out of 65 true REPORTED cases and 18 were correctly predicted
as JUDGEMENTAL out of 83 true JUDGEMENTAL cases. The model produced 624 correct classification
as opposed to 217 misclassification.</p>
      </sec>
      <sec id="sec-6-2">
        <title>6.2. Attention Heatmap</title>
        <p>We have calculated the Layer Integrated Gradient attributions for few specific input tweets using
Captum [21]. The attributions explain how each input element of a tweet contributes to the model’s
prediction for the target class. It means that the attention provided by the model to each tokens. So we
name it attention heatmap. The darker the color in the cell of a token, the higher its attribution value
(a) Task 1
(b) Task 2
and the higher its contribution to the target. We have considered both English and Spanish tweet for
the experiment and creating the heatmap. The corresponding labels are also listed in the Figure 3. We
can infer that for ’NO’ label the most attentive tokens among the 4 tweets are last, abuse, ada, in and for
’YES’ label the most attentive tokens among the 4 tweets are economy, s, a, LAS. This experiment was
done considering the best performing model in the task 1.</p>
        <p>Attention heatmap for tokens of a sample tweet
Lang</p>
        <p>Label
EN
EN
ES
ES
EN
EN
ES
ES</p>
        <p>NO
NO
NO
NO
YES
YES
YES
YES</p>
      </sec>
      <sec id="sec-6-3">
        <title>6.3. Most Attentive Tokens</title>
        <p>We also extracted the most attentive tokens for each category in the validation dataset for further
analysis. We determine these tokens by extracting the highest average self-attention scores for each
token across the entire category-wise validation dataset. Transformer-based models compute attention
scores to gauge the relationship between  and  across various layers and heads. Considering
a transformer-based model with  layers and  heads per layer, and a sequence length of  for a given
sentence , the resulting attention matrix has dimensions of  ×  ×  × . To compute the average
attention score for token within sentence , we follow this calculation:</p>
        <p>Avg_Attn_Score =</p>
        <p>1
 ·  ·  =1 ℎ=1 =1,̸=
  
∑︁ ∑︁ ∑︁</p>
        <p>Attention,,ℎ,</p>
        <p>To find category-wise average attention score for token on the validation dataset, we take the average
of Avg_Attn_Score for those sentences where token appears in. After calculating the token attention
scores, we arrange them in descending order and select the top K words. In Table 11, we present the
category-wise most attentive tokens predicted by the top-performing model for both Task 1 and Task 2.</p>
        <p>The table presents a detailed breakdown of the most attentive tokens categorized by the
topperforming model across two distinct tasks. In Task 1, where the classification pertains to identifying
sexist content, the model identifies tokens such as "volant," "slut," and "cum" as prominent indicators
for non-sexist content, while tokens like "penis," "forever," and "gangbang" are highlighted for
identifying sexist content. Task 2, which involves various categories like "NO," "DIRECT," "REPORTED," and
"JUDGEMENTAL," exhibits a diverse range of most attentive tokens. For instance, in the "NO" category,
tokens like "pun," "wall," and "question" stand out, while "DIRECT" category tokens include "where,"
"GPS," and "tomorrow." Additionally, tokens such as "wenr," "school," and "saben" are emphasized in the
"REPORTED" and "JUDGEMENTAL" categories, respectively. This comprehensive analysis sheds light
on the model’s attention mechanism and its discernment of diferent types of content within each task.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>7. Conclusion</title>
      <p>The EXIST challenge is designed to promote research on automated sexism detection and modeling in
online environments, with a particular focus on Twitter. In this paper, we performed extensive research
and conducted thorough experiments to achieve this objective, employing advanced techniques in
natural language understanding and machine learning. Specifically, we enhanced existing machine
learning models by incorporating an attention layer and a CLS token, which emphasize the words that
contribute to the context of sexism. Our findings demonstrate the efectiveness of our approach and
models on both the training and validation datasets.</p>
      <p>However, as the training is done on Spanish and English language the model might not be proficient
at identifying sexist content in other languages. This can lead to misclassification of sexist Tweets.</p>
    </sec>
    <sec id="sec-8">
      <title>Acknowledgements</title>
      <p>This project has been sponsored by Penta Global Limited Bangladesh. We would like to express our
deepest gratitude to Penta Global for for their financial support.
[20] J. Cañete, G. Chaperon, R. Fuentes, J.-H. Ho, H. Kang, J. Pérez, Spanish pre-trained bert model and
evaluation data, in: PML4DC at ICLR 2020, 2020.
[21] N. Kokhlikyan, V. Miglani, M. Martin, E. Wang, B. Alsallakh, J. Reynolds, A. Melnikov, N.
Kliushkina, C. Araya, S. Yan, O. Reblitz-Richardson, Captum: A unified and generic model
interpretability library for pytorch, CoRR abs/2009.07896 (2020). URL: https://arxiv.org/abs/2009.07896.
arXiv:2009.07896.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>J. B.</given-names>
            <surname>Walther</surname>
          </string-name>
          ,
          <article-title>Social media and online hate</article-title>
          ,
          <source>Current Opinion in Psychology</source>
          <volume>45</volume>
          (
          <year>2022</year>
          )
          <fpage>101298</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A.</given-names>
            <surname>Elbarazi</surname>
          </string-name>
          ,
          <article-title>How social media afects people's ideas on sexist behaviours and gender-based violence (</article-title>
          <year>2023</year>
          ). doi:
          <volume>10</volume>
          .19080/GJIDD.
          <year>2023</year>
          .
          <volume>12</volume>
          .555838.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Al-Makhadmeh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Tolba</surname>
          </string-name>
          ,
          <article-title>Automatic hate speech detection using killer natural language processing optimizing ensemble deep learning approach</article-title>
          ,
          <source>Computing</source>
          <volume>102</volume>
          (
          <year>2020</year>
          )
          <fpage>501</fpage>
          -
          <lpage>522</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>L.</given-names>
            <surname>Plaza</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Carrillo-de-Albornoz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Ruiz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Maeso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Chulvi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Amigó</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Gonzalo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Morante</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Spina</surname>
          </string-name>
          , Overview of EXIST 2024 -
          <article-title>Learning with Disagreement for Sexism Identification and Characterization in Social Networks and Memes, in: Experimental IR Meets Multilinguality, Multimodality, and Interaction</article-title>
          .
          <source>Proceedings of the Fifteenth International Conference of the CLEF Association (CLEF</source>
          <year>2024</year>
          ),
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>L.</given-names>
            <surname>Plaza</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Carrillo-de-Albornoz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Ruiz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Maeso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Chulvi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Amigó</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Gonzalo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Morante</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Spina</surname>
          </string-name>
          , Overview of EXIST 2024 -
          <article-title>Learning with Disagreement for Sexism Identification and Characterization in Social Networks and Memes (Extended Overview)</article-title>
          , in: G. Faggioli,
          <string-name>
            <given-names>N.</given-names>
            <surname>Ferro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Galuščáková</surname>
          </string-name>
          , A. G. S. de Herrera (Eds.),
          <source>Working Notes of CLEF 2024 - Conference and Labs of the Evaluation Forum</source>
          ,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S. M. H.</given-names>
            <surname>Dadgar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Araghi</surname>
          </string-name>
          ,
          <string-name>
            <surname>M. M. Farahani</surname>
          </string-name>
          ,
          <article-title>A novel text mining approach based on tf-idf and support vector machine for news classification</article-title>
          ,
          <source>in: 2016 IEEE International Conference on Engineering and Technology (ICETECH)</source>
          , IEEE,
          <year>2016</year>
          , pp.
          <fpage>112</fpage>
          -
          <lpage>116</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>G.</given-names>
            <surname>Ozogur</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. A.</given-names>
            <surname>Erturk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z. Gurkas</given-names>
            <surname>Aydin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. A.</given-names>
            <surname>Aydin</surname>
          </string-name>
          ,
          <article-title>Android malware detection in bytecode level using tf-idf and xgboost</article-title>
          ,
          <source>The Computer Journal</source>
          <volume>66</volume>
          (
          <year>2023</year>
          )
          <fpage>2317</fpage>
          -
          <lpage>2328</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>V.</given-names>
            <surname>Sundaram</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ahmed</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. A.</given-names>
            <surname>Muqtadeer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. R.</given-names>
            <surname>Reddy</surname>
          </string-name>
          ,
          <article-title>Emotion analysis in text using tf-idf</article-title>
          ,
          <source>in: 2021 11th International Conference on Cloud Computing, Data Science &amp; Engineering (Confluence)</source>
          , IEEE,
          <year>2021</year>
          , pp.
          <fpage>292</fpage>
          -
          <lpage>297</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>J.</given-names>
            <surname>Nowak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Taspinar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Scherer</surname>
          </string-name>
          ,
          <article-title>Lstm recurrent neural networks for short text and sentiment classification</article-title>
          ,
          <source>in: Artificial Intelligence and Soft Computing: 16th International Conference, ICAISC</source>
          <year>2017</year>
          , Zakopane, Poland, June 11-15,
          <year>2017</year>
          , Proceedings,
          <source>Part II 16</source>
          , Springer,
          <year>2017</year>
          , pp.
          <fpage>553</fpage>
          -
          <lpage>562</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>X.</given-names>
            <surname>Bai</surname>
          </string-name>
          ,
          <article-title>Text classification based on lstm and attention</article-title>
          , in: 2018
          <source>Thirteenth International Conference on Digital Information Management (ICDIM)</source>
          , IEEE,
          <year>2018</year>
          , pp.
          <fpage>29</fpage>
          -
          <lpage>32</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>X.</given-names>
            <surname>Ou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <article-title>Ynu@ dravidian-codemix-fire2020: Xlm-roberta for multi-language sentiment analysis</article-title>
          .,
          <source>in: FIRE (Working Notes)</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>560</fpage>
          -
          <lpage>565</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>L.</given-names>
            <surname>Khan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Amjad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Ashraf</surname>
          </string-name>
          , H.-
          <article-title>T. Chang, Multi-class sentiment analysis of urdu text using multilingual bert</article-title>
          ,
          <source>Scientific Reports</source>
          <volume>12</volume>
          (
          <year>2022</year>
          )
          <fpage>5436</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>M.-I.</surname>
            Limaylla-Lunarejo,
            <given-names>N.</given-names>
          </string-name>
          <string-name>
            <surname>Condori-Fernandez</surname>
            ,
            <given-names>M. R.</given-names>
          </string-name>
          <string-name>
            <surname>Luaces</surname>
          </string-name>
          ,
          <article-title>Requirements classification using fasttext and beto in spanish documents</article-title>
          , in: International Working Conference on Requirements Engineering: Foundation for Software Quality, Springer,
          <year>2023</year>
          , pp.
          <fpage>159</fpage>
          -
          <lpage>176</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>M.</given-names>
            <surname>Fahim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Shahriar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. R.</given-names>
            <surname>Amin</surname>
          </string-name>
          ,
          <article-title>Hatexplain space model: Fusing robustness with explainability in hate speech analysis (????).</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>M.</given-names>
            <surname>Fahim</surname>
          </string-name>
          , Aambela at blp
          <article-title>-2023 task 2: Enhancing banglabert performance for bangla sentiment analysis task with in task pretraining and adversarial weight perturbation</article-title>
          ,
          <source>in: Proceedings of the First Workshop on Bangla Language Processing (BLP-2023)</source>
          ,
          <year>2023</year>
          , pp.
          <fpage>317</fpage>
          -
          <lpage>323</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>M.</given-names>
            <surname>Fahim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Ali</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. A.</given-names>
            <surname>Amin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Rahman</surname>
          </string-name>
          ,
          <article-title>Edal: Entropy based dynamic attention loss for hatespeech classification</article-title>
          ,
          <source>in: Proceedings of the 37th Pacific Asia Conference on Language, Information and Computation</source>
          ,
          <year>2023</year>
          , pp.
          <fpage>775</fpage>
          -
          <lpage>785</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>S.</given-names>
            <surname>Hochreiter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Schmidhuber</surname>
          </string-name>
          ,
          <article-title>Long short-term memory</article-title>
          ,
          <source>Neural computation 9</source>
          (
          <year>1997</year>
          )
          <fpage>1735</fpage>
          -
          <lpage>1780</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>A.</given-names>
            <surname>Conneau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Khandelwal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Goyal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Chaudhary</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Wenzek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Guzmán</surname>
          </string-name>
          , E. Grave,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ott</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zettlemoyer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Stoyanov</surname>
          </string-name>
          ,
          <article-title>Unsupervised cross-lingual representation learning at scale</article-title>
          , arXiv preprint arXiv:
          <year>1911</year>
          .
          <volume>02116</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <surname>J. Libovicky`</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Fraser</surname>
          </string-name>
          ,
          <article-title>How language-neutral is multilingual bert?</article-title>
          , arXiv preprint arXiv:
          <year>1911</year>
          .
          <volume>03310</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>