[Paper Review] Deep Bayes Factor Scoring for Authorship Verification
This paper proposes Deep Bayes Factor Scoring, an end-to-end deep metric learning framework that fuses Siamese neural networks with probabilistic Bayes factor scoring for authorship verification in fanfiction texts. By learning topic-invariant, style-sensitive embeddings and applying statistical scoring in the latent space, the method achieves state-of-the-art performance on the PAN 2020 AV challenge, outperforming all other systems on both small and large datasets.
The PAN 2020 authorship verification (AV) challenge focuses on a cross-topic/closed-set AV task over a collection of fanfiction texts. Fanfiction is a fan-written extension of a storyline in which a so-called fandom topic describes the principal subject of the document. The data provided in the PAN 2020 AV task is quite challenging because authors of texts across multiple/different fandom topics are included. In this work, we present a hierarchical fusion of two well-known approaches into a single end-to-end learning procedure: A deep metric learning framework at the bottom aims to learn a pseudo-metric that maps a document of variable length onto a fixed-sized feature vector. At the top, we incorporate a probabilistic layer to perform Bayes factor scoring in the learned metric space. We also provide text preprocessing strategies to deal with the cross-topic issue.
Motivation & Objective
- To address the challenge of authorship verification in cross-topic, closed-set scenarios using fanfiction texts, where topic variation undermines traditional stylometric features.
- To develop a deep learning system that learns topic-invariant, style-sensitive representations for improved generalization across diverse writing topics.
- To integrate probabilistic Bayes factor scoring into a learned metric space for reliable, calibrated verification decisions.
- To enhance robustness against stylistic variations due to genre, sentiment, or obfuscation strategies, while maintaining high discriminative power.
- To establish a unified, end-to-end framework that combines metric learning and statistical inference for improved AV performance.
Proposed method
- A Siamese neural network architecture is used to embed variable-length documents into fixed-size feature vectors, learning a pseudo-metric that captures writing style.
- The model is trained using a contrastive loss to maximize inter-author distance and minimize intra-author distance in the embedding space.
- A probabilistic layer is added on top of the learned embeddings to compute Bayes factors, enabling statistically grounded verification decisions.
- The system employs data augmentation via random recombination of document pairs during training to increase training data diversity and robustness.
- Text preprocessing strategies are applied to reduce topic-specific noise and improve focus on stylistic features.
- Ensemble inference is used at test time, with models evaluated sequentially to minimize CPU memory usage on the Tira platform.
Experimental results
Research questions
- RQ1Can a deep metric learning framework learn topic-invariant, style-sensitive representations suitable for cross-topic authorship verification?
- RQ2Does integrating Bayes factor scoring into a learned embedding space improve verification performance and calibration?
- RQ3How effective is the proposed method in handling stylistic variations due to topic, sentiment, or genre in fanfiction texts?
- RQ4Can data augmentation through random pair recombination enhance model generalization and robustness?
- RQ5To what extent does the model’s attention focus on meaningful linguistic patterns rather than superficial features like punctuation or spelling errors?
Key findings
- The proposed method achieved an AUC of 0.969 on the test set using the large dataset, outperforming all other systems in the PAN 2020 Authorship Verification challenge.
- The ensemble model with large training data achieved a c@1 score of 0.928 and an F1 score of 0.936 on the test set, demonstrating strong generalization.
- Entropy curves showed a significant decrease in within-author variability and increase in between-author variability during training, indicating effective metric learning.
- Attention heatmaps revealed that the model focuses on contextual word usage and phrase repetition rather than function words or punctuation, suggesting sensitivity to stylistic patterns.
- The model demonstrated robustness to topic shifts and genre differences, as evidenced by consistent performance across diverse fanfiction texts.
- The system achieved high performance even with limited data, with the small dataset model reaching an AUC of 0.940 and F1 of 0.906 on the test set.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.