Downloads · 30 days
54
27% of all-time downloads
Hieuman/avae.v0.1
avae.v0.1 is a feature extraction model from Hieuman. Use it when you need embeddings to search or compare text. It is set up for pytorch. The card lists the license as mit.
This repository contains the model presented in the paper Explainable Disentangled Representation Learning for Generalizable Authorship Attribution in the Era of Generative AI.
Downloads · 30 days
54
27% of all-time downloads
All-time downloads
200
Public
Parameters
4.7B
9.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.6 GB · 100%
How the weights are stored.
BF164.6B · 98%
From the Hugging Face model README
This repository contains the model presented in the paper Explainable Disentangled Representation Learning for Generalizable Authorship Attribution in the Era of Generative AI.
The official code implementation is available at: GitHub - hieum98/avae
EAVAE (Explainable Authorship Variational Autoencoder) is a neural architecture for learning disentangled style and content representations in text. This model separates an author's writing style from semantic content, enabling applications in authorship verification, style transfer, and text generation with controlled stylistic attributes.
The framework achieves disentanglement through:
Input Text
├─> Style Encoder (Bidirectional Qwen) ─> Style VAE ─> Style Latent (z_s)
└─> Content Encoder (GTE-Qwen) ────────> Content VAE ─> Content Latent (z_c)
↓
[z_s ⊕ z_c] → Generator (Qwen)
↓
Reconstructed Text
For full installation and training details, please refer to the GitHub repository.
# Clone the repository
git clone https://github.com/hieum98/avae.git
cd avae
# Install dependencies
pip install -r requirements.txt
The model is trained on diverse multi-author corpora including Reddit, Blog Authorship Corpus, Amazon Reviews, Goodreads, IMDb, and News articles. It is evaluated on several benchmarks:
The model achieves state-of-the-art performance by explicitly disentangling style from content through architectural separation-by-design. Disentanglement is enforced through novel discriminators that distinguish whether pairs of style/content representations belong to the same or different authors/content sources while providing natural language explanations for their decisions.
@misc{man2024explainable,
title={Explainable Disentangled Representation Learning for Generalizable Authorship Attribution in the Era of Generative AI},
author={Hieu Man and Van-Cuong Pham and Nghia Trung Ngo and Franck Dernoncourt and Thien Huu Nguyen},
year={2024},
eprint={2604.21300},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
This project is licensed under the MIT License.