On the State of the Art in Authorship Attribution and Authorship Verification

Jacob Tyo, Bhuwan Dhingra, Zachary C. LiptonarXiv 2022 · DOI

Abstract

This paper introduces VALLA, a standardized benchmark designed to bring order to the fragmented field of authorship analysis. By evaluating eight prominent methods across fifteen datasets, the authors reveal a surprising reality: while deep learning dominates most of natural language processing (NLP), traditional N-gram models still outperform BERT on the majority of authorship attribution tasks, especially when data per author is limited.

Introduction

Authorship analysis—the process of determining a text's author based on stylistic "fingerprints" or stylometry—is a critical tool in forensic linguistics, cybersecurity, and social media monitoring. Despite its importance, the field has long suffered from a lack of standardization. Researchers frequently employ inconsistent dataset splits, varying filtering methods, and mismatched evaluation metrics, making it difficult to identify the true state of the art.

The field is primarily divided into two tasks:

  1. Authorship Attribution (AA): A multi-class classification problem where a text is assigned to one of several known candidate authors.
  2. Authorship Verification (AV): A binary classification task determining whether two different texts were written by the same individual.

To address these challenges, the authors propose the VALLA benchmark, a unified framework for evaluating modern authorship analysis models.

Methods

The VALLA benchmark standardizes 15 datasets with uniform metrics and splits. The researchers evaluated a diverse range of methodologies, categorized into feature-based, embedding-based, and hybrid approaches.

Hierarchy of authorship analysis methods, distinguishing between traditional feature-based techniques and modern embedding-based models.
  • Feature-Based: These include traditional N-gram models (character and POS n-grams) and Prediction by Partial Matching (PPM) compression schemes.
  • Embedding-Based: This category covers neural architectures such as Hierarchical LSTMs (HLSTM) and Transformer-based models like BERT.
  • Hybrid Approaches: The per-Author Language Model (pALM) utilizes BERT to calculate perplexity for each known author, combining neural power with per-author modeling.

A significant methodological focus was Hard-Negative Mining (HNM). The authors demonstrate that training AV models on "hard" examples—texts that are stylistically similar but written by different people—can significantly improve the performance of verification models when applied to attribution problems.

Datasets

The study utilizes a comprehensive suite of small, medium, and large-scale datasets to test model robustness across various domains and document lengths.

Summary of the datasets included in the VALLA benchmark, detailing text types, settings, and statistical properties like word counts and author counts.

Key datasets include:

  • Classic Benchmarks: CCAT50 (news), IMDb62 (reviews), and Blogs50.
  • Domain-Shift Sets: Guardian (opinion) and CMCC, which introduce cross-topic and cross-genre challenges.
  • The Gutenberg Dataset: A major contribution of this work, this large-scale dataset sourced from Project Gutenberg contains nearly 2 billion words across 4.5k authors. With an average document length of approximately 66,000 words, it serves as a rigorous stress test for long-form authorship analysis.

Key Insights and Results

The evaluation yielded several critical insights into the current state of authorship analysis:

The N-gram Surprise

In a surprising finding, traditional N-gram models outperformed BERT in 5 out of 7 AA tasks. The N-gram model achieved an average macro-accuracy of 76.50%, compared to 66.71% for the BERT-based model. Deep learning models only took the lead when the volume of text per author was exceptionally large (exceeding 100,000 words).

Verification vs. Attribution

While N-grams dominate attribution, deep learning models (HLSTM and BERT) excel at Authorship Verification. On the PAN21 verification task, BERT and HLSTM achieved high AUCs of 0.9709 and 0.9693, respectively. Furthermore, the authors showed that AV models are not "drop-in" replacements for AA; however, applying Hard-Negative Mining to a BERT verification model boosted its attribution accuracy on the Blogs50 dataset from 67.21% to 72.42%.

Robustness to Topic Shift

Traditional N-gram methods proved more robust when the topic or genre changed between training and testing data. Neural models tended to "overfit" to the topic rather than capturing the underlying stylistic nuances of the author.

Conclusion

The VALLA benchmark provides a necessary foundation for standardized research in authorship analysis. The findings highlight that while Transformers are powerful, traditional stylometric features remain highly competitive, particularly in data-constrained environments. Future work should focus on developing "universal" authorship representations and investigating how to integrate the stylistic inductive biases of N-grams into modern Transformer architectures to improve robustness against topic confusion.

Summary updated

BibTeX
@misc{tyo2022state,
  author = {Jacob Tyo and Bhuwan Dhingra and Zachary C. Lipton},
  title = {{On the State of the Art in Authorship Attribution and Authorship Verification}},
  year = {2022},
  eprint = {2209.06869},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.06869},
}
Figure