Detecting Subtle Differences between Human and Model Languages Using Spectrum of Relative Likelihood

Yang Xu, Yu Wang, Hao An, Zhichen Liu, Yongyuan Li
6/28/2024
cs.CLcs.AI

Official code: CLCS-SUSTech/FourierGPT (15 stars, MIT, last commit 2025-08-10).

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

View on arXivView PDF

Code Implementations(1)

MIT

Code base for "Detecting Subtle Differences between Human and Model Languages Using Spectrum of Relative Likelihood"

152Shell, PythonJun 28, 20241 years agoMIT

Cite this paper

@article{xu2024detecting,
  title  = {Detecting Subtle Differences between Human and Model Languages Using Spectrum of Relative Likelihood},
  author = {Yang Xu and Yu Wang and Hao An and Zhichen Liu and Yongyuan Li},
  year   = {2024},
  eprint = {2406.19874},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.19874v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.19874.svg)](https://codeofpaper.com/paper/2406.19874)

Discussion