<!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 baker at PAN: Enhancing Writing Style Change Detection with Virtual Softmax</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Bingpei Wu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yong Han</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kai Yan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Haoliang Qi</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>This paper introduces the application of Virtual Softmax for the PAN 2024 multi author writing style analysis task. We found that tasks with the same topic are particularly challenging due to dificulties at classification boundaries. To address this problem, we integrated Virtual Softmax into the Transformer architecture to provide additional feature supervision, enhancing the recognition ability of model. Finally, we achieved F1 scores higher than the baseline method on the three tasks in the oficial test set.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Style Change Detection</kwd>
        <kwd>Pre-trained Model</kwd>
        <kwd>Virtual Softmax</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Related work</title>
      <p>
        With the rise and improvement of large language model technology, the methods for handling complex
tasks have undergone significant changes. Traditional work, such as the research by Gómez-Adorno
et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], relied on the design of stylometric features and the use of machine learning methods for
prediction. However, the focus has now shifted towards fine-tuning large language models using various
techniques. For instance, in PAN 2023, Ye et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] work employed contrastive learning for supervised
ifne-tuning, achieving remarkable results.
      </p>
      <p>In our work, we compared the performance of three pre-trained transformer-based models on Task
1 to select the most suitable base model. Additionally, we applied data augmentation techniques and
used Virtual Softmax to enhance the model’s performance in handling samples near the classification
boundaries.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Method</title>
      <sec id="sec-3-1">
        <title>3.1. Network Architecture</title>
        <p>
          The Transformer [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] architecture is technologically mature and includes well-developed models such
as BERT [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], RoBERTa [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], and DistilBERT [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. This architecture, pre-trained on a large corpus, has
strong contextual understanding capabilities. We compared the F1 performance of models with the
same parameters in task1, then chose RoBERTa as the base model, as shown in the Table1.
        </p>
        <p>In our work, we use the RoBERTa-based model as the encoder to process the input text. The input
text paragraphs are first tokenized and then fed into the RoBERTa model for encoding. The pooled
output of the [cls] token, represents the contextual features of the entire paragraph. This output is then
passed through a Virtual Softmax layer. The model is trained using a cross-entropy loss function to
perform our classification task. During training, the extracted paragraph features are fed into a Virtual
Softmax layer, enabling the model to perform a three-class classification task. An additional class is
introduced to provide feature supervision, which compresses the inter-class space of the other two
classes, thereby enforcing stricter boundary constraints.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Virtual Softmax</title>
        <p>To enhance the model’s discriminative power, we integrate a Virtual Softmax layer. During the training
phase, no additional processing is performed on the input data and Virtual Classes are directly added.
During the evaluation phase, we choose the category with the highest probability among the non-virtual
classes. These classes do not correspond to actual categories but are used to increase the complexity of
the training process, thereby strengthening the model’s discriminative abilities. The core idea is to add
noise by incorporating these virtual classes, forcing the model to generalize better when faced with real
data. Specifically, for a given classification task, the additional injected classes introduce a new and
tighter decision boundary for the original classes, compressing their inter-class distribution.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Experiments</title>
      <sec id="sec-4-1">
        <title>4.1. Experiments setting</title>
        <p>
          In this work, we select the RoBERTa-based model [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] for classification. The model consists of 12 layers
and 12 attention heads, with a hidden size of 768. The maximum sequence length is set to 256, the
learning rate is 1e-5, and the batch size is 32. These experimental settings are consistent with the
comparative experimental settings for BERT, RoBERTa, and DistilBERT.
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Data preparation</title>
        <p>In the data provided by PAN, three tasks, categorized by dificulty (task1-easy, task2-medium,
task3hard), were divided into a training set (70%), a validation set (15%), and a test set (15%). The training
set for each dificulty consists of 4200 documents, consisting of multiple paragraphs. We connect two
adjacent paragraphs in the same document using a separator token [cls] to form a sample, and label it
whether the author of the sample text has changed.</p>
        <p>Samples constructed according to the above method are made up of adjacent paragraphs. We extended
the data set by linking discontinuous paragraphs together based on some logical judgment based on the
number of authors and whether the document paragraphs changed. For example, if there is no author
change for three consecutive paragraphs, the first paragraph and the third paragraph can form a new
sample.</p>
      </sec>
      <sec id="sec-4-3">
        <title>4.3. Results</title>
        <p>We submit the model to TIRA [10] for execution to get the final metrics for the model. Table 3 shows the
F1 scores obtained by our model in the oficial test and validation set. In addition, the paper compares
the performance of some methods in 2023, Chen et al. [11], Jacobo et al. [12].</p>
        <p>In task1 and task2, authors can be distinguished by capturing the characteristics of the topic. Due to
the architectural limitations of Transformer, style changes and context dependencies cannot be fully
captured. This results in a low F1 score in task3, where each pair of paragraphs has the same topic and
keywords.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>In this paper, we presented a RoBERTa-based model enhanced with Virtual Softmax for detecting style
changes in multi-author documents. Our approach showed significant promise, particularly in the
more challenging scenarios where documents share the same topic throughout. By injecting additional
classes, we were able to improve the model’s ability to distinguish between diferent authors, thereby
enhancing the robustness and accuracy of style change detection.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>This work is supported by the National Natural Science Foundation of China (No.62276064).
[10] 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. doi:10.1007/
978-3-031-28241-6_20.
[11] H. Chen, Z. Han, Z. Li, Y. Han, A writing style embedding based on contrastive learning for
multi-author writing style analysis, in: Conference and Labs of the Evaluation Forum (CLEF),
2023.
[12] G. X. Jacobo, V. Dehesa-Corona, A. D. Rojas-Reyes, H. Gómez-Adorno, Authorship verification
machine learning methods for style change detection in texts, in: Conference and Labs of the
Evaluation Forum (CLEF), 2023.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <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="ref2">
        <mixed-citation>
          [2]
          <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="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>B.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Deng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Shen</surname>
          </string-name>
          ,
          <article-title>Virtual class enhanced discriminative embedding learning</article-title>
          ,
          <source>Advances in Neural Information Processing Systems</source>
          <volume>31</volume>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <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>
          , arXiv preprint arXiv:
          <year>1907</year>
          .
          <volume>11692</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>H.</given-names>
            <surname>Gómez-Adorno</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-P.</given-names>
            <surname>Posadas-Duran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Ríos-Toledo</surname>
          </string-name>
          , G. Sidorov, G. Sierra,
          <article-title>Stylometry-based approach for detecting writing style changes in literary texts</article-title>
          ,
          <source>Computación y Sistemas</source>
          <volume>22</volume>
          (
          <year>2018</year>
          )
          <fpage>47</fpage>
          -
          <lpage>53</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Ye</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zhong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Qi</surname>
          </string-name>
          , Y. Han,
          <article-title>Supervised contrastive learning for multi-author writing style analysis</article-title>
          ,
          <source>in: Conference and Labs of the Evaluation Forum (CLEF)</source>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A.</given-names>
            <surname>Vaswani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Shazeer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Parmar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Uszkoreit</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Jones</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. N.</given-names>
            <surname>Gomez</surname>
          </string-name>
          , Ł. Kaiser,
          <string-name>
            <surname>I. Polosukhin</surname>
          </string-name>
          ,
          <article-title>Attention is all you need</article-title>
          ,
          <source>Advances in neural information processing systems</source>
          <volume>30</volume>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <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>
          , arXiv preprint arXiv:
          <year>1810</year>
          .
          <volume>04805</volume>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <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-list>
  </back>
</article>