Explainable Disentangled Representation Learning for Generalizable Authorship Attribution in the Era of Generative AI

arXiv cs.CL / 4/24/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper addresses a key limitation in authorship attribution and AI-generated text detection: models often entangle writing style with content, causing poor cross-domain generalization.
  • It proposes EAVAE (Explainable Authorship Variational Autoencoder), which disentangles style and content using a separation-by-design architecture with dedicated encoders for each.
  • EAVAE pretrains style encoders via supervised contrastive learning on diverse author data, then fine-tunes using a variational autoencoder setup to learn disentangled latent representations.
  • A novel discriminator both classifies whether style/content representations come from the same or different sources and produces a natural-language explanation, aiming to reduce confounds and improve interpretability.
  • Experimental results show state-of-the-art authorship attribution on Amazon Reviews, PAN21, and HRS, and strong few-shot performance for AI-generated text detection on the M4 dataset, with code/data released online.

Abstract

Learning robust representations of authorial style is crucial for authorship attribution and AI-generated text detection. However, existing methods often struggle with content-style entanglement, where models learn spurious correlations between authors' writing styles and topics, leading to poor generalization across domains. To address this challenge, we propose Explainable Authorship Variational Autoencoder (EAVAE), a novel framework that explicitly disentangles style from content through architectural separation-by-design. EAVAE first pretrains style encoders using supervised contrastive learning on diverse authorship data, then finetunes with a Variational Autoencoder (VEA) architecture using separate encoders for style and content representations. Disentanglement is enforced through a novel discriminator that not only distinguishes whether pairs of style/content representations belong to the same or different authors/content sources, but also generates natural language explanation for their decision, simultaneously mitigating confounding information and enhancing interpretability. Extensive experiments demonstrate the effectiveness of EAVAE. On authorship attribution, we achieve state-of-the-art performance on various datasets, including Amazon Reviews, PAN21, and HRS. For AI-generated text detection, EAVAE excels in few-shot learning over the M4 dataset. Code and data repositories are available online\footnote{https://github.com/hieum98/avae} \footnote{https://huggingface.co/collections/Hieuman/document-level-authorship-datasets}.