Robust AI-Generated Text Detection by Restricted Embeddings

Kristian Kuznetsov, Eduard Tulchinskii, Laida Kushnareva, German Magai, Serguei Barannikov +2 more
10/10/2024
cs.CLcs.AIcs.IT

Official code: SilverSolver/RobustATD (5 stars, last commit 2024-11-03).

Abstract

Growing amount and quality of AI-generated texts makes detecting such content more difficult. In most real-world scenarios, the domain (style and topic) of generated data and the generator model are not known in advance. In this work, we focus on the robustness of classifier-based detectors of AI-generated text, namely their ability to transfer to unseen generators or semantic domains. We investigate the geometry of the embedding space of Transformer-based text encoders and show that clearing out harmful linear subspaces helps to train a robust classifier, ignoring domain-specific spurious features. We investigate several subspace decomposition and feature selection strategies and achieve significant improvements over state of the art methods in cross-domain and cross-generator transfer. Our best approaches for head-wise and coordinate-based subspace removal increase the mean out-of-distribution (OOD) classification score by up to 9% and 14% in particular setups for RoBERTa and BERT embeddings respectively. We release our code and data: https://github.com/SilverSolver/RobustATD

View on arXivView PDF

Code Implementations(1)

Repo for paper "Robust AI-Generated Text Detection by Restricted Embeddings"

51Python, Jupyter NotebookOct 4, 20241 years ago

Similar Papers

Cite this paper

@article{kuznetsov2024robust,
  title  = {Robust AI-Generated Text Detection by Restricted Embeddings},
  author = {Kristian Kuznetsov and Eduard Tulchinskii and Laida Kushnareva and German Magai and Serguei Barannikov and Sergey Nikolenko and Irina Piontkovskaya},
  year   = {2024},
  eprint = {2410.08113},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.08113v1}
}

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/2410.08113.svg)](https://codeofpaper.com/paper/2410.08113)

Discussion