Skip to main content
QUICK REVIEW

[Paper Review] Evade ChatGPT Detectors via A Single Space

Shuyang Cai, Wanyun Cui|arXiv (Cornell University)|Jul 5, 2023
Topic ModelingComputer Science8 citations
TL;DR

The paper shows detectors do not rely on semantic or stylistic gaps; a single space before a comma (SpaceInfi) can evade both white-box and black-box detectors across multiple benchmarks, with token mutation explaining the effect.

ABSTRACT

ChatGPT brings revolutionary social value but also raises concerns about the misuse of AI-generated text. Consequently, an important question is how to detect whether texts are generated by ChatGPT or by human. Existing detectors are built upon the assumption that there are distributional gaps between human-generated and AI-generated text. These gaps are typically identified using statistical information or classifiers. Our research challenges the distributional gap assumption in detectors. We find that detectors do not effectively discriminate the semantic and stylistic gaps between human-generated and AI-generated text. Instead, the "subtle differences", such as an extra space, become crucial for detection. Based on this discovery, we propose the SpaceInfi strategy to evade detection. Experiments demonstrate the effectiveness of this strategy across multiple benchmarks and detectors. We also provide a theoretical explanation for why SpaceInfi is successful in evading perplexity-based detection. And we empirically show that a phenomenon called token mutation causes the evasion for language model-based detectors. Our findings offer new insights and challenges for understanding and constructing more applicable ChatGPT detectors.

Motivation & Objective

  • Question the assumption that detectors rely on semantic or stylistic gaps between human- and AI-generated text.
  • Demonstrate a simple, cost-free evasion strategy that bypasses multiple detectors.
  • Provide a theoretical explanation for why space insertion evades detection via token mutation and perplexity-based metrics.
  • Empirically assess SpaceInfi across diverse benchmarks and detectors.
  • Discuss implications for designing more robust AI-generated text detectors.

Proposed method

  • Define SpaceInfi: insert a single space before a random comma in AI-generated text across paragraphs.
  • Evaluate SpaceInfi on multiple benchmarks (Alpaca, Vicuna-eval, WizardLM-eval, Alpaca-GPT4) and detectors (GPTZero, HelloSimpleAI, MPU).
  • Compute the evasion rate as the ratio of text classified as human-generated by detectors after SpaceInfi.
  • Analyze detector behavior and token representations to explain token mutation caused by space insertion.
  • Investigate token mutation and its generality across tokens and detectors.
  • Compare SpaceInfi to baselines including act-like-a-human and style transfer.

Experimental results

Research questions

  • RQ1Do detectors rely on semantic or stylistic gaps when distinguishing human- and AI-generated text?
  • RQ2Can a minimal textual modification, such as inserting a single space, consistently evade both white-box and black-box detectors?
  • RQ3What underlying mechanisms (e.g., token mutation) explain the success of SpaceInfi and its impact on perplexity-based detectors?
  • RQ4Is style transfer an effective evasion method compared to SpaceInfi across benchmarks?
  • RQ5How general is the SpaceInfi attack across models, detectors, and token types?

Key findings

  • SpaceInfi dramatically reduces detection rates for GPTZero and HelloSimpleAI across several benchmarks, often to near 0%.
  • Detectors do not effectively utilize semantic content; even with phrases like “As an AI model,” detectors may still classify as human-generated.
  • Style transfer requires highly intense styles to impact evasion, and is less practical than SpaceInfi.
  • Token mutations caused by space insertion alter detector representations (token mutation), explaining why subtle changes evade LM-based detectors.
  • Perplexity-based detectors can be fooled because the extra space raises perplexity due to improbable token transitions.
  • Token mutation shows that small perceptual changes can lead to large representation shifts in language models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.