<!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>
      <journal-title-group>
        <journal-title>Conference and Labs of the Evaluation Forum, September</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Team Text Understanding and Analysis at PAN: Utilizing BERT Series Pre-training Model for Multi-Author Writing Style Analysis</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Yingzhou Huang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Leilei Kong</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</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>
      <volume>0</volume>
      <fpage>9</fpage>
      <lpage>12</lpage>
      <abstract>
        <p>We propose a training model based on BERT series. This method uses sliding window technique to preprocess data sets to train and solve multi-author writing style analysis tasks. Our method is to combine adjacent paragraphs into a training sample, and efectively extract the characteristics of style changes between paragraphs. We conducted systematic training and evaluation on three multi-author writing style analysis datasets (easy, medium, and dificult) at diferent dificulty levels provided by the PAN organization. We obtained f1 scores of 0.993, 0.831 and 0.825 on the test set, respectively, which proved the efectiveness and robustness of the proposed method.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Multi-author writing style analysis</kwd>
        <kwd>BERT series</kwd>
        <kwd>training sample</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        The Multi-Author Writing Style Analysis task is designed to identify where authorship has changed
in multiple author documents. In practical applications, we can analyze the author’s writing style to
determine the author’s identity, verify whether the document has been tampered with, and whether the
article is suspected of plagiarism [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>
        Multi-author recognition research is mainly divided into two directions: traditional methods and deep
learning-based methods [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. The traditional method usually uses hand-selected features to distinguish
text similarity, such as word frequency, sentence length, punctuation, etc. These methods work well
in some simple scenarios, but struggle to handle more complex situations. A deep learning-based
approach uses a neural network model to extract the text representation and calculate the similarity
of the text representation. These methods typically include convolutional neural networks (CNNS),
recurrent neural networks (RNNS), and attention mechanisms. In addition, some researchers also try
to use pre-trained language models [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], such as BERT [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], GPT [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], etc to improve the performance
of the models. In general, deep learning-based approaches [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] have performed well in multi-author
recognition studies and are receiving increasing attention.
      </p>
      <p>
        We created data samples using a sliding window. We encoded and classified the data using Bert
[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]series models, such as Bert base, DeBERTa, ALBERT, and RoBERTa.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Method</title>
      <p>
        In this study, we utilized four diferent pre-trained language models [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]: DeBERTa-base [8],
DeBERTav3-large [8], ALBERT-large-v2 [9], and RoBERTa-base [10]. Each of them was specifically applied to
training tasks of varying dificulty (easy, medium, hard). Our goal is to enhance the performance of the
multi-author style detection task by leveraging the specific architectural advantages of these models.
The reasons for choosing the above models for our experiments are as follows.
      </p>
      <p>DeBERTa-base and DeBERTa-v3-large introduce eficient attention mechanisms and improved
sentence encoding strategies, making them particularly suitable for tasks that require complex language
understanding [8].</p>
      <p>ALBERT-large-v2, through parameter sharing techniques, maintains a large model capacity while
reducing the number of parameters, making it suitable for processing large datasets and balancing
performance and eficiency [9].</p>
      <p>RoBERTa-base has shown excellent performance in a variety of natural language processing tasks
through dynamic masked language model training, and its robustness makes it a reliable choice for
experiments [10].</p>
      <p>We designed targeted training strategies for each model to adapt to tasks of diferent dificulty levels.
During the training process, we used precision, recall, and F1 score as the main evaluation metrics to
ensure that the models can achieve optimal performance in detecting changes in author style.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Experiment</title>
      <sec id="sec-3-1">
        <title>3.1. Dataset</title>
        <p>
          The writing style change detection dataset provided by PAN@CLEF [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]includes three levels of dificulty:
1.Easy: The paragraphs of the documents cover various topics, allowing methods that utilize topic
information to detect changes in authorship.
        </p>
        <p>2.Medium: There is little diversity in the topics within the documents (although still present), forcing
methods to focus more on style to efectively address the detection task.</p>
        <p>3.Hard: All paragraphs in the documents are related to the same topic.</p>
        <p>In the dataset provided by PAN, the label information available to participants includes the number
of authors in the document and labels indicating whether there are changes in writing style between
paragraphs. We segmented the documents in the dataset according to natural paragraphs and labels,
and recalculated the quantities of the dataset. The statistical results are shown in the following table.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Data Processing</title>
        <p>In this study, we first carried out preprocessing on the dataset. Initially, we conducted paragraph
segmentation. We segmented the documents into natural paragraphs, treating each paragraph as
an independent data item. Subsequently, we performed text pair extraction. Utilizing the sliding
window method, we construct a text pair adjacent paragraphs. Finally, we read the corresponding
label information for each text pair from the JSON file, which will be used for subsequent training and
evaluation.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Experiment setting</title>
        <p>In this experiment,We chose the CrossEntropyLoss as the loss function, which measures the error
based on the similarity between probability distributions and is used in conjunction with the softmax
activation function, making it suitable for classification tasks. The optimizer selected was AdamW, an
improved version of the Adam optimizer, particularly suitable for weight decay, which helps reduce
overfitting. The learning rate was set to 1e-5. A smaller learning rate helps the model to train stably
and converge to the global optimum. The batch size was set to 2 and the number of iterations was set
to 10. Smaller batch sizes and numbers of iterations help enhance the model’s generalization ability and
reduce overfitting.We set the maximum length of the encoder to 256, which means the total length of
the text pairs is 512, since the number of tokens in most text pairs is less than 512. We established the
dropout layer ratio at 0.1 to prevent overfitting during fine-tuning [11].</p>
        <p>We then continuously replaced the pre-trained models and their corresponding neural network
frameworks to compare the performance of the trained models. By comparing the accuracy on the
validation set, we found that the model trained with DeBERTa [8]had the highest accuracy on the easy
and hard datasets, while the model trained with RoBERTa [10]had the highest accuracy on the medium
dataset.</p>
        <p>In machine learning, the batch size is a crucial hyperparameter that can significantly afect the
model’s convergence rate and final performance. A larger batch size usually provides a more stable
gradient estimate but also increases memory consumption and may lead the model to become trapped in
local optima. Based on these considerations, we increased the batch size by tenfold, hoping to improve
model performance through more stable gradient estimation.</p>
        <p>However, after a series of experiments, we found that increasing the batch size did not lead to the
expected performance improvement. Specifically, after increasing the batch size, the model’s accuracy
on the validation set decreased by 10%, and the training time also increased. This indicates that for the
current task and the adopted model architecture, a larger batch size may not be the optimal choice.
Therefore, we ultimately set the batch size to 2.</p>
      </sec>
      <sec id="sec-3-4">
        <title>3.4. Experiment results</title>
        <p>
          We carried out four experiments: the BERT series pre-training models (DeBERTa-base,
Deberta-v3large, ALBERT-large-v2 and RoBERTa-base) were used to train on the training set, and the model with
the highest accuracy was selected in the verification set to fine-tune the hyperparameters. Then we
implement the model with the highest F1 score on the verification sets corresponding to diferent
dificulty levels submitted by the TIRA platform [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. The main experiment results are shown in Table 2.
        </p>
        <p>We also compare the performance of diferent Bert-based models, denoted as DeBERTa-base,
Debertav3-large, ALBERT-large-v2 and RoBERTa-base. The experiment results concerning accuracy are shown
in Table 3, where Easy, Medium and Hard denote the dataset of diferent dificulty levels.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>In this study, we successfully developed a system based on DeBERTa-base and RoBERTa-base models to
efectively process the multi-author writing style analysis task by using sliding window technique. By
applying sliding Windows to text sequences, our method can efectively capture local context
information and extract stylistic changes between paragraphs. On three datasets of diferent dificulty levels
provided by the PAN organization,our approach achieves excellent scores on the f1 index, demonstrating
its efectiveness and robustness.</p>
      <p>Despite the positive results of our study, there are still some limitations and issues that need to be
further explored. In experiments, it was found that increasing batch size did not improve performance,
but led to a decrease in accuracy. This suggests that batch size has a significant impact on model
performance, but its optimal value may depend on the specific task and model architecture and requires
more in-depth research to determine. We are interested in experimenting with emerging pre-trained
model architectures to explore whether they can bring further performance improvements for
multiauthor style detection tasks.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>This research was supported by the National Social Science Foundation of China (22BTQ101) .
[8] P. He, X. Liu, J. Gao, W. Chen, Deberta: Decoding-enhanced bert with disentangled attention, 2021.</p>
      <p>URL: https://arxiv.org/abs/2006.03654. arXiv:2006.03654.
[9] Z. Lan, M. Chen, S. Goodman, K. Gimpel, P. Sharma, R. Soricut, Albert: A lite bert for
selfsupervised learning of language representations, 2020. URL: https://arxiv.org/abs/1909.11942.
arXiv:1909.11942.
[10] Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer, V. Stoyanov,
Roberta: A robustly optimized bert pretraining approach, 2019. URL: https://arxiv.org/abs/1907.
11692. arXiv:1907.11692.
[11] X. Liang, L. Wu, J. Li, Y. Wang, Q. Meng, T. Qin, W. Chen, M. Zhang, T.-Y. Liu, R-drop: Regularized
dropout for neural networks, 2021. URL: https://arxiv.org/abs/2106.14448. arXiv:2106.14448.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <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>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>P.</given-names>
            <surname>Rosso</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>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>M.</given-names>
            <surname>Wiegmann</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>E.</given-names>
            <surname>Zangerle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Mayerl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Potthast</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Stein</surname>
          </string-name>
          ,
          <article-title>Overview of the Multi-Author Writing Style Analysis Task at PAN 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>Galuščáková</surname>
          </string-name>
          , A. G. S. de Herrera (Eds.), Working Notes of CLEF 2024 -
          <article-title>Conference and Labs of the Evaluation Forum, CEUR-WS</article-title>
          .org,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Fröbe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wiegmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Kolyada</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Grahm</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Elstner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Loebe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Hagen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Stein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Potthast</surname>
          </string-name>
          ,
          <article-title>Continuous Integration for Reproducible Shared Tasks with TIRA.io</article-title>
          , in: J.
          <string-name>
            <surname>Kamps</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Goeuriot</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Crestani</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Maistro</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Joho</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Davis</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Gurrin</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          <string-name>
            <surname>Kruschwitz</surname>
            ,
            <given-names>A</given-names>
          </string-name>
          . Caputo (Eds.),
          <source>Advances in Information Retrieval. 45th European Conference on IR Research (ECIR</source>
          <year>2023</year>
          ), Lecture Notes in Computer Science, Springer, Berlin Heidelberg New York,
          <year>2023</year>
          , pp.
          <fpage>236</fpage>
          -
          <lpage>241</lpage>
          . doi:
          <volume>10</volume>
          .1007/ 978-3-
          <fpage>031</fpage>
          -28241-6_
          <fpage>20</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>I. H.</given-names>
            <surname>Sarker</surname>
          </string-name>
          ,
          <article-title>Deep learning: a comprehensive overview on techniques, taxonomy, applications and research directions</article-title>
          ,
          <source>SN computer science 2</source>
          (
          <year>2021</year>
          )
          <fpage>420</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>N.</given-names>
            <surname>Ding</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Qin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Wei</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Su</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.-M. Chan</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Yi</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          <string-name>
            <surname>Zhao</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          <string-name>
            <surname>Liu</surname>
            , H.-T. Zheng,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Tang</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Sun</surname>
          </string-name>
          ,
          <article-title>Delta tuning: A comprehensive study of parameter eficient methods for pre-trained language models</article-title>
          ,
          <year>2022</year>
          . URL: https://arxiv.org/abs/2203.06904. arXiv:
          <volume>2203</volume>
          .
          <fpage>06904</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          , M.-
          <string-name>
            <given-names>W.</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>
          ,
          <year>2019</year>
          . URL: https://arxiv.org/abs/
          <year>1810</year>
          .04805. arXiv:
          <year>1810</year>
          .04805.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>X.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Du</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ding</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Qian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Tang</surname>
          </string-name>
          , Gpt understands, too,
          <year>2023</year>
          . URL: https://arxiv.org/abs/2103.10385. arXiv:
          <volume>2103</volume>
          .
          <fpage>10385</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>