FAID: Fine-Grained AI-Generated Text Detection Using Multi-Task Auxiliary and Multi-Level Contrastive Learning
Minh Ngoc Ta, Dong Cao Van, Duc-Anh Hoang, Minh Le-Anh, Truong Nguyen, My Anh Tran Nguyen, Yuxia Wang, Preslav Nakov, Sang Dinh
TL;DR
FAID addresses the need for fine-grained detection of human-written, LLM-generated, and human–LLM collaborative texts in multilingual, multi-domain settings. It introduces FAIDSet, a large multilingual dataset spanning English and Vietnamese across academic domains, and FAID, a framework that combines multi-level contrastive learning with multi-task auxiliary learning to learn author-like distinctions for LLM families. FAID leverages an encoder (XLM-RoBERTa) trained with a multi-level contrastive loss and an auxiliary human-vs-LLM classifier, while handling unseen data at inference through a vector database and fuzzy kNN without retraining. Empirical results show FAID outperforms strong baselines in both in-domain and challenging unseen-domain/generator scenarios, demonstrates robust real-world generalization, and enables generator attribution, offering practical benefits for transparency and accountability in AI-assisted writing.
Abstract
The growing collaboration between humans and AI models in generative tasks has introduced new challenges in distinguishing between human-written, LLM-generated, and human--LLM collaborative texts. In this work, we collect a multilingual, multi-domain, multi-generator dataset FAIDSet. We further introduce a fine-grained detection framework FAID to classify text into these three categories, and also to identify the underlying LLM family of the generator. Unlike existing binary classifiers, FAID is built to capture both authorship and model-specific characteristics. Our method combines multi-level contrastive learning with multi-task auxiliary classification to learn subtle stylistic cues. By modeling LLM families as distinct stylistic entities, we incorporate an adaptation to address distributional shifts without retraining for unseen data. Our experimental results demonstrate that FAID outperforms several baselines, particularly enhancing the generalization accuracy on unseen domains and new LLMs, thus offering a potential solution for improving transparency and accountability in AI-assisted writing.
