Contrastive Learning for Authorship Verification

Peter Kirby
9/23/2026
cs.CLcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kirby2026contrastive,
  title  = {Contrastive Learning for Authorship Verification},
  author = {Peter Kirby},
  year   = {2026},
  eprint = {2609.28471},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.28471v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.28471.svg)](https://codeofpaper.com/paper/2609.28471)

Discussion