LLMDet: A Third Party Large Language Models Generated Text Detection Tool

Kangxi Wu, Liang Pang, Huawei Shen, Xueqi Cheng, Tat-Seng Chua
5/24/2023
cs.CL

Official code: TrustedLLM/LLMDet (86 stars, MIT, last commit 2024-05-27).

Abstract

Generated texts from large language models (LLMs) are remarkably close to high-quality human-authored text, raising concerns about their potential misuse in spreading false information and academic misconduct. Consequently, there is an urgent need for a highly practical detection tool capable of accurately identifying the source of a given text. However, existing detection tools typically rely on access to LLMs and can only differentiate between machine-generated and human-authored text, failing to meet the requirements of fine-grained tracing, intermediary judgment, and rapid detection. Therefore, we propose LLMDet, a model-specific, secure, efficient, and extendable detection tool, that can source text from specific LLMs, such as GPT-2, OPT, LLaMA, and others. In LLMDet, we record the next-token probabilities of salient n-grams as features to calculate proxy perplexity for each LLM. By jointly analyzing the proxy perplexities of LLMs, we can determine the source of the generated text. Experimental results show that LLMDet yields impressive detection performance while ensuring speed and security, achieving 98.54% precision and x5.0 faster for recognizing human-authored text. Additionally, LLMDet can effortlessly extend its detection capabilities to a new open-source model. We will provide an open-source tool at https://github.com/TrustedLLM/LLMDet.

View on arXivView PDF

Code Implementations(1)

TrustedLLM/LLMDetOfficial100%
MIT

LLMDet is a text detection tool that can identify which generated sources the text came from (e.g. large language model or human-write).

8612PythonMay 24, 20232 years agoMIT
generated-text-detectionlarge-language-modelsllm

Similar Papers

Cite this paper

@article{wu2023llmdet,
  title  = {LLMDet: A Third Party Large Language Models Generated Text Detection Tool},
  author = {Kangxi Wu and Liang Pang and Huawei Shen and Xueqi Cheng and Tat-Seng Chua},
  year   = {2023},
  eprint = {2305.15004},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.15004v3}
}

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

Discussion