Abstract
As Large Language Models (LLMs) achieve unprecedented levels of linguistic fluency, the ability to distinguish between human-authored and machine-generated text has become a critical challenge for information integrity. This paper details the development of a hybrid deep learning system by researchers from IIIT Hyderabad for the SemEval-2024 Task 8 competition. By integrating the contextual representations of a frozen RoBERTa encoder with the sequential processing capabilities of a Bidirectional Long Short-Term Memory (BiLSTM) network, the system achieved a competitive 80.83% accuracy in binary classification, ranking 46th out of 125 participants.
Introduction
The rapid proliferation of LLMs like ChatGPT, LLaMA, and Cohere has introduced significant risks regarding misinformation, academic dishonesty, and the erosion of trust in digital journalism. The core challenge lies in "Black-Box Machine-Generated Text Detection," where a system must identify AI-generated content across diverse domains and languages without prior knowledge of the specific model used for generation.
This study addresses Subtask-A of SemEval-2024 Task 8, which focuses on binary classification: determining whether a specific sentence is human-made or machine-generated. The goal is to develop a robust detector capable of generalizing to "unseen" models—generators not present in the training data.
Methodology
The proposed architecture, developed under the team name Mast Kalandar, explores the synergy between Transformer-based encoders and Recurrent Neural Networks (RNNs). The methodology centers on three primary components:
1. The Encoder: RoBERTa
The team utilized RoBERTa (Robustly Optimized BERT Approach) as the backbone. RoBERTa provides high-quality, contextualized word embeddings that capture the semantic nuances of the input text. To balance computational efficiency with performance, the researchers experimented with "freezing" the RoBERTa weights—using it as a static feature extractor—versus fine-tuning the final layers.
2. The Classifier: BiLSTM and GRU
While Transformers excel at capturing global context, the researchers hypothesized that RNNs might better capture the sequential signatures or rhythmic patterns inherent in AI-generated text. The outputs from RoBERTa were fed into a Bidirectional Long Short-Term Memory (BiLSTM) network. In post-competition analysis, a Gated Recurrent Unit (GRU) variant was also tested to determine if a simpler recurrent structure could improve generalization.
3. Parameter Efficiency
To optimize the training process, the team explored Low-Rank Adaptation (LoRA) to reduce the number of trainable parameters. The final hybrid models were significantly more lightweight than full Transformer fine-tuning, with the frozen RoBERTa + BiLSTM approach utilizing only approximately 4 million trainable parameters.
Dataset and Experimental Setup
The models were trained and evaluated using the M4 dataset, which is characterized by its diversity across multiple dimensions:
- Generators: Text produced by ChatGPT, Cohere, Davinci, and Dolly.
- Domains: Content spanning WikiHow, Wikipedia, Reddit, arXiv, and PeerRead.
- Generalization Test: A critical component of the evaluation was the inclusion of the Bloomz model in the validation and test sets, despite its absence from the training data. This required the models to identify machine-generated patterns that transcend specific model architectures.
Results and Discussion
The performance was evaluated on a hidden test set, with the following key findings:
| Model Configuration | Accuracy | F1 Score |
|---|---|---|
| RoBERTa Full Fine-tune (Baseline) | 88.47% | - |
| RoBERTa (Frozen) + GRU | 84.71% | 84.33% |
| RoBERTa (Frozen) + BiLSTM (Submitted) | 80.83% | 80.31% |
Key Insights
- Sequential vs. Contextual Synergy: The combination of RoBERTa’s contextual understanding and the BiLSTM/GRU’s sequential processing proved effective. The recurrent layers likely pick up on the specific structural signatures—such as repetitive patterns or specific "hallucination" markers—that distinguish AI from human writing.
- The Efficiency of Freezing: Keeping the RoBERTa backbone frozen yielded results that were competitive with more complex setups, suggesting that the fundamental features of natural language are well-represented in the pre-trained weights.
- The GRU Advantage: Interestingly, the GRU variant outperformed the submitted BiLSTM by nearly 4% in post-competition tests. This suggests that for this specific binary classification task, a simpler recurrent architecture may offer better generalization on unseen data.
Conclusion and Future Work
The Mast Kalandar system demonstrates that hybrid Transformer-RNN architectures provide a viable and efficient path for AI text detection. While the full fine-tuning of RoBERTa remains the strongest baseline, the hybrid approach offers a significantly lower computational footprint.
Future research will focus on improving performance in domain-specific contexts where AI signatures are most faint. Potential directions include the use of multilingual encoders like XLM-RoBERTa and the integration of stylometric features—such as perplexity and burstiness—directly into the neural architecture to enhance the system's discriminative power.
Summary updated