UPB at IberLEF-2023 AuTexTification: Detection of Machine-Generated Text using Transformer Ensembles

Andrei-Alexandru Preda, Dumitru-Clementin Cercel, Traian Rebedea, Costin-Gabriel Chiru · DOI

Abstract

As Large Language Models (LLMs) like ChatGPT become ubiquitous, the ability to distinguish between human-authored and machine-generated text has become a critical challenge for digital trust, academic integrity, and the fight against misinformation. This paper details the participation of the University Politehnica of Bucharest (UPB) team in the AuTexTification shared task at IberLEF-2023. The researchers developed a robust detection system using an ensemble of Transformer models, incorporating multi-task learning (MTL) and virtual adversarial training (VAT). Their approach, which addressed both English and Spanish datasets across diverse domains, achieved competitive macro F1-scores of 66.63% and 67.10%, respectively, significantly outperforming standard baselines.

Introduction

The rapid proliferation of LLMs has made the generation of high-quality, human-like text trivial and inexpensive. This shift has led to concerns regarding the "dead internet theory," where synthetic content potentially outweighs human interaction. The AuTexTification shared task at IberLEF-2023 was designed to address this by challenging researchers to develop systems capable of detecting machine-generated text.

The UPB team focused on Subtask 1: a binary classification problem requiring systems to determine if a document was written by a human or an AI. This task is particularly difficult due to the requirement for cross-language generalization (English and Spanish) and the variety of domains involved, ranging from formal legal documents to informal social media posts.

Methodology

The researchers implemented a hierarchical approach to classification, moving from traditional machine learning to advanced transformer ensembles.

Shallow Learning Baselines

Initial experiments utilized "shallow" features, combining 35 distinct readability scores (such as the Flesch reading ease) with traditional word embeddings (GloVe and FastText). These features were processed using XGBoost and k-Nearest Neighbors (kNN) classifiers to establish a performance baseline.

Deep Learning and Transformer Models

The core of the system relied on fine-tuning BERT-based models. Specifically, the team utilized:

  • XLM-RoBERTa: A multilingual model capable of handling both English and Spanish inputs.
  • TwHIN-BERT: A model pre-trained on Twitter data, selected specifically to handle the social media components of the dataset where text is often short and informal.

Advanced Training Techniques

To improve robustness and prevent overfitting, two key techniques were integrated:

  1. Multi-Task Learning (MTL): The models were trained to simultaneously predict the human/AI label and the language of the text. This auxiliary task forced the model to learn more generalized linguistic features.
  2. Virtual Adversarial Training (VAT): This regularization method involves introducing small perturbations to input embeddings during training to maximize loss, effectively teaching the model to remain stable against minor variations in the data.

Ensemble Stacking

The final submissions utilized an ensemble stacking strategy. Probability outputs from multiple fine-tuned Transformer models were used as input features for a "meta-learner" (an XGBoost classifier), which made the final classification decision.

Datasets

The study utilized the AuTexTification dataset, which is balanced (approximately 50/50 human vs. machine) and bilingual:

  • English: ~33,845 documents.
  • Spanish: ~32,062 documents.

The dataset spans multiple domains, including legal texts, how-to articles, and social media. The researchers noted a high frequency of short documents (under 200 characters), which informed the decision to include domain-specific models like TwHIN-BERT.

Results and Discussion

The ensemble models proved to be the most effective approach, significantly outperforming zero-shot and standard logistic regression baselines.

Dataset Model Macro F1-Score
English UPB Ensemble 66.63%
Spanish UPB Ensemble 67.10%
English Logistic Regression (Baseline) ~65%
Spanish Logistic Regression (Baseline) ~62%
English Zero-Shot (Baseline) ~43%
Spanish Zero-Shot (Baseline) ~34%

Key Insights

  • The Generalization Gap: A significant discrepancy was observed between validation scores (often exceeding 90% F1) and test scores (~66-67% F1). This suggests that the "AI signature" is highly sensitive to distribution shifts; a model trained on one specific LLM or domain may struggle when the generator or subject matter changes.
  • Domain Specificity: The use of TwHIN-BERT for short, tweet-like texts highlighted that domain-aware model selection is superior to a "one-size-fits-all" approach.
  • Feature Learning: Fine-tuned embeddings significantly outperformed static, pre-trained embeddings from libraries like spaCy, emphasizing the importance of task-specific training.

Conclusion

The UPB team's participation in IberLEF-2023 demonstrates that while Transformer ensembles and multi-task learning provide a strong foundation for detecting machine-generated text, the problem of generalization remains significant. Future work will focus on more robust validation strategies, such as cross-validation, to better predict test-time performance and more extensive hyperparameter optimization to further refine the deep learning models.

Summary updated

BibTeX
@inproceedings{preda2023upb,
  author = {Andrei-Alexandru Preda and Dumitru-Clementin Cercel and Traian Rebedea and Costin-Gabriel Chiru},
  title = {{UPB at IberLEF-2023 AuTexTification: Detection of Machine-Generated Text using Transformer Ensembles}},
  booktitle = {IberLEF@SEPLN},
  year = {2023},
  url = {https://openreview.net/forum?id=qPxjVWxV-aF},
}
Figure