Manuscript Offprint

arXiv:2610.03531

Author Representation Strategies for Zero-Shot Authorship Attribution: A Comparative Study of LLM-Based and Embedding-Based Approaches

Nudrat Habib, Tosin Adewumi, Sana Sabah Al-Azzawi, Marcus Liwicki, Elisa Barney

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Nudrat Habib a^{a}, Tosin Adewumi b^{b}, Sana Sabah Al-Azzawi c^{c}, Marcus Liwicki d^{d} and Elisa Barney e^{e}

Luleå University of Technology, Sweden

firstname.lastname@ltu.se

Keywords: Authorship Attribution, Zero-Shot Learning, Large Language Models.

Abstract: Authorship Attribution (AA) requires capturing fine-grained stylistic characteristics, making it particularly challenging in zero-shot (ZS) settings where no task-specific supervision is available. In this work, we investigate the effect of author representations on ZS AA by evaluating a label-only prompting baseline together with three author representation strategies: representative writing samples, LLM-generated descriptions, and style embeddings (LISA). The first three approaches perform attribution using LLM prompting, while the embedding-based approach uses style embeddings with cosine similarity. We investigate the influence of prompt design and propose a two-stage embedding-based attribution framework that combines candidate-space reduction with embedding-dimension selection. The results show that label-only ZS AA is ineffective, while incorporating author-specific representations consistently improves attribution performance. Among the evaluated approaches, the proposed two-stage LISA framework achieves the strongest overall performance, whereas LLM-generated style descriptions provide a substantially more compact representation of author style at the cost of some attribution performance. These findings demonstrate the importance of author representation in ZS AA, while indicating that current open-source LLMs remain insufficient for robust attribution without more effective representation learning.

1 Introduction

Authorship Attribution (AA) is the process of determining the likely author of a given text by analyzing linguistic patterns, stylistic cues, and structural characteristics Huang et al. (2025). It has important applications in areas such as forensic linguistics, cybersecurity (e.g., fraud and cybercrime detection), plagiarism detection, and digital content authentication Habib et al. (2026). Conventional AA methods are predominantly supervised, requiring labeled examples for each candidate author. Although effective in controlled environments, such approaches are data-intensive and often struggle to generalize across domains, genres, or writing conditions. This limitation motivates the exploration of alternative paradigms that reduce reliance on annotated data. Several paradigms have been proposed to reduce this dependency. In few-shot (FS) learning, the model is given a small number of task demonstrations K, while one-shot (OS) represents the special case where K=1. In contrast, zero-shot (ZS) relies solely on a natural language description of the task without any labeled examples (K=0) Brown et al. (2020).

Recent advances in LLMs have made ZS inference practical across a wide range of NLP tasks, making them a promising direction for AA in low-resource or zero-supervision settings. In the ZS setting, LLMs leverage knowledge acquired during pretraining together with instruction tuning, alignment mechanisms such as Reinforcement Learning from Human Feedback (RLHF), and the task prompt to perform inference. Together these mechanisms enable models to follow task instructions, generalize to unseen tasks, and perform in-context reasoning, leading to strong performance across tasks including machine translation, question answering, summarization, and sentiment analysis Radford et al. (2019).

Despite strong performance in ZS settings on tasks aligned with pretraining knowledge Brown et al.

a https://orcid.org/0009-0005-9310-1701

b https://orcid.org/0000-0002-5582-2031

c https://orcid.org/0000-0001-7924-4953

d https://orcid.org/0000-0003-4029-6574

e https://orcid.org/0000-0003-2039-3844

(2020), the applicability of LLMs in ZS setting to tasks requiring fine-grained stylistic discrimination remains unclear. The LLMs are sensitive to prompt design and may struggle without additional guidance. Several limitations of ZS learning across NLP tasks have been identified, particularly in settings that require complex reasoning, fine-grained evaluation, and robustness to domain shifts, where models are sensitive to prompt formulation, prone to hallucination, and less reliable in domain-specific or low-resource scenarios due to gaps in pre-training coverage Ramesh et al. (2025). Although AA is not explicitly discussed, the need for stable and subtle stylistic discrimination in AA aligns with the types of tasks identified as challenging for ZS approaches. For such challenging tasks, variants of ZS prompting have been proposed. One such formulation distinguishes between ZS settings with and without definitions in the context of fallacy classification Pan et al. (2024). In the definition-free setting, the model receives only label names and must infer their meanings implicitly. In the definition-based setting, each label includes a natural-language explanation, providing semantic guidance without using labeled examples, thus preserving the ZS nature of inference.

Following the formulation in Pan et al. (2024), we distinguish between two ZS settings in this work. We define a true ZS setting, where only candidate author labels are provided, and a definition-enhanced ZS setting, where candidate authors are supplemented with author representations but no labeled attribution examples or task-specific fine-tuning are used. Under this definition, both settings preserve the ZS nature of inference. We then investigate these settings for AA through different author representation strategies. Our goal is to evaluate whether AA can be performed without supervised training and whether providing explicit author representations improves attribution performance.

This work aims to address the following research questions.

• RQ1: Can AA be performed effectively in a true ZS setting without task-specific fine-tuning?

• RQ2: Does augmenting ZS AA with author-related definitions improve attribution performance, and how do different definition strategies compare?

• RQ3: How do different prompt formulations influence author description generation and ZS AA performance?

Our contributions are as follows:

• We evaluate AA using LLMs in a true ZS setting without task-specific fine-tuning or labeled training data.

• We adapt and extend the definition-enhanced ZS paradigm to AA by extending traditional label-only prompting with three definition strategies: sample-based definitions, LLM-generated descriptions, and style-based embeddings.

• We evaluate the impact of different definition strategies on attribution performance, providing insights into their effectiveness for capturing author-specific stylistic signals.

• We investigate the role of prompt design in both author description generation and AA. We design four prompts for generating author descriptions and evaluate them together with four attribution prompts adapted from prior work.

• We present a unified evaluation framework for comparing label-only prompting and three definition strategies under consistent experimental settings for ZS AA.

The rest of the paper is organized as follows. Section 2 presents the literature review, Section 3 describes the methodology, Section 4 presents the results and discussion and Section 5 concludes the paper.

References (23)

  • On the limitations of large language models (LLMs): False attribution
  • Latent space interpretation for stylistic analysis and explainable authorship attribution
  • Authors' writing styles based authorship identification system using the text representation vector
  • Language models are few-shot learners
  • LLMs in short answer scoring: Limitations and promise of zero-shot and few-shot approaches
  • Sui generis: Large language models for authorship attribution and verification in Latin
  • Trends and Challenges in Authorship Analysis: A Review of ML, DL, and LLM Approaches
  • A Bayesian approach to harnessing the power of LLMs in authorship attribution
  • Can large language models identify authorship? In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 445–460
  • Authorship attribution in the era of LLMs: Problems, methodologies, and challenges
  • The enron corpus: A new dataset for email classification research
  • An empirical analysis of the writing styles of persona-assigned
  • Are LLMs good zero-shot fallacy classifiers? In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 14338–14364
  • Learning interpretable style embeddings via prompting LLMs
  • Language models are unsupervised multitask learners
  • A review on NLP zero-shot and few-shot learning: methods and applications
  • Textsettr: Few-shot text style extraction and tunable targeted restyling
  • Effects of age and gender on blogging
  • Open-world authorship attribution
  • Capturing style in author and document representation (opens arXiv in a new tab)
  • Eliminating position bias of language models: A mechanistic approach
  • Qwen2 Technical Report
  • Large language models are not robust multiple choice selectors