Large Language Models can be Guided to Evade AI-Generated Text Detection

Ning Lu, Shengcai Liu, Rui He, Qi Wang, Ke Tang · DOI

Introduction

As Large Language Models (LLMs) become integrated into daily workflows, concerns regarding their misuse in plagiarism, misinformation, and spam have intensified. This has sparked a "cat-and-mouse" game between developers creating AI text detectors—such as fine-tuned classifiers (RoBERTa), statistical methods (DetectGPT), and watermarking—and those seeking to bypass them.

Researchers have introduced SICO (Substitution-based In-Context example Optimization), a framework that enables LLMs to "self-mask" their own AI signatures. Unlike previous "paraphrase attacks" that required external models, SICO allows a model like GPT-3.5 to iteratively optimize its own prompts to produce text that is virtually indistinguishable from human writing to both statistical detectors and human evaluators.

Methodology: The SICO Framework

SICO treats prompt engineering as an optimization problem, utilizing a three-step process to refine the model's output:

  1. Feature Extraction: The LLM analyzes pairs of AI-generated and human-written text to identify linguistic features unique to human writing (e.g., clarity, conciseness, or specific syntactic patterns).
  2. In-Context Example Optimization: This core innovation takes a small set of human-written examples and iteratively "optimizes" them using feedback from a Proxy Detector.
  3. Sentence-level: The LLM paraphrases sentences to align with the extracted human features.
  4. Word-level: The system uses WordNet to find synonyms for content words, ensuring context-appropriateness via a masked language model.
  5. Prompt Construction: The final "universal" prompt combines the extracted features, task instructions, and the newly optimized in-context examples.
Overview of the SICO framework, illustrating the iterative optimization of human-written examples to reduce AI detection probability.

Experimental Setup

The researchers evaluated SICO across three real-world domains:

  • Academic Writing: Wikipedia paragraphs from the SQuAD dataset.
  • Open-ended Question Answering (QA): Questions from the Eli5 dataset.
  • Fake Review Generation: Business reviews from the Yelp dataset.

The study used 200 test examples per task, while the SICO prompts were constructed using only 40 human-written examples.

Key Results and Insights

The evaluation revealed that current AI detectors are highly vulnerable to prompt-guided evasion.

The "Universal" Vulnerability

A prompt optimized against a single proxy detector proved remarkably effective against others. This suggests that most detectors rely on similar "AI-ness" signatures that can be systematically suppressed.

Quantitative Impact

SICO caused a "total eclipse" of detection capabilities. Across six major detectors, including GPTZero and OpenAI’s detector, SICO reduced the Area Under the Curve (AUC) by an average of 0.5. In many instances, detectors were rendered no more effective than a random guess (AUC ≈ 0.5).

AUC scores across various detectors and tasks, highlighting the dramatic decrease in detection accuracy when using SICO-Para and SICO-Gen.

Cost and Quality

SICO is highly cost-efficient, requiring roughly $1 USD in API fees to construct a high-performing prompt. Furthermore, human trials indicated that SICO-generated text maintained high readability (3.84/5) and task completion rates, often appearing more "human" than standard LLM outputs.

Discussion and Future Work

The SICO attack highlights a significant gap in current AI safety measures. While the authors suggest an ensemble defense—training detectors on SICO-generated data—they acknowledge that as long as attackers have API access to detectors, the optimization cycle can continue. Future research will likely focus on more sophisticated optimization algorithms and extending these techniques to non-English languages and other modalities like code or image generation.

Reference: Lu, N., Liu, S., He, R., Ong, Y.-S., Wang, Q., & Tang, K. (2024). Large Language Models can be Guided to Evade AI-Generated Text Detection. Transactions on Machine Learning Research.

Summary updated

BibTeX
@article{lu2023large,
  author = {Ning Lu and Shengcai Liu and Rui He and Qi Wang and Ke Tang},
  title = {{Large Language Models can be Guided to Evade AI-Generated Text Detection}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=lLE0mWzUrr},
}
Figure