Detecting Machine-Generated Long-Form Content with Latent-Space Variables

Yufei Tian, Zeyu Pan, Nanyun Peng
10/4/2024
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

The increasing capability of large language models (LLMs) to generate fluent long-form texts is presenting new challenges in distinguishing machine-generated outputs from human-written ones, which is crucial for ensuring authenticity and trustworthiness of expressions. Existing zero-shot detectors primarily focus on token-level distributions, which are vulnerable to real-world domain shifts, including different prompting and decoding strategies, and adversarial attacks. We propose a more robust method that incorporates abstract elements, such as event transitions, as key deciding factors to detect machine versus human texts by training a latent-space model on sequences of events or topics derived from human-written texts. In three different domains, machine-generated texts, which are originally inseparable from human texts on the token level, can be better distinguished with our latent-space model, leading to a 31% improvement over strong baselines such as DetectGPT. Our analysis further reveals that, unlike humans, modern LLMs like GPT-4 generate event triggers and their transitions differently, an inherent disparity that helps our method to robustly detect machine-generated texts.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{tian2024detecting,
  title  = {Detecting Machine-Generated Long-Form Content with Latent-Space Variables},
  author = {Yufei Tian and Zeyu Pan and Nanyun Peng},
  year   = {2024},
  eprint = {2410.03856},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.03856v1}
}

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/2410.03856.svg)](https://codeofpaper.com/paper/2410.03856)

Discussion