<!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>System Description for EXIST Shared Task at IberLEF 2021: Automatic Misogyny Identi cation Using Pretrained Transformers</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ignacio Talavera</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>David Fidalgo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Daniel Vila-Suero</string-name>
          <email>danielg@recogn.ai</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Recognai</institution>
          ,
          <addr-line>Valencia</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Universidad Carlos III de Madrid</institution>
          ,
          <addr-line>Madrid</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <volume>2150</volume>
      <fpage>12</fpage>
      <lpage>13</lpage>
      <abstract>
        <p>This shared task system description depicts two neural network architectures submitted to the EXIST task at IberLEF 2021, among them the twelfth classi ed in the second sub-task. We present in detail the approach and topologies used to obtain the two systems which we submitted. Both systems are based on pretrained language models and solve the two subtasks simultaneously, with the rst system using di erent networks for English and Spanish and the second using a multilingual approach.</p>
      </abstract>
      <kwd-group>
        <kwd>Deep Learning</kwd>
        <kwd>Misogynistic behaviours detection</kwd>
        <kwd>Natural Language Processing</kwd>
        <kwd>Sentiment Analysis</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>EXIST (sEXism Identi cation in Social neTworks)[16] is a shared task in
Automatic Misogyny Identi cation in social networks at IberLEF 2021[14], a
comparative evaluation campaign for Natural Language Processing Systems in Spanish
and other Iberian languages. It aims to detect online proof of sexism in Spanish
written language, which may help to determine the evolution of new equality
policies in online environments, as well as to encourage better behaviours in
society. AI and NLP researchers are working on Automatic Misogyny Identi
cation (AMI) shared tasks like this one to distinguish misogynist contents from
non-misogynous ones and to categorize their type [4, 7{9].</p>
      <p>EXIST is divided into two subtasks:
{ Task 2: Sexism Categorization. It is a multiclass classi cation task. The
same texts analyzed in task 1 have to be classi ed into one of the ve
categories decided by the organization, which are idelogical and inequality,
stereotyping and dominance, objecti cation, sexual violence and
misogyny and non-sexual violence [16].</p>
      <p>In this working notes we are going to explain our approach on this shared
task and how we designed and trained the submitted models.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Our approach</title>
      <p>
        We have submitted two systems capable of making predictions for the two
subtasks. Both systems are based on pretrained Transformer models [17], and both
were designed and trained using biome.text [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], a practical NLP open source
library based on AllenNLP [10] and Pytorch [15].
      </p>
      <p>These two systems were trained directly over the categories of the second task
but were used to predict both tasks: if any of the categories of the second task
surpassed a given threshold (independently calculated for each neural network),
it is predicted as 'sexist' for the rst task; otherwise, it is predicted as
'nonsexist'. The category of the second task is chosen as the output category from
the neural network with the highest probability.
2.1</p>
      <sec id="sec-2-1">
        <title>System 1</title>
        <p>
          Our rst system, denoted as Run 1 in the submitted results, has been designed
using two Deep Neural Networks, one for English and one for Spanish Language.
The Spanish Transformer-based language model was BETO, a BERT model
trained on a big Spanish corpus [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], which is distributed via HuggingFace's [18]
Model Hub under the name "dccuchile/bert-base-spanish-wwm-cased "; and the
English Transformer-based language model was Twitter-roBERTa-base O ensive
Language Identi cation, a roBERTa-base model trained on 58 million tweets
and ne-tuned for o ensive language identi cation [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. It is also distributed
via HuggingFace's Model Hub under the name "cardi
nlp/twitter-roberta-baseo ensive".
        </p>
        <p>Both neural networks were ne-tuned for the task, each one trained with the
dataset corresponding to its language, and evaluated using the macro-averaged
F-measure. The system was created combining those two networks in a basic
decision tree: if the record of the test set to predict was in English, the English
network is invoked to make the prediction; otherwise, the Spanish network was
used.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>System 2</title>
        <p>
          Our second system, denoted as Run 2 in the submitted results, has been
designed using one Deep Neural Network, following a multilingual approach. The
Transformer-based language model used was twitter-XLM-roBERTa-base for
Sentiment Analysis, a XLM-roBERTa-base model trained on 198M tweets and
netuned for sentiment analysis [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. It was ne-tuned over 8 languages (including
English and Spanish). It can be found at HuggingFace's Model Hub under the
name "cardi nlp/twitter-xlm-roberta-base-sentiment ".
        </p>
        <p>This neural network was ne-tuned for the given task, using all records in
the training dataset, and also evaluated using macro-averaged F-measure. At
the end of the pipeline, this system was capable of predicting both English and
Spanish input text.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Training</title>
      <p>Both systems were trained using the same procedure, even though the
hyperparameters obtained after optimizing each neural network and the thresholds used
for predicting for each system were di erent.</p>
      <p>For the parameter updates, we used the AdamW algorithm [13]. The
parameters optimized can be seen in Table 1, along with their search spaces at the start
of the hyperparameter process. These parameters were optimized by means of
the Ray Tune Library [12], which is tightly integrated in biome.text.</p>
      <p>
        Several Hyperparameter Optimization Processes (HPOs) were performed
for each of the three neural networks, and each subsequent HPO xed some
parameters and reduced the search space for others, until we got the
bestperforming neural networks at the last HPO process. Spanish and Multilingual
neural networks needed four HPO processes, and English neural network needed
ve HPO processes. The reference metric for all these processes was
macroaveraged F-measure of Task 2. The training was done on a computer with 2
Tesla V100. These HPO processes included ASHA trial schedulers to terminate
low-performing trials [11] and a tree-structured Parzen Estimator as search
algorithm [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>Once the best-performing models were obtained, a quick sweep across several
random initialization seeds was performed, and then another sweep was made
across di erent threshold values from 0.15 to 0.85, adding 0.05 in each step. The
Parameters
Learning Rate
Weight Decay
Batch Size
Warmup Steps
(LR Scheduler)
Steps per epoch
(LR Scheduler)
Pooler Type
Hidden Size
(Pooler)
Number of layers
(Pooler)
Bidirectional
(Pooler)
Threshold
8
12
354
gry
128
1
True
0.5
8
91
343
gru
128
1
True
0.55
16
14
348
gru
64
1
True
0.5
result of these last processes was the nal model for the Spanish and English
languages (which, together, compose System 1) and for the Multilingual approach
(System 2).</p>
      <p>In Table 2 we included the details of each of the three nal models: the
Spanish model, the English model and the Multilingual Model .
In Table 3 we present the evaluation metrics of both tasks for each of the
submitted runs on the validation and the tests data sets, as well as the model size.
Tables 4 and 5 show a comparison between the submitted runs, the best
models of the shared task and the baselines models (provided by the organization),
divided by tasks. System 1 obtained our highest score in both tasks. Our better
model was System 1 (which made run 1), which was the twelfth classi ed for
task 2 and the forty sixth for task 1. System 2 underpeformed System 1, being
the thirty rst classi ed on task 2 and the fty sixth classi ed on task 1.</p>
      <p>Both results obtained on Task 2 are close to the best ones of the competition,
being 0.03 and and 0.09 F-measure points away from the winner, respectively.
However, our results for Task 1 are signi cantly worse, which means that our
initial premise (training a system to predict label and, if any label is predicted,
to also predict 'sexist') was not e ective.</p>
      <p>We also found that the multilingual approach simpli ed the training (we only
had to train one pipeline instead of two) while obtaining good inference results.
It did not reach the top performing models of the competition for the second
task, and it performed even worse on task 1, but we nd it a valid alternative
to classic monolingual training.
5</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusions</title>
      <p>To face this shared task, we designed two di erent systems with which we
made the predictions that composed our two submitted runs. System 1 was
designed with two Deep Neural Networks, one for English predictions (using
Twitter-roBERTa-base O ensive Language Identi cation as the pretrained
language model) and one for the Spanish predictions (using BETO as the pretrained
language model). In System 2 we followed a multilingual approach, using only
one Deep Neural Network to make predictions in both English and Spanish (with
twitter-XLM-roBERTa-base for Sentiment Analysis as the pretrained language
model). Both systems followed a multilabel approach described in previous
section, with which we were able to make prediction for Tasks 1 and 2 without
making di erent pipelines.</p>
      <p>We conclude that the exploitation of the transfer capabilities of a pretrained
language model and its optimized ne tuning to the target domain provides a
conceptually easy system architecture and seems to be the most straight forward
method to achieve competitive performance, especially for tasks where training
data is scarce. We also found that, for these types of competitions, creating a
model for each subtask is the best-performing approach. Better results on task 1
could have been obtained if we had trained Deep Neural Networks on the binary
classi cation task.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. biome.text, https://www.recogn.
          <source>ai/biome-text/v2.2</source>
          .0/
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Barbieri</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Anke</surname>
            ,
            <given-names>L.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Camacho-Collados</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          :
          <string-name>
            <surname>XLM-T: A Multilingual Language</surname>
          </string-name>
          <article-title>Model Toolkit for Twitter</article-title>
          .
          <source>arXiv:2104.12250 [cs] (Apr</source>
          <year>2021</year>
          ), http://arxiv.org/abs/2104.12250, arXiv:
          <fpage>2104</fpage>
          .
          <fpage>12250</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Barbieri</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Camacho-Collados</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Espinosa</surname>
            <given-names>Anke</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            ,
            <surname>Neves</surname>
          </string-name>
          , L.: TweetEval: Uni ed Benchmark and
          <article-title>Comparative Evaluation for Tweet Classi cation</article-title>
          .
          <source>In: Findings of the Association for Computational Linguistics: EMNLP 2020</source>
          . pp.
          <volume>1644</volume>
          {
          <fpage>1650</fpage>
          . Association for Computational Linguistics,
          <source>Online (Nov</source>
          <year>2020</year>
          ). https://doi.org/10.18653/v1/
          <year>2020</year>
          . ndings-emnlp.
          <volume>148</volume>
          , https://www.aclweb.org/anthology/2020. ndings-emnlp.
          <fpage>148</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Basile</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bosco</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fersini</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nozza</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patti</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Rangel</given-names>
            <surname>Pardo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.M.</given-names>
            ,
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Sanguinetti</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.:</surname>
          </string-name>
          <article-title>SemEval-2019 Task 5: Multilingual Detection of Hate Speech Against Immigrants and Women in Twitter</article-title>
          .
          <source>In: Proceedings of the 13th International Workshop on Semantic Evaluation</source>
          . pp.
          <volume>54</volume>
          {
          <fpage>63</fpage>
          . Association for Computational Linguistics, Minneapolis, Minnesota, USA (Jun
          <year>2019</year>
          ). https://doi.org/10.18653/v1/
          <fpage>S19</fpage>
          -2007, https://www.aclweb.org/anthology/S19- 2007
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Bergstra</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bardenet</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bengio</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kegl</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Algorithms for hyper-parameter optimization</article-title>
          .
          <source>In: Proceedings of the 24th International Conference on Neural Information Processing Systems</source>
          . pp.
          <volume>2546</volume>
          {
          <fpage>2554</fpage>
          . NIPS'
          <volume>11</volume>
          , Curran Associates Inc.,
          <string-name>
            <surname>Red</surname>
            <given-names>Hook</given-names>
          </string-name>
          ,
          <string-name>
            <surname>NY</surname>
          </string-name>
          , USA (Dec
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <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>
          ,
          <string-name>
            <surname>Perez</surname>
          </string-name>
          , J.:
          <article-title>Spanish pre-trained bert model and evaluation data</article-title>
          .
          <source>PML4DC at ICLR</source>
          <year>2020</year>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Carmona</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guzman-Falcon</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montes</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Escalante</surname>
            ,
            <given-names>H.J.</given-names>
          </string-name>
          , Villasen~orPineda,
          <string-name>
            <given-names>L.</given-names>
            ,
            <surname>Reyes-Meza</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            ,
            <surname>Rico-Sulayes</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.</surname>
          </string-name>
          :
          <article-title>Overview of MEX-A3T at IberEval 2018: Authorship and aggressiveness analysis in Mexican Spanish tweets (</article-title>
          <year>Aug 2018</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>