atlas

Research map / Large language models / Language, safety and interpretability

Online Detection of LLM-Generated Texts via Sequential Hypothesis Testing by Betting

ICML 2025 · Large language models › Language, safety and interpretability · approach: Zero-shot machine-text detection · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes an online LLM-text detector that turns offline score functions into a sequential betting test (ONS-updated wealth) with controlled false positive rate and bounded expected detection time.

Problem

Detecting whether a streaming text source is an LLM with anytime-valid statistical guarantees on false positives and bounded detection time, without threshold tuning; offline detectors cannot control type-I error online.

Approach

Frame online LLM detection as a two-sample sequential test: compare score differences between a human-text pool and the incoming stream, bet on the mean difference with Online Newton Step updates to grow wealth under the alternative, and reject when wealth exceeds 1/alpha (randomized Ville's inequality for a time budget). Extends testing-by-betting to unknown score ranges via estimated bounds d_t

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use online betting with Fast-DetectGPT, DetectGPT, or Likelihood scores instead of less competitive score configurationsOnline LLM detection · 2024 Olympic news vs LLM-generated newsrejection time: around t= 100Helped
Estimate d_t and ε from initial samples rather than using oracle valuesOnline betting with Fast-DetectGPT / Neo-2.7 and Likelihood / Gemma-2B · 2024 Olympic news vs LLM-generated newsrejection timeHurt
Use the first 10 samples to estimate d_t and εOnline betting with most score functions using Neo-2.7 · 2024 Olympic news vs LLM-generated newsrejection time: around t=300Hurt
Use an estimated d_t that is too small to keep wealth nonnegativeOnline betting with RoBERTa-based scores and some Gemma-2B configurations · 2024 Olympic news vs LLM-generated newsFPRHurt
Use online betting instead of sequential fixed-time permutation testsSequential LLM detection with Fast-DetectGPT / Neo-2.7 · 2024 Olympic news vs LLM-generated newsFPRHelped
Use permutation tests with small batches without prior knowledge of εSequential permutation-test baselines · 2024 Olympic news vs LLM-generated newsFPRHurt
Use a larger bound d_t for score differencesOnline betting · 2024 Olympic news vs LLM-generated newsrejection timeHurt
Use a score function and parameters that ensure wealth remains a nonnegative supermartingaleOnline betting · 2024 Olympic news vs LLM-generated newsFPRHelped

Surprising findings

Limitations

Experimental setup

Datasets: XSum Paris 2024 Olympics news (500 articles from official website) machine-generated news from Gemini-1.5-Flash, Gemini-1.5-Pro, PaLM 2

Benchmarks: XSum vs. 2024 Olympic news (H0) XSum vs. machine-generated Olympic news (H1)

Metrics: false positive rate rejection time (expected time to detect LLM)

Baselines: fixed-batch permutation test (constant alpha) fixed-batch permutation test (alpha/2^i)

Builds on: testing by betting Online Newton Step Ville's inequality Fast-DetectGPT DetectGPT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy