Latent Trajectory Discrimination for AI-Generated Text Detection

Computation and LanguageArtificial Intelligence

Summary

The authors show that most AI-generated text detection methods look at whole documents as fixed objects, missing how the text actually forms step-by-step. They treat the creation of text like a path through a changing space and track how parts of the document change over time. Their method, GTCL, breaks text into chunks, records their evolving representations, and uses contrastive learning to spot patterns unique to AI-generated writing. Tests show GTCL works better than previous methods, suggesting looking at text as a sequence can improve detection across various models and settings.

Authors

Gianluca Bonifazi, Christopher Buratti, Michele Marchetti, Federica Parlapiano, Giulia Quaglieri, Davide Traini, Domenico Ursino, Luca Virgili

Abstract

Most existing approaches to AI-Generated Text Detection (AIGTD) treat documents as static objects and base their decisions on aggregate statistics or globally compressed embeddings. However, this perspective overlooks the inherently dynamic nature of autoregressive generation, where content evolves progressively through the latent space. In this paper, we reformulate AIGTD as the problem of distinguishing between latent generation trajectories. Instead of relying on static representations, we model how textual representations evolve across the sequence. To this end, we propose Geometric Trajectory and Contrastive Learning (GTCL), a framework that segments the document into ordered local units, encodes each unit in an embedding space, and constructs a structured and sequence-level representation. GTCL then applies contrastive learning to these trajectories to learn geometric regularities associated with the autoregressive generation. Evaluations performed on three different benchmarks and several approaches show that GTCL outperforms detection baselines consistently, which implies that explicitly modeling sequential dynamics provides robust discriminative signals across models and domains. These results suggest that modeling trajectory differences could improve detection and open up a dynamic direction that has been underexplored in previous AIGTD literature.