On the Generalization of Training-based ChatGPT Detection Methods

Han Xu, Jie Ren, Pengfei He, Shenglai Zeng, Yingqian Cui +3 more
10/2/2023
cs.CLcs.AIcs.LG

Official code: hannxu123/hcvar (5 stars, last commit 2023-10-03).

Abstract

ChatGPT is one of the most popular language models which achieve amazing performance on various natural language tasks. Consequently, there is also an urgent need to detect the texts generated ChatGPT from human written. One of the extensively studied methods trains classification models to distinguish both. However, existing studies also demonstrate that the trained models may suffer from distribution shifts (during test), i.e., they are ineffective to predict the generated texts from unseen language tasks or topics. In this work, we aim to have a comprehensive investigation on these methods' generalization behaviors under distribution shift caused by a wide range of factors, including prompts, text lengths, topics, and language tasks. To achieve this goal, we first collect a new dataset with human and ChatGPT texts, and then we conduct extensive studies on the collected dataset. Our studies unveil insightful findings which provide guidance for developing future methodologies or data collection strategies for ChatGPT detection.

View on arXivView PDF

Code Implementations(1)

hannxu123/hcvarOfficial100%
50PythonOct 2, 20233 years ago

Similar Papers

Cite this paper

@article{xu2023generalization,
  title  = {On the Generalization of Training-based ChatGPT Detection Methods},
  author = {Han Xu and Jie Ren and Pengfei He and Shenglai Zeng and Yingqian Cui and Amy Liu and Hui Liu and Jiliang Tang},
  year   = {2023},
  eprint = {2310.01307},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.01307v2}
}

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

Discussion