Deep Kernel Relative Test for Machine-generated Text Detection
Yiliao Song, Zhenqiao Yuan, Shuhai Zhang, Zhen Fang, Jun Yu, Feng Liu
Abstract
Recent studies demonstrate that two-sample test can effectively detect machinegenerated texts (MGTs) with excellent adaptation ability to texts generated by newer LLMs. However, two-sample test-based detection relies on the assumption that human-written texts (HWTs) must follow the distribution of seen HWTs. As a result, it tends to make mistakes in identifying HWTs that deviate from the seen HWT distribution, limiting their use in sensitive areas like academic integrity verification. To address this issue, we propose to employ non-parametric kernel relative test to detect MGTs by testing whether it is statistically significant that the distribution of a text to be tested is closer to the distribution of HWTs than to the MGTs' distribution. We further develop a kernel optimisation algorithm in relative test to select the best kernel that can enhance the testing capability for MGT detection. As relative test does not assume that a text to be tested must belong exclusively to either MGTs or HWTs, relative test can largely reduce the false positive error compared to two-sample test, offering significant advantages in practice. Extensive experiments demonstrate the superior performance of our method, compared to state-of-the-art non-parametric and parametric detectors. The code and demo are available: https://github.com/xLearn-AU/R-Detect.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Learn-to-Distance: Distance Learning for Detecting LLM-Generated Text cites RADAR: Robust AI-Text Detection via Adversarial Learning
- Learn-to-Distance: Distance Learning for Detecting LLM-Generated Text cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
- Learn-to-Distance: Distance Learning for Detecting LLM-Generated Text cites AdaDetectGPT: Adaptive Detection of LLM-Generated Text with Statistical Guarantees
- AdaDetectGPT: Adaptive Detection of LLM-Generated Text with Statistical Guarantees cites Learn-to-Distance: Distance Learning for Detecting LLM-Generated Text
- Human Texts Are Outliers: Detecting LLM-generated Texts via Out-of-distribution Detection cites RADAR: Robust AI-Text Detection via Adversarial Learning
- Human Texts Are Outliers: Detecting LLM-generated Texts via Out-of-distribution Detection cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
- Human Texts Are Outliers: Detecting LLM-generated Texts via Out-of-distribution Detection cites A Watermark for Large Language Models
- DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature cites Language Models are Few-Shot Learners
- DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature cites A Watermark for Large Language Models
- AdaDetectGPT: Adaptive Detection of LLM-Generated Text with Statistical Guarantees cites RADAR: Robust AI-Text Detection via Adversarial Learning
- AdaDetectGPT: Adaptive Detection of LLM-Generated Text with Statistical Guarantees cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
- AdaDetectGPT: Adaptive Detection of LLM-Generated Text with Statistical Guarantees cites A Watermark for Large Language Models
- DNA-DetectLLM: Unveiling AI-Generated Text via a DNA-Inspired Mutation-Repair Paradigm cites RADAR: Robust AI-Text Detection via Adversarial Learning
- DNA-DetectLLM: Unveiling AI-Generated Text via a DNA-Inspired Mutation-Repair Paradigm cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
- DNA-DetectLLM: Unveiling AI-Generated Text via a DNA-Inspired Mutation-Repair Paradigm cites A Watermark for Large Language Models
Cited by top-tier papers12
- Physics-Driven Spatiotemporal Modeling for AI-Generated Video DetectionShuhai Zhang, Zihao Lian, Jiahao Yang, Daiyuan Li et al.NeurIPS 2025 · 29 citations
- AdaDetectGPT: Adaptive Detection of LLM-Generated Text with Statistical GuaranteesHongyi Zhou, Jin Zhu, Pingfan Su, Kai Ye et al.NeurIPS 2025 · 23 citations
- Learn-to-Distance: Distance Learning for Detecting LLM-Generated TextHongyi Zhou, Jin Zhu, Kai Ye, Ying Yang et al.ICLR 2026 · 10 citations
- Human Texts Are Outliers: Detecting LLM-generated Texts via Out-of-distribution DetectionCong Zeng, Shengkun Tang, Yuanzhou Chen, Zhiqiang Shen et al.NeurIPS 2025 · 10 citations
- DNA-DetectLLM: Unveiling AI-Generated Text via a DNA-Inspired Mutation-Repair ParadigmXiaowei Zhu, Yubing Ren, Fang Fang, Qingfeng Tan et al.NeurIPS 2025 · 10 citations
Builds on22
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- TruthfulQA: Measuring How Models Mimic Human FalsehoodsStephanie Lin, Jacob Hilton, Owain EvansACL 2022 · 3,228 citations
- DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability CurvatureEric Mitchell, Yoonho Lee, Alexander Khazatsky, Christopher D. Manning et al.ICML 2023 · 988 citations
- A Watermark for Large Language ModelsJohn Kirchenbauer, Jonas Geiping, Yuxin Wen, Jonathan Katz et al.ICML 2023 · 854 citations
- RADAR: Robust AI-Text Detection via Adversarial LearningXiaomeng Hu, Pin-Yu Chen, Tsung-Yi HoNeurIPS 2023 · 315 citations
Related papers
- ExaGPT: Example-Based Machine-Generated Text Detection for Human InterpretabilityRyuto Koike, Masahiro Kaneko, Ayana Niwa, Preslav Nakov et al.ACL Findings 2026
- KatFishNet: Detecting LLM-Generated Korean Text through Linguistic Feature AnalysisShinwoo Park, Shubin Kim, Do-Kyung Kim, Yo-Sub HanACL 2025 · 6 citations
- Enhancing LLM Text Detection with Retrieved Contexts and Logits Distribution ConsistencyZhaoheng Huang, Yutao Zhu, Ji-Rong Wen, Zhicheng DouEMNLP 2025
- Detecting Machine-Generated Texts by Multi-Population Aware Optimization for Maximum Mean DiscrepancyShuhai Zhang, Yiliao Song, Jiahao Yang, Yuanqing Li et al.ICLR 2024 · 19 citations
- LLMDet: A Third Party Large Language Models Generated Text Detection ToolKangxi Wu, Liang Pang, Huawei Shen, Xueqi Cheng et al.EMNLP Findings 2023 · 31 citations
