<!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>Ensembling of Various Transformer Based Models for the Fake News Detection Task in the Urdu Language</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sakshi Kalra</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Preetika Verma</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yashvardhan Sharma</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gajendra Singh Chauhan</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science and Information Systems, Birla Institute of Technology and Science Pilani</institution>
          ,
          <addr-line>Pilani Campus, Rajasthan</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Humanities and Social Sciences, Birla Institute of Technology and Science Pilani</institution>
          ,
          <addr-line>Pilani Campus, Rajasthan</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <fpage>13</fpage>
      <lpage>17</lpage>
      <abstract>
        <p>The spread of misinformation has become a severe issue affecting society. Inaccurate information has enormous potential to cause real-world impacts. Developing algorithms to detect fake news automatically will be very useful in preventing unnecessary panic and damage caused by rumors. This fake news problem is present for all languages, and it becomes crucial to solve it for languages other than English, with scarce datasets. This paper aims to tackle the problem of automatic fake news detection in Urdu, a low-resource language. FIRE-2021 has provided the Urdu dataset used in this paper. We fine-tuned monolingual and multilingual transformers. After searching for hyperparameters, we tried ensembling our models. We submitted our model for the UrduFake task, and it achieved an accuracy of 0.596 and an F1macro score of 0.449.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Fake News Detection</kwd>
        <kwd>Natural Language Processing</kwd>
        <kwd>Label Classification</kwd>
        <kwd>Various Transformers</kwd>
        <kwd>Ensemble Techniques</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        In 2016, Fake News was such a generally used word that the Oxford Dictionary appended this
word to their official list, with the description: “false stories that appear to be news spread on
the internet or using other media, usually created to influence political views or as a joke.”Fake
news dissemination had been a concerning issue since the invention of the printing press in the
15th century. The spread of fake news and misinformation has brought disastrous consequences
many times. An example is the recent Facebook post on 19th September 2021, which claimed that
the Canadian prime minister and his wife faked their covid-19 vaccinations on live television[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
This created panic and was widely shared. Later, it was found to be false. Therefore, it is crucial
to develop an algorithm to curb the spread of fake news, creating panic and confusion among
people.
      </p>
      <p>
        There have been many attempts for automatic fake news detection in English, Chinese,
French, and other high-resource languages. Many Natural Language Processing techniques are
used to detect fake news from the English language. Various Transformer based models such as
BERT [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], XLnet [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], DistilBERT [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], etc., have been designed to get the word embeddings and
word dependencies for the English language text. Very little work has been done on Urdu even
though it is spoken as a first language by nearly 70 million people and as second by 100 million
people. Urdu is a low-resource language, and there is a scarcity of publicly available datasets for
NLP tasks using this language. It is the most popular language in Pakistan, and it has around
100 million speakers across the world [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]and is widely spoken in the Indian subcontinent. It
still does not have a lot of language processing tools like parsers and corpora. Many researchers
have tried to target the Urdu language. A shared task [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ],[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] on fake news detection in the Urdu
language has been started to tackle the fake news detection problem.
      </p>
      <p>
        Fact-checking websites like Politifact [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] have come up for English which checks the accuracy
of statements. Researchers have divided fake news into seven categories- false news, polarised
content, satire, misreporting, commentary, persuasive information, and citizen journalism [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
It has also been found that fake news articles are less factual, less grammatically correct, and
have more emotionally charged claims. Analyzing the linguistic features of text has also been
proved to help in classification.
      </p>
      <p>
        In this paper, we target the Urdu Fake News Detection task by participating in
NEWUrduFake@FIRE2021[
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. We experimented with various multilingual transformer-based models
individually and tried to get results by ensembling these different transformer-based models;
We are getting better results without the ensembling approach.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        Most of the proposed approaches have been used for the English language [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], and there
have been some efforts for Spanish[
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], German[
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] as well. Data augmentation with machine
translation is used to tackle the problem of small datasets[
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. Newly annotated data in Urdu
is generated by translating the English dataset introduced. Google Translate is used for this
purpose. It is found that the classifier trained on the original Urdu dataset showed better
results than the augmented and translated datasets. One reason for this was that the MT
translation quality between Urdu and English was inferior. Recent studies have extracted
different features from Urdu text and fed them into supervised classification models like logistic
regression, k-nearest neighbors, random forests, and support vector machines. These features
try to model the news articles mathematically. Linguistic features include the total number
of words, frequency of function words and phrases, parts of speech tags, unique word count,
syntactic dependencies, clauses, punctuation, etc. Domain-specific linguistic features precisely
align with the news domain and include quoted words, external links, etc. Approaches using
transformer-based models have been utilized to detect misleading news articles [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] and false
covid related news[
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Dataset</title>
      <p>
        The dataset used for this task is ‘Bend the Truth.’ This binary annotated corpus contains articles
from six domains: technology, education, business, sports, politics, and entertainment [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
This is the only annotated corpus available for detecting false news in Urdu. The real news
articles are collected from different mainstream news websites like BBC News, CNN Urdu, Daily
Pakistan, urdupoint, etc. A newspaper library is used for web scraping. The data is collected
and annotated manually. If a legitimate website is published, the source is mentioned, or the
same news is found on other reliable websites, the article is real. Different lengths of texts are
collected during the data collection process. For fake news collection, professional journalists
are hired to write news articles for all the domains. They are asked to avoid unintentionally
introducing any patterns in the fake news articles. After collection, all the articles are reread
to remove typing errors and word misuse. Data is cleaned - Latin alphabet characters are
removed, Eastern Arabic-Indic numerals are converted to Western Arabic numbers. Paragraphs
are ramified into sentences on Urdu end markers. The training dataset had 750 real articles and
550 fake. The evaluation is done on an unknown dataset of 300 articles.
      </p>
    </sec>
    <sec id="sec-4">
      <title>4. Proposed Techniques and Algorithms</title>
      <p>Transformer-based implementation involves pre-training, which is followed by fine-tuning. The
model is trained on large language datasets(monolingual) or datasets in multiple
languages(multilingual) for the first part. All the initialized parameters are fine-tuned using the labeled data
from the given dataset. The code is available in the github repository. 1 Only the encoder part
of the transformer architecture is used for getting the word-embeddings. One additional output
layer is added to calculate the probability for real and fake classes. Various word embeddings
models have been used and listed below:
• RoBERta: This model is trained on Urdu news data from Pakistani newspapers. It is built
on BERT, trained with larger mini-batches and learning rates.
• ALBERT: Trained on Urdu datasets, but it gave inferior results.
• XLM-RoBERTa: It is trained in 100 different languages and has the exact implementation
as RoBERta. It is pre-trained on more than 2TB of CommonCrawl data. The idea is to
map any language to a language-agnostic vector space where all the languages for the
same input would point to the same area.
• Multilingual BERT: This is pre-trained in 104 languages. The texts are lowercased and
tokenized using WordPiece and a shared vocabulary size of 110,000. The languages with a
larger Wikipedia are under-sampled, and the ones with lower resources are oversampled.</p>
      <sec id="sec-4-1">
        <title>4.1. Hyperparameter Description</title>
        <p>Raytune library is used for hyperparameter tuning. The original head of the models is removed
and replaced with a classification head so the output would be for two classes. The training
dataset is used for fine-tuning the pre-trained models available on huggingface. Alberta has
1https://github.com/Kalra-Sakshi/URdu-FND.git
not ensembled due to the poor results. Monolingual RoBERTa is giving the best results. Both
the multilingual models are poor at detecting the fake class. For the final run, we submitted
roberta-urdu-small, which is pretrained on Urdu news corpus since it alone gives better results
than any ensembled combination. The training data has normalized using the normalization
module from urduhack library to eliminate the characters from other languages like Arabic.
We used the same tokenizer for fine-tuning the models. Eight trials are conducted to find the
optimum hyperparameters. Search space is defined, and hyperparameter combinations are
randomly selected. Adam optimizer with weight decay is used for the model optimization.
Table-1 lists the total number of 8-trials, conducted to find the optimum hyperparameters.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Ensembling of the Models</title>
        <p>
          We tried to ensemble the three transformer-based architectures[
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]. We have not considered
Alberta as it gives inferior results. The ensembled model computes the average of all softmax
values after extracting the softmax probabilities from each model. In our problem, the results
from the three transformers individually are not close to each other. This model performs
better than multilingual-bert and xlm-roberta. Monolingual roberta gives a better result on the
validation dataset alone than any different model or ensemble combination. Figure-1 shows the
transformer based ensemble model architecture.
        </p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Results and Evaluations</title>
      <p>Different combinations are ensembled using soft-voting after the hyperparameter tuning to get
the best results. The results on the validation dataset are listed in Table-2. Roberta is giving
the best results for the fourth trial and the multilingual models for the seventh trial. Alberta is
providing poor results and is not used for ensembling. We tried soft-voting for all combinations.</p>
      <sec id="sec-5-1">
        <title>5.1. Error Analysis</title>
        <p>The multilingual models are inferior at identifying fake texts and classified a lot of them as real.
The reason would be due to the slight imbalance in the training data. The monolingual model
alone performed slightly better than any ensembled combination. For the surprise dataset, our
submitted run is unable to detect most of the fake news articles. Table-3 lists the error analysis
report.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusions and Future Work</title>
      <p>Traditional Machine Learning-based approaches produced better results than a
transformerbased approach. The training set is small, and even though the results are suitable for the
validation set, the model cannot perform well on the surprise dataset. It is also unable to
distinguish fake samples and gives very low precision, recall, and F1 score for the fake class.
Future work involves trying to extract features from the intermediate transformer layers. It
would be interesting to try transfer learning for different languages—for example, training on
an English dataset and testing on Urdu. We can try if the problem of insufficient data can be
solved by using datasets in other languages and training on multilingual models. This idea is to
turn any incoming language into a language-agnostic vector in a space where all languages for
the same input would point to the same area.</p>
    </sec>
    <sec id="sec-7">
      <title>A. Online Resources</title>
      <p>The implementation of different pre-trained BERT-models are available at
• Huggingface.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <article-title>[1] Politifact, fact checking website</article-title>
          , URL: https://www.politifact.com/factchecks/2021/ sep/24/facebook-posts/
          <article-title>trudeaus-got-their-</article-title>
          <string-name>
            <surname>covid-</surname>
          </string-name>
          19-shots/.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Toutanova</surname>
          </string-name>
          , Bert:
          <article-title>Pre-training of deep bidirectional transformers for language understanding</article-title>
          .
          <source>arxiv</source>
          <year>2018</year>
          , arXiv preprint arXiv:
          <year>1810</year>
          .
          <volume>04805</volume>
          (
          <year>2021</year>
          )
          <fpage>0</fpage>
          -
          <lpage>85083815650</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Dai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Yang</surname>
          </string-name>
          , J. Carbonell,
          <string-name>
            <given-names>R. R.</given-names>
            <surname>Salakhutdinov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q. V.</given-names>
            <surname>Le</surname>
          </string-name>
          ,
          <article-title>Xlnet: Generalized autoregressive pretraining for language understanding</article-title>
          ,
          <source>Advances in neural information processing systems</source>
          <volume>32</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>V.</given-names>
            <surname>Sanh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Debut</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chaumond</surname>
          </string-name>
          , T. Wolf,
          <article-title>Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter</article-title>
          , arXiv preprint arXiv:
          <year>1910</year>
          .
          <volume>01108</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Amjad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Sidorov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zhila</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Gómez-Adorno</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Voronkov</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          . Gelbukh,
          <article-title>“bend the truth”: Benchmark dataset for fake news detection in urdu language and its evaluation</article-title>
          ,
          <source>Journal of Intelligent &amp; Fuzzy Systems</source>
          <volume>39</volume>
          (
          <year>2020</year>
          )
          <fpage>2457</fpage>
          -
          <lpage>2469</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Amjad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Sidorov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zhila</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. F.</given-names>
            <surname>Gelbukh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Rosso</surname>
          </string-name>
          ,
          <article-title>Overview of the shared task on fake news detection in urdu at fire 2020</article-title>
          ., in: FIRE (Working Notes),
          <year>2020</year>
          , pp.
          <fpage>434</fpage>
          -
          <lpage>446</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M.</given-names>
            <surname>Amjad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Sidorov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zhila</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gelbukh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Rosso</surname>
          </string-name>
          , Urdufake@ fire2020:
          <article-title>Shared track on fake news identification in urdu</article-title>
          ,
          <source>in: Forum for Information Retrieval Evaluation</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>37</fpage>
          -
          <lpage>40</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <article-title>[8] Politifact, fact checking website</article-title>
          , URL: https://www.politifact.com/.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <article-title>[9] Economic times, seven types of fake news URL: https://economictimes</article-title>
          .indiatimes.com/news/politics-and
          <article-title>-nation/ seven-types-offake-news-identified-to-help-detect-misinformation/ no-message-in-fakenews/slideshow/72106573</article-title>
          .cms.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <source>[10] Fire</source>
          <year>2021</year>
          , urdufake2021, URL: https://www.urdufake2021.cicling.org/home.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>S.</given-names>
            <surname>Gundapu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Mamidi</surname>
          </string-name>
          ,
          <article-title>Transformer based automatic covid-19 fake news detection system</article-title>
          ,
          <source>arXiv preprint arXiv:2101.00180</source>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>J.-P.</given-names>
            <surname>Posadas-Durán</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Gómez-Adorno</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Sidorov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. J. M.</given-names>
            <surname>Escobar</surname>
          </string-name>
          ,
          <article-title>Detection of fake news in a new corpus for the spanish language</article-title>
          ,
          <source>Journal of Intelligent &amp; Fuzzy Systems</source>
          <volume>36</volume>
          (
          <year>2019</year>
          )
          <fpage>4869</fpage>
          -
          <lpage>4876</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>I.</given-names>
            <surname>Vogel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Jiang</surname>
          </string-name>
          ,
          <article-title>Fake news detection with the new german dataset “germanfakenc”</article-title>
          ,
          <source>in: International Conference on Theory and Practice of Digital Libraries</source>
          , Springer,
          <year>2019</year>
          , pp.
          <fpage>288</fpage>
          -
          <lpage>295</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>M.</given-names>
            <surname>Amjad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Sidorov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zhila</surname>
          </string-name>
          ,
          <article-title>Data augmentation using machine translation for fake news detection in the urdu language</article-title>
          ,
          <source>in: Proceedings of The 12th Language Resources and Evaluation Conference</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>2537</fpage>
          -
          <lpage>2542</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>H.</given-names>
            <surname>Jwa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Oh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Park</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Kang</surname>
          </string-name>
          , H. Lim,
          <article-title>exbake: Automatic fake news detection model based on bidirectional encoder representations from transformers (bert</article-title>
          ),
          <source>Applied Sciences</source>
          <volume>9</volume>
          (
          <year>2019</year>
          )
          <fpage>4062</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>