<!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 Conspiracy Theory Text Detection Method based on RoBERTa and XLM-RoBERTa Models</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Zhengqiao Zeng</string-name>
          <email>zhengqiaozeng@163.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhongyuan Han</string-name>
          <email>hanzhongyuan@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jingyan Ye</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yaozu Tan</string-name>
          <email>tanyaozu2023@163.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Haojie Cao</string-name>
          <email>caohaojie0322@163.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zengyao Li</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Runjin Huang</string-name>
          <email>ruijin_huang@163.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Foshan Huaying School</institution>
          ,
          <addr-line>Foshan</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Foshan University</institution>
          ,
          <addr-line>Foshan</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <abstract>
        <p>Conspiracy theories are complex narratives that attempt to explain the ultimate causes of significant events as cover plots orchestrated by secret, powerful, and malicious groups. To analyze texts afecting adversarial thinking containing conspiratorial or critical narratives, PAN 2024 introduces Adversarial Thinking Analysis: Conspiracy vs. Critical Thinking Narratives. This evaluation subtask comprises two sub-tasks: subtask 1 requires distinguishing texts questioning public health decisions without endorsing conspiracy theories from those attributing these decisions to malicious conspiracies; subtask 2 involves extracting, identifying, and classifying key elements of adversarial narratives. The hyperparameters of the RoBERTa and XLM-RoBERTa models are tuned to accomplish these tasks. After the training, these models are employed to make predictions and evaluate the test set. Ultimately, the following metrics are achieved in performance: in subtask 1, an MCC of 0.7758 for English texts and an MCC of 0.6871 for Spanish texts are obtained. In subtask 2, the span-F1 score reached 0.5666 for English and 0.4903 for Spanish texts.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;PAN 2024</kwd>
        <kwd>RoBERTa</kwd>
        <kwd>XLM-RoBERTa</kwd>
        <kwd>Conspiracy</kwd>
        <kwd>Critical Thinking</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>multi-tasking approach is conducted. Subsequently, these models are used to predict and evaluate the
test set.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Method</title>
      <p>Subtask 1 is approached as a binary classification task, and Subtask 2 is approached as a token-level
classification subtask. The research methodology consists of three steps: 1) data preprocessing, 2) model
training, and 3) prediction.</p>
      <p>For subtask 1, in the first step, text preprocessing is performed. In the second step, due to the limited
sample size, the cross-validation method is applied to determine the hyperparameters of the RoBERTa
and XLM-RoBERTa models for subtask 1. In the third step, the trained models are used to classify the
text and tested against the oficial test set.</p>
      <p>For subtask 2, the first step is to transform the text into a format acceptable to the models. Then, the
RoBERTa and XLM-RoBERTa models are used for training. In the third step, the trained models are
used for text recognition, followed by testing on the oficial test set.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Experiment</title>
      <sec id="sec-3-1">
        <title>3.1. Dataset</title>
        <p>The model is trained on the training data provided by the evaluation party. The training data can
be accessed through a JSON file, part of the PAN@CLEF2024 shared task Oppositional Thinking
Analysis. This JSON file contains 4000 texts in English and Spanish, encompassing all texts and their
respective annotations in the training dataset. Each text entry is in dictionary format, recording the
text ID, tokenized text content, binary category label, and span annotations. The span annotations
consist of a series of dictionaries detailing a specific annotation span, including its category, start and
end character indices, and corresponding text snippet. This link allows researchers to request access to
dataset 1 designed specifically for subtasks 1 and 2.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Data Processing</title>
        <sec id="sec-3-2-1">
          <title>3.2.1. Subtask1 Data Processing</title>
          <p>For subtask 1, a binary classification approach based on RoBERTa and XLM-RoBERTa is adopted to
distinguish between two types of texts: Those questioning public health decisions without propagating
conspiracy theories and those attributing these decisions to malicious conspiracies. Initially, for datasets
in English and Spanish, the ’text,’ ’id,’ and ’category’ are extracted from each data entry and subsequently
regarded as forming a new dataset.</p>
        </sec>
        <sec id="sec-3-2-2">
          <title>3.2.2. Subtask2 Data Processing</title>
          <p>For subtask 2, the BIO tagging method is employed to identify and classify narrative elements within
the text. This approach can identify the starting and ending positions and hierarchical structure of each
narrative element. The text is tokenized, and each token is labeled (where ’B’ denoted the beginning of a
narrative element, ’I’ represented the inside of a narrative element, and ’O’ stood for outside a narrative
element) based on a predefined set of tags. Subsequently, the annotated data is fed into RoBERTa and
XLM-RoBERTa models for model training.</p>
        </sec>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Model training</title>
        <sec id="sec-3-3-1">
          <title>3.3.1. Subtask1 Model training</title>
          <p>For subtask 1, to address the issue of limited data volume, a  -fold cross-validation method is employed,
with the value of  set to 5, evenly dividing the dataset into five parts. During each round of
crossvalidation, one subset is selected as the validation set, while the remaining four subsets are combined
to form the training set. Conducting five such tests allows each sample in the dataset can be used for
training and validation. Ultimately, based on the results of these five sets of models, the hyperparameter
combination that yields a better average performance is selected as the hyperparameter setting for
the model. Ultimately, 25 epochs are selected for the training cycle (epochs attempted: 10, 15, 20, 25,
and 30). The learning rate of 1 − 5 is chosen (learning rates attempted: 1 − 5, 2 − 5, and 3 − 5).
The batch size of 64 is selected (batch sizes attempted: 32, 64, and 128). Model training is executed
on NVIDIA A800 TENSOR CORE GPU hardware, where the cross-entropy loss function is opted for
to measure the discrepancy between predictions and accurate labels, and the Adam [5] optimizer is
employed to adjust the parameters of the model.</p>
        </sec>
        <sec id="sec-3-3-2">
          <title>3.3.2. Subtask2 Model training</title>
          <p>For subtask 2, the -fold cross-validation method and multi-tasking approach are utilized, with the
 value set to 5, thereby allowing each sample in the dataset to serve as training and validation data.
Ultimately, 20 epochs are chosen for the training cycle of the model (epochs attempted: 10, 15, 20,
25, and 30). The learning rate of 1 − 5 is selected for the model (learning rates attempted: 1 − 5,
2 − 5, and 3 − 5). The batch size of 64 is selected (batch sizes attempted: 32, 64, and 128). During
the training process, the multi-tasking approach is employed, where each named entity is assigned to a
task, and tasks share parameters through RoBERTa or XLM-RoBERTa as they are trained. The training
is conducted on NVIDIA GeForce RTX 3090 hardware. Regarding the selection of the loss function,
the cross-entropy loss function is employed to calculate the discrepancy between predicted and actual
labels, and the parameters are adjusted using the Adam optimizer.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Results</title>
      <p>
        The oficial evaluation metric for subtask 1 (critical vs. conspiracy classification) is MCC, while the
oficial metric for subtask 2 (span-level detection of narrative elements) is macro-averaged span-F1.[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]
Based on the experiments, rankings of 6 out of 78 in task 1-SPANISH and 10 out of 28 in task 2-ENGLISH
are achieved, surpassing baseline. Rankings of 31 out of 83 in task 1-ENGLISH and 12 out of 25 in task
2-SPANISH are obtained, neither of which exceeds baseline scores.
      </p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>For subtask 1 in English using RoBERTa, the score does not exceed the baseline when compared with
it. The reason may be that the parameters determined by the -fold cross-validation method are
not efective, thus afecting the performance of the model. The score for subtask 2 in English using
RoBERTa exceeds the baseline model, possibly because the -fold cross-validation method determines a
hyperparameter combination with better average performance.</p>
      <p>For the Spanish texts of subtask 1 and subtask 2, a multi-tasking approach is employed to train the
XLM-RoBERTa model, with the anticipation that the scores will surpass the baseline. Upon comparing
the outcomes with the baseline, the score for subtask 1 in Spanish exceeds the baseline by 0.019 points.
For subtask 2 with Spanish texts, the score does not surpass the baseline. This outcome is not anticipated,
which is the research focus of our further research.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>This work is supported by the Natural Science Platforms and Projects of Guangdong Province Ordinary
Universities (Key Field Special Projects) (No. 2023ZDZX1023)
L. Zettlemoyer, V. Stoyanov, Unsupervised cross-lingual representation learning at scale, 2020.
arXiv:1911.02116.
[5] I. Loshchilov, F. Hutter, Decoupled weight decay regularization, 2019. arXiv:1711.05101.
[6] M. Fröbe, M. Wiegmann, N. Kolyada, B. Grahm, T. Elstner, F. Loebe, M. Hagen, B. Stein, M. Potthast,
Continuous Integration for Reproducible Shared Tasks with TIRA.io, in: J. Kamps, L. Goeuriot,
F. Crestani, M. Maistro, H. Joho, B. Davis, C. Gurrin, U. Kruschwitz, A. Caputo (Eds.), Advances
in Information Retrieval. 45th European Conference on IR Research (ECIR 2023), Lecture Notes
in Computer Science, Springer, Berlin Heidelberg New York, 2023, pp. 236–241. URL: https://link.
springer.com/chapter/10.1007/978-3-031-28241-6_20. doi:10.1007/978-3-031-28241-6_20.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Ayele</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Babakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Bevendorf</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X. B.</given-names>
            <surname>Casals</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Chulvi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Dementieva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Elnagar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Freitag</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Fröbe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Korenčić</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Mayerl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Moskovskiy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mukherjee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Panchenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Potthast</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Rangel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Rizwan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Schneider</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Smirnova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Stamatatos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Stakovskii</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Stein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Taulé</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Ustalov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wiegmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Yimam</surname>
          </string-name>
          , E. Zangerle,
          <article-title>Overview of PAN 2024: Multi-Author Writing Style Analysis, Multilingual Text Detoxification, Oppositional Thinking Analysis, and Generative AI Authorship Verification</article-title>
          , in: L.
          <string-name>
            <surname>Goeuriot</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Mulhem</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          <string-name>
            <surname>Quénot</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Schwab</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Soulier</surname>
          </string-name>
          ,
          <string-name>
            <surname>G. M. D. Nunzio</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Galuščáková</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. G. S. de Herrera</surname>
          </string-name>
          , G. Faggioli, N. Ferro (Eds.),
          <source>Experimental IR Meets Multilinguality, Multimodality, and Interaction. Proceedings of the Fifteenth International Conference of the CLEF Association (CLEF</source>
          <year>2024</year>
          ), Lecture Notes in Computer Science, Springer, Berlin Heidelberg New York,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>D.</given-names>
            <surname>Korenčić</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Chulvi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X. Bonet</given-names>
            <surname>Casals</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Taulé</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Rangel</surname>
          </string-name>
          ,
          <article-title>Overview of the oppositional thinking analysis pan task at clef 2024</article-title>
          , in: G. Faggioli,
          <string-name>
            <given-names>N.</given-names>
            <surname>Ferro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Galuscakova</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          . García Seco de Herrera (Eds.),
          <source>Working Notes of CLEF 2024-Conference and Labs of the Evaluation Forum</source>
          ,
          <year>2024</year>
          . URL: https://doi.org/10.5281/zenodo.10680586.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ott</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Goyal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Du</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Joshi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Levy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lewis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zettlemoyer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Stoyanov</surname>
          </string-name>
          ,
          <article-title>Roberta: A robustly optimized bert pretraining approach</article-title>
          ,
          <year>2019</year>
          . arXiv:
          <year>1907</year>
          .11692.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Conneau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Khandelwal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Goyal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Chaudhary</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Wenzek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Guzmán</surname>
          </string-name>
          , E. Grave, M. Ott,
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>