Abstract
Users posting online often expect to remain anonymous to discuss sensitive topics freely. However, individuals possess unique "stylometric fingerprints"—distinct writing patterns that can be analyzed to reveal their true identity even when they attempt to hide it. This paper proposes an automatic obfuscation approach that modifies text to align with the statistical average of general stylometric characteristics. By pushing a document toward these "mediocre" values, the text becomes less discriminative and harder to attribute to a specific author. The methodology involves three stages: calculating stylometric metrics, applying targeted transformations to reach average levels while preserving semantics, and adding random noise. This approach achieved the best performance on the Author Obfuscation task at the PAN-2016 competition.
Introduction
In an era of pervasive digital surveillance, anonymity is a prerequisite for free expression, particularly for whistleblowers, participants in witness protection programs, or individuals in restrictive political environments. Despite the use of pseudonyms, the field of stylometry—the statistical analysis of literary style—poses a significant threat to privacy. Every writer has a unique combination of sentence length, vocabulary breadth, and punctuation habits that forensic classifiers can use to identify them.
Existing automatic obfuscation tools often struggle with a three-way trade-off: Safety (the ability to fool a forensic classifier), Soundness (preserving the original meaning), and Sensibility (ensuring the text remains natural and readable). This paper introduces a "mediocrity approach," suggesting that the most effective way to hide one's identity is not to mimic someone else, but to write like everyone else.
The Mediocrity Approach
The core philosophy of this research is that the safest place to hide a stylistic signature is in the statistical center of a large corpus. By systematically neutralizing the unique peaks and valleys of a writer's style, the text becomes unremarkable and effectively "hides in plain sight."
The Three-Step Pipeline
To achieve this statistical neutrality, the authors developed a pipeline that won the PAN-2016 Author Obfuscation competition:
- Metric Calculation: The system first establishes the "average" for seven key stylometric metrics (such as word-to-token ratios and punctuation frequency) based on a reference corpus. It then calculates these same metrics for the target document to identify where the author deviates from the norm.
- Targeted Transformations: The system applies specific edits to push the document's metrics toward the average:
- Sentence Manipulation: Merging short sentences with conjunctions (e.g., "and," "as," "yet") or splitting excessively long ones.
- Word Substitution: Utilizing WordNet to replace unique vocabulary with common synonyms or hypernyms.
- Punctuation and Spelling: Adjusting the frequency of commas and semicolons, or even introducing common spelling mistakes to match the "average" error rate of the general population.
- Paraphrasing: Swapping phrases using the Paraphrase Database (PPDB) to alter structure while maintaining meaning.
- Noise and Generalization: Finally, the system adds "noise" to further mask identity, such as switching between British and American English conventions or expanding contractions (e.g., converting "don't" to "do not").
Refining the Process: Transformation Magnitude
A significant challenge in automated obfuscation is the risk of "overshooting." In earlier iterations of the system, the authors found that if a system identified a text as having too many commas and attempted to fix it, it might remove all of them, making the text equally identifiable for its lack of punctuation.
To solve this, the authors introduced Transformation Magnitude. This mechanism tracks the distance between the current metric value and the target average, applying edits more precisely. This ensures that the system does not trade one identifiable trait for another, significantly improving the "sensibility" and naturalness of the output.
Evaluation and Results
The system was evaluated using the PAN-2016 Author Obfuscation dataset (205 documents). To define the "average" writing style, the authors utilized the PAN-2016 training corpus and a diverse selection of public-domain books from Project Gutenberg, ranging from The Adventures of Sherlock Holmes to 19th-century medical manuals.
Key Findings
- Safety: The "Mediocrity Approach" proved highly effective, causing the highest drop in performance across 44 different authorship verification systems compared to competing obfuscation methods.
- Metric Alignment: The updated model successfully matched the target average exactly in four out of eight categories: Punctuation ratio, Uppercase ratio, Stop word ratio, and Number of nouns.
- The Multi-Objective Conflict: The research highlighted the difficulty of isolated changes; for example, replacing a word with its definition to change the word-type ratio inevitably alters the average sentence length, requiring a delicate balancing act.
Conclusion
While the mediocrity approach excels at "Safety," the authors acknowledge that "Sensibility" remains a hurdle. Automated transformations can occasionally result in awkward phrasing or minor grammatical slips. Future work will focus on moving beyond generic averaging toward Author Imitation—making a text look like it was written by a specific, different individual—and incorporating deep learning to handle more complex stylistic nuances. By refining these automated tools, the goal is to provide a robust shield for those who require true anonymity in their written communications.
Summary updated