Authorship Attribution Using Word Network Features

Shibamouli Lahiri, Rada MihalceaarXiv 2013

Introduction

Authorship attribution—the task of identifying the creator of a text based on stylistic markers—has traditionally relied on lexical statistics such as word frequencies or n-gram distributions. While effective, these methods often overlook the structural relationships between words. This paper explores a novel graph-theoretic approach that represents documents as "word networks," where nodes are unique words and edges represent their adjacency in the text. By analyzing the topology of these networks, researchers aim to uncover a robust authorial "fingerprint" that transcends simple word counts.

Methodology: Constructing Word Networks

The core of this approach lies in transforming linear text into a directed graph. In a word network, each unique word is represented as a node. A directed edge is drawn from Word A to Word B if Word B immediately follows Word A in the document. Notably, the researchers chose to retain stopwords and avoid stemming, as these common words often carry significant stylistic information when viewed through their structural connections.

A directed word network representing the sentence "the quick brown fox jumped over the lazy dog."

The study evaluates two categories of features:

  1. Global Summary Features: Metrics describing the entire graph's topology, such as the number of strongly connected components or the global clustering coefficient.
  2. Local Node-Level Features: Metrics calculated for specific "representative words" (e.g., the most frequent words in the corpus). These include In/Out-degree, Coreness (the depth of a word within the network's core), and Neighborhood Size (the number of unique adjacent words).

Experimental Setup and Datasets

The methodology was tested across three diverse datasets to ensure generalizability:

  • Project Gutenberg: A large-scale dataset featuring over 3,000 e-books by 142 authors.
  • AAAC (Ad-hoc Authorship Attribution Competition): A set of "closed-class" problems with a limited number of candidate authors.
  • PAN 2012: Standard benchmark datasets from the established PAN competition.

Classifiers such as 1-Nearest Neighbor (1NN) and Logit Boost were used to compare the performance of network features against a standard Term Frequency (TF) baseline.

Key Results and Discussion

The experimental results demonstrate that local network features are significantly more predictive than global summary statistics. While global metrics often fail to surpass simple word counts, the structural roles of individual words—particularly stopwords—provide a powerful signal.

Best cross-validation accuracy achieved on the Project Gutenberg dataset as a function of the number of top frequent words (k) considered.

As shown in the table above, performance scales with the size of the representative word set. On the Project Gutenberg dataset, the system achieved a peak accuracy of 76.78% in a 142-way classification task using the top 1,000 words. The researchers found that "neighborhood size" and "coreness" emerged as the most predictive features, often outranking raw frequency. Interestingly, the local clustering coefficient performed poorly, likely because it "smooths" the fine-grained variations necessary for distinguishing between authors.

The success of these features highlights that how an author connects words is often more telling than how often they use them. For instance, the network properties of words like "until" or "by" were found to be more informative than their raw frequencies.

Conclusion

This research confirms that the topology of word networks serves as a robust stylistic signature. By focusing on the structural role of words within a text, graph-theoretic features offer a sophisticated complement to traditional NLP methods. Future work will investigate the synergy between different local features and explore one-vs-all classification strategies to further scale the approach for massive datasets.

Summary updated

BibTeX
@misc{lahiri2013authorship,
  author = {Shibamouli Lahiri and Rada Mihalcea},
  title = {{Authorship Attribution Using Word Network Features}},
  year = {2013},
  eprint = {1311.2978},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1311.2978},
}
Figure