<!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>A Simple Voting Mechanism for Online Sexist Content Identi cation</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Zurich</institution>
          ,
          <addr-line>Ramistrasse 71, CH-8006 Zurich</addr-line>
          ,
          <country country="CH">Switzerland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper presents the participation of the MiniTrue team in the EXIST 2021 Challenge on the sexism detection in social media task for English and Spanish. Our approach combines the language models with a simple voting mechanism for the sexist label prediction. For this, three BERT based models and a voting function are used. Experimental results show that our nal model with the voting function has achieved the best results among our four models, which means that this voting mechanism brings an extra bene t to our system. Nevertheless, we also observe that our system is robust to data sources and languages.</p>
      </abstract>
      <kwd-group>
        <kwd>Sexism detection</kwd>
        <kwd>Social media</kwd>
        <kwd>Contextual word embeddings</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Equality, openness, and freedom, as the foundation and pillar of the Internet
spirit, should have made our cyberworld a better place. However, inequality,
prejudice and bias against females still deeply implants in online social networks [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ].
Sexist contents in social networks a ect females' life in both mental and physical
sides, for instance the career equality, life quality, even the mental health [
        <xref ref-type="bibr" rid="ref10 ref7">7, 10</xref>
        ].
So that, an automatic sexism identi cation system is urgently required, which
could help to build a better cyberworld with equality, openness, and freedom.
      </p>
      <p>
        Currently, researches on the sexism detection are frequently related to
misogyny detection. Misogyny and sexism are usually considered as synonyms, but
there are some nuances between these two terms. The de nition of misogyny
emphasizes more on the enmity, hatred and contempt towards female [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. On
the other hand, sexism implies the expression of any manners of oppression or
prejudice against women [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. Thus, sexism is the hypernym of misogyny.
      </p>
      <p>
        Traditionally, technologies of sexism detection are assembled into pipelined
architectures. User and relationship based features (e.g. including followers,
friends, number of tweets, interacting with other sexism users, etc.), as well
as the the text-based features (e.g. TF-IDF, Character n-grams, Token n-grams,
etc.) are extracted from the social network. Then, a number of traditional
machine learning algorithm could be applied for this problem [
        <xref ref-type="bibr" rid="ref1 ref12 ref15 ref4">1, 4, 12, 15</xref>
        ].
      </p>
      <p>
        However, recent approaches based on end-to-end neural networks o er a
promising alternative. Recurrent Neural Networks (RNN) and Long Short Term
Memory networks are commonly used for Natural Language Processing tasks in
earlier works. [
        <xref ref-type="bibr" rid="ref2 ref9">2, 9</xref>
        ] have applied Bi-LSTM models to sexism, misogyny detection.
But these approaches are mainly used the context-independent word embeddings
or character embeddings. Since the pretrained transformer-based language
models have been introduced to the NLP area, context-dependent embeddings are
heavily used in di erent tasks. Researches have adopted BERT model to sexism
detection task, and achieved highly scores [
        <xref ref-type="bibr" rid="ref11 ref14 ref8">8, 11, 14</xref>
        ].
      </p>
      <p>
        This work is done as part of the EXIST 2021 (Sexism Identi cation in Social
Networks) shared task [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], which is a classi cation task for online social media
data in English and Spanish. We are interested in the sub-task one called Sexism
Identi cation. This sub-task is a binary classi cation problem, we aim to
combine sentence level embeddings learned by deep-learning models like BERT [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
with a voting mechanism, to create a sexism identi cation system and help for
ghting against online sexist. To reduce the noise of social media as well as the
multilingual noise, we leverage various features of language models, and
implement our system in three separate stages:
1. In order to solve the multilingual problem, we use three di erent pretrained
language models in produce the sentence level embeddings, including the
original English version BERT [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], the Multilingual BERT [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], and the
Spanish version pretrained language model BETO [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
2. Three di erent models are built upon these di erent embeddings and
inference the output label independently.
3. We use a simple voting mechanism to get the nal label.
      </p>
      <p>The note is organized as follows. We present the description of our method in
Section 2. Then we group the experimental results in Section 3 before discussing
the perspectives and concluding in Section 4.
2</p>
    </sec>
    <sec id="sec-2">
      <title>System Architecture</title>
      <p>This section presents the architecture and the description of our system.
Three basic models and a vote-inference system are described respectively in
Subsection 2.1 and Subsection 2.2.
2.1</p>
      <sec id="sec-2-1">
        <title>Basic Models</title>
        <p>We develop three independent basic models for label prediction by combining
language models with simple neural networks. As before mentioned, three
language models are applied in our system, including BERT, Multilingual BERT,
and BETO.</p>
        <p>
          Basic Model One: This rst basic model connects the language models with
a feed forward network. In order to gain the multilingual representation for the
input text data, our model uses two di erent pretrained language models, the
BERT and the Multilingual BERT. After tokenization, the text data feeds into
these two language models respectively, and generate two sentence embeddings.
A concentration layer is applied to combine these two embeddings together. After
that, embedded data ows to a feed forward network for the nal inference I1.
Basic Model Two: Research points out that the performance of Multilingual
BERT model is not as good as the language speci c language models [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. On this
count, we replace the Multilingual BERT by Spanish version language model,
BETO. Similar with the rst model, we also use a concentration layer to
combine the English embedding with the Spanish embedding, and feed them into a
inference network to get the nal output I2.
        </p>
        <p>Basic Model Three: To leverage the sequential information of the input text,
we use a Bi-directional LSTM network to obtain the consecutive features after
the language model. In this time, we just use a single multilingual BERT, and get
the sequential embeddings for each input token. After the Bi-directional LSTM,
we use a Sigmoid function to get the nal inference I3.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Voting Mechanism</title>
        <p>As before mentioned, I1, I2, I3 are three inference values predicted by our
basic models, and a simple voting mechanism is applied to count the nal output.
If two or more models draw the same inference label, this label will be our nal
prediction. The nal output is predicted as:
f (x) :=
(0 if I1+I2+I3 &lt;2
1 if I1+I2+I3 &gt;= 2
(1)</p>
        <p>The architecture of our model is shown in Figure 1. As we can see, the input
text date feeds into each basic model, and then ows to each inference network
respectively. Finally, all of this information is combined in the voting function
for the prediction.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Experiments and Results</title>
      <p>In this section, we present the description of datasets, the setup of our
experiments, and the nal results of our experiments. Experimental validation is
conducted on the EXIST 2021 training and test corpus. The datasets are
described in subsetion 3.1 followed by the analysis of our nal results in subsetion
3.2.</p>
      <p>There are two sub-tasks in this shared task, the rst one is Sexism
Identication, which is a binary classi cation task, and the system needs to decide
whether a given social media text is or is not sexist. The second sub-task is to
categorize these sexist texts into di erent prede ned sexism types. This paper
focuses on the rst sub-task.</p>
      <p>Both of the training and test datasets consist in English and Spanish text
data, which are collected from the social media such as Twitter and Gab. Table
1 brie y describes the corpus. As we can see, there are 6977 tweets/gabs in the
training set, and 4368 tweets/gabs in the test set, and labels are balanced in this
sub-task.
3.2</p>
      <sec id="sec-3-1">
        <title>Results and Discussion</title>
        <p>The evaluation of this sexism identi cation sub-task is mainly based on
Accuracy score. Our results are gathered in Table 2, which contains the Accuracy
and F-Measure scores for the basic models and the nal systems. Our rst
question is whether the voting function brings additional bene ts to our system. As
we can see, the our nal system (with a simple voting mechanism) performs the
best Accuracy and F-measure metrics among these four systems, which provides
a 3% extra performance regarding basic models.</p>
        <p>Unlike the training data set, the test set contains the text data from di erent
sources, which are the Twitter and Gab. It brings the second question, which is
whether our nal model is data source sensitive. So we list the results in di erent
data sources for each model. As shown in Table 3, even though the training data
comes from Twitter, the results in Gab are better than those in Twitter in the
test set, which shows a robust ability of the language models.</p>
        <p>The last question about our system is whether it is language sensitive. Table
4 lists the evaluation metrics of our systems by di erent languages. Results show
that the performance of our models in di erent languages is similar to each other,
and it seems that to introduce the language speci c language models, i.e. the
BETO has not brought extra bene ts to our nal system.</p>
        <p>In this paper, we implement a classi cation system that combines the
language models with a simple voting mechanism. Our system has been evaluated
on the EXIST 2021 sub-task one. The evaluation results have shown that our
system is datasource and language robust, and the voting function indeed brings
in extra bene ts to our nal system. Our experiments prove that the pre-trained
language model is also highly adaptable to social media texts, and a simple
voting mechanism can highly leverage the predictive ability of the multi-model
system.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Anzovino</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fersini</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          , &amp;
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Automatic Identi cation and Classication of Misogynistic Language on Twitter</article-title>
          . NLDB.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Buscaldi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Tweetaneuse@ AMI EVALITA2018: Character-based Models for the Automatic Misogyny Identi cation Task</article-title>
          .
          <source>EVALITA Evaluation of NLP and Speech Tools for Italian</source>
          ,
          <volume>12</volume>
          ,
          <fpage>214</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Canete</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chaperon</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fuentes</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          , &amp;
          <string-name>
            <surname>Perez</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          (
          <year>2020</year>
          ).
          <article-title>Spanish pre-trained bert model and evaluation data</article-title>
          .
          <source>PML4DC at ICLR</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Canos</surname>
            ,
            <given-names>J. S.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Misogyny Identi cation Through SVM at IberEval 2018</article-title>
          . In IberEval@ SEPLN (pp.
          <fpage>229</fpage>
          -
          <lpage>233</lpage>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Devlin</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chang</surname>
            ,
            <given-names>M. W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          , &amp;
          <string-name>
            <surname>Toutanova</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Bert: Pre-training of deep bidirectional transformers for language understanding</article-title>
          . arXiv preprint arXiv:
          <year>1810</year>
          .04805.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Fersini</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Anzovino</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Overview of the Task on Automatic Misogyny Identi cation at IberEval 2018</article-title>
          . IberEval@ SEPLN,
          <volume>2150</volume>
          ,
          <fpage>214</fpage>
          -
          <lpage>228</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Francisco</given-names>
            <surname>Rodr</surname>
          </string-name>
          guez-Sanchez,
          <string-name>
            <given-names>Jorge</given-names>
            <surname>Carrillo-de-Albornoz</surname>
          </string-name>
          , Laura Plaza, Julio Gonzalo, Paolo Rosso, Miriam Comet,
          <string-name>
            <given-names>Trinidad</given-names>
            <surname>Donoso</surname>
          </string-name>
          .
          <source>Overview of EXIST</source>
          <year>2021</year>
          :
          <article-title>sEXism Identi cation in Social neTworks</article-title>
          .
          <source>Procesamiento del Lenguaje Natural</source>
          , vol
          <volume>67</volume>
          , septiembre
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Fortuna</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          , Soler-Company,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Wanner</surname>
          </string-name>
          ,
          <string-name>
            <surname>L.</surname>
          </string-name>
          (
          <year>2021</year>
          ).
          <article-title>How well do hate speech, toxicity, abusive and o ensive language classi cation models generalize across datasets?</article-title>
          .
          <source>Information Processing Management</source>
          ,
          <volume>58</volume>
          (
          <issue>3</issue>
          ),
          <fpage>102524</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Goenaga</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Atutxa</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gojenola</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Casillas</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>de Ilarraza</surname>
            ,
            <given-names>A. D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ezeiza</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          , ...
          <string-name>
            <surname>Perez-de-Vin</surname>
            ~aspre,
            <given-names>O.</given-names>
          </string-name>
          (
          <year>2018</year>
          ,
          <article-title>September)</article-title>
          .
          <article-title>Automatic Misogyny Identi cation Using Neural Networks</article-title>
          . In IberEval@ SEPLN (pp.
          <fpage>249</fpage>
          -
          <lpage>254</lpage>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Manuel</surname>
            <given-names>Montes</given-names>
          </string-name>
          , Paolo Rosso, Julio Gonzalo, Ezra Aragon, Rodrigo Agerri,
          <string-name>
            <surname>Miguel Angel</surname>
          </string-name>
          Alvarez-Carmona, Elena Alvarez Mellado, Jorge
          <string-name>
            <surname>Carrillo-de-Albornoz</surname>
          </string-name>
          , Luis Chiruzzo, Larissa Freitas, Helena Gomez Adorno, Yoan Gutierrez,
          <source>Salud Mar a Jimenez Zafra</source>
          , Salvador Lima,
          <string-name>
            <surname>Flor Miriam</surname>
          </string-name>
          Plaza-de-Arco and Mariona Taule (eds.):
          <source>Proceedings of the Iberian Languages Evaluation Forum (IberLEF</source>
          <year>2021</year>
          ),
          <source>CEUR Workshop Proceedings</source>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Pamungkas</surname>
            ,
            <given-names>E. W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Basile</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patti</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          (
          <year>2020</year>
          ).
          <article-title>Misogyny detection in twitter: a multilingual and cross-domain study</article-title>
          .
          <source>Information Processing Management</source>
          ,
          <volume>57</volume>
          (
          <issue>6</issue>
          ),
          <fpage>102360</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Pamungkas</surname>
            ,
            <given-names>E. W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cignarella</surname>
            ,
            <given-names>A. T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Basile</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patti</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <fpage>14</fpage>
          -ExLab@
          <article-title>UniTo for AMI at IberEval2018: Exploiting lexical knowledge for detecting misogyny in English and Spanish tweets</article-title>
          .
          <source>In 3rd Workshop on Evaluation of Human Language Technologies for Iberian Languages, IberEval 2018</source>
          (Vol.
          <volume>2150</volume>
          , pp.
          <fpage>234</fpage>
          -
          <lpage>241</lpage>
          ). CEURWS.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Pires</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schlinger</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          , &amp;
          <string-name>
            <surname>Garrette</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          (
          <year>2019</year>
          ).
          <article-title>How multilingual is multilingual bert?</article-title>
          . arXiv preprint arXiv:
          <year>1906</year>
          .01502.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Rodr guez-Sanchez</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Carrillo-de-Albornoz</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , &amp;
          <string-name>
            <surname>Plaza</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          (
          <year>2020</year>
          ).
          <article-title>Automatic Classi cation of Sexism in Social Networks: An Empirical Study on Twitter Data</article-title>
          .
          <source>IEEE Access</source>
          ,
          <volume>8</volume>
          ,
          <fpage>219563</fpage>
          -
          <lpage>219576</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Waseem</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          (
          <year>2016</year>
          ).
          <article-title>Are you a racist or am i seeing things? annotator in uence on hate speech detection on twitter</article-title>
          .
          <source>In Proceedings of the rst workshop on NLP and computational social science</source>
          (pp.
          <fpage>138</fpage>
          -
          <lpage>142</lpage>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>