Saved in:
Bibliographic Details
Main Authors: Chen, Can, Wang, Jun-Kun
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.22318
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913879820337152
author Chen, Can
Wang, Jun-Kun
author_facet Chen, Can
Wang, Jun-Kun
contents Developing algorithms to differentiate between machine-generated texts and human-written texts has garnered substantial attention in recent years. Existing methods in this direction typically concern an offline setting where a dataset containing a mix of real and machine-generated texts is given upfront, and the task is to determine whether each sample in the dataset is from a large language model (LLM) or a human. However, in many practical scenarios, sources such as news websites, social media accounts, and online forums publish content in a streaming fashion. Therefore, in this online scenario, how to quickly and accurately determine whether the source is an LLM with strong statistical guarantees is crucial for these media or platforms to function effectively and prevent the spread of misinformation and other potential misuse of LLMs. To tackle the problem of online detection, we develop an algorithm based on the techniques of sequential hypothesis testing by betting that not only builds upon and complements existing offline detection techniques but also enjoys statistical guarantees, which include a controlled false positive rate and the expected time to correctly identify a source as an LLM. Experiments were conducted to demonstrate the effectiveness of our method.
format Preprint
id arxiv_https___arxiv_org_abs_2410_22318
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Online Detection of LLM-Generated Texts via Sequential Hypothesis Testing by Betting
Chen, Can
Wang, Jun-Kun
Machine Learning
Developing algorithms to differentiate between machine-generated texts and human-written texts has garnered substantial attention in recent years. Existing methods in this direction typically concern an offline setting where a dataset containing a mix of real and machine-generated texts is given upfront, and the task is to determine whether each sample in the dataset is from a large language model (LLM) or a human. However, in many practical scenarios, sources such as news websites, social media accounts, and online forums publish content in a streaming fashion. Therefore, in this online scenario, how to quickly and accurately determine whether the source is an LLM with strong statistical guarantees is crucial for these media or platforms to function effectively and prevent the spread of misinformation and other potential misuse of LLMs. To tackle the problem of online detection, we develop an algorithm based on the techniques of sequential hypothesis testing by betting that not only builds upon and complements existing offline detection techniques but also enjoys statistical guarantees, which include a controlled false positive rate and the expected time to correctly identify a source as an LLM. Experiments were conducted to demonstrate the effectiveness of our method.
title Online Detection of LLM-Generated Texts via Sequential Hypothesis Testing by Betting
topic Machine Learning
url https://arxiv.org/abs/2410.22318