TriBet: Relative E-values for Online Machine-generated Text Detection

Xunye Tian, Zhijian Zhou, Liuhua Peng, Jared Collette, Dino Sejdinovic, Yue Yang, Feng LiuNeurIPS 2026

TL;DR

Checking long streams of text for AI generation using standard detectors is a statistical trap: even a 95%-accurate detector will almost certainly falsely accuse a 200-paragraph human document. Sequential "testing-by-betting" solves this in theory, but breaks down in the real world whenever text domains shift or new LLMs emerge. TriBet fixes this by turning AI detection into a relative three-way comparison—asking whether incoming text looks more like known human text or a local AI proxy—delivering fast, reliable detection while strictly capping false accusations.

What Problem Does This Paper Address?

Imagine auditing a live news feed or a 200-page report paragraph by paragraph. If an offline AI detector has a 5% false-positive rate per paragraph, the probability of falsely flagging a purely human 20-paragraph document is already 64%; by 200 paragraphs, false accusation is a near certainty ($>99.99\%$).

Offline detectors compound false accusations over long documents, whereas online betting frameworks keep the false-positive rate flat.

To prevent this, researchers recently framed online AI detection as sequential testing-by-betting. You start with \$1 of virtual wealth and bet on each incoming paragraph using a detector score. If the stream is human, the game is fair or unfavorable, so your wealth stays low; if it's AI, your wealth compounds exponentially until it crosses a threshold (say, $1/\alpha = \$20$ for a 5% false-positive rate $\alpha$), triggering an alarm.

However, existing two-sample betting methods compare incoming text only against an offline human reference set, relying on a single calibration offset ($\varepsilon$) to keep the game fair. The authors uncover an online-calibration dilemma:

  1. Cross-domain shift: If your reference set is general BBC news, but you are auditing Olympic sports news, the baseline human scores shift. Your pre-calculated $\varepsilon$ can end up too small, causing false positives to skyrocket (up to 81% in tests!).
  2. Outdated proxies: When modern frontier LLMs are evaluated by older, open-weight detector models, discriminative signals weaken. The estimated $\varepsilon$ becomes too large, causing wealth to stagnate and detection power to collapse to near zero.

Methods

TriBet resolves this dilemma by decoupling evidence gathering from false-positive calibration, replacing the fragile offset $\varepsilon$ entirely:

  • Triple-Sample Relative Witness (New): Instead of asking "How far is this text from human reference $X$?", TriBet generates an offline machine reference set $Z$ using the detector's own proxy LLM. Using a Gaussian kernel, it computes a bounded witness score measuring whether the incoming paragraph's score is closer to the machine reference $Z$ or the human reference $X$.
  • Conformal $p$-to-$e$ Calibration (Standard + New Pipeline): To guarantee safety without guessing score distributions, TriBet compares the incoming text's witness score against a tiny target-domain human calibration set (e.g., $\le 20$ samples) to get a rank-based conformal $p$-value. It then converts this $p$-value into a betting multiplier (an e-value, $e_t = \kappa_t p_t^{\kappa_t - 1}$) using an online, adaptive parameter $\kappa_t$ that maximizes wealth growth.
  • Test-Inclusive Domain-Shift Correction / TIDS (New): Under domain shift, incoming human text might drift closer to the machine anchor. At each step, TIDS calculates the average score shift between the source human reference and the combined pool of target calibration samples plus the current test query, shifting both human and machine anchors together. Including the test query preserves mathematical symmetry (exchangeability), keeping false positives strictly controlled while preserving the relative gap between human and AI anchors.

Datasets

The authors evaluate streams across three text corpora:

  • BBC XSum (short news articles, used as the source reference in cross-domain tests).
  • Olympic-2024 (an official Olympic news collection compiled by the authors, used to test domain shift).
  • Student Essay (long-context essays).

To generate machine text, they use 15 source LLMs (12 modern frontier models from OpenAI, Google, and Anthropic—such as GPT-4o, GPT-5.4, Gemini-2.5/3.1, and Claude-4.5/4.6—plus 3 older models), paired with 8 open-weight proxy LLMs (from Llama, Falcon, Gemma, GPT-Neo, and T5 families) running standard zero-shot scores like Fast-DetectGPT, DetectGPT, NPR, and Binoculars.

Key Insights and Ideas

  • A proxy LLM makes a great anchor, even for frontier models: You don't need samples from the secret model you're auditing (e.g., GPT-5.4) to build the machine reference $Z$. Generating $Z$ offline with the detector's own open-weight proxy (like Gemma or Falcon) gives the witness score enough relative structure to rescue collapsed detectors.
  • Calibration belongs in rank space, not raw score space: Raw LLM detector scores can be heavy-tailed and shift wildly across topics. By leaning on conformal ranks and permutation symmetry (via TIDS), false-positive control holds regardless of how messy the underlying detector score is.

Key Results

Across all 24 modern LLM settings (12 models $\times$ self-reference and cross-domain regimes) at target $\alpha = 0.05$:

  • 100% Detection Power: TriBet achieves 1.00 power in every single cell while keeping empirical FPR at 0.00–0.01 (well below 0.05).
  • Beating the Oracle: Under cross-domain shift (XSum $\rightarrow$ Olympic), the deployable baseline (OOB-S2) and even an oracle baseline given unfair access to the true target null offset (OOB-S1) suffer catastrophic power collapse—dropping to 0.01–0.04 power on models like GPT-5.4, Gemini-2.5-Pro, and Claude-Sonnet-4.6. TriBet detects all of them with 1.00 power.
  • Rapid Stopping Times: TriBet flags AI streams much faster—often within 4 to 16 paragraphs (and at most 100 on the hardest frontier models), reducing average cross-domain stopping time from 301+ steps down to 36 steps in ablations.
Table 2: Main experiments on Olympic self-reference and XSum→Olympic cross-domain streams. Each row uses the proxy with the highest held-out Olympic AUROC ˆC(f) for the corresponding source LLM. OOB-S1 denotes Chen and Wang [21] with an oracle ε; OOB-S2 uses the same payoff with an online warm-up estimate of the offset. TRIBET uses the triple-sample kernel-witness payoff with TIDS and adaptive online κt in §4. Each cell reports Pow (¯τ) / FPR over 200 test-stream permutations at level α = 0.05 and warm-up samples ncal = 20; † marks empirical FPR above α.

Limitations and Future Work

  • Calibration Data Requirement: Strict theoretical guarantees assume fresh, exchangeable target-domain human calibration samples at each round. Practically, TriBet approximates this by subsampling mini-batches (even as small as $n_{\text{cal}} = 5$) from a finite target-domain human pool. While empirically rock-solid, it still requires a small set of clean target-domain human examples, unlike purely source-only setups.
  • Complex Domain Shifts: TIDS applies a shared linear shift to both human and machine references. While false-positive control is always guaranteed by symmetry, detection power relies on the qualitative assumption that human text stays closer to the shifted human anchor than the machine anchor—which could weaken under severe, nonlinear, class-dependent shifts.
  • Scope: The framework focuses exclusively on post-hoc black-box auditing, leaving out generation-time watermarking. Future directions are not explicitly discussed in the main text.

Summary updated

Abstract

To ensure a formal guarantee that fully human-written text streams are *not falsely accused* as machine-generated text (MGT), the online betting framework (e-values) has been successfully applied on various existing detectors. However, current two-sample e-value methods fail in two real-world application scenarios: the false positive rate (FPR) is often out of control and the test power drops drastically when (1) the reference domain is similar but not exactly same as test domain (cross-domain), or (2) proxy model of detector is outdated compared to the modern source model. We identify the root cause as an online calibration dilemma: two-sample optimization and betting relies on a null-calibrating offset that is unidentifiable from unlabeled test streams under shift. We resolve this with a triple-sample betting framework (TriBet) that conduct online MGT detection as relative testing against both human and machine references using a witness score, and introduces a conformal test-inclusive domain-shift betting strategy to achieve FPR control without fragile online calibration. We show that TriBet is a level-$\alpha$ sequential test with asymptotic power one, and characterize its expected stopping time. Empirically, we evaluate on 15 source LLMs, 8 proxy models and mixed-document streams, TriBet consistently delivers faster and more powerful detection than both oracle and online betting baselines while keeping FPR strictly controlled.
BibTeX
@inproceedings{tian2026tribet,
  author = {Xunye Tian and Zhijian Zhou and Liuhua Peng and Jared Collette and Dino Sejdinovic and Yue Yang and Feng Liu},
  title = {{TriBet: Relative E-values for Online Machine-generated Text Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5EAbPi7rdn},
}
Figure