AI-generated Text Detection: A Multifaceted Approach to Binary and Multiclass Classification

Harika Abburi, Sanmitra Bhattacharya, Edward Bowen, Nirmala PudotaarXiv 2025

TL;DR

This paper tackles the dual challenge of detecting AI-generated text (binary classification) and identifying the specific large language model (LLM) that produced it (multiclass attribution). By combining deep semantic embeddings with lightweight stylometric features, the authors developed two tailored architectures that both secured fifth-place finishes in the AAAI 2025 Defactify shared task.

What Problem Does This Paper Address?

As LLMs become increasingly adept at mimicking human writing, the potential for misuse—such as generating fake news, academic dishonesty, and automated spam—grows exponentially.

While binary detection (determining if a text is human- or AI-authored) is a critical first line of defense, model attribution (identifying which specific LLM generated a text) is becoming equally vital. Knowing the originating model helps researchers track malicious actors, understand downstream model biases, and implement proper oversight. This paper addresses both tasks, highlighting how methods that excel at binary detection often fail to scale to the more complex problem of multiclass model attribution.

Methods

The authors build upon a previously established "Full Architecture" that combined a RoBERTa-base AI detector, token-level perplexity/entropy features processed via a BiLSTM, and E5 semantic embeddings. To improve efficiency and performance, they propose two new variations:

  1. Optimized Architecture (for Binary Detection): The authors replaced the computationally heavy token-level BiLSTM features with 11 explicit stylometry features (e.g., unique word count, stop word count, burstiness, and verb ratio). These features are concatenated with document-level representations from a pre-trained RoBERTa-base AI detector and E5 embeddings, then fed into a final linear layer for prediction.
Figure 1: Proposed optimized neural architecture
  1. Simple Architecture (for Multiclass Attribution): The authors discovered that the RoBERTa-base AI detector, which was fine-tuned for binary classification, severely bottlenecked performance in multiclass settings. Their "Simple Architecture" drops the RoBERTa detector entirely, pairing the 11 stylometry features directly with E5 semantic embeddings and feeding them into a Gradient Boosting Classifier.
Simple architecture using Gradient Boosting

Datasets

The models were trained and evaluated on a dataset provided by the organizers of the Defactify 4 workshop at AAAI 2025. The dataset is uniquely structured: each prompt contains a human-authored story mapped to parallel AI-generated text from six prominent LLMs.

The dataset categories include:

  • Human-authored text
  • Gemma-2-9b
  • GPT_4-o
  • LLAMA-8B
  • Mistral-7B
  • Qwen-2-72B
  • Yi-large

The data split consists of 50,785 training samples and 10,983 validation samples, perfectly balanced across all seven categories. The hidden test set used for final evaluation contained 10,963 samples.

Data statistics across categories

Key Insights and Ideas

  • Binary Detectors Don't Scale to Multiclass Tasks: A model trained to spot "AI vs. Human" features struggles when asked to differentiate between "LLM X vs. LLM Y." Dropping the binary RoBERTa detector was essential to unlocking high performance in model attribution.
  • Stylometry Trumps Complex Token Statistics: Replacing complex token-level probability distributions and BiLSTM attention layers with simple, hand-crafted linguistic features (like type-token ratios) actually improved accuracy while drastically reducing computational complexity.
  • Semantic + Stylistic Fusion: The combination of deep semantic embeddings (capturing what is being said) and shallow stylistic markers (capturing how it is structured) creates a highly robust representation for text classification.

Key Results

Evaluated on the competitive, hidden test set, the proposed architectures demonstrated strong performance:

  • Task A (Binary Classification): The Optimized Architecture achieved an outstanding $F1$ score of 0.994, securing 5th place in the competition.
  • Task B (Multiclass Attribution): The Simple Architecture achieved an $F1$ score of 0.627, also ranking 5th. This was a massive jump from the benchmark Full Architecture, which yielded a dismal $F1$ score of 0.190 on the same task.
F1 scores for different architectures across both tasks

Limitations and Future Work

While binary AI text detection is approaching near-perfection (0.994 $F1$), multiclass model attribution remains an open challenge. An $F1$ score of 0.627 indicates that distinguishing between the writing styles of closely related, state-of-the-art LLMs is still incredibly difficult. The authors note that future work must focus on refining models to capture the more subtle, nuanced stylistic boundaries that separate modern generative models.

Summary updated

BibTeX
@misc{abburi2025ai,
  author = {Harika Abburi and Sanmitra Bhattacharya and Edward Bowen and Nirmala Pudota},
  title = {{AI-generated Text Detection: A Multifaceted Approach to Binary and Multiclass Classification}},
  year = {2025},
  eprint = {2505.11550},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.11550},
}
Figure