Character-level and Multi-channel Convolutional Neural Networks for Large-scale Authorship Attribution

Sebastian Ruder, Parsa Ghaffari, John G. BreslinarXiv 2016 · OpenReview

TL;DR

This paper introduces character-level and multi-channel Convolutional Neural Networks (CNNs) for large-scale authorship attribution, outperforming traditional methods on four out of five datasets. They demonstrate that CNNs can efficiently identify authors even with thousands of candidates, offering a faster and more scalable solution for applications like plagiarism detection and content moderation.

What Problem Does This Paper Address?

Authorship attribution, the task of identifying an author from a piece of text, is crucial for various applications like plagiarism detection, copyright enforcement, and even forensic linguistics. Traditional methods often rely on low-level features like character n-grams or bag-of-words. While effective, these methods can be computationally expensive, especially when dealing with a large number of potential authors (thousands) or in scenarios requiring rapid predictions (e.g., real-time content moderation). Existing deep learning approaches have shown promise, but there's a need for models that can efficiently handle large-scale attribution and leverage both stylistic (character-level) and topical (word-level) information.

Methods

The core of this paper is the application and adaptation of Convolutional Neural Networks (CNNs) for authorship attribution. The authors explore several CNN architectures:

  • CNN-word: A standard CNN using word embeddings.
  • CNN-char: A CNN that operates directly on character embeddings, capturing subtle stylistic nuances.
  • CNN-word-word: A multi-channel CNN combining static and non-static word embeddings.
  • CNN-word-char: A novel hybrid-channel CNN that integrates both non-static word and character embeddings.
  • CNN-word-word-char: A hybrid-channel CNN incorporating static word, non-static word, and character embeddings.

The CNN architecture involves convolutional layers that slide filters over input channels (words or characters) to extract features. Max-over-time pooling is then used to condense these features, followed by a softmax layer for author classification. A key innovation is the use of character-level convolutions, which are particularly adept at capturing an author's unique writing style, often embedded in punctuation, spacing, and word choices that might be missed by word-level models. The hybrid models aim to combine the stylistic insights from character-level features with the topical information from word-level features.

Datasets

The authors evaluate their models on several existing datasets and introduce two new ones:

  • Enron email dataset: Approximately 80,852 emails from 144 authors.
  • IMDb62 dataset: 62,000 movie reviews from 62 authors.
  • Blog authorship dataset: 681,288 blog posts from 19,320 authors.
  • Twitter influencer dataset (new): Over 1 million tweets from 4,391 celebrity and power-user influencers.
  • Reddit gaming dataset (new): 2 million comments from prolific users of the /r/Gaming subreddit.

The new Twitter and Reddit datasets are made publicly available for future research.

Key Insights and Ideas

  • Character-level CNNs are powerful for style: The paper strongly suggests that CNNs operating at the character level are highly effective at capturing authorial style, outperforming traditional methods on several datasets, especially for short-text domains.
  • Hybrid models offer a balanced approach: Combining word and character channels in CNNs allows the models to leverage both topical content and stylistic features, leading to improved performance in domains where topical information is important.
  • Scalability is a major advantage: CNNs offer a significant speedup in prediction time compared to traditional methods, making them suitable for large-scale, real-time authorship attribution tasks.
  • Reddit presents a unique challenge: The Reddit dataset proved particularly difficult, highlighting the need for further research into how users adapt their style in interactive, community-focused environments versus broadcast-style platforms like Twitter.

Key Results

  • Character-level CNNs (specifically CNN-char and CNN-word-char) achieved state-of-the-art results on four out of five datasets.
  • On the Enron email dataset, CNNs outperformed comparison methods by over 6% for 10 authors and by over 16% for 144 authors compared to SCAP.
  • The hybrid CNN models (CNN-word-char and CNN-word-word-char) consistently outperformed simpler CNN variants and traditional methods across most datasets.
  • CNNs demonstrated strong performance even with imbalanced class distributions (varying numbers of documents per author), a common issue in real-world authorship attribution.
  • The paper presents the first application of authorship attribution to Reddit comments.

Limitations and Future Work

  • Twitter domain bias: The authors note that the Twitter dataset might have a bias due to the nature of influencer communication (e.g., use of hashtags, mentions) and the distinct language used by celebrities. Future work could explore how to mitigate this bias or investigate stylistic differences between regular users and influencers.
  • Reddit domain complexity: The poor performance on Reddit suggests that the interactive and often ironic nature of comments requires further investigation. Future research could explore how users shift their style in different subreddits and the impact of irony on attribution.
  • Model expressiveness: For domains like Twitter where SCAP performed well, the authors suggest that making CNNs more expressive (e.g., by adding more layers) or interpolating with n-grams might improve performance.
  • Dataset creation: The authors introduce new Twitter and Reddit datasets, which can be used for further research into authorship attribution on these platforms.

Summary updated

Abstract

Convolutional neural networks (CNNs) have demonstrated superior capability for extracting information from raw signals in computer vision. Recently, character-level and multi-channel CNNs have exhibited excellent performance for sentence classification tasks. We apply CNNs to large-scale authorship attribution, which aims to determine an unknown text's author among many candidate authors, motivated by their ability to process character-level signals and to differentiate between a large number of classes, while making fast predictions in comparison to state-of-the-art approaches. We extensively evaluate CNN-based approaches that leverage word and character channels and compare them against state-of-the-art methods for a large range of author numbers, shedding new light on traditional approaches. We show that character-level CNNs outperform the state-of-the-art on four out of five datasets in different domains. Additionally, we present the first application of authorship attribution to reddit.
BibTeX
@misc{ruder2016character,
  author = {Sebastian Ruder and Parsa Ghaffari and John G. Breslin},
  title = {{Character-level and Multi-channel Convolutional Neural Networks for Large-scale Authorship Attribution}},
  year = {2016},
  eprint = {1609.06686},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.06686},
}
Figure