Abstract
Current zero-shot AI text detectors primarily rely on observation-space statistics, which are increasingly fragile against adversarial generation configurations such as high-temperature decoding, complex prompting, and paraphrasing attacks. We propose a robust detection framework that shifts focus from token-level predictability to the latent discourse structure of text. By analyzing sequences of latent variables—specifically event triggers—we demonstrate that while large language models (LLMs) achieve high local fluency, they consistently fail to replicate human-like global coherence in event transitions. Our dual-criterion approach, combining sample-space curvature with latent-space perplexity, achieves a 31% AUROC improvement over state-of-the-art baselines and maintains high accuracy even under sophisticated paraphrasing attacks.
Introduction: The Fragility of Observation Space
As Large Language Models (LLMs) like GPT-4 become more sophisticated, the "statistical signature" they leave behind at the word level is vanishing. Most existing "zero-shot" detectors rely on observation space statistics—essentially checking if a specific sequence of tokens is "too predictable" for a human.
However, as illustrated in Figure 1, these methods are fragile. When a user adjusts generation parameters (e.g., increasing temperature) or applies a paraphraser, the word-level statistics shift. In these "diverse real-world configs," AI-generated text becomes indistinguishable from human writing in the observation space. To address this, we propose looking past the "trees" (tokens) to the "forest" (the underlying discourse structure).
Methodology: Analyzing the Latent Skeleton
Our framework operates in the latent space, extracting abstract elements that represent the structural "skeleton" of the text.
- Latent Variable Extraction: We experimented with various structures, including Part-of-Speech (POS) tags, nouns, verbs, and event triggers (words signaling an action or occurrence).
- The Critic Model: We trained a lightweight transformer (62M parameters) exclusively on sequences of these latent variables derived from human-written text.
- Latent Perplexity (Latent PPL): At test time, we convert text into its latent sequence and calculate the likelihood of a human producing that specific sequence of events.
- Dual Criterion Process: We combine token-level detectors with our Latent PPL score. If a token-level detector is uncertain (the "gray zone" common in paraphrased text), the system defers to the Latent PPL score.
Experimental Evaluation
We evaluated our method across three distinct domains: Movie Synopses (Wikipedia), News (NYT/BBC 2024), and Academic Essays (Arxiv 2023-2024). We used Llama-3-8b and GPT-4 to generate content, applying "attacks" like paraphrasing and "Complex Chain" prompting to hide AI origins.
As shown in Figure 6, the combination of Sample Space Curvature and Latent Space PPL provides a much clearer separation between human and machine-generated content, even when the machine content is modified by complex chains or paraphrasing.
Key Results and Insights
- The "Local vs. Global" Gap: LLMs have mastered local fluency but struggle with global coherence. They transition between event types in ways that humans rarely do. Event triggers proved to be the most effective latent variable, suggesting the "logic of action" is the hardest element for AI to replicate.
- Performance Gains: Our method achieved a 31% improvement in AUROC over strong baselines like DetectGPT and Fast-DetectGPT.
- Robustness: While paraphrasing causes token-level detectors to fail, our latent-space model maintained high accuracy. Interestingly, even when LLMs were told to "write an outline first," the resulting event transitions remained fundamentally non-human.
Conclusion and Limitations
While highly effective for long-form narrative content, this method is not suitable for short-form text (e.g., tweets) due to the need for a sequence of events to analyze. Furthermore, performance is currently limited by the quality of automated event extractors, particularly in technical domains like Arxiv. Future work will explore more abstract latent variables to stay ahead of increasingly coherent LLMs.
Summary updated