Abstract
Identifying pseudepigrapha—texts falsely attributed to an author—is a significant challenge in literary forensics and computational linguistics. This paper presents an unsupervised approach to outlier detection using "second-order similarity" based on the Impostors Method. By evaluating document similarity against a background of external "impostor" texts, the proposed method effectively isolates non-authentic documents within a corpus. Experimental results on modern blog posts and the Shakespearean canon demonstrate that this technique significantly outperforms traditional first-order distance metrics.
Introduction
The "Shakespeare attribution problem" exemplifies the historical and technical difficulty of verifying authorship in a supposedly single-author corpus. Traditional computational methods often rely on supervised learning, requiring a "clean" set of known authentic texts. However, in many real-world scenarios, the authenticity of the entire corpus is under question. This study addresses the unsupervised identification of pseudepigrapha: documents that are statistical outliers relative to the stylistic norms of a collection.
Methodology: The Impostors Method
The core innovation lies in replacing standard "first-order" similarity measures (e.g., Cosine or Euclidean distance) with a more robust "second-order" similarity derived from the Impostors Method (IM).
For any two documents $d_1$ and $d_2$, the IM-based similarity is calculated through a competitive process:
- Impostor Selection: A set of random "impostor" documents from the same genre and language is introduced.
- Feature Bootstrapping: A random subset (typically 40%) of linguistic features, such as word frequencies, is selected.
- Similarity Competition: In each iteration, the system determines if $d_1$ is more similar to $d_2$ than to any impostor.
- Scoring: The final similarity score is the proportion of iterations where $d_1$ and $d_2$ are grouped together.
To identify outliers, the system calculates pairwise similarities for the entire corpus and applies $k$-Nearest Neighbors ($k$-NN) aggregation. A document's outlier score is its average similarity to its closest neighbors; those with low scores—indicating they lack stylistic "friends" even when compared to background noise—are flagged as pseudepigraphic.
Experimental Evaluation
The method was tested on two distinct datasets:
- The Blog Corpus: 3,540 posts from 156 authors. Trials were constructed by mixing authentic posts with 1–3 "intruder" posts.
- The Shakespeare Corpus: 42 plays attributed to William Shakespeare, supplemented with known pseudepigrapha (e.g., A Yorkshire Tragedy) and plays by contemporaries like Thomas Kyd.
Performance and Decisiveness
The second-order method demonstrated superior performance across all tests. Unlike standard metrics that often produce ambiguous results, the IM-based similarity is "decisive," pushing scores toward the extremes of 0 (definitely different) or 1 (definitely the same). This self-normalizing property makes it highly effective for outlier detection.
As shown in Figure 1, the second-order approach consistently yields higher Breakeven points than its first-order counterparts. Furthermore, the Precision-Recall curves illustrate a substantial performance gap, with the second-order variants maintaining significantly higher precision across the recall spectrum.
Results and Discussion
In the Shakespearean trials, the system successfully identified the two Thomas Kyd plays and three known pseudepigrapha as the most significant outliers. Interestingly, certain canonical plays like The Merry Wives of Windsor and Julius Caesar were also flagged as outliers. These findings suggest that while the method is highly sensitive to authorship, it can also detect significant stylistic shifts or potential collaborations, providing a valuable tool for literary scholars.
Conclusion
By shifting from direct distance measurements to a second-order similarity based on competition with impostors, this research provides a powerful unsupervised framework for identifying literary impostors. Future work will focus on refining impostor selection and exploring the impact of genre-specific stylistic variations.
Summary updated