A Simple yet Efficient Ensemble Approach for AI-generated Text Detection

Harika Abburi, Kalyani Roy, Michael Suesserman, Nirmala Pudota, Balaji Veeramani, Edward Bowen, Sanmitra BhattacharyaarXiv 2023 · DOI

Abstract

As Large Language Models (LLMs) achieve unprecedented fluency, distinguishing synthetic text from human prose has become a critical challenge. We present a "Short Ensemble" approach that leverages architectural simplicity and data diversity to outperform complex state-of-the-art detectors. By combining just two constituent models, our method achieves accuracy gains of up to 100% on specialized benchmarks. Furthermore, we demonstrate that effective detectors can be trained using open-source model data, reducing reliance on proprietary APIs. However, significant challenges remain regarding linguistic bias, particularly against non-native English speakers.

Introduction

The rapid advancement of models like GPT-4 and LLaMA-2 has intensified the "arms race" between AI content generation and detection. While detection is vital for mitigating fake news and academic dishonesty, current methods often suffer from high computational overhead or significant bias against non-native English writers. This paper proposes a streamlined ensemble solution that prioritizes efficiency and robustness over raw model size.

Methodology: The Short Ensemble

The core of our approach is a "meta-classifier" ensemble. While a full ensemble of five pre-trained models (including DeBERTa and RoBERTa variants) was initially tested, we discovered that a "Short Ensemble" consisting of only two models—the RoBERTa-base OpenAI detector and the XLM-RoBERTa NLI model—provided nearly identical performance.

In this architecture, each constituent model predicts the probability of a text being AI-generated. These probabilities are concatenated into a feature vector and processed by a traditional machine learning classifier, such as Logistic Regression or a Support Vector Machine (SVM). This reduction in complexity significantly lowers the computational footprint without sacrificing detection accuracy.

Experimental Setup and Datasets

To ensure robustness, the ensemble was evaluated across several benchmarks:

  • Standard Benchmarks: AuTexTification (AuText), Author Attribution (AA), Turing Bench (TB), Academic Publications (AP), and the GPT-2 Output Dataset (GPT-OD).
  • Curated Datasets (D1, D2, D3): These were developed to test the feasibility of training detectors on open-source data from models like LLaMA-2-13b-chat, Falcon-40b-chat, and MPT-30b-instruct, rather than proprietary GPT data.
  • EWEssays: A specialized dataset containing essays from US 8th graders (native speakers) and TOEFL essays (non-native speakers) used to evaluate zero-shot generalization and linguistic bias.

Key Results

The ensemble approach demonstrated substantial improvements over existing baselines across diverse domains. Notably, on the Academic Publications (AP) dataset, the ensemble achieved a 100% improvement in accuracy over the DistilBERT baseline.

Performance metrics of the ensemble (E) and short ensemble (SE) across various datasets, showing percentage improvements over baselines.

On the Author Attribution (AA) dataset, the ensemble reached an F1-macro score of 0.986, representing a 6.8% increase over the previous state-of-the-art. These results suggest that capturing different linguistic features through an ensemble is more effective than relying on a single large-scale model.

The Perplexity Trap and Linguistic Bias

A major finding of this research is the persistence of the "perplexity trap." Many detectors rely on the assumption that AI-generated text is highly predictable (low perplexity). However, non-native English speakers often utilize more structured and predictable patterns, leading to high false-positive rates.

Comparison of misclassification rates for native (US 8th-Grade) vs. non-native (TOEFL) human-authored essays across different detectors.

As shown in the figure above, while the Short Ensemble correctly identified all US 8th-grade essays as human-authored, it misclassified over 57% of TOEFL essays as AI-generated. This highlights a critical fairness issue: detectors are significantly more likely to penalize non-native writers, a problem shared by many commercial detection tools.

Conclusion

Our "Short Ensemble" approach offers a high-performance, computationally efficient alternative to massive single-model detectors. The success of training on open-source data (D2 and D3) further democratizes the development of these tools. However, the persistent bias against non-native English speakers remains a primary hurdle. Future work must focus on developing more equitable detection metrics that move beyond simple predictability to capture the true nuances of human vs. machine authorship.

Summary updated

BibTeX
@misc{abburi2023simple,
  author = {Harika Abburi and Kalyani Roy and Michael Suesserman and Nirmala Pudota and Balaji Veeramani and Edward Bowen and Sanmitra Bhattacharya},
  title = {{A Simple yet Efficient Ensemble Approach for AI-generated Text Detection}},
  year = {2023},
  eprint = {2311.03084},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.03084},
}
Figure