LLM one-shot style transfer for Authorship Attribution and Verification

Pablo Miralles-González, Javier Huertas-Tato, Alejandro Martín, David Camacho
10/15/2025
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Computational stylometry studies writing style through quantitative textual patterns, enabling applications such as authorship attribution, identity linking, and plagiarism detection. Existing supervised and contrastive approaches often rely on datasets with spurious correlations, conflating style with topic. Despite the relevance of language modeling to these tasks, the pre-training of modern large language models (LLMs) has been underutilized in general authorship analysis. We introduce an unsupervised framework that uses the log-probabilities of an LLM to measure style transferability between two texts. This framework takes advantage of the extensive CLM pre-training and in-context capabilities of modern LLMs. Our approach avoids explicit supervision with spuriously correlated data. Our method substantially outperforms unsupervised prompting-based baselines at similar model sizes and exceeds contrastively trained models when controlling for topical overlap. Our framework's performance improves with model size. In the case of authorship verification, we present an additional mechanism that increases test-time computation to improve accuracy; enabling flexible trade-offs between computational cost and task performance.

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. Any repos shown below are weak matches — 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{mirallesgonzlez2025oneshot,
  title  = {LLM one-shot style transfer for Authorship Attribution and Verification},
  author = {Pablo Miralles-González and Javier Huertas-Tato and Alejandro Martín and David Camacho},
  year   = {2025},
  eprint = {2510.13302},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.13302v3}
}

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/2510.13302.svg)](https://codeofpaper.com/paper/2510.13302)

Discussion