TL;DR
MGTEVAL is a unified, extensible benchmarking platform designed to standardize the evaluation of Machine-Generated Text (MGT) detectors. By integrating dataset construction, adversarial attacks, detector training, and multi-dimensional performance metrics into a single workflow, it enables fair, reproducible, and code-free comparison across diverse detection methods.
What Problem Does This Paper Address?
As large language models (LLMs) like ChatGPT, LLaMA, and DeepSeek become adept at generating human-like text, the risk of widespread misinformation, phishing, and academic dishonesty grows. In response, researchers have developed numerous Machine-Generated Text (MGT) detectors.
However, the evaluation of these detectors is highly fragmented. Different research groups use disparate datasets, distinct preprocessing steps, varying evaluation metrics, and isolated adversarial attacks. This lack of standardization makes it nearly impossible to fairly compare different tools or confidently reproduce published results. MGTEVAL addresses this gap by providing an end-to-end, standardized pipeline that evaluates not just how accurate a detector is, but also how robust it is against attacks and how efficiently it runs in production.
Methods
MGTEVAL features a modular, registry-based, and configuration-driven architecture. The workflow is divided into four core components:
- Dataset Building: Standardizes diverse text corpora into a unified binary format. It allows users to build custom benchmarks by pairing human-written text with machine-generated counterparts generated via configurable LLM backends (adjusting parameters like temperature, top-k/top-p sampling, and prompt templates).
- Dataset Attack: To test real-world robustness, this module applies 12 common adversarial text attacks (such as paraphrasing, character deletion, and "humanization" perturbations) exclusively to the machine-generated samples, leaving human text unaltered for a clean baseline comparison.
- Detector Training: Provides a unified interface to train or calibrate models. For metric-based detectors (which output raw statistical scores), it fits a one-dimensional logistic regression to map scores to calibrated probabilities. For model-based detectors (like fine-tuned transformers), it supports full end-to-end supervised optimization.
- Performance Evaluation: Automatically computes standard classification metrics (Accuracy, F1, AUROC), strict deployment metrics (True Positive Rate at low False Positive Rates, e.g., TPR@FPR=0.01), and runtime efficiency metrics (latency, throughput, and peak GPU memory).
The framework supports both a command-line interface (CLI) and an interactive, user-friendly WebUI, allowing researchers to run full-cycle experiments without rewriting code.
Datasets
MGTEVAL natively supports common MGT benchmark structures (such as HC3, SemEval 2024, and M4).
For the paper's baseline evaluation, the authors constructed a balanced dataset consisting of 2,000 total samples:
- Human-written text: Sampled from the SemEval 2024 dataset.
- Machine-generated text: Synthesized using
Qwen3-4B-2507-Instruct. - Data Split: Divided into training, validation, and test sets using an 8:1:1 ratio.
Key Insights and Ideas
- The Necessity of Score Calibration: Because metric-based detectors yield raw scalar scores rather than true probabilities, MGTEVAL’s built-in logistic regression calibration step is vital. It establishes a unified threshold, enabling a mathematically fair comparison across entirely different detector families.
- The Efficiency-Effectiveness Trade-off: SOTA accuracy often demands immense computational budgets. For instance, the detector
RAiDArachieves excellent accuracy but suffers from high latency (427.40 ms/sample) and massive memory consumption (14.99 GiB peak GPU memory). Conversely,GREATERoffers a highly attractive middle ground, pairing near-SOTA accuracy with an incredibly low memory footprint (0.14 GiB). - Multi-Metric Blindspots: Evaluating detectors solely on threshold-free metrics like AUROC can mask severe operational flaws. The detector
TOCSIN, for example, achieves a strong AUROC of 95.03% but drops to a meager 59.00% absolute Accuracy and a broken 0% TPR at low FPR settings, exposing extreme threshold sensitivity.
Key Results
The authors benchmarked 26 existing MGT detectors under identical conditions within MGTEVAL:
- Top Performer: Longformer achieved the best overall results on clean data, reaching 99.50% Accuracy, 99.50% F1, 99.99% AUROC, and maintaining a perfect 100.00% TPR at an FPR of 0.01. It outperformed the second-best model (RAiDAr) by a clear margin of +1.50 percentage points in accuracy.
- Most Efficient SOTA: GREATER emerged as the most practical lightweight detector. It achieved a high accuracy of 97.50% and an AUROC of 99.92%, while operating at a rapid 7.01 ms/sample and utilizing the lowest peak GPU memory (0.14 GiB) among all tested models.
- Baseline Failures: Several zero-shot methods like
DetectGPTandNPRstruggled under this unified setup, delivering limited accuracy gains (~50%) while suffering from exceptionally slow processing times.
Limitations and Future Work
- High Computational Overhead: Running the entire end-to-end pipeline—especially when evaluating multiple detectors against a battery of 12 adversarial attacks—is computationally heavy and time-consuming.
- Hyperparameter Dilution: Standardizing all models under a single, unified evaluation protocol means that some highly specific, original hyperparameter tunings for individual detectors might not be perfectly preserved, leading to slight variations from their original papers.
- Scope Restrictions: The current iteration focuses strictly on binary classification (human vs. machine) and text-level perturbations. The authors plan to expand future versions to support multilingual benchmarks, fine-grained source attribution (identifying which LLM wrote the text), and adaptive attack-defense co-evaluation.
Summary updated