Abstract
Large language models (LLMs) have exhibited remarkable capabilities in text generation tasks. However, the utilization of these models carries inherent risks, including but not limited to plagiarism, the dissemination of fake news, and issues in educational exercises. Although several detectors have been proposed to address these concerns, their effectiveness against adversarial perturbations, specifically in the context of student essay writing, remains largely unexplored. This paper aims to bridge this gap by constructing AIG-ASAP, an AI-generated student essay dataset, employing a range of text perturbation methods that are expected to generate high-quality essays while evading detection. Through empirical experiments, we assess the performance of current AIGC detectors on the AIG-ASAP dataset. The results reveal that the existing detectors can be easily circumvented using straightforward automatic adversarial attacks. Specifically, we explore word substitution and sentence substitution perturbation methods that effectively evade detection while maintaining the quality of the generated essays. This highlights the urgent need for more accurate and robust methods to detect AI-generated student essays in the education domain.
Introduction
As Large Language Models (LLMs) like ChatGPT become ubiquitous, the education sector faces a significant challenge: the potential for students to use AI as a "ghostwriter" for academic essays. While various AI-generated content (AIGC) detectors have been developed to mitigate this, most research has focused on detecting "pure" AI text generated from simple prompts. This study, presented at EMNLP 2023, explores the robustness of these detectors against adversarial attacks—intentional modifications designed to fool the system—specifically within the context of student writing.
Methodology
The researchers evaluated three distinct writing scenarios and three perturbation (attack) methods to test the limits of current detection technology.
Writing Scenarios
- Instruction-based: Direct generation from a prompt.
- Refined Writing: The LLM "polishes" an existing human-written essay.
- Continuation Writing: The LLM completes an essay started by a human.
Adversarial Perturbations
- Essay Paraphrasing: Using an LLM to rewrite the entire essay.
- Sentence Substitution: Randomly masking 20% of the sentences in an AI essay and using a secondary model (FLAN-T5) to fill in the blanks.
- Word Substitution: A novel approach identifying "topical words" that LLMs tend to over-use compared to humans. These high-frequency words are replaced with synonyms using BERT and WordNet.
The AIG-ASAP Dataset
The study utilizes the ASAP (Automated Student Assessment Prize) dataset, a collection of human-written student essays. From this, the authors created AIG-ASAP, which includes human essays alongside AI-generated versions from Vicuna-7b, GPT-3.5 (ChatGPT), and GPT-4, as well as their perturbed counterparts.
Experimental Results
The empirical results highlight a significant vulnerability in current detection technology. While detectors like RoBERTa-QA achieved over 90% accuracy on standard, un-perturbed AI essays, their performance plummeted when faced with adversarial modifications.
As shown in the results, the Word Substitution attack was particularly effective. Detection accuracy for state-of-the-art models dropped to approximately 50-60%, rendering the detectors no better than a random guess. Crucially, this "cloaking" effect was achieved while maintaining high essay quality, as verified by both automated scorers and human evaluators.
Analysis of Robustness
Granularity and Depth
The impact of an attack increases as it becomes more granular. The researchers found that the depth of perturbation—how many words or sentences are substituted—directly correlates with the failure of the detector.
Detection Difficulty by Genre
Not all essays are equally easy to hide. "Source-dependent" essays, which require the AI to reference a specific text, proved harder to disguise than "Argumentative" essays. This is likely because the source text constrains the AI's vocabulary diversity, making it harder to swap words without losing context or coherence.
Conclusion
The findings demonstrate that current AIGC detectors are surprisingly fragile. Simple, automated perturbations can effectively hide the "fingerprint" of an LLM—such as the over-repetition of topical keywords—without sacrificing the quality of the writing. This study underscores the urgent need for more resilient detection methods that move beyond surface-level statistical patterns to understand deeper stylistic and structural elements of writing.
Summary updated