DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature

AI-generated keywords: Language Models DetectGPT Machine-Written Content Factual Accuracy Zero-Shot Detection

AI-generated Key Points

  • Large language models (LLMs) like GPT-3 are capable of generating highly fluent and factually accurate text.
  • Detecting machine-written content has become increasingly important, especially in academic settings where students may use LLMs to complete assignments.
  • DetectGPT is a new approach that leverages negative curvature regions in the log probability function of LLMs to detect machine-generated text.
  • DetectGPT compares the log probability of a passage with perturbations from a generic pre-trained model like T5 to determine if it was likely generated by a specific LLM such as GPT-3.
  • This approach does not require training a separate classifier or collecting datasets of real or generated passages.
  • Machine-generated text extends beyond academia into journalism and other contexts, raising concerns about factual accuracy and potential misinformation.
  • Automated detection methods like DetectGPT provide teachers and news-readers with more confidence in determining the origin of text they consume.
  • DetectGPT represents a significant advancement in zero-shot machine-generated text detection, outperforming existing methods in identifying fake news articles generated by large-scale LLMs like GPT-NeoX.
  • Tools like DetectGPT address concerns related to student assessment, misinformation, and pave the way for more reliable interactions with machine-generated content across various domains.
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Eric Mitchell, Yoonho Lee, Alexander Khazatsky, Christopher D. Manning, Chelsea Finn

Project website at https://ericmitchell.ai/detectgpt
License: CC BY 4.0

Abstract: The fluency and factual knowledge of large language models (LLMs) heightens the need for corresponding systems to detect whether a piece of text is machine-written. For example, students may use LLMs to complete written assignments, leaving instructors unable to accurately assess student learning. In this paper, we first demonstrate that text sampled from an LLM tends to occupy negative curvature regions of the model's log probability function. Leveraging this observation, we then define a new curvature-based criterion for judging if a passage is generated from a given LLM. This approach, which we call DetectGPT, does not require training a separate classifier, collecting a dataset of real or generated passages, or explicitly watermarking generated text. It uses only log probabilities computed by the model of interest and random perturbations of the passage from another generic pre-trained language model (e.g, T5). We find DetectGPT is more discriminative than existing zero-shot methods for model sample detection, notably improving detection of fake news articles generated by 20B parameter GPT-NeoX from 0.81 AUROC for the strongest zero-shot baseline to 0.95 AUROC for DetectGPT. See https://ericmitchell.ai/detectgpt for code, data, and other project information.

Submitted to arXiv on 26 Jan. 2023

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2301.11305v1

In a world where large language models (LLMs) like GPT-3 are capable of generating highly fluent and factually accurate text, the need for systems to detect machine-written content has become increasingly important. This is particularly evident in scenarios where students may use LLMs to complete assignments, making it challenging for instructors to assess student learning accurately. In response to this challenge, a new approach called DetectGPT has been developed. <br> DetectGPT leverages the observation that text generated by LLMs tends to occupy negative curvature regions of the model's log probability function. By comparing the log probability of a candidate passage with minor perturbations generated by a generic pre-trained model like T5, DetectGPT can determine if the passage is likely generated from a specific LLM such as GPT-3. <br> Importantly, this approach does not require training a separate classifier or collecting datasets of real or generated passages. The implications of machine-generated text extend beyond academic settings, with AI-written content being used in journalism and other contexts. However, concerns arise regarding factual accuracy and the potential for misleading information in articles produced by LLMs with limited human review. Automated detection methods like DetectGPT offer a solution to these challenges by providing teachers and news-readers with more confidence in determining the origin of the text they consume. Overall, DetectGPT represents a significant advancement in zero-shot machine-generated text detection, outperforming existing methods in identifying fake news articles generated by large-scale LLMs like GPT-NeoX.<br> The development of such tools not only addresses immediate concerns related to student assessment and misinformation but also paves the way for more reliable and trustworthy interactions with machine-generated content in various domains.
Created on 29 Aug. 2024

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.