Abstract
Authorship Analysis (AA) traditionally relies on manual feature engineering, which is often domain-specific and labor-intensive. This paper introduces StyloMatrix, a neural network-based framework designed to automatically learn stylometric representations—digital fingerprints of writing style—from unlabeled text. By modeling language across topical, lexical, syntactic, and character levels, StyloMatrix captures multi-modal stylistic markers without human intervention. Evaluations on the PAN 2014 and ICWSM 2012 datasets demonstrate that this approach outperforms traditional baselines and state-of-the-art methods in authorship verification and sociolinguistic characterization.
Introduction
Authorship Analysis (AA) serves critical roles in cybercrime investigation, plagiarism detection, and marketing by identifying an author’s identity or traits (such as age or gender) from their writing. Historically, this field has been dominated by manual feature engineering, where researchers spend significant effort selecting specific n-grams, function words, or punctuation patterns. However, these hand-crafted features are often "brittle," failing to generalize across different domains—for instance, features optimized for 19th-century novels may fail on modern social media platforms. This research proposes a shift toward deep learning, enabling systems to learn relevant stylistic markers directly from data.
Methodology
The proposed framework, StyloMatrix, utilizes three distinct neural network models to capture different linguistic modalities:
- Joint Topical and Lexical Model: This model simulates the human sentence composition process by separating "what" is being said (Topical Bias) from "how" the author chooses to say it (Lexical Bias). It considers global topics, local sentence context, and personal word preferences.
- Character-Level Model: This captures morphology and "phoneme bias." It is particularly effective for informal text where non-standard spelling or character repetition (e.g., "niceeeeee") carries significant stylistic weight.
- Syntactic-Level Model: Instead of relying on raw Part-of-Speech (POS) tags, which can be biased by the tagging software, this model analyzes the relationships between neighboring POS bigrams to capture deep, habitual grammatical patterns.
The framework employs negative sampling to maintain training efficiency on large-scale datasets, allowing the model to learn by distinguishing an author's actual word choices from random "noise" words.
Experimental Setup
The researchers evaluated their models on two major benchmarks:
- PAN 2014 Authorship Verification: A dataset of English essays and novels used to determine if two anonymous documents were written by the same person.
- ICWSM 2012 Twitter Dataset: A collection of tweets from 1,170 users used for authorship characterization, specifically predicting age range, gender, and political orientation.
Results and Discussion
- Authorship Verification: On the PAN 2014 dataset, the Lexical+Topical model achieved an AUROC of 0.7950, significantly outperforming standard baselines like Latent Dirichlet Allocation (LDA) (0.5964) and specialized paragraph embedding models like PVDM (0.7412).
- Twitter Characterization: The model reached an average accuracy of 85.04% across all labels. Notably, it achieved 93.18% accuracy in predicting political orientation, surpassing previous state-of-the-art benchmarks that had access to external social network metadata (e.g., follower lists).
- Modality Robustness: The character-level model proved strongest for short, informal texts (tweets and novels), while the lexical and topical models dominated longer, formal essays.
Conclusion and Future Work
StyloMatrix demonstrates that writing style alone, when captured through multi-modal representation learning, is a powerful identifier that can surpass methods relying on manual features or social metadata. The core innovation lies in treating writing as a multi-layered decision process, allowing the system to isolate unique style from subject matter.
Future research will focus on extending these representations to morphologically richer languages beyond English and exploring more complex architectures, such as Recurrent Neural Networks (RNNs) or LSTMs, to better capture long-distance contextual relationships in text.
Summary updated