Skip to main content
QUICK REVIEW

[Paper Review] LLM-Detector: Improving AI-Generated Chinese Text Detection with Open-Source LLM Instruction Tuning

Rongsheng Wang, Haoming Chen|arXiv (Cornell University)|Feb 2, 2024
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

The paper proposes LLM-Detector, an instruction-tuned open-source LLM approach to detect AI-generated Chinese text at both sentence and document levels, achieving strong in-domain and OOD generalization. It builds a large Chinese detection dataset and shows instruction tuning yields state-of-the-art results compared to baselines.

ABSTRACT

ChatGPT and other general large language models (LLMs) have achieved remarkable success, but they have also raised concerns about the misuse of AI-generated texts. Existing AI-generated text detection models, such as based on BERT and RoBERTa, are prone to in-domain over-fitting, leading to poor out-of-domain (OOD) detection performance. In this paper, we first collected Chinese text responses generated by human experts and 9 types of LLMs, for which to multiple domains questions, and further created a dataset that mixed human-written sentences and sentences polished by LLMs. We then proposed LLM-Detector, a novel method for both document-level and sentence-level text detection through Instruction Tuning of LLMs. Our method leverages the wealth of knowledge LLMs acquire during pre-training, enabling them to detect the text they generate. Instruction tuning aligns the model's responses with the user's expected text detection tasks. Experimental results show that previous methods struggle with sentence-level AI-generated text detection and OOD detection. In contrast, our proposed method not only significantly outperforms baseline methods in both sentence-level and document-level text detection but also demonstrates strong generalization capabilities. Furthermore, since LLM-Detector is trained based on open-source LLMs, it is easy to customize for deployment.

Motivation & Objective

  • Motivate robust AI-generated text detection in Chinese across diverse domains and languages.
  • Create a comprehensive, multi-domain Chinese detection dataset including human and AI-generated responses.
  • Develop an instruction-tuned LLM detector capable of document- and sentence-level detection.
  • Show that instruction tuning improves detection over prior methods and generalizes to out-of-domain data.

Proposed method

  • Construct a large Chinese detection dataset with 151.7k samples from human experts and 9 LLMs across 7 domains.
  • Train an LLM-Detector by instruction-tuning a foundational LLM using a coach instruction framework where inputs x_c guide the model to output the text source label (Human or AI).
  • Fine-tune models of varying sizes on the detection data using QLoRA with 4 A100 GPUs and fp16, employing a learning rate of 5e-5, 3 epochs, and LoRA rank 8.
  • Evaluate on in-domain data (M4 seed problems) and out-of-domain data (News domain), plus sentence-level detection with annotated sentences.
  • Compare against zero-shot detectors (Fast-DetectGPT, GLTR, PPL) and supervised classifiers (BERT/RoBERTa, MPU, LLaMA2, Mixtral).
  • Assess robustness to short texts and mixed AI-human content; analyze language-specific effects by using Chinese-trained LLMs.

Experimental results

Research questions

  • RQ1Can instruction-tuning of open-source LLMs improve detection of AI-generated Chinese text at both document and sentence levels?
  • RQ2How does LLM-Detector perform on in-domain versus out-of-domain data compared to baseline detectors?
  • RQ3Does training data in the target language (Chinese) enhance detection performance over English-trained detectors?
  • RQ4What is the impact of text length and mixed AI-human content on detection accuracy?
  • RQ5Do detectors trained on texts generated by specific LLMs generalize to other LLMs and scales?

Key findings

  • LLM-Detector-Large achieves 98.52% in-domain accuracy, outperforming prior supervised and zero-shot detectors.
  • On out-of-domain data, LLM-Detector-Large reaches 96.70% accuracy, showing strong generalization.
  • Sentence-level detection with LLM-Detector-Small achieves 71.36% precision and 72.62% recall (Macro-F1 73.50).
  • Compared to Fast-DetectGPT, GLTR, and PPL, LLM-Detector shows superior performance in both in-domain and OOD scenarios.
  • Short texts do not substantially degrade LLM-Detector performance, unlike many supervised or statistical detectors.
  • Detectors trained in Chinese data outperform English-trained counterparts, highlighting language-aligned training benefits.

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.