Skip to main content
QUICK REVIEW

[Paper Review] Syntactic Recurrent Neural Network for Authorship Attribution

Fereshteh Jafariakinabad, Sansiri Tarnpradab|arXiv (Cornell University)|Feb 26, 2019
Authorship Attribution and ProfilingComputer Science32 references13 citations
TL;DR

This paper proposes a syntactic recurrent neural network that encodes document-level writing style by modeling part-of-speech (POS) tag sequences using both convolutional filters (for short-term dependencies) and LSTMs (for long-term dependencies), then aggregating sentence representations into a document-level embedding via RNNs. The model achieves 14% higher accuracy than lexical-based counterparts on the PAN 2012 authorship attribution dataset, demonstrating superior robustness to topic variation.

ABSTRACT

Writing style is a combination of consistent decisions at different levels of language production including lexical, syntactic, and structural associated to a specific author (or author groups). While lexical-based models have been widely explored in style-based text classification, relying on content makes the model less scalable when dealing with heterogeneous data comprised of various topics. On the other hand, syntactic models which are content-independent, are more robust against topic variance. In this paper, we introduce a syntactic recurrent neural network to encode the syntactic patterns of a document in a hierarchical structure. The model first learns the syntactic representation of sentences from the sequence of part-of-speech tags. For this purpose, we exploit both convolutional filters and long short-term memories to investigate the short-term and long-term dependencies of part-of-speech tags in the sentences. Subsequently, the syntactic representations of sentences are aggregated into document representation using recurrent neural networks. Our experimental results on PAN 2012 dataset for authorship attribution task shows that syntactic recurrent neural network outperforms the lexical model with the identical architecture by approximately 14% in terms of accuracy.

Motivation & Objective

  • To address the scalability limitations of lexical-based models in authorship attribution when dealing with diverse topics.
  • To develop a content-independent, syntactically grounded neural network that captures consistent writing style across documents.
  • To investigate the effectiveness of combining short-term (CNN) and long-term (LSTM) dependencies in POS tag sequences for style modeling.
  • To evaluate performance on short vs. long documents and compare syntactic vs. lexical modeling approaches.

Proposed method

  • The model first converts each sentence into a sequence of part-of-speech (POS) tags to extract syntactic patterns.
  • It employs a CNN layer to capture local, short-term syntactic n-grams from the POS sequence.
  • An LSTM layer is used to model long-term dependencies across the POS sequence, capturing global syntactic structure.
  • Sentence-level syntactic representations are aggregated into a document-level representation using a hierarchical RNN.
  • An attention mechanism is applied to emphasize sentences most informative for authorship detection.
  • The final document representation is used for classification via a fully connected layer with softmax output.

Experimental results

Research questions

  • RQ1Can a syntactic neural network outperform lexical-based models in authorship attribution, especially under topic variance?
  • RQ2How do short-term (CNN) and long-term (LSTM) modeling of POS sequences affect performance in style-based classification?
  • RQ3How does model performance vary when training on partial documents, particularly for short vs. long texts?
  • RQ4Which model architecture—CNN-LSTM or LSTM-LSTM—better captures authorial writing style in different document length regimes?

Key findings

  • The syntactic recurrent neural network achieved 100.00% document-level accuracy on the PAN 2012 test set, outperforming the best lexical model (85.71%).
  • Syntactic models improved segment-level accuracy by 14% over lexical models, indicating stronger generalization and robustness to topic variation.
  • The CNN-LSTM model slightly outperformed LSTM-LSTM by approximately 4% in segment-level accuracy, suggesting better capture of local syntactic n-grams.
  • For short documents (<30% of segments used in training), LSTM-LSTM models achieved higher test accuracy than CNN-LSTM, indicating faster style learning in low-data regimes.
  • Syntactic models showed higher recall across all classes, with both CNN-LSTM and LSTM-LSTM correctly classifying all 14 test documents.
  • Both syntactic models achieved perfect recall for most classes, though slight drops were observed for class 13, while lexical models struggled more with classes 1, 4, 7, 11, and 12.

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.