<!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>SSN NLP@SardiStance : Stance Detection from Italian Tweets using RNN and Transformers</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Kayalvizhi S Thenmozhi D</string-name>
          <email>d@ssn.edu.in</email>
          <email>kayalvizhis@ssn.edu.in</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Aravindan Chandrabose SSN College Of Engineering</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>SSN College Of Engineering SSN College Of Engineering</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>Stance detection refers to the detection of one's opinion about the target from their statements. The aim of sardistance task is to classify the Italian tweets into classes of favor, against or no feeling towards the target. The task has two sub-tasks : in Task A, the classification has to be done by considering only the textual meaning whereas in Task B the tweets must be classified by considering the contextual information along with the textual meaning. We have presented our solution to detect the stance utilizing only the textual meaning (Task A) using encoder-decoder model and transformers. Among these two approaches, simple transformers have performed better than the encoder-decoder model with an average F1-score of 0.4707.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        Stance is the opinion of a person against or in
favor of the target. In the sardistance task, the stance
detection refers to the detection of stance from
the Italian tweets collected from Sardines
movement. The tweets imply the authors’ standpoint
towards the target. The aim of this task is to detect
the stance of the author with the help of textual
and contextual information about the tweets. The
task has two sub-tasks in which the stance is
detected using only textual information in one
subtask while the other sub-task makes use of
contextual meaning along with the textual meaning.
Many approaches have been done to detect stance
from the English text. Stance text are vectorized
and then detected using Multi-layer Perceptron
(MLP)
        <xref ref-type="bibr" rid="ref12">(Riedel et al., 2017)</xref>
        . Different
methodologies like Support Vector Machine, Long Short
Term Memory (LSTM) and Bi-directional LSTM
        <xref ref-type="bibr" rid="ref1">(Augenstein et al., 2016)</xref>
        have also been used to
detect stance. Recurrent Neural Network (RNN)
        <xref ref-type="bibr" rid="ref16">(Yoon et al., 2019)</xref>
        and altering recurrent
networks with different short connections pooling
and attention layers have also been experimented
in
        <xref ref-type="bibr" rid="ref3">(Borges et al., 2019)</xref>
        to detect stance.
Bidirectional Encoder Representation of
Transformers (BERT)
        <xref ref-type="bibr" rid="ref6">(Devlin et al., 2018)</xref>
        and Named
Entity Recognition (NER) model
        <xref ref-type="bibr" rid="ref3 ref7">(Ku¨ c¸u¨k and Can,
2019)</xref>
        have also been used to detect stance. A large
dataset has been collected from twitter and all the
existing approaches have been discussed in
        <xref ref-type="bibr" rid="ref5">(Conforti et al., 2020)</xref>
        .
      </p>
      <p>
        For other languages, a multilingual data set
        <xref ref-type="bibr" rid="ref13">(Vamvas and Sennrich, 2020)</xref>
        have been taken,
language is identified and then multi-lingual
BERT model have been used to detect stance.
Stance have been detected in Russian Language
        <xref ref-type="bibr" rid="ref9">(Lozhnikov et al., 2018)</xref>
        by vectorizing using
TfIDF and then classifying using different classifiers
like Bagging, AdaBoost Boosting, Stochastic
Gradient Descent classifier and Logistic Regression.
Stance from different languages
        <xref ref-type="bibr" rid="ref4 ref8">(Lai et al., 2020)</xref>
        like English, Italian, French, Spanish have been
detected using different features extraction.
3
      </p>
    </sec>
    <sec id="sec-2">
      <title>Task Description</title>
      <p>
        The sardistance task
        <xref ref-type="bibr" rid="ref4 ref8">(Cignarella et al., 2020)</xref>
        of
Evalita
        <xref ref-type="bibr" rid="ref2">(Basile et al., 2020)</xref>
        has two sub-tasks
namely Task A - textual stance detection and Task
B - contextual stance detection.
      </p>
      <p>Both tasks are classification tasks that have three
classes namely favor, against and none. In the first
task, the system has to predict the class by
using only the textual information from the tweets
whereas in the second task it has to predict the
label with the help of some additional information
like
Details of post : the number of re-tweets, replies,
quotes
Details of user : the number of tweets, user bio’s,
user’s number of friends and followers</p>
      <sec id="sec-2-1">
        <title>Details of their social network : friends, replies,</title>
        <p>re-tweets, quotes’ relation.</p>
        <p>In both the tasks, there can be two submissions
like constrained where we have to use only the
dataset provided and unconstrained where we can
use some additional data if required. Each team
can submit two runs for both constrained and
unconstrained runs.
3.1</p>
      </sec>
      <sec id="sec-2-2">
        <title>Data set description</title>
        <p>For Task A, the train.csv file was provided with
three columns namely tweet id,user id and text
label. For Task B, files namely tweet.csv, user.csv,
friend.csv, quote.csv, reply.csv and re-tweet.csv
are given to explain the contextual details about
the post, user and social network. For both the
tasks, the training set had about 2,132 instances
and the test set had about 1,110 instances. In
the training set, there are 1,028 instances in the
against class, 587 favor instances and 515 neutral
instances which is explained in Table 1. In the
testing set, there are 742 against instances, 196 favor
instances and 687 none instances.
4</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Methodology</title>
      <p>The stances were detected using an
encoderdecoder model which is a recurrent neural network
with different recurrent units and using
transformers.
4.1</p>
      <sec id="sec-3-1">
        <title>Data pre-processing</title>
        <p>The data is pre-processed by removing the hash
tags, ’@’ symbols, Unicode characters and
punctuation.
4.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Recurrent Neural Network</title>
        <p>
          In this approach, the stance were detected using a
encoder-decoder model
          <xref ref-type="bibr" rid="ref11">(Luong et al., 2017)</xref>
          using
Gated Recurrent unit(GRU) as its recurrent unit
and Scaled Luong
          <xref ref-type="bibr" rid="ref10">(Luong et al., 2015)</xref>
          as its
attention mechanism. The model has two
encoderdecoder layers along with the embedding layer
that vectorizes the input and a loss layer that
calculates the loss function. Recurrent Neural Network
has been made use to detect the stance since it
captures the contextual long-short term dependencies.
        </p>
      </sec>
      <sec id="sec-3-3">
        <title>4.2.1 Encoder-Decoder Model</title>
        <p>The encoder-decoder model is a Neural Machine
Translation (NMT) model with sequential data
model with Recurrent Neural Network (RNN).
The Seq-to-Seq model differs in terms of type
of recurrent unit, residual layers, depth,
directionality and attention mechanism. The types of
the recurrent unit are Long Short Term
Memory(LSTM), Gated Recurrent Unit (GRU) and
Google Neural Machine Translations. The depth
is altered by changing the number of layers and
the directionality is either uni-directionality or
bidirectionality.The two types of attention
mechanism are scaled luong (sl) and normed bahdanau
(nb). The given training set is divided into
development set and training set and the performance
is measured using the development set which is
shown in Table 2. The model was trained for about
“10,000 steps”, 6 epoch step with “128 units”,
batch size of “128”, dropout of “0.2” and learning
rate of “0.1”.
4.3</p>
      </sec>
      <sec id="sec-3-4">
        <title>Transformers</title>
        <p>
          In this approach, the stances were detected using
simple transformers. Simple transformers are the
wrapper of transformers. Transformers are
mechanism that utilizes the attention mechanisms
without using recurrent units. Bi-directional Encoder
Representation of Transformers (BERT) is used to
detect stance with the multilingual model and base
model for the development set whose performance
is given in Table 3. Multilingual Bert model
          <xref ref-type="bibr" rid="ref6">(Devlin et al., 2018)</xref>
          of hugging face Pytorch
transformers
          <xref ref-type="bibr" rid="ref14">(Wolf et al., 2019)</xref>
          has been used to
detect stance in our approach which was submitted
as Run-1.
5
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Results</title>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>Model name
2l nb gru
2l sl gru
3l nb gnmt
3l sl gnmt
4l nb gru
4l sl gru
3l sl gnmt residual
3l nb gnmt residual
37.0
38.0
33.7
33.7
36.4
35.7
37.5
37.5</p>
      <p>The performance metrics used are class-wise
prediction of precision, recall, F1-score and
average F1-score. The ranking is done using an
average F1-score which is shown in 4. The best
performance in constrained run is 0.6801 whereas our
approach of transformers (SSN NLP run 1) has an
average F1 score of 0.4707 and encoder-decoder
model (SSN NLP run 2) has an average score of
0.4473.
6</p>
    </sec>
    <sec id="sec-6">
      <title>Conclusion</title>
      <p>Italian tweets about the Sardines movement have
been utilized to detect the opinion of the author
towards the target. Different approaches have
been made to detect the stance in the tweets by
many other teams. We detected the stance using
encoder-decoder model and simple transformers
of multilingual Bert model in which transformers
performed better than the encoder-decoder model
with a F1-average score of 0.4707. The
performance can further be improved by utilizing the
additional dataset to train the model better to detect
the stance in the tweets.</p>
      <p>We would like to express our gratefulness towards
DST-SERB funding agent and HPC laboratory of
SSN College Of Engineering for providing space
and resources required for this experiment.</p>
      <p>SSN NLP run 1 (transformers)
SSN NLP run 2 (encoder-decoder model)
Team A - 1 u
Team A - 1 c
Team A - 2 c
Team B - 1
Team A - 2 u
Team C - 1
Team D - 1
Team C - 2</p>
      <p>Team E
Team B - 1
Team D - 2</p>
      <p>Team F
Team G - 1</p>
      <p>Team H
Team I - 1
Team I - 1</p>
      <p>Team J
Team G - 2</p>
      <p>Team K
F-average
0.4707
0.4473
0.6853
0.6801
0.6793
0.6621
0.6606
0.6473
0.6257
0.6171
0.6067
0.6004
0.5886
0.5784
0.5773
0.5749
0.5595
0.5329
0.4989
0.4705
0.3637</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>Isabelle</given-names>
            <surname>Augenstein</surname>
          </string-name>
          , Tim Rockta¨schel, Andreas Vlachos, and
          <string-name>
            <given-names>Kalina</given-names>
            <surname>Bontcheva</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Stance detection with bidirectional conditional encoding</article-title>
          .
          <source>arXiv preprint arXiv:1606</source>
          .
          <fpage>05464</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>Valerio</given-names>
            <surname>Basile</surname>
          </string-name>
          , Danilo Croce, Maria Di Maro, and
          <string-name>
            <surname>Lucia</surname>
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Passaro</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Evalita 2020: Overview of the 7th evaluation campaign of natural language processing and speech tools for italian</article-title>
          .
          <source>In Valerio Basile</source>
          , Danilo Croce, Maria Di Maro, and Lucia C. Passaro, editors,
          <source>Proceedings of Seventh Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. Final Workshop (EVALITA</source>
          <year>2020</year>
          ).
          <article-title>CEUR-WS.org</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <article-title>Lu´ıs Borges, Bruno Martins</article-title>
          , and Pa´vel Calado.
          <year>2019</year>
          .
          <article-title>Combining similarity features and deep representation learning for stance detection in the context of checking fake news</article-title>
          .
          <source>Journal of Data and Information Quality (JDIQ)</source>
          ,
          <volume>11</volume>
          (
          <issue>3</issue>
          ):
          <fpage>1</fpage>
          -
          <lpage>26</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <given-names>Alessandra</given-names>
            <surname>Teresa</surname>
          </string-name>
          <string-name>
            <surname>Cignarella</surname>
          </string-name>
          , Mirko Lai, Cristina Bosco, Viviana Patti, and
          <string-name>
            <given-names>Paolo</given-names>
            <surname>Rosso</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>SardiStance@EVALITA2020: Overview of the Task on Stance Detection in Italian Tweets</article-title>
          . In Valerio Basile, Danilo Croce, Maria Di Maro, and Lucia C. Passaro, editors,
          <source>Proceedings of the 7th Evaluation Campaign of Natural Language Processing and Speech Tools for Italian (EVALITA</source>
          <year>2020</year>
          ). CEURWS.org.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>Costanza</given-names>
            <surname>Conforti</surname>
          </string-name>
          , Jakob Berndt, Mohammad Taher Pilehvar, Chryssi Giannitsarou, Flavio Toxvaerd, and
          <string-name>
            <given-names>Nigel</given-names>
            <surname>Collier</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Will-they-won't-they: A very large dataset for stance detection on twitter</article-title>
          . arXiv preprint arXiv:
          <year>2005</year>
          .00388.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>Jacob</given-names>
            <surname>Devlin</surname>
          </string-name>
          ,
          <string-name>
            <surname>Ming-Wei</surname>
            <given-names>Chang</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Kenton</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and Kristina</given-names>
            <surname>Toutanova</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Bert: Pre-training of deep bidirectional transformers for language understanding</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>Dilek</given-names>
            <surname>Ku</surname>
          </string-name>
          <article-title>¨c¸u¨k and</article-title>
          <string-name>
            <given-names>Fazli</given-names>
            <surname>Can</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>A tweet dataset annotated for named entity recognition and stance detection</article-title>
          . arXiv preprint arXiv:
          <year>1901</year>
          .04787.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>Mirko</given-names>
            <surname>Lai</surname>
          </string-name>
          , Alessandra Teresa Cignarella, Delia Irazu´ Herna´ndez Far´ıas, Cristina Bosco, Viviana Patti, and
          <string-name>
            <given-names>Paolo</given-names>
            <surname>Rosso</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Multilingual stance detection in social media political debates</article-title>
          .
          <source>Computer Speech &amp; Language</source>
          , page
          <volume>101075</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>Nikita</given-names>
            <surname>Lozhnikov</surname>
          </string-name>
          , Leon Derczynski, and
          <string-name>
            <given-names>Manuel</given-names>
            <surname>Mazzara</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Stance prediction for russian: data and analysis</article-title>
          .
          <source>In International Conference in Software Engineering for Defence Applications</source>
          , pages
          <fpage>176</fpage>
          -
          <lpage>186</lpage>
          . Springer.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <surname>Minh-Thang</surname>
            <given-names>Luong</given-names>
          </string-name>
          , Hieu Pham, and
          <string-name>
            <given-names>Christopher D</given-names>
            <surname>Manning</surname>
          </string-name>
          .
          <year>2015</year>
          .
          <article-title>Effective approaches to attentionbased neural machine translation</article-title>
          .
          <source>arXiv preprint arXiv:1508</source>
          .
          <fpage>04025</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <surname>Minh-Thang</surname>
            <given-names>Luong</given-names>
          </string-name>
          , Eugene Brevdo, and
          <string-name>
            <given-names>Rui</given-names>
            <surname>Zhao</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Neural machine translation (seq2seq) tutorial</article-title>
          . https://github.com/tensorflow/nmt.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <given-names>Benjamin</given-names>
            <surname>Riedel</surname>
          </string-name>
          , Isabelle Augenstein, Georgios P Spithourakis, and
          <string-name>
            <given-names>Sebastian</given-names>
            <surname>Riedel</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>A simple but tough-to-beat baseline for the fake news challenge stance detection task</article-title>
          .
          <source>arXiv preprint arXiv:1707</source>
          .
          <fpage>03264</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <given-names>Jannis</given-names>
            <surname>Vamvas</surname>
          </string-name>
          and
          <string-name>
            <given-names>Rico</given-names>
            <surname>Sennrich</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>X-stance: A multilingual multi-target dataset for stance detection</article-title>
          . arXiv preprint arXiv:
          <year>2003</year>
          .08385.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <string-name>
            <given-names>Thomas</given-names>
            <surname>Wolf</surname>
          </string-name>
          , Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rmi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and
          <string-name>
            <surname>Alexander</surname>
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Rush</surname>
          </string-name>
          .
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          <article-title>Huggingface's transformers: State-of-the-art natural language processing</article-title>
          . ArXiv, abs/
          <year>1910</year>
          .03771.
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          <string-name>
            <given-names>Seunghyun</given-names>
            <surname>Yoon</surname>
          </string-name>
          , Kunwoo Park, Joongbo Shin, Hongjun Lim, Seungpil Won, Meeyoung Cha, and
          <string-name>
            <given-names>Kyomin</given-names>
            <surname>Jung</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Detecting incongruity between news headline and body text via a deep hierarchical encoder</article-title>
          .
          <source>In Proceedings of the AAAI Conference on Artificial Intelligence</source>
          , volume
          <volume>33</volume>
          , pages
          <fpage>791</fpage>
          -
          <lpage>800</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>