Skip to main content
QUICK REVIEW

[Paper Review] Authorship Attribution Using a Neural Network Language Model

Zhenhao Ge, Yufang Sun|arXiv (Cornell University)|Feb 17, 2016
Authorship Attribution and ProfilingComputer Science4 references9 citations
TL;DR

This paper proposes a feed-forward neural network language model (NNLM) for authorship attribution using limited text data, outperforming traditional N-gram models with Kneser-Ney smoothing. The method achieves a 3.43% average accuracy gain and 2.5% perplexity reduction on test sets with as few as five sentences, demonstrating strong performance even under data constraints.

ABSTRACT

In practice, training language models for individual authors is often expensive because of limited data resources. In such cases, Neural Network Language Models (NNLMs), generally outperform the traditional non-parametric N-gram models. Here we investigate the performance of a feed-forward NNLM on an authorship attribution problem, with moderate author set size and relatively limited data. We also consider how the text topics impact performance. Compared with a well-constructed N-gram baseline method with Kneser-Ney smoothing, the proposed method achieves nearly 2:5% reduction in perplexity and increases author classification accuracy by 3:43% on average, given as few as 5 test sentences. The performance is very competitive with the state of the art in terms of accuracy and demand on test data. The source code, preprocessed datasets, a detailed description of the methodology and results are available at https://github.com/zge/authorship-attribution.

Motivation & Objective

  • To improve authorship attribution accuracy in low-data regimes where traditional language models struggle.
  • To evaluate the effectiveness of a feed-forward NNLM compared to conventional N-gram models with Kneser-Ney smoothing.
  • To investigate the impact of text topics on author classification performance.
  • To develop a computationally efficient, customizable NNLM framework suitable for limited data scenarios.
  • To provide open-source code and datasets for reproducibility and further research.

Proposed method

  • A feed-forward neural network language model is trained using a 4-gram context to predict the next word, with word embeddings learned through backpropagation.
  • Word inputs are represented as one-hot vectors and projected into dense distributed representations via an embedding layer.
  • The model uses a hidden sigmoid layer followed by a softmax output layer to predict word probabilities, with training guided by a multinomial cross-entropy loss function.
  • Model parameters such as learning rate, momentum, and hidden layer size are tuned per author to optimize performance.
  • Text data from 16 Coursera courses in STEM fields are preprocessed using Porter stemming and word frequency pruning to reduce vocabulary size to 1800–2700 words per author.
  • The dataset is split into 80% training, 10% validation, and 10% test sets, with 10 random splits to compute mean and variance of performance metrics.

Experimental results

Research questions

  • RQ1How does a feed-forward NNLM compare to a well-tuned N-gram baseline with Kneser-Ney smoothing in authorship attribution under limited data?
  • RQ2To what extent does the topic of text influence the performance of authorship attribution models?
  • RQ3Can a computationally efficient feed-forward NNLM achieve competitive results with minimal training data?
  • RQ4How does model performance vary with the number of test sentences used for classification?
  • RQ5Does the NNLM show greater sensitivity to authorial style or topic-specific patterns compared to traditional N-grams?

Key findings

  • The proposed NNLM achieved a 3.43% average increase in author classification accuracy compared to the N-gram baseline with Kneser-Ney smoothing.
  • The NNLM reduced perplexity by 2.5% on average, achieving a mean perplexity of 67.3 ± 2.4 compared to 69.0 ± 2.4 for the N-gram model.
  • With as few as five test sentences, the NNLM maintained strong performance, demonstrating robustness to low data volume.
  • The model showed higher confusion between two courses taught by the same instructor, indicating it is more sensitive to authorial style than topic.
  • Performance remained consistently competitive with state-of-the-art methods, particularly given the limited number of authors and consistent training/test data distribution.
  • The results suggest that topic consistency across training and test sets may reduce the challenge of the dataset, potentially limiting the observed performance gap.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.