AIDetx2: Lightweight and Explainable Detection of AI-Generated Text

The evolution of Large Language Models (LLMs) has made it increasingly difficult to distinguish human-written from AI-generated text, raising concerns about the spread of misinformation and fake news and about academic and scientific integrity. To address these problems, this work presents AIDetx2, an AI-text detection framework addressing three tasks: binary detection of human-written and AI-generated text, attribution of AI-generated text to the LLM that produced it, and localization of hybrid texts that mix human and AI segments through a sliding window. We built a diverse dataset of 923,162 samples, with texts from multiple themes and types generated by five open-weight LLMs, and used it to compare lightweight machine learning classifiers over handcrafted features with a fine-tuned BERT model as a deep learning alternative. The deep learning model achieved a higher Area Under the Precision-Recall Curve (AUPRC) in both tasks, 0.948 for binary detection and 0.929 for attribution, against 0.931 and 0.907 for the machine learning models, but at a much higher computational cost. The machine learning models are lightweight and expose the features behind each prediction, supporting explainable AI. Hybrid-text localization was only partly reliable, depending on the model and the type of transition. These findings indicate that reliable AI-text detection remains challenging, regardless of the classification approach, and as LLMs continue evolving, the detection tools need to adapt to those advancements. Beyond technical contributions, this work raises questions about the characteristics that distinguish human writing and how writing practices may change as LLMs become increasingly integrated into them.

Authors

Publication Details

Journal
arXiv
Published
2026-11-30
Primary Topic
Authorship Attribution and Profiling
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

AIDetx2: Lightweight and Explainable Detection of AI-Generated Text

Diogo Pratas, Armando J. Pinho, Diogo M. Silva
arXiv
Authorship Attribution and Profiling
preprint

AIDetx2: Lightweight and Explainable Detection of AI-Generated Text

Diogo Pratas, Armando J. Pinho, Diogo M. Silva
preprint en

Abstract

The evolution of Large Language Models (LLMs) has made it increasingly difficult to distinguish human-written from AI-generated text, raising concerns about the spread of misinformation and fake news and about academic and scientific integrity. To address these problems, this work presents AIDetx2, an AI-text detection framework addressing three tasks: binary detection of human-written and AI-generated text, attribution of AI-generated text to the LLM that produced it, and localization of hybrid texts that mix human and AI segments through a sliding window. We built a diverse dataset of 923,162 samples, with texts from multiple themes and types generated by five open-weight LLMs, and used it to compare lightweight machine learning classifiers over handcrafted features with a fine-tuned BERT model as a deep learning alternative. The deep learning model achieved a higher Area Under the Precision-Recall Curve (AUPRC) in both tasks, 0.948 for binary detection and 0.929 for attribution, against 0.931 and 0.907 for the machine learning models, but at a much higher computational cost. The machine learning models are lightweight and expose the features behind each prediction, supporting explainable AI. Hybrid-text localization was only partly reliable, depending on the model and the type of transition. These findings indicate that reliable AI-text detection remains challenging, regardless of the classification approach, and as LLMs continue evolving, the detection tools need to adapt to those advancements. Beyond technical contributions, this work raises questions about the characteristics that distinguish human writing and how writing practices may change as LLMs become increasingly integrated into them.

arXiv
Authorship Attribution and Profiling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon