M4: Multi-generator, Multi-domain, and Multi-lingual Black-Box Machine-Generated Text Detection

Yuxia Wang, Jonibek Mansurov, Petar Ivanov, Jinyan Su, Artem Shelmanov, Akim Tsvigun, Chenxi Whitehouse, Osama Mohammed Afzal, Tarek Mahmoud, Toru Sasaki, Thomas Arnold, Alham Fikri Aji, Nizar Habash, Iryna Gurevych, Preslav Nakov

Introduction

As Large Language Models (LLMs) like ChatGPT and GPT-4 become integrated into daily digital life, the potential for misuse—ranging from the automated spread of misinformation to academic dishonesty—has grown exponentially. While researchers have developed various Machine-Generated Text (MGT) detectors, most existing solutions suffer from "tunnel vision," focusing on narrow datasets, single languages, or specific models. This paper introduces the M4 benchmark, a large-scale effort to evaluate the robustness and generalization of MGT detectors across diverse generators, domains, and languages.

The M4 Benchmark and Methodology

The core contribution of this work is the M4 dataset (Multi-generator, Multi-domain, Multi-lingual), comprising approximately 147,000 parallel samples of human and machine-generated text. The benchmark covers:

  • 6 Generators: davinci-003, ChatGPT, GPT-4, Cohere, Dolly-v2, and BLOOMz.
  • 7 Domains: Wikipedia, WikiHow, Reddit (ELI5), arXiv abstracts, PeerRead, news, and QA.
  • 7 Languages: English, Chinese, Arabic, Bulgarian, Indonesian, Russian, and Urdu.

Researchers evaluated seven detection strategies in a "black-box" scenario, where the detector only analyzes the final text without access to model probabilities or watermarks. Strategies included fine-tuned Transformers (RoBERTa, ELECTRA, XLM-R), statistical classifiers (LR-GLTR, Stylistic SVMs), and off-the-shelf tools like GPTZero.

The Generalization Gap: Domains and Generators

A central finding of the study is that while in-domain detection (training and testing on the same topic/model) is nearly "solved" with high accuracy, performance drops sharply in "wild" scenarios involving unseen data.

Cross-Domain Performance

Detectors trained on one domain often fail when applied to another. For instance, a model trained on academic arXiv abstracts may struggle to identify AI-generated Wikipedia entries.

Heatmaps showing the performance drop-off when detectors are tested on domains outside of their training set.

Interestingly, the researchers found a "Reddit Advantage": training on the ELI5 (Explain Like I'm Five) subreddit data yielded the best out-of-domain generalization. The diverse, conversational nature of Reddit appears to prepare detectors for a wider variety of linguistic patterns than more formal datasets.

Cross-Generator Performance

The gap is even more pronounced when switching between LLM architectures. A detector fine-tuned on ChatGPT outputs may be completely blind to text generated by Cohere or BLOOMz.

Heatmaps illustrating cross-generator performance. Note the significant difficulty in detecting BLOOMz-generated text when models are trained on other generators.

As shown in the heatmaps, BLOOMz proved to be a significant outlier, producing text that was exceptionally difficult for detectors trained on other models to identify. This suggests that different model architectures leave unique "fingerprints" that do not necessarily overlap.

Key Insights and Robustness

  • ELECTRA as the Robustness Champion: While RoBERTa often achieved the highest in-domain scores, ELECTRA demonstrated superior generalization to unseen domains. Its unique pre-training objective—detecting "replaced tokens"—aligns closely with the task of spotting machine-generated nuances.
  • Human vs. Machine: Human annotators achieved only 72-77% accuracy in distinguishing AI from human text. While fine-tuned AI detectors can easily outperform humans, they only do so when they have seen similar data during training.
  • The Challenge of Short Text: Accuracy drops by approximately 4.5 points when moving from full articles to short snippets (125 characters), highlighting a major blind spot for current technology.

Conclusion

MGT detection remains a "cat-and-mouse game." As LLMs evolve, the linguistic gaps between human and machine writing continue to shrink. The M4 benchmark reveals that current detectors are brittle and highly sensitive to changes in domain and generator. Future work must focus on adversarial settings and more complex tasks, such as AI-assisted re-formulation, to keep pace with the rapid advancement of generative AI.

Summary updated

BibTeX
@inproceedings{wang2024m,
  author = {Yuxia Wang and Jonibek Mansurov and Petar Ivanov and Jinyan Su and Artem Shelmanov and Akim Tsvigun and Chenxi Whitehouse and Osama Mohammed Afzal and Tarek Mahmoud and Toru Sasaki and Thomas Arnold and Alham Fikri Aji and Nizar Habash and Iryna Gurevych and Preslav Nakov},
  title = {{M4: Multi-generator, Multi-domain, and Multi-lingual Black-Box Machine-Generated Text Detection}},
  booktitle = {EACL},
  year = {2024},
  url = {https://openreview.net/forum?id=YMxAyxcFYG},
}
Figure