CIOL at AraGenEval shared task: Authorship Identification and AI Generated Text Detection in Arabic using Pretrained Models

Sadia Tasnim Meem, Azmine Toushik Wasi2025

Abstract

This paper presents the methodology and results of the CIOL laboratory's participation in the AraGenEval shared task at ArabicNLP 2025. The research addresses two critical challenges in Arabic Natural Language Processing: Authorship Identification (Task 2) and AI-Generated Text Detection (Task 3). By leveraging fine-tuned domain-specific transformers, specifically CAMeL-BERT and AraBERT, the team achieved high performance on validation sets. While authorship identification remained robust on test data, AI detection exhibited a notable "generalization gap," highlighting the difficulty of detecting content from unseen generative models and diverse prompting strategies.

Introduction

Arabic NLP faces significant hurdles due to the language's complex morphology and orthography. As generative AI becomes more prevalent, the ability to attribute text to specific authors and distinguish human-written content from machine-generated prose is increasingly vital. This study evaluates the efficacy of Pretrained Language Models (PLMs) in tackling these tasks within the context of the AraGenEval shared task.

Methodology

The researchers employed specialized Arabic transformer models for each task:

  • Authorship Identification (Task 2): The team utilized CAMeL-BERT-mix, a model optimized for Arabic text understanding. The task was framed as a multiclass classification problem involving 21 authors.
  • AI-Generated Text Detection (Task 3): The winning configuration used AraBERTv2 with a custom classification head and a 512-token input window.

A key finding in the methodology was the importance of context length. In authorship identification, reducing the sequence length from 512 to 256 tokens resulted in a 2–3% performance decline, suggesting that stylistic markers are often distributed across longer text segments.

Datasets

The study utilized datasets provided by the AraGenEval shared task:

  • Authorship Dataset: Comprised works from 21 authors (10 books each). To ensure the model learned stylistic nuances rather than formatting artifacts, paragraphs were rephrased into a standardized formal style using GPT-4o mini.
  • AI Detection Dataset: A balanced set of 4,800 training samples. Human samples were sourced from verified news platforms, while AI samples were generated by models including GPT-3.5, GPT-4, and Claude.

Results and Discussion

The models demonstrated strong learning capabilities during the fine-tuning phase, though their ability to generalize varied significantly between the two tasks.

Authorship Identification

For Task 2, the model showed steady improvement over four epochs, reaching a validation accuracy of approximately 87.2% and a macro-F1 of 0.809.

Training and validation metrics for Authorship Identification (Task 2).

On the official test set, the model maintained this performance with an accuracy of 86.4% and a macro-F1 of 0.827, indicating successful attribution across the 21 authors despite the standardized rephrasing of the text.

AI-Generated Text Detection

The AI detection model achieved near-perfect scores on the validation set within just three epochs, suggesting it had successfully captured the patterns of the training data.

Training and validation metrics for AI-Generated Text Detection (Task 3).

However, a significant "generalization gap" was observed during the evaluation phase. While validation F1 reached ~98.4%, the performance dropped to 70.4% accuracy on the official test set. The model exhibited high precision but lower recall, meaning it was conservative in its predictions—it accurately identified AI text when confident but missed many instances generated by models or prompts not seen during training.

Conclusion

The CIOL team's approach demonstrates the power of fine-tuned Arabic PLMs for stylistic and generative text classification. While authorship identification is relatively stable, AI detection remains "brittle" and sensitive to domain shifts. Future research should prioritize adversarial training and cross-domain evaluation to develop more robust detectors capable of identifying text from the rapidly evolving landscape of generative models.

Summary updated

BibTeX
@misc{meem2025ciol,
  author = {Sadia Tasnim Meem and Azmine Toushik Wasi},
  title = {{CIOL at AraGenEval shared task: Authorship Identification and AI Generated Text Detection in Arabic using Pretrained Models}},
  year = {2025},
  doi = {10.18653/v1/2025.arabicnlp-sharedtasks.13},
}
Figure