Detecting Subtle Differences between Human and Model Languages Using Spectrum of Relative Likelihood
Yang Xu, Yu Wang, Hao An, Zhichen Liu, Yongyuan Li
TL;DR
This work tackles the growing challenge of distinguishing human-written from model-generated text as language models become increasingly human-like. It introduces FourierGPT, which converts tokenwise relative likelihoods into a spectrum via a Fourier transform and uses both supervised and heuristic classifiers to detect authorship. The approach achieves competitive zero-shot performance and state-of-the-art results on short-text detection, while requiring less computational cost by using relative likelihood and simple estimators such as $n$-gram models. Its findings also reveal subtle linguistic differences—such as distinctive Yes/No answer patterns and robustness to POS masking—grounded in psycholinguistic concepts like surprisal and UID, with practical implications for rapid, scalable text attribution. The work provides open-source code and demonstrates that spectrum-based likelihood analysis can offer robust, interpretable signals even when absolute likelihood estimates are noisy or model-dependent.
Abstract
Human and model-generated texts can be distinguished by examining the magnitude of likelihood in language. However, it is becoming increasingly difficult as language model's capabilities of generating human-like texts keep evolving. This study provides a new perspective by using the relative likelihood values instead of absolute ones, and extracting useful features from the spectrum-view of likelihood for the human-model text detection task. We propose a detection procedure with two classification methods, supervised and heuristic-based, respectively, which results in competitive performances with previous zero-shot detection methods and a new state-of-the-art on short-text detection. Our method can also reveal subtle differences between human and model languages, which find theoretical roots in psycholinguistics studies. Our code is available at https://github.com/CLCS-SUSTech/FourierGPT
