Skip to main content
QUICK REVIEW

[Paper Review] DetectLLM: Leveraging Log Rank Information for Zero-Shot Detection of Machine-Generated Text

Jinyan Su, Terry Yue Zhuo|arXiv (Cornell University)|May 23, 2023
Topic ModelingComputer Science15 citations
TL;DR

The paper introduces two zero-shot detectors, DetectLLM-LRR and DetectLLM-NPR, that leverage log likelihood and log rank statistics to detect machine-generated text, achieving state-of-the-art AUROC gains over prior zero-shot methods.

ABSTRACT

With the rapid progress of large language models (LLMs) and the huge amount of text they generated, it becomes more and more impractical to manually distinguish whether a text is machine-generated. Given the growing use of LLMs in social media and education, it prompts us to develop methods to detect machine-generated text, preventing malicious usage such as plagiarism, misinformation, and propaganda. Previous work has studied several zero-shot methods, which require no training data. These methods achieve good performance, but there is still a lot of room for improvement. In this paper, we introduce two novel zero-shot methods for detecting machine-generated text by leveraging the log rank information. One is called DetectLLM-LRR, which is fast and efficient, and the other is called DetectLLM-NPR, which is more accurate, but slower due to the need for perturbations. Our experiments on three datasets and seven language models show that our proposed methods improve over the state of the art by 3.9 and 1.75 AUROC points absolute. Moreover, DetectLLM-NPR needs fewer perturbations than previous work to achieve the same level of performance, which makes it more practical for real-world use. We also investigate the efficiency--performance trade-off based on users preference on these two measures and we provide intuition for using them in practice effectively. We release the data and the code of both methods in https://github.com/mbzuai-nlp/DetectLLM

Motivation & Objective

  • Motivate the need for scalable machine-generated text detection due to widespread LLM usage in education and media.
  • Propose zero-shot detectors that require no training and exploit log rank statistics to distinguish human vs. machine text.
  • Compare two variants—LRR (fast) and NPR (more accurate but slower)—across multiple datasets and models.
  • Provide guidance on efficiency vs. performance for practical deployment.
  • Release data and code to enable reproducible evaluation.

Proposed method

  • Define Log-Likelihood Log-Rank Ratio (LRR) as a combination of average log probability and average token rank information.
  • Define Normalized Perturbed Log-Rank (NPR) as a perturbation-based score normalized by the original log-rank, with small text rewrites.
  • Classify texts in a white-box, zero-shot setting using LRR or NPR without model training.
  • Evaluate both methods against baseline zero-shot detectors (log p, Rank, Log Rank, Entropy, DetectGPT) on multiple LLMs and datasets.
  • Analyze decoding strategies (top-k, nucleus) and temperature effects on performance.
  • Discuss computational costs and provide practical guidance for balancing efficiency and accuracy.

Experimental results

Research questions

  • RQ1Can log-rank information augment log-likelihood signals to improve zero-shot detection of machine-generated text?
  • RQ2How do Log-Likelihood Log-Rank Ratio (LRR) and Normalized Perturbed Log-Rank (NPR) perform relative to existing zero-shot detectors across datasets and model sizes?
  • RQ3What are the efficiency–performance trade-offs when using perturbation-free vs perturbation-based zero-shot methods?
  • RQ4How do decoding strategies and perturbation settings influence detection accuracy and practicality?
  • RQ5What guidance can be given for real-world deployment regarding resource constraints and model access?

Key findings

  • LRR and NPR improve over the previous best zero-shot methods by 3.9 and 1.75 AUROC points on average across datasets and models.
  • NPR requires fewer perturbations than prior work to reach the same performance, enhancing practicality.
  • Across three datasets and seven language models, perturbation-free LRR can outperform some perturbation-based methods, highlighting efficiency gains.
  • NPR generally outperforms DetectGPT under the same perturbation budget, indicating better efficiency-accuracy; however, large perturbation settings still boost performance.
  • The study analyzes decoding strategies and temperature, showing LRR and Log Rank favor different decoding regimes and that NPR remains competitive across settings.
  • The authors provide a cost-benefit framework detailing computation time and how to balance speed vs. accuracy in practice.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.