Topic-Regularized Authorship Representation Learning

Jitkapat Sawatphol, Nonthakit Chaiwong, Can Udomcharoenchaikit, Sarana NutanongEMNLP 2022

Introduction

Authorship attribution—the task of identifying the author of a given text—is a cornerstone of computational linguistics with applications ranging from forensic linguistics to plagiarism detection. While deep learning models have achieved high accuracy in closed-set scenarios where training and testing data share similar topical distributions, they often fail to generalize across topics. This failure typically stems from the model's tendency to conflate an author's unique stylistic signature with the specific subject matter of their writing.

The Challenge: Topic as a Shortcut

Most authorship representation models face two primary hurdles: the open-set problem (identifying authors not seen during training) and the cross-topic problem (identifying an author when they write about a new subject). Neural networks are inherently "lazy" and often utilize topical keywords as shortcuts for identification. For instance, a model might associate the word "molecule" with a specific science writer, failing to recognize that same author's style in a different context, such as a cooking blog. To address this, researchers from VISTEC proposed a method to decouple stylistic features from topical noise.

Methodology: Authorship Representation Regularization (ARR)

The researchers introduced Authorship Representation Regularization (ARR), a distillation-based framework designed to force models to ignore topical cues and focus on linguistic style. The process consists of three main stages:

  1. Base Model Construction: A standard encoder (e.g., sBERT) is trained on a large authorship dataset to establish a baseline representation.
  2. Topic Regularization (The Bias Model): A simple TF-IDF model serves as a proxy for topic. By calculating similarity scores between texts based on word frequency, the system identifies potential topical overlaps that might bias the base model.
  3. Distillation: A "Target Model" is trained via self-distillation. It learns to match the base model's predictions, but these predictions are regularized by a bias score ($B$). If the base model's confidence is suspected to be derived from topical similarity, the distillation process instructs the target model to reduce that confidence, forcing it to seek out non-topical stylistic features like syntax and rhythm.
The ARR framework overview, illustrating the interaction between the base model, the TF-IDF bias model, and the target model distillation process.

Experimental Evaluation

The ARR framework was evaluated using three diverse datasets: Amazon Reviews (categorized by product types), Reddit (categorized by subreddits), and Fanfiction (categorized by fandoms). The researchers employed a rigorous cross-topic-open-set split, ensuring that both authors and topics in the test set were entirely absent from the training phase.

Results and Analysis

The experiments compared ARR against strong baselines, including Multiclass Log Loss (MLL) and Contrastive Loss (CL). The results demonstrated that ARR significantly enhances robustness in cross-topic scenarios. Specifically, ARR improved performance in 4 out of 6 cross-topic test cases. On the Reddit and Fanfiction datasets, the MLL baseline saw an average improvement of 6.95% in Recall@8 and 8.7% in Mean Reciprocal Rank (MRR).

Performance comparison on cross-topic test sets across Amazon, Reddit, and Fanfiction datasets, highlighting the gains achieved by adding ARR to standard baselines.

While the regularization process leads to a slight decrease in performance on "in-distribution" data (where topics are known), it provides a critical advantage for real-world applications where the topic of a text is unpredictable. The method is also model-agnostic, making it a versatile tool for enhancing various authorship encoder architectures.

Conclusion

Topic-Regularized Authorship Representation Learning represents a significant step toward universal style embeddings. By using a "primitive" TF-IDF model to regularize sophisticated Transformers, the ARR framework successfully mitigates topical bias. Future work will explore more distinct data splits and the application of these techniques to morphologically rich languages beyond English.

Reference: Sawatphol, J., Chaiwong, N., Udomcharoenchaikit, C., & Nutanong, S. (2022). Topic-Regularized Authorship Representation Learning. Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing (EMNLP), 1076–1082.

Summary updated

BibTeX
@inproceedings{sawatphol2022topic,
  author = {Jitkapat Sawatphol and Nonthakit Chaiwong and Can Udomcharoenchaikit and Sarana Nutanong},
  title = {{Topic-Regularized Authorship Representation Learning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.70},
}
Figure