The Importance of Suppressing Domain Style in Authorship Analysis

Sebastian Bischoff, Niklas Deckers, Marcel Schliebs, Ben Thies, Matthias Hagen, Efstathios Stamatatos, Benno Stein, Martin PotthastarXiv 2020

TL;DR

This paper tackles the crucial problem of distinguishing an author's unique writing style from the stylistic conventions of a specific domain (like genre or topic). They introduce a novel experimental setup and a domain-adversarial learning approach that effectively separates authorial style from domain-specific cues, significantly improving authorship analysis robustness across different domains.

What Problem Does This Paper Address?

Authorship analysis, particularly author attribution (identifying the author of a text), relies on the assumption that each author has a unique writing style. However, a significant challenge is that writing style is influenced not only by an author's personality but also by the domain of the text (e.g., genre, topic, register). Traditional methods often struggle to disentangle these two influences, leading to models that might be good at recognizing domain-specific patterns rather than true authorial style. This makes them perform poorly when applied to texts from domains they weren't trained on. The paper aims to address this by developing methods that can reliably capture authorial style independently of domain-specific characteristics.

Methods

The core of the paper's contribution lies in its novel experimental setup and a new domain-adversarial learning approach.

  • Domain Swapping Experimental Setup: The authors propose two schemes, S1 and S2, to measure how well a model captures author style versus domain style. Scheme S1 represents a traditional within-domain setup. Scheme S2, however, swaps the domain-author relationships between training and testing. By comparing performance on S1 and S2, they can quantify the proportion of performance attributed to domain style.
  • Domain-Adversarial Learning: They adapt the domain-adversarial learning framework. The goal is to train a "writing style encoder" that produces representations useful for classifying authors but unhelpful for classifying domains. This is achieved by using a gradient reversal layer during training, which effectively trains the encoder to be domain-invariant.
  • Style Encoder Variants: Two neural network architectures for the style encoder are proposed:
  • Encoder 1: Uses an LSTM followed by a convolutional layer.
  • Encoder 2: Extends Encoder 1 by incorporating losses from intermediate LSTM steps, allowing for more detailed optimization of the style encoder's weights.
  • Heuristic Rules: They also compare their adversarial approach to existing heuristic methods that attempt to suppress domain style by manipulating text features (e.g., replacing tokens with asterisks).

Datasets

The authors introduce a large-scale, novel dataset derived from fanfiction.net.

  • Fanfiction Corpus: This corpus consists of approximately 5.8 million stories from 1.4 million authors across 10,328 different "fandoms" (treated as domains) and 44 languages. This is a significant expansion from previous datasets used for cross-domain authorship analysis.
  • Data Preparation: Rigorous cleaning was performed to remove author names, notes, and disclaimers. "Crossovers" combining multiple fandoms were excluded. The focus for experiments was on the English subset.

Key Insights and Ideas

  • Traditional methods are highly susceptible to domain style: Character trigram models, a common choice in authorship analysis, perform poorly when domain relationships are swapped between training and testing, indicating they heavily rely on domain-specific cues.
  • Domain-adversarial learning is effective: Their proposed method successfully suppresses domain style, leading to significantly more robust authorship attribution across different domains.
  • Heuristic rules offer a viable alternative: Existing heuristic methods for domain style suppression also show promise, suggesting that handcrafted rules can be a reasonable approach, especially when data is scarce.
  • The importance of a controlled evaluation: The paper highlights how traditional within-domain experiments can be misleading, as they don't reveal a model's true ability to capture authorial style independently of domain. The proposed domain-swapping setup is crucial for this.

Key Results

  • Performance drops under domain swapping: Traditional character trigram models (Naive Bayes, Random Forest, SVM) suffered accuracy drops of up to 55.4 percentage points when domain relationships were swapped.
  • Adversarial learning and heuristic rules mitigate drops: The domain-adversarial learning approach and heuristic rules reduced these accuracy losses to a mere 3.6% and 3.9%, respectively.
  • Generalizability of style encoders: The proposed style encoders demonstrated good generalizability across different fandoms, achieving accuracies around 92% even when the test fandom was unseen during training.
  • Domain-invariant style extraction: Experiments showed that the style extracted by their adversarial approach contained minimal usable domain information, as predicted by the model's design.

Limitations and Future Work

  • Data requirements for adversarial learning: The authors acknowledge that training their neural network models, especially the adversarial ones, requires a considerable amount of data. This could be a practical limitation in low-resource scenarios.
  • Future work on pre-trained models: They suggest that future research should focus on developing pre-trained style models (similar to BERT for language understanding) that can be fine-tuned for specific authorship analysis tasks, potentially reducing the need for massive datasets.
  • Adaptability of adversarial learning: While heuristic rules are effective, the authors believe their adversarial learning approach is more adaptable to new situations and domains.
  • Exploring more languages and authors: The current experiments primarily focus on English texts and a limited number of authors and fandoms. Future work could expand to more languages and a larger scale of authors.

Summary updated

BibTeX
@misc{bischoff2020importance,
  author = {Sebastian Bischoff and Niklas Deckers and Marcel Schliebs and Ben Thies and Matthias Hagen and Efstathios Stamatatos and Benno Stein and Martin Potthast},
  title = {{The Importance of Suppressing Domain Style in Authorship Analysis}},
  year = {2020},
  eprint = {2005.14714},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.14714},
}
Figure