pipette
ESEspañol

Contrastive Learning for Authorship Verification

Peter Kirby

Preprint with a published versionCode available

In the authors' words

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.

Main resultThe abstract does not state a limitation.

Appeared: Thursday, September 24. arXiv. Preprint with a published version.

DOI: 10.1007/978-3-032-39150-6_7

Published version: Experimental IR Meets Multilinguality, Multimodality, and Interaction (CLEF 2026), LNCS 17087, pp. 92-102, Springer (2027)

Authors' comment: Published in the proceedings of CLEF 2026. Code: https://github.com/petekirby/contrastive-av