Reproduce “DetectLLM: Leveraging Log Rank Information for Zero-Shot Detection of Machine-Generated Text” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Jinyan Su, Terry Yue Zhuo, Di Wang, Preslav Nakov

DetectLLM introduces two zero-shot methods, LRR and NPR, for machine-generated text detection by leveraging log rank information. These methods consistently outperform state-of-the-art baselines like DetectGPT in AUROC, with NPR demonstrating higher efficiency requiring fewer perturbations, and LRR offering a fast, perturbation-free solution particularly effective at low generation temperatures.

Key insights

  • Log rank information is a highly effective feature for zero-shot MGT detection, significantly improving performance over traditional log-likelihood or rank-only methods.
  • Machine-generated texts are inherently more 'brittle' or sensitive to minor semantic perturbations, leading to larger shifts in their average log rank compared to human-written texts.
  • The generation temperature strongly influences detection performance, with perturbation-free methods showing dramatic improvements and near-perfect accuracy for texts generated at lower temperatures.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.