Lune

ICLR2024Top-tier venue

Detecting Machine-Generated Texts by Multi-Population Aware Optimization for Maximum Mean Discrepancy

Shuhai Zhang, Yiliao Song, Jiahao Yang, Yuanqing Li, Bo Han, Mingkui Tan

Abstract

Large language models (LLMs) such as ChatGPT have exhibited remarkable performance in generating human-like texts. However, machine-generated texts (MGTs) may carry critical risks, such as plagiarism issues, misleading information, or hallucination issues. Therefore, it is very urgent and important to detect MGTs in many situations. Unfortunately, it is challenging to distinguish MGTs and human-written texts because the distributional discrepancy between them is often very subtle due to the remarkable performance of LLMs. In this paper, we seek to exploit maximum mean discrepancy (MMD) to address this issue in the sense that MMD can well identify distributional discrepancies. However, directly training a detector with MMD using diverse MGTs will incur a significantly increased variance of MMD since MGTs may contain multiple text populations due to various LLMs. This will severely impair MMD's ability to measure the difference between two samples. To tackle this, we propose a novel multi-population aware optimization method for MMD called MMD-MP, which can avoid variance increases and thus improve the stability to measure the distributional discrepancy. Relying on MMD-MP, we develop two methods for paragraph-based and sentence-based detection, respectively. Extensive experiments on various LLMs, , GPT2 and ChatGPT, show superior detection performance of our MMD-MP. The source code is available at https://github.com/ZSHsh98/MMD-MP.

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.

15 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Learn-to-Distance: Distance Learning for Detecting LLM-Generated Text cites BiScope: AI-generated Text Detection by Checking Memorization of Preceding Tokens
  • 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
  • BiScope: AI-generated Text Detection by Checking Memorization of Preceding Tokens cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
  • DETree: DEtecting Human-AI Collaborative Texts via Tree-Structured Hierarchical Representation Learning cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
  • DETree: DEtecting Human-AI Collaborative Texts via Tree-Structured Hierarchical Representation Learning cites Language Models are Few-Shot Learners
  • DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature cites Language Models are Few-Shot Learners
  • AdaDetectGPT: Adaptive Detection of LLM-Generated Text with Statistical Guarantees cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
  • Training language models to follow instructions with human feedback cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers15

  1. BiScope: AI-generated Text Detection by Checking Memorization of Preceding TokensHanxi Guo, Siyuan Cheng, Xiaolong Jin, Zhuo Zhang et al.NeurIPS 2024 · 52 citations
  2. Physics-Driven Spatiotemporal Modeling for AI-Generated Video DetectionShuhai Zhang, Zihao Lian, Jiahao Yang, Daiyuan Li et al.NeurIPS 2025 · 29 citations
  3. AdaDetectGPT: Adaptive Detection of LLM-Generated Text with Statistical GuaranteesHongyi Zhou, Jin Zhu, Pingfan Su, Kai Ye et al.NeurIPS 2025 · 23 citations
  4. DETree: DEtecting Human-AI Collaborative Texts via Tree-Structured Hierarchical Representation LearningYongxin He, Shan Zhang, Yixuan Cao, Lei Ma et al.NeurIPS 2025 · 13 citations
  5. Learn-to-Distance: Distance Learning for Detecting LLM-Generated TextHongyi Zhou, Jin Zhu, Kai Ye, Ying Yang et al.ICLR 2026 · 10 citations

Builds on19

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  3. Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations
  4. On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations
  5. DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability CurvatureEric Mitchell, Yoonho Lee, Alexander Khazatsky, Christopher D. Manning et al.ICML 2023 · 988 citations

Related papers

  1. DEMASQ: Unmasking the ChatGPT WordsmithKavita Kumari, Alessandro Pegoraro, Hossein Fereidooni, Ahmad-Reza SadeghiNDSS 2024
  2. On the Generalization of Training-based ChatGPT Detection MethodsHan Xu, Jie Ren, Pengfei He, Shenglai Zeng et al.EMNLP Findings 2024 · 9 citations
  3. MGTBench: Benchmarking Machine-Generated Text DetectionXinlei He, Xinyue Shen, Zeyuan Chen, Michael Backes et al.CCS 2024 · 30 citations
  4. MAGE: Machine-generated Text Detection in the WildYafu Li, Qintong Li, Leyang Cui, Wei Bi et al.ACL 2024 · 44 citations
  5. M4GT-Bench: Evaluation Benchmark for Black-Box Machine-Generated Text DetectionYuxia Wang, Jonibek Mansurov, Petar Ivanov, Jinyan Su et al.ACL 2024
Dusk over the sea between two cliffs drawn in fine vertical lines