Layered Insights: Generalizable Analysis of Authorial Style by Leveraging All Transformer Layers

Milad Alshomary, Nikhil Reddy Varimalla, Vishal Anand, Smaranda Muresan, Kathleen McKeown
3/2/2025
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

We propose a new approach for the authorship attribution task that leverages the various linguistic representations learned at different layers of pre-trained transformer-based models. We evaluate our approach on three datasets, comparing it to a state-of-the-art baseline in in-domain and out-of-domain scenarios. We found that utilizing various transformer layers improves the robustness of authorship attribution models when tested on out-of-domain data, resulting in new state-of-the-art results. Our analysis gives further insights into how our model's different layers get specialized in representing certain stylistic features that benefit the model when tested out of the domain.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{alshomary2025layered,
  title  = {Layered Insights: Generalizable Analysis of Authorial Style by Leveraging All Transformer Layers},
  author = {Milad Alshomary and Nikhil Reddy Varimalla and Vishal Anand and Smaranda Muresan and Kathleen McKeown},
  year   = {2025},
  eprint = {2503.00958},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.00958v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.00958.svg)](https://codeofpaper.com/paper/2503.00958)

Discussion