Contrastive Learning for Authorship Verification
Abstract
Our results show that contrastive learning outperforms a classification-based approach to authorship verification under the tested settings. We identify loss function, batch size, training duration, pre-trained model, input context length, and random text span data augmentation as important factors of model performance. Based on these considerations, we develop a ModernBERT Bi-Encoder model that achieves 98.4% accuracy on the PAN21 authorship verification task.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG
- Journal
- Experimental IR Meets Multilinguality, Multimodality, and Interaction (CLEF 2026), LNCS 17087, pp. 92-102, Springer (2027)
- Comments
- Published in the proceedings of CLEF 2026. Code: https://github.com/petekirby/contrastive-av
Related papers
Is Sara Omar the true author of Dødevaskeren (The Dead Washer)? Authorship attribution in Danish literature
Shared title terminologycs.CLJacques Savoy
Rethinking the Evaluation of Contrastive Decoding for Hallucination Mitigation in Multimodal Large Language Models
Shared title terminologycs.CLTing Chen, Geng Li, Guohao Chen et al.
Where Does Retrieval-Based Open-Ended Evaluation Fail? Automatic Taxonomy Induction from Long-Form Medical Answer Factuality Verification
Shared title terminologycs.CLHeyuan Huang, Jirui Dai, Alexandra DeLucia et al.
What Changes When Fact-Verification Scores Improve? Evidence and Answer Accounting Across Trained Verifiers and LLMs
Shared title terminologycs.CLHan Chen, Yingrui Li
Blaming Across the Aisle: Political Contrasting and Blame Attribution in the Danish Parliament
Shared title terminologycs.CLMarkus Lundsfryd Jensen, Rune Egeskov Trust, Kenneth Christian Enevoldsen et al.