The Imitation Game: Detecting Human and AI-Generated Texts in the Era of ChatGPT and BARD

Kadhim Hayawi, Sakib Shahriar, Sujith Samuel Mathew
7/22/2023
cs.CLcs.AI

No official code found. Best implementation: sakibsh/LLM (11 stars, last commit 2024-08-24).

Abstract

The potential of artificial intelligence (AI)-based large language models (LLMs) holds considerable promise in revolutionizing education, research, and practice. However, distinguishing between human-written and AI-generated text has become a significant task. This paper presents a comparative study, introducing a novel dataset of human-written and LLM-generated texts in different genres: essays, stories, poetry, and Python code. We employ several machine learning models to classify the texts. Results demonstrate the efficacy of these models in discerning between human and AI-generated text, despite the dataset's limited sample size. However, the task becomes more challenging when classifying GPT-generated text, particularly in story writing. The results indicate that the models exhibit superior performance in binary classification tasks, such as distinguishing human-generated text from a specific LLM, compared to the more complex multiclass tasks that involve discerning among human-generated and multiple LLMs. Our findings provide insightful implications for AI text detection while our dataset paves the way for future research in this evolving area.

View on arXivView PDF

Code Implementations(1)

sakibsh/LLMCommunity100%

A collection of human-written and LLM-generated (GPT-4 and BARD) texts across several genres - essays, stories, poetry, and python code. It offers a resource for studying LLM text detection.

114Jul 20, 20232 years ago

Similar Papers

Cite this paper

@article{hayawi2023imitation,
  title  = {The Imitation Game: Detecting Human and AI-Generated Texts in the Era of ChatGPT and BARD},
  author = {Kadhim Hayawi and Sakib Shahriar and Sujith Samuel Mathew},
  year   = {2023},
  eprint = {2307.12166},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.12166v2}
}

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

Discussion