arXiv:2611.07111cs.CLNov 2026

Manuscript Offprint

arXiv:2611.07111

Consistent yet Contextual: Learning Author-Level Mixtures of Style for Authorship Attribution

Omkar Yadav, Michael Jiang, Kenan Alkiek, Jian Zhu, David Jurgens

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

Omkar Yadav

University of Michigan

oyadav@umich.edu

Michael Jiang

University of Michigan

mjjiang@umich.edu

Kenan Alkiek

University of Michigan

kalkiek@umich.edu

Jian Zhu

University of British Columbia

jian.zhu@ubc.ca

David Jurgens

University of Michigan

jurgens@umich.edu

Abstract

Approaches to authorship verification or attribution typically model the style of a document, asking whether two documents were likely written by the same author. While recent approaches have been performant, such approaches largely ignore modeling the authors themselves and how varied their style is. Here, we introduce multiple alternatives for modeling the author and demonstrate that allowing an author's representation to capture multiple consistent but distinct writing styles yields significant performance improvements. Using our new authorship model, we then examine when an author writes in a way that is most idiomatic of their style across four scenarios: (i) variation in the size of their writing audiences, (ii) temporal distance from when the model was trained, (iii) the effect of preceding context, and (iv) the effect of genre norms on style. Across all four experiments, we demonstrate that authors vary substantially in how idiolectic their writing is. Our results have clear implications for both the modeling and data used for authorship verification and attribution, showing that authors need to be represented with their multiple styles and that some settings produce text that is much more informative about who wrote that text.

1 Introduction

Many authors have a distinct writing style that is unique to them. Models for authorship attribution or verification attempt to identify who wrote a particular document by identifying this style, known as the author's idiolect (George, 1990). Such models have proven useful for identifying who wrote historical documents (Holmes and Forsyth, 1995), identifying sockpuppet accounts (Solorio et al., 2013; Weerasinghe et al., 2022), and identifying forged documents (Silva et al., 2024). Commonly, computational approaches to authorship attribution¹ focus on the task of document representation, where

Figure

Figure 1: In authorship attribution, documents (above: circles) are embedded as style vectors. Most approaches attribute a new document (the empty circle) to the nearest neighbor or an author's centroid (stars). However, these methods overlook that authors often employ multiple styles. For instance, the new document here is nearest the blue author, even though fuchsia is the likely true source. Here, we develop models designed to mitigate this stylistic complexity.

models are trained to recover an author's stylistic signature from the text. As a result, modern approaches frame the task as whether two documents are written by the same author (Tyo et al., 2022), learning to represent documents by the same author so that they are nearby in the document space (Boenninghoff et al., 2019; Rivera-Soto et al., 2021). Such models implicitly assume that authors are best modeled as documents, with the attribution task reduced to whether a new document's representation is near the author's other documents. However, such approaches ignore systematic variation and that an author's own idiolect might naturally have multiple substyles, depending on context. Here, we approach attribution by learning a model of the author themselves—rather than just documents—to capture an author's natural stylistic diversity.

Authorship attribution and verification models have traditionally focused on identifying distinguishing and systematic stylistic differences in how an author writes documents (Stamatatos, 2009). In forensic linguistics, stylometry, and stylometrics,

¹The task of authorship attribution identifies which of k authors wrote the document and can be framed as either a

classification or, more recently, a retrieval (ranking) based problem (Stamatatos, 2009).

style is represented using function word frequencies or manually curated syntactic patterns (Garcia and Martin, 2006; Brocardo et al., 2013; Tschuggnall and Specht, 2014). More recent work has focused on using contrastive learning methods to learn document representations where documents by the same author are located near each other (Boenninghoff et al., 2019; Fincke and Boschee, 2024). In general, approaches project a document into a latent style space and identify an author using the authorship of documents nearby in that space. However, as seen in Figure 1, such approaches can overlook the regularity and distribution of an author's style, where a single author may have multiple distinct styles that can cause a document-level approach to misattribute authorship.

Here, we aim to learn representations of authors that explicitly model any natural variation. Our study is motivated by this prior work in showing that authors are sensitive to context in how they communicate (Kestemont et al., 2018; Halvani et al., 2016; Sundararajan and Woodard, 2018), which strongly suggests that authors may have regular but dissimilar styles according to context. To study idiolectic variation, we learn models for 40K authors using 3M documents across four diverse corpora. Using four different models for authorship representation, we demonstrate that modeling the author leads to significant performance gains. Using our most accurate model of authorship, we then quantify how authors vary in their stylistic behavior in different contexts—i.e., when do authors write most like themselves? In four tests across audience, time, context, and genre, we demonstrate that authors reliably shift styles.

Our work has the following contributions. First, we demonstrate that modeling the author's systematic style variation yields a significant performance improvement, regardless of how a document's style is represented. Second, downstream analyses demonstrate that context is critical for accurate attribution: (1) authors vary more in style when writing across diverse contexts, (2) in settings with strong genre norms, authors are most distinctive in contexts where they have more stylistic flexibility, (3) in most settings, an author's style changes as they age, drifting from their earlier forms, and (4) surprisingly, in a negative result, authors do not shift their style when writing replies to another author. These results emphasize that the "where" of a text is essential to accurate attribution. All code will be released (CC-by-SA 4.0).

References (27)